summaryrefslogtreecommitdiff
path: root/lisp/kmacro.el
Commit message (Collapse)AuthorAgeFilesLines
* Improve docstring of kmacro-set-formatStefan Kangas2021-11-061-5/+35
| | | | | | | * lisp/kmacro.el (kmacro-set-format): Improve docstring. (kmacro-insert-counter, kmacro-display-counter) (kmacro-set-counter, kmacro-add-counter): Add cross-references to the info manual.
* Move 'kdb-macro-redisplay' key bindingLars Ingebrigtsen2021-09-221-1/+1
| | | | | | | * doc/emacs/kmacro.texi (Basic Keyboard Macro): Adjust. * lisp/kmacro.el (kmacro-keymap): Move 'kdb-macro-redisplay' to `C-x C-k d' since upper-case letters are reserved for users (bug#50727).
* ; More minor stylistic fixes found by checkdocStefan Kangas2021-09-221-2/+2
|
* ; Minor stylistic fixes found by checkdocStefan Kangas2021-09-161-3/+3
|
* Fix kmacro-view-ring-2nd doc stringLars Ingebrigtsen2021-05-301-1/+1
| | | | * lisp/kmacro.el (kmacro-view-ring-2nd): Fix doc string (bug#15020).
* * lisp/kmacro.el (kmacro-lambda-form): Fix bug#48523Stefan Monnier2021-05-191-10/+16
| | | | | Re-add `counter` and `format` arguments, since they are used in `insert-kbd-macro`.
* * lisp/kmacro.el: Fix test cases broken by last changeStefan Monnier2021-05-181-13/+21
| | | | | | | (kmacro-lambda-form): Remove unused args `counter` and `format`. Arrange to be able to extract `mac` from the function. (kmacro-extract-lambda): Use this new extraction instead of digging into the guts of a function's code.
* * lisp/kmacro.el: Avoid the dynbound dialect of ELispStefan Monnier2021-05-171-42/+43
| | | | | (kmacro-call-macro, kmacro-lambda-form): Use proper closures. (kmacro-keymap): Prefer #' top quote function names.
* Allow `C-x C-k l' to work even if `C-h l' is unboundLars Ingebrigtsen2021-05-051-1/+1
| | | | | * lisp/kmacro.el (kmacro-edit-lossage): `view-lossage' may be bound to a different key than `C-h l' (bug#47785).
* Add a command for redisplay during keyboard macrosMarco Wahl2021-01-291-0/+11
| | | | | | | | * doc/emacs/kmacro.texi (Basic Keyboard Macro): Document it (bug#39252). * lisp/kmacro.el (kdb-macro-redisplay): New function. (kmacro-keymap): Bind it.
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Shorten some over-wide docstrings in functions and macrosStefan Kangas2020-12-191-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/allout-widgets.el (allout-widgets-tally-string): * lisp/array.el (array-mode): * lisp/calc/calc-units.el (calc-spn): * lisp/cedet/ede/generic.el (ede-generic-new-autoloader): * lisp/cedet/semantic/analyze.el (semantic-analyze-find-tag-sequence-default) (semantic-analyze-find-tag-sequence): * lisp/cedet/semantic/bovine/c.el (semantic-c-evaluate-symbol-for-hideif): * lisp/cedet/semantic/bovine/make.el (semantic-lex-make-command): * lisp/cedet/semantic/db-typecache.el (semanticdb-typecache-include-tags): * lisp/cedet/semantic/doc.el (semantic-documentation-for-tag): * lisp/cedet/semantic/tag-ls.el (semantic--tag-attribute-similar-p): * lisp/emacs-lisp/advice.el (ad-map-arglists): * lisp/emacs-lisp/bytecomp.el (byte-constant2) (byte-save-restriction, byte-catch-OBSOLETE, byte-unwind-protect): * lisp/emacs-lisp/cl-generic.el (cl-generic-combine-methods): * lisp/emacs-lisp/seq.el (seq-partition, seq-set-equal-p) (seq-filter): * lisp/faces.el (face-attribute-specified-or, face-equal): * lisp/info.el (Info-prev-reference-or-link) (Info-next-reference-or-link): * lisp/isearch.el (with-isearch-suspended): * lisp/kmacro.el (kmacro-step-edit-macro, kmacro-set-counter): * lisp/org/org-agenda.el (org-agenda-filter-by-category): * lisp/ses.el (ses-cell-symbol): * lisp/w32-fns.el (w32-shell-dos-semantics): Shorten doc strings to not exceed 80-column limits. (Bug#44858)
* ; Fix typosStefan Kangas2020-09-211-1/+1
|
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Rewrite the kmacro register function to avoid using obsolete functionsLars Ingebrigtsen2019-06-121-10/+16
| | | | | | | | | * lisp/kmacro.el (kmacro-register): New struct to replace the general registerv struct. (register-val-jump-to, register-val-describe) (register-val-insert): New methods to implement the register interface. (kmacro-to-register): Use the kmacro-register struct.
* Improve printing for named keyboard macros (Bug#35486)Noam Postavsky2019-05-121-0/+1
| | | | | | | * lisp/macros.el (macros--insert-vector-macro): New function, extracted from insert-kbd-macro. (insert-kbd-macro): Use it and kmacro-extract-lambda to produce nicer expressions for macros produced by kmacro-lambda-form.
* Merge from origin/emacs-26Paul Eggert2019-02-011-4/+8
|\ | | | | | | | | 6c6b540711 Correct the docs of inserting kmacro counter 32555daf4c * doc/misc/calc.texi (Algebraic Tutorial): Fix a typo. (B...
| * Correct the docs of inserting kmacro counterEli Zaretskii2019-02-011-4/+8
| | | | | | | | | | | | | | | | | | | | * doc/emacs/kmacro.texi (Keyboard Macro Counter): Correct the description of the affect "C-u" has on inserting the macro counter. Define "previous counter value". * lisp/kmacro.el (kmacro-insert-counter) (kmacro-start-macro-or-insert-counter): Fix the doc strings regarding the effect of "C-u". (Bug#34263)
* | Merge from origin/emacs-26Paul Eggert2018-12-311-1/+1
|\| | | | | | | | | | | 2fcf2df Fix copyright years by hand 26bed8b Update copyright year to 2019 2814292 Fix value of default frame height. (Bug#33921)
| * Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | | | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* | Merge from origin/emacs-26Glenn Morris2018-05-151-14/+24
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | b98cf9c ; Fix a typo in the Emacs manual 700fcd7 * doc/emacs/help.texi: Fix paren typo. c9c0e40 More minor changes in shell-related nodes of Emacs manual e6bf19c Fix inaccuracies in "Shell Ring" node of Emacs manual 087681b8 Improve documentation of kmacro commands and variables. be2e8cb * doc/man/emacs.1.in: Document --fg-daemon and --bg-daemon. 1d9e66a Don't check non-X frames for z order (Bug#31373) 7dc028e Check NSWindow is actually a frame Conflicts: src/nsfns.m
| * Improve documentation of kmacro commands and variables.Eli Zaretskii2018-05-111-14/+24
| | | | | | | | | | | | | | | | * lisp/kmacro.el (kmacro-start-macro-or-insert-counter) (kmacro-counter, kmacro-set-format, kmacro-set-counter) (kmacro-add-counter, kmacro-counter-format) (kmacro-insert-counter): Clarify and improve the doc strings. (Bug#31243)
* | Prefer \... to control chars in .el literalsPaul Eggert2018-03-291-1/+1
| |
* | Merge from origin/emacs-26Paul Eggert2018-01-011-2/+8
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63b04c11d5 Fix copyright years by hand 5c7dd8a783 Update copyright year to 2018 220a9ecba1 Merge from Gnulib 312c565566 Don't add empty keyboard macro to macro ring (Bug#24992) 39ca289a7a Allow customization of decoding of "man" command f8240815ea * etc/NEWS: Add security consideration note on passphrase ... 0c78822c70 Fix subtle problem with scroll-down when scroll-margin is ... acd289c5a4 Fix problems with indexing in User manual b240c7846b * lisp/help.el (describe-key): Only (copy-sequence elt) wh... e879a5444a * src/buffer.c (Frestore_buffer_modified_p): Fix bug#29846 81b1028b63 Improve documentation of 'inhibit-modification-hooks' and ... 7175496d7a Fix doc string of 'enable-recursive-minibuffers' 5b38406491 Fix documentation of delsel and of killing text # Conflicts: # etc/NEWS # etc/refcards/ru-refcard.tex
| * Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | | | | | Run admin/update-copyright.
| * Don't add empty keyboard macro to macro ring (Bug#24992)Gemini Lasswell2017-12-311-1/+7
| | | | | | | | | | | | | | | | * lisp/kmacro.el (kmacro-end-call-mouse): Don't save a newly defined macro if it is empty. * test/lisp/kmacro-tests.el (kmacro-tests-end-and-call-macro-mouse): Remove expected failure tag.
* | * lisp/macros.el (insert-kbd-macro): Recognize kmacros reliablyStefan Monnier2017-11-241-35/+38
|/ | | | | | | | | | | | | | * lisp/macros.el (name-last-kbd-macro): Make it an alias of kmacro-name-last-macro. (insert-kbd-macro): Use kmacro-keyboard-macro-p so it also works for kmacros that fail to have a `kmacro' property. (see https://emacs.stackexchange.com/questions/37065, for an example). * lisp/kmacro.el: Remove redundant :group args. (kmacro-insert-counter): Simplify. (kmacro-extract-lambda): Use car/cdr-safe. (kmacro-p, kmacro-keyboard-macro-p): New functions. (kmacro-name-last-macro): Use them.
* Fix autoload of flymake from elisp-mode during bootstrap (bug#28994)Stefan Monnier2017-10-251-0/+1
| | | | | | * lisp/loadup.el: add `progmodes` to load-path so we can find flymake.el. * lisp/kmacro.el: Require `replace` since we use query-replace-map. * lisp/replace.el: Require `text-mode` since we use text-mode-map.
* Fix errors in kmacro.el post-command-hookEli Zaretskii2017-10-161-1/+1
| | | | | | | * lisp/kmacro.el (kmacro-step-edit-active): Initialize to nil to avoid 'void-variable' errors. (Bug#28818) * test/lisp/kmacro-tests.el (kmacro-tests-step-edit-cleans-up-hook): Now succeeds. (Bug#18708)
* 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.
* * lisp/kmacro.el: Use lexical binding.Mark Oteiza2017-07-291-1/+1
|
* Doc fixes for kmacro.el functionsEli Zaretskii2017-07-221-5/+6
| | | | | | * lisp/kmacro.el (kmacro-start-macro, kmacro-call-macro) (kmacro-end-and-call-macro): Don't use "permanent name", as that could be misinterpreted. (Bug#27492)
* Merge from origin/emacs-25Paul Eggert2017-01-011-1/+1
|\ | | | | | | | | 2e2a806 Fix copyright years by hand 5badc81 Update copyright year to 2017
| * Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | | | | | Run admin/update-copyright.
* | Fix call of `kmacro-display'Lars Ingebrigtsen2016-04-291-1/+1
|/ | | | | * lisp/kmacro.el (kmacro-view-ring-2nd): Fix call of `kmacro-display' (bug#15020).
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Generalize the prefix-command machinery of C-uStefan Monnier2015-09-011-41/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/simple.el (prefix-command-echo-keystrokes-functions) (prefix-command-preserve-state-hook): New hooks. (internal-echo-keystrokes-prefix): New function. (prefix-command--needs-update, prefix-command--last-echo): New vars. (prefix-command-update, prefix-command-preserve): New functions. (reset-this-command-lengths): New compatibility definition. (universal-argument--mode): Call prefix-command-update. (universal-argument, universal-argument-more, negative-argument) (digit-argument): Call prefix-command-preserve-state. * src/keyboard.c: Call internal-echo-keystrokes-prefix to build the "prefix argument" to echo. (this_command_key_count_reset, before_command_key_count) (before_command_echo_length): Delete variables. (echo_add_key): Always add a space. (echo_char): Remove. (echo_dash): Don't give up when this_command_key_count is 0, since that is now the case after a prefix command. (echo_update): New function, extracted from echo_now. (echo_now): Use it. (add_command_key, read_char, record_menu_key): Remove old disabled code. (command_loop_1): Don't refrain from pushing an undo boundary when prefix-arg is set. Remove other prefix-arg special case, now handled directly in the prefix commands instead. But call echo_now if there's a prefix state to echo. (read_char, record_menu_key): Use echo_update instead of echo_char. (read_key_sequence): Use echo_now rather than echo_dash/echo_char. (Freset_this_command_lengths): Delete function. (syms_of_keyboard): Define Qinternal_echo_keystrokes_prefix. (syms_of_keyboard): Don't defsubr Sreset_this_command_lengths. * lisp/simple.el: Use those new hooks for C-u. (universal-argument--description): New function. (prefix-command-echo-keystrokes-functions): Use it. (universal-argument--preserve): New function. (prefix-command-preserve-state-hook): Use it. (command-execute): Call prefix-command-update if needed. * lisp/kmacro.el (kmacro-step-edit-prefix-commands) (kmacro-step-edit-prefix-index): Delete variables. (kmacro-step-edit-query, kmacro-step-edit-insert): Remove ad-hoc support for prefix arg commands. (kmacro-step-edit-macro): Don't bind kmacro-step-edit-prefix-index. * lisp/emulation/cua-base.el (cua--prefix-override-replay) (cua--shift-control-prefix): Use prefix-command-preserve-state. Remove now unused arg `arg'. (cua--prefix-override-handler, cua--prefix-repeat-handler) (cua--shift-control-c-prefix, cua--shift-control-x-prefix): Update accordingly. (cua--prefix-override-timeout): Don't call reset-this-command-lengths any more. (cua--keep-active, cua-exchange-point-and-mark): Don't set mark-active if the mark is not set.
* ; Do not overwrite preexisting contents of unread-command-eventsDavid Kastrup2015-08-041-1/+1
|
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Spelling fixes.Paul Eggert2014-02-121-1/+1
|
* * kmacro.el (kmacro-bind-to-key): Say that the parameter is unused.Lars Ingebrigtsen2014-02-091-5/+10
| | | | Fixes: debbugs:14197
* * kmacro.el (kmacro-exec-ring-item): Doc fix.Lars Ingebrigtsen2014-02-081-1/+2
| | | | Fixes: debbugs:14198
* Be more consistent in using register-read-with-preview to read registersGlenn Morris2014-02-021-2/+4
| | | | | | | | | | | | | | | | | | | * frameset.el (frameset-to-register): * kmacro.el (kmacro-to-register): * register.el (increment-register): * calc/calc-yank.el (calc-copy-to-register, calc-insert-register) (calc-append-to-register, calc-prepend-to-register): * play/gametree.el (gametree-layout-to-register) (gametree-apply-register-layout): * textmodes/picture.el (picture-clear-rectangle-to-register) (picture-yank-rectangle-from-register): * vc/emerge.el (emerge-combine-versions-register): Use register-read-with-preview to read registers. * cedet/semantic/senator.el (senator-copy-tag-to-register): Use register-read-with-preview, if available. * calculator.el, emulation/viper-cmd.el: Comments.
* 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-4/+4
| | | | | | | | | | | | | | | | | | | | | * 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.
* Remove references to universal-argument-num-events.Juanma Barranquero2013-09-231-3/+0
| | | | | | | * lisp/autoarg.el (autoarg-kp-digit-argument): * lisp/electric.el (Electric-command-loop): * lisp/kmacro.el (kmacro-step-edit-insert): Do not set universal-argument-num-events.
* * kmacro.el (kmacro-call-macro): Fix bug#14135.Leo Liu2013-04-051-5/+7
|
* * etc/NEWS: Mention `kmacro-to-register' and new eldoc feature.Leo Liu2013-03-301-9/+10
| | | | | | * lisp/kmacro.el (kmacro-call-macro): Add optional arg MACRO. (kmacro-execute-from-register): Pass the keyboard macro to kmacro-call-macro or repeating won't work correctly.
* * kmacro.el (kmacro-to-register): New command.Leo Liu2013-03-291-0/+21
| | | | | | | (kmacro-execute-from-register): New function. (kmacro-keymap): Bind to 'x'. Fixes: debbugs:14071
* Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
|