summaryrefslogtreecommitdiff
path: root/lisp/repeat.el
Commit message (Collapse)AuthorAgeFilesLines
* Merge from origin/emacs-28Eli Zaretskii2022-01-011-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 836be7a112 ; * etc/refcards/ru-refcard.tex: Update Copyright year. 86cbc6ee4a * lisp/net/tramp-sh.el: Adapt copyright year ebe8772f65 ; Minor fixes related to copyright years 23c1ee6989 ; * test/manual/etags/ETAGS.good_N: Adjust to copyright ye... 8d3fc7ec89 * src/xfaces.c (face_for_font): Make 'hash' be uintptr_t. 19dcb237b5 ; Add 2022 to copyright years. # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex # lib/cdefs.h # lisp/erc/erc-dcc.el # lisp/erc/erc-imenu.el # lisp/erc/erc-replace.el # lisp/image-dired.el # lisp/progmodes/xref.el # m4/alloca.m4 # m4/byteswap.m4 # m4/errno_h.m4 # m4/getopt.m4 # m4/gnulib-common.m4 # m4/inttypes.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/sys_socket_h.m4
| * ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
| |
* | Merge from origin/emacs-28Stefan Kangas2021-12-021-11/+16
|\ \ | |/ | | | | | | | | | | | | | | | | f38dfa56a0 ; Update loaddefs files. b3d4b18507 ; make change-history-commit 334ff0232e * lisp/repeat.el: Use same logic for repeat-check-key and ... 8230a47ecc * lisp/help.el (help--analyze-key): Prefer posn-set-point ... # Conflicts: # lisp/ldefs-boot.el
| * * lisp/repeat.el: Use same logic for repeat-check-key and repeat-exit-timeout.Juri Linkov2021-12-011-11/+16
| | | | | | | | | | | | * lisp/repeat.el (repeat-check-key): Use for repeat-check-key the same logic as is used for repeat-exit-timeout in repeat-post-hook (bug#51390). (repeat-post-hook): Check for repeat-exit-timeout symbol property.
* | Merge from origin/emacs-28Stefan Kangas2021-12-011-10/+36
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | e632b83a28 Update authors.el for Emacs 28 e9fdb11903 ; * ChangeLog.3: Some additional fixes. 8fa4749df1 ; * ChangeLog.3: Filename fixes. ea5a90b4f4 * lisp/repeat.el: Fix long-standing problem when a random ... ef4954b69c * lisp/repeat.el (repeat-keep-prefix): Change default to nil. 6d5886e780 * test/lisp/repeat-tests.el (repeat-tests-call-b): Test fo... 9e16c6a96d ; * src/comp.c (syms_of_comp) <comp-no-native-file-h>: Doc... 9aa8fd6e62 * src/callint.c (Fcall_interactively): Fix inhibit_mouse_e... 70c229b1fc Fix regression in gdb-frame-handler cd9dd26d24 Format and index concept 'predicate' in ELisp Intro ab291656d0 ; * ChangeLog.3: Fix typos. 354f6c5609 ; * ChangeLog.3: Formatting fixes. 6192525a96 ; make change-history-commit
| * * lisp/repeat.el: Fix long-standing problem when a random key activates mapJuri Linkov2021-11-301-9/+35
| | | | | | | | | | | | | | | | | | * lisp/repeat.el (repeat-check-key): New defcustom (bug#51390). (repeat--command-property): New internal function. (repeat-check-key): New function. (repeat-post-hook): Use repeat--command-property and repeat-check-key. * test/lisp/repeat-tests.el (repeat-tests-check-key): New test.
| * * lisp/repeat.el (repeat-keep-prefix): Change default to nil.Juri Linkov2021-11-301-1/+1
| | | | | | | | | | 'repeat-keep-prefix' doesn't yet have sufficient support that covers all cases in bug#51281, so it's disabled now.
* | Do not buttonize key bindings outside of *Help* buffersGregory Heytings2021-11-291-25/+26
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * etc/NEWS: Mention the new variable. * lisp/apropos.el (apropos-describe-plist): Bind the new variable (bug#52053). * lisp/button.el (button-describe): Bind the new variable. * lisp/help-fns.el (describe-function, describe-variable) (describe-face, describe-symbol, describe-syntax) (describe-categories, describe-keymap, describe-mode) (describe-widget): Bind the new variable. * lisp/help-macro.el (make-help-screen): Bind the new variable. * lisp/help.el (help-buffer-under-preparation): New variable that is bound to t by commands that create a *Help* buffer. (substitute-command-keys): Use the new variable: help-link-key-to-documentation is supposed to have an effect only "in *Help* buffers". Fixes bug#52053. (view-lossage, describe-bindings, describe-key): Bind the new variable. * lisp/repeat.el (describe-repeat-maps): Bind the new variable. * lisp/international/mule-cmds.el (describe-input-method) (describe-language-environment): Bind the new variable. * lisp/international/mule-diag.el (describe-character-set) (describe-coding-system, describe-font, describe-fontset) ((list-fontsets): Bind the new variable.
* * lisp/repeat.el (repeat-post-hook): Add check symbolp rep-map.Narendra Joshi2021-11-251-1/+1
| | | | Copyright-paperwork-exempt: yes
* * lisp/repeat.el (describe-repeat-maps): Print all bound keys (bug#49265).Robert Pluim2021-11-181-4/+6
|
* * lisp/repeat.el (repeat-echo-message): Bind message-log-max to nil.Juri Linkov2021-11-151-13/+14
| | | | Don't insert messages about repeatable keys in the *Messages* buffer.
* * lisp/repeat.el (describe-repeat-maps): Use help-fns--analyze-function.Robert Pluim2021-11-151-1/+9
| | | | Print keys bound to commands in every keymap (bug#49265)
* * lisp/repeat.el: Detect changes in the minibuffer state (bug#47566)Juri Linkov2021-11-151-5/+16
| | | | | | | | (repeat--prev-mb): New internal variable. (repeat-post-hook): Check the property 'repeat-map' on the symbol from 'this-command' in addition to 'real-this-command'. Don't allow repeatable maps in the activated minibuffer or in the minibuffer from another command. Set 'repeat--prev-mb' at the end.
* ; * lisp/repeat.el (repeat-mode): Fix docstring typo.Robert Pluim2021-10-221-1/+1
|
* * lisp/repeat.el (repeat-keep-prefix): Expand description.Robert Pluim2021-10-221-1/+1
|
* Improve docstrings and NEWS item of 'repeat-mode'Juri Linkov2021-10-201-5/+5
| | | | | * lisp/repeat.el (repeat-exit-timeout, repeat-echo-function) (repeat-in-progress, repeat-map): Update docstrings.
* ; More minor stylistic fixes found by checkdocStefan Kangas2021-09-221-1/+1
|
* * lisp/repeat.el (repeat-echo-message): Clear only own added part of message.Juri Linkov2021-09-171-8/+15
| | | | (describe-repeat-maps, repeat-mode): Refer to each other in docstrings.
* Handle nil messages in repeat-echo-message.Gabriel do Nascimento Ribeiro2021-08-251-2/+3
| | | | | * lisp/repeat.el (repeat-echo-message): Handle cases where 'current-message' is nil (bug#50176).
* ; * lisp/repeat.el (repeat-echo-message): Use `string-search`.Mattias EngdegÄrd2021-08-241-1/+1
|
* Fix to clear echo-area after repeat-exit-timeout.Gabriel do Nascimento Ribeiro2021-08-241-1/+1
| | | | | * lisp/repeat.el (repeat-echo-message): Use 'string-match-p' to handle cases where echo-area contains other messages (bug#50176).
* * lisp/repeat.el (describe-repeat-maps): Rename from `describe-repeat'.Juri Linkov2021-07-061-5/+5
| | | | Fix text strings (bug#49265).
* * lisp/repeat.el (describe-repeat): New command (bug#49265).Juri Linkov2021-06-291-1/+23
|
* * lisp/repeat.el (repeat-exit-timeout): New defcustom (bug#48472).Juri Linkov2021-05-191-12/+42
| | | | | | | | | | | (repeat-exit-timer): New variable. (repeat-post-hook): Run idle timer with an "exit function" returned from set-transient-map. Suggested by Gustavo Barros <gusbrs.2016@gmail.com>. (repeat-echo-message): Remove own previous message when input arg is nil. * lisp/window.el (display-buffer-override-next-command): Return exitfun.
* repeat-echo-mode-line-string doesn't need risky-local-variable to keep propsJuri Linkov2021-04-141-2/+0
| | | | (bug#47566)
* * lisp/repeat.el: Add option to indicate repeat-mode in mode-line (bug#47566)Juri Linkov2021-04-141-49/+78
| | | | | | | | | | | | * lisp/repeat.el (repeat-echo-function): Rename from repeat-mode-echo. Add choice repeat-echo-mode-line. (repeat-in-progress): New variable. (repeat-post-hook): Call repeat-echo-function with nil arg at the end of repeating sequence. (repeat-echo-message-string): New function with body from repeat-post-hook. (repeat-echo-message): Rename from repeat-mode-message. (repeat-echo-mode-line-string): New variable. (repeat-echo-mode-line): New function.
* * lisp/repeat.el (repeat-mode-echo): New defcustom.Juri Linkov2021-04-121-5/+20
| | | | | | | | (repeat-post-hook): Use it. (repeat-mode-message): New function (bug#47566). (repeat-post-hook): Use real-this-command instead of this-command to handle e.g. rectangle-exchange-point-and-mark remapped to exchange-point-and-mark (bug#47688).
* * lisp/repeat.el (repeat-post-hook): Check for prefix-arg.Juri Linkov2021-04-081-11/+6
| | | | | This is instead of checking for a list of argument-related commands that set prefix-arg anyway.
* * lisp/repeat.el (repeat-post-hook): Skip repeating in minibuffer (bug#47566).Juri Linkov2021-04-081-3/+8
| | | | (repeat-map)<defvar>: Add docstring.
* * lisp/repeat.el (repeat-keep-prefix): New defcustom.Juri Linkov2021-04-061-3/+16
| | | | | | | | | | | | | | * lisp/repeat.el (repeat-map): New autoloaded global variable. (repeat-post-hook): Use 'repeat-map' when non-nil and reset it to nil afterwards. (repeat-post-hook): Keep the current prefix when 'repeat-keep-prefix' is non-nil. * lisp/window.el (other-window-repeat-map): Add "O" that sets 'repeat-map' to 'other-window-repeat-map' before calling '(other-window -1)'. https://lists.gnu.org/archive/html/emacs-devel/2021-03/msg01387.html
* * lisp/repeat.el (repeat-post-hook): Fix key lookup.Juri Linkov2021-04-051-25/+29
| | | | | | | | * lisp/repeat.el (repeat-post-hook): Rename let-bound repeat-map to rep-map. Define let-bound prefix-command-p. Use lookup-key with this-single-command-keys instead of last-command-event. Don't show message when typing prefix keys. https://lists.gnu.org/archive/html/emacs-devel/2021-04/msg00083.html
* Convert many more links to use HTTPSStefan Kangas2021-03-241-1/+1
|
* New transient mode 'repeat-mode' to allow shorter key sequences (bug#46515)Juri Linkov2021-02-171-0/+71
| | | | | | | | | | | | | | | | | | | | | | | * doc/emacs/basic.texi (Repeating): Document repeat-mode. * lisp/repeat.el (repeat-exit-key): New defcustom. (repeat-mode): New global minor mode. (repeat-post-hook): New function. * lisp/bindings.el (undo-repeat-map): New variable. (undo): Put 'repeat-map' property with 'undo-repeat-map'. (next-error-repeat-map): New variable. (next-error, previous-error): Put 'repeat-map' property with 'next-error-repeat-map'. * lisp/window.el (other-window-repeat-map): New variable. (other-window): Put 'repeat-map' property with 'other-window-repeat-map'. (resize-window-repeat-map): New variable. (enlarge-window, enlarge-window-horizontally) (shrink-window-horizontally, shrink-window): Put 'repeat-map' property with 'resize-window-repeat-map'.
* Fix repeating complex commandsSean Whitton2021-02-051-3/+1
| | | | | | * lisp/repeat.el (repeat): Fix repeating complex commands (bug#46290). This makes `M-: date RET C-x z' work again (like in Emacs 21, apparently).
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* * lisp/repeat.el: Remove obsolete comment.Stefan Kangas2020-09-231-4/+0
|
* Add "Old-" prefix to "Version" header in some casesStefan Kangas2020-03-211-1/+1
| | | | | | | | | | | | | | | | | These version numbers are historical accidents and not relevant today. Ref: https://lists.gnu.org/r/emacs-devel/2020-03/msg00080.html * lisp/calendar/icalendar.el: * lisp/emacs-lisp/checkdoc.el: * lisp/hippie-exp.el: * lisp/linum.el: * lisp/master.el: * lisp/progmodes/cwarn.el: * lisp/repeat.el: * lisp/ruler-mode.el: * lisp/textmodes/remember.el: * lisp/wdired.el: * lisp/woman.el: Change "Version" header to "Old-Version".
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | Run admin/update-copyright.
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* * repeat.el (repeat-message-function): Doc fixLars Ingebrigtsen2014-02-081-1/+3
| | | | Fixes: debbugs:11619
* * repeat.el (repeat-message-function): Reword doc slightly.Lars Ingebrigtsen2014-02-081-3/+3
| | | | Fixes: debbugs:11619
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Rename set-temporary-overlay-map -> set-transient-mapChong Yidong2013-12-231-1/+1
| | | | | | | | | | | | | | | | | | | | | * lisp/subr.el (set-transient-map): Rename from set-temporary-overlay-map. Doc fix. * lisp/face-remap.el (text-scale-adjust): * lisp/indent.el (indent-rigidly): * lisp/kmacro.el (kmacro-call-macro): * lisp/minibuffer.el (minibuffer-force-complete): * lisp/repeat.el (repeat): * lisp/simple.el (universal-argument--mode): * lisp/calendar/todo-mode.el (todo-insert-item--next-param): * lisp/progmodes/f90.el (f90-abbrev-start): Callers changed. * lisp/org/org.el (orgstruct-make-binding): Call set-transient-map instead of old name set-temporary-overlay-map. * doc/lispref/keymaps.texi (Controlling Active Maps): Renamed set-temporary-overlay-map to set-transient map. Doc fixes. (Searching Keymaps): The transient keymap takes precedence.
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|
* * lisp/repeat.el (repeat): Set real-this-command.Stefan Monnier2012-10-231-0/+4
| | | | Fixes: debbugs:12232