summaryrefslogtreecommitdiff
path: root/lisp/use-package/bind-key.el
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* Ensure bind-key is its own packageStefan Kangas2023-09-221-0/+1
| | | | | | | | | | | | | | | | | | * lisp/finder.el (finder--builtins-alist): Remove "use-package" directory. * lisp/use-package/bind-key.el: Declare library as part of the 'bind-key' package. * lisp/use-package/use-package-bind-key.el: * lisp/use-package/use-package-core.el: * lisp/use-package/use-package-delight.el: * lisp/use-package/use-package-diminish.el: * lisp/use-package/use-package-ensure-system-package.el: * lisp/use-package/use-package-ensure.el: * lisp/use-package/use-package-jump.el: * lisp/use-package/use-package-lint.el: Declare library as part of the 'use-package' package. (Bug#62751) Do not merge to master.
* Fix byte-compiled files that use 'bind-key' from use-packageEli Zaretskii2023-08-041-0/+1
| | | | | | * lisp/use-package/bind-key.el (bind-key): Ensure 'bind-key' is loaded at run time. Patch by John Wiegley <johnw@gnu.org>. (Bug#64901)
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* ; * lisp/use-package/bind-key.el: Remove ineffective backslashes.Mattias Engdegård2022-12-111-3/+3
|
* ; Fix typosStefan Kangas2022-12-091-2/+2
|
* ; Improve use-package Commentary sectionsStefan Kangas2022-12-091-7/+7
| | | | | | | | | * lisp/use-package/bind-key.el: * lisp/use-package/use-package-bind-key.el: * lisp/use-package/use-package-core.el: * lisp/use-package/use-package-ensure-system-package.el: * lisp/use-package/use-package-ensure.el: * lisp/use-package/use-package.el: Improve Commentary sections.
* ; Normalize GPLv3 license statements in new filesStefan Kangas2022-12-091-3/+5
|
* ; Minor doc fixes in bind-key.elStefan Kangas2022-12-081-5/+4
| | | | | * lisp/use-package/bind-key.el (bind-key-segregation-regexp) (bind-key): Minor doc fixes.
* Update use-package defgroupsStefan Kangas2022-12-081-1/+4
| | | | | | | * lisp/use-package/bind-key.el (bind-key): * lisp/use-package/use-package-core.el (use-package): * lisp/use-package/use-package-ensure.el (use-package-ensure): Add :link, :version and :group to defgroups.
* Improve bind-keys* and override-global-mode docstringsStefan Kangas2022-12-081-1/+17
| | | | | * lisp/use-package/bind-key.el (bind-keys*): Add docstring. (override-global-mode) Improve docstring.
* Add package keyword from finder-known-keywordsStefan Kangas2022-11-171-1/+1
|
* Fix Package-Requires for bind-{chord,key}.elStefan Kangas2022-11-171-2/+2
|
* Merge pull request from skangas/dir-localsJohn Wiegley2022-11-161-1/+0
|\ | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/1023
| * Add .dir-locals.elStefan Kangas2022-11-161-1/+0
| |
* | Delete redundant headersStefan Kangas2022-11-161-1/+0
| |
* | Normalize GPLv3 license statementsStefan Kangas2022-11-161-15/+13
|/
* Revert "Allow multiple keymaps in :map argument"John Wiegley2022-11-151-62/+47
|
* Merge remote-tracking branch 'origin/master' into pr-830John Wiegley2022-11-151-12/+12
|\
| * Merge pull request from skangas/checkdocJohn Wiegley2022-11-141-4/+4
| |\ | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/1015
| | * Various checkdoc fixesStefan Kangas2022-11-141-4/+4
| | |
| * | Fix tests on Emacs 26 or olderStefan Kangas2022-11-131-6/+6
| |/ | | | | | | | | | | | | This fixes the following error in Emacs 25.3: In toplevel form: bind-key.el:549:1:Error: the function ‘mapcan’ is not known to be defined.
| * bind-key.el: Bump version for ELPAPayas Relekar2022-10-281-1/+1
| |
| * Update copyright for submission to ELPAPayas Relekar2022-10-251-1/+1
| | | | | | | | | | - Update year to 2022 - Set copyright to Free Software Foundation, Inc.
* | bind-keys supports passing a list of keymaps as :map argumentJacob First2022-09-291-47/+62
|/
* Fix emacs native compilation warning for bind-keyCodruț Constantin Gușoi2022-09-101-2/+2
| | | | | | | | | | | | To reproduce, have emacs built with native compilation and notice the compilation logs. You can then open the offending file and run `M-x emacs-lisp-native-compile-and-load` before and after the changes to see the warning is removed. ``` ■ Warning (comp): bind-key.el:150:2: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting) ```
* Go back to making `override-global-mode` non-globalrealcomplex2022-08-111-1/+0
| | | | Copyright-paperwork-exempt: yes
* Make sure that bind-key's `override-global-mode` is initially onKoen van Greevenbroek2022-08-101-0/+1
| | | | | | | | | | | | | | In 4004dde the arguments to `define-minor-mode` were changed erroneously. Whereas the `override-global-mode` was initially defined as `(define-minor-mode override-global-mode "..." t "")`, the two latter arguments where changed to `:global t :lighter ""`. However, the two original arguments corresponded to the keywords `:init-value` and `:lighter`, respectively. With `:init-value t` now missing, the minor mode isn't enabled by default, and `bind-key*` appears not to work. Copyright-paperwork-exempt: yes
* Quote single quotes in docstrings or use different quotingJonas Bernoulli2022-08-081-13/+13
| | | | | | The byte-compiler started pointing this out: Warning: docstring has wrong usage of unescaped single quotes (use \= or different quoting)
* Merge pull request from wcy123/masterJohn Wiegley2022-08-071-2/+3
|\ | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/822
| * optimization: constand folding for read-kbd-macroWang Chunye2022-02-061-2/+3
| | | | | | | | | | | | | | | | | | to boost startup performance, it is better to avoid invoking `read-kbd-macro` at run time which requires 'cl-lib. it takes ~20ms to load cl-lib Copyright-paperwork-exempt: yes
* | Merge pull request from phst/lexJohn Wiegley2022-08-071-1/+1
|\ \ | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/848
| * | Migrate remaining files to lexical bindingPhilipp Stephani2020-08-031-1/+1
| | |
* | | Merge pull request from Hugo-Heagren/bind-keys-repeat-mapJohn Wiegley2022-08-071-9/+65
|\ \ \ | | | | | | | | GitHub-reference: https://github.com/jwiegley/use-package/issues/974
| * | | bind-keys-form: error for repeat sub-keywords without :repeat-mapHugo Heagren2022-01-281-0/+4
| | | | | | | | | | | | | | | | | | | | Error descriptively if :continue or :exit is specified without :repeat-map.
| * | | bind-key-form: allow :continue keyword inside repeat mapHugo Heagren2022-01-281-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Purely syntactic sugar, using :continue is the same as not using any keyword inside :repeat-map at all. Amend end of function to pass repeat-map value onto next invocation in recursive uses. This allows for the same repeat map to be used for :exit and :continue.
| * | | bind-key-form: allow :exit keyword inside repeat mapHugo Heagren2022-01-281-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | Keys bound inside the scope of :exit are bound inside the repeat map, but do not have their repeat-map property set (so they run a function, but 'exit' the map).
| * | | bind-keys-form: new keyword :repeat-map, for defining repeat mapsHugo Heagren2022-01-281-4/+32
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use-package-normalize/:bind: allow keyword :repeat-map. bind-keys-form: Add keyword :repeat-map. Specifying a symbol as the repeat-map defines a keymap with that name (and with the docstring `repeat-doc', if specified). Symbols for functions bound to keys under the scope of :repeat-map have their 'repeat-map property set to this map. Update docstring (and that of `bind-keys') to reflect changes. Rename `doc' to `prefix-doc' for clarity and consistency with 'repeat-doc'.
* / | Avoid positional arguments to define-minor-modeJonas Bernoulli2022-06-261-1/+2
|/ / | | | | | | | | | | Back in Emacs-21.1, `define-minor-mode' grew keyword arguments to replace its old positional arguments. Starting with Emacs-28.1 a warning will be omitted if positional arguments are still used.
* | unbind-key: Ensure that keys are removed from the keymapDaniel Mendler2021-02-101-11/+41
| | | | | | | | | | * The removal from the keymap is performed by bind-key--remove * Use the same argument normalization as bind-key
* | bind-key: Use new symbols for kmapvarDaniel Mendler2021-02-101-4/+7
| |
* | Support keymap symbol in bind-keyJimmy Yuen Ho Wong2020-07-081-5/+8
|/ | | GitHub-reference: fix https://github.com/jwiegley/use-package/issues/845
* Fix typosJonas Bernoulli2019-11-061-1/+1
|
* Document that remapping commands is supported with bind-keyAndrew Schwartzmeyer2018-04-301-0/+6
| | | | Copyright-paperwork-exempt: yes
* bind-keys fixes related toJohn Wiegley2017-12-101-13/+12
| | | GitHub-reference: https://github.com/jwiegley/use-package/issues/482
* Update some GPL version referencesJohn Wiegley2017-12-061-1/+1
| | | | Fixes https://github.com/jwiegley/use-package/issues/563
* Avoid using pcase and many other macros in macro-expanded formsJohn Wiegley2017-12-051-8/+14
| | | | This is related to https://github.com/jwiegley/use-package/issues/550
* Fix bad interaction between bind-keys* and the :package keywordJohn Wiegley2017-12-051-4/+5
| | | | Fixes https://github.com/jwiegley/use-package/issues/558
* Add a note to `bind-key` on the usage of the KEYMAP argumentJohn Wiegley2017-12-041-0/+7
| | | | Fixes https://github.com/jwiegley/use-package/issues/542
* Fix an argument process problem with bind-keyJohn Wiegley2017-12-041-21/+34
| | | | Fixes https://github.com/jwiegley/use-package/issues/334