aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/register.el (follow)
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2026 to copyright years.Sean Whitton2026-01-011-1/+1
|
* (register-preview-info): sort registers in preview bufferMasatake YAMATO2025-09-201-1/+1
| | | | | * lisp/register.el (register-preview): Sort alist returned from `register-of-type-alist'. (Bug#79474)
* ; * lisp/register.el (register-alist, jump-to-register): Doc fix (bug#79243).Eli Zaretskii2025-08-151-2/+2
|
* register.el: Fix use of `cl-find-class`Stefan Monnier2025-06-161-2/+2
| | | | | | | | | | `declare-function` doesn't cut it because the function can get called without having loaded `cl-extra` beforehand. Use `cl--find-class` instead, since that one gets inlined. * lisp/register.el: Require `cl-macs`. (register--get-method-type): Use `cl--find-class`. (cl-find-class): Don't declare.
* ; * lisp/register.el (cl-find-class): declare to silence warningMattias Engdegård2025-06-061-0/+1
|
* lisp/register.el (register-read-with-preview-traditional): Use PREDStefan Monnier2025-05-071-3/+3
|
* register.el (register--jumpable-p): Fix bug#78186Stefan Monnier2025-05-011-3/+4
| | | | | | | | | While `register--get-method-type` worked fine for `register-val-insert` it always returns nil for `register-val-jump-to` because it presumed the method took a single argument. Make it work for multi-arg generic functions. * lisp/register.el (register--get-method-type): Add `other-args-type` arg. (register--jumpable-p): Use it.
* (register-type, register--type): Delete functionsStefan Monnier2025-04-301-50/+29
| | | | | | | | | | | Automatically figure out which regval can be used for insertion and jump based on the presence of a matching method. * lisp/register.el (register-type, register--type): Delete functions. (register--get-method-type, register--jumpable-p) (register--insertable-p): New functions. (jump-to-register, insert-register): Use them. * lisp/frameset.el (register--type): Delete method.
* (register-preview-1): Delete functionStefan Monnier2025-04-301-30/+12
| | | | | | * lisp/register.el (register-preview): Add `pred` arg. (register-preview-1): Delete function. (register-read-with-preview-fancy): Use `register-preview` instead.
* (register-command-info): Delete functionStefan Monnier2025-04-301-35/+31
| | | | | | | | * lisp/register.el (register-command-info): Delete function. (register-read-with-preview-fancy): Don't use it any more. (jump-to-register, increment-register, view-register) (insert-register, append-to-register, prepend-to-register): Pass a `pred` arg instead.
* (register-type): Change arg to be the "regval"Stefan Monnier2025-04-301-7/+7
| | | | | * lisp/register.el (register-type): Change arg to be the "regval". (register-read-with-preview-fancy): Adjust call accordingly
* (register-read-with-preview): Add optional `pred` argStefan Monnier2025-04-301-28/+44
| | | | | | | | | | | | | * lisp/register.el (register--read-with-preview-function): Improve docstring.. (register--type) <(eql nil)>: New method. (register-of-type-alist, register-preview-1) (register--preview-get-defaults): Replace `types` arg with `pred` arg. (register-read-with-preview, register-read-with-preview-traditional): Add `pred` arg. (register-read-with-preview-fancy): Add `pred` arg. Use it instead of the `types` info returned by `register-command-info`, when provided.
* (register-preview-info): Delete struct typeStefan Monnier2025-04-301-49/+16
| | | | | | * lisp/register.el (register-preview-info): Delete struct type. (register-command-info): Return a list of types, instead. (register-read-with-preview-fancy): Adjust accordingly.
* (register-preview-info): Delete slot `act`Stefan Monnier2025-04-301-41/+27
| | | | | | | | * lisp/register.el (register-preview-info): Delete slot `act`. (register-command-info): Delete arg `:act`. (register--preview-get-defaults): Rename from `register--preview-get-defaults` and rewrite with, different args. (register-read-with-preview-fancy): Use it instead of `act`.
* (register-preview-info): Delete slot `smatch`Stefan Monnier2025-04-301-42/+26
| | | | | | | | | | | | | | | | | | | Use the `types` slot to carry that info instead. Replace the list of types `(all)` with `(t)` since `t` is the usual name of the "supertype of all types". Use the type `null` to represent the fact that empty registers can be used. Allow an empty list of types to stand for `(t null)`, i.e. any register even empty ones. * lisp/register.el (register-preview-info): Delete slot `smatch`. (register-command-info): Delete arg `:smatch`. Adjust `:types` instead. Fix the `copy-rectangle-to-register` case, which disallowed using an empty register. (register-of-type-alist): Adjust handling of `types` accordingly. (register-preview-1): Simplify. (register-read-with-preview-fancy): Use types instead of `smatch`. Use it also in place of `act`.
* (register-preview-info): Delete `msg` slotStefan Monnier2025-04-301-19/+6
| | | | | | * lisp/register.el (register-preview-info): Remove `msg` slot. (register-command-info): Delete `:msg` args. (register-read-with-preview-fancy): Compute `msg` from the `prompt`.
* (register-preview-info): Delete `noconfirm` slotStefan Monnier2025-04-301-30/+15
| | | | | | | * lisp/register.el (register-preview-info): Remove `noconfirm` slot. (register-command-info): Delete `:noconfirm` args. (register-read-with-preview-fancy): Hardcode the `noconfirm` setting because it was always exactly the same anyway.
* (register-preview-function): Use a single default againStefan Monnier2025-04-301-34/+7
| | | | | | | | * lisp/register.el (register-preview-function): Revert to Emacs<30 value. (register-use-preview, register-preview, register-preview-1): Don't touch it. (register-preview-default): Merge it with `register-preview-default-1`. (register--preview-function): Delete function.
* (register-read-with-preview-fancy): Fix handling of control charsStefan Monnier2025-04-301-20/+35
| | | | | | | | | | | | | | | | | | | | | | The code assumed that the string returned by `register-preview-function` has the register name as the first char. This was an incompatible change which broke packages that set this var, such as `calculator.el` and others. Remove this assumption by recording the register names in the preview buffer on a new `register--name` text property. While at it, fix a few other problems where control chars were not pretty printed. * lisp/register.el (register-preview-1): Remember the raw register name in the `register--name` text property. (register-preview-forward-line): Use the `register--name` text property. (register--find-preview): New function. (register-read-with-preview-fancy): Use it. If the last command inserted more than one char, only keep the first of the new chars. Make sure control chars are pretty printed in the minibuffer. including minibuffer messages.
* register.el: Fix some inconsistencies in the codeStefan Monnier2025-04-301-3/+7
| | | | | | | | | | * lisp/frameset.el (register-val-jump-to): Fix `:cleanup-frames`. The code did not obey its documented behavior and matched against the wrong symbols. * lisp/register.el (register-command-info) <append-to-register>, <prepend-to-register>: Remove `number` from the `:types` argument since those operations fail on numbers.
* lisp/register.el: Minor cosmeticsStefan Monnier2025-04-301-15/+13
| | | | | | Remove redundant `:group` arguments. Prefer #' to quote function names. Fix some markup on symbol names in docstrings.
* register.el: Remove bogus deftypes and fix associated methodsStefan Monnier2025-04-291-5/+4
| | | | | | | | | * lisp/register.el (frame-register, kmacro-register): Remove bogus deftypes. (register--type) <oclosure>: Fix kmacro method and generalize it to any OClosure. (register--type) <frameset-register>: Fix method and move it to ... * lisp/frameset.el (register--type) <frameset-register>: ... here, where `frameset-register` is defined.
* Merge from origin/emacs-30Yuan Fu2025-03-131-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | defc55bb6f9 Fix treesit-parser-create behavior regarding indirect buf... 20ac26e6751 ; Fix with-delayed-message docstring metavars. 04034cd9ce7 Fix 'dired-movement-style' in Dired when subdirs are shown f8443dffc1f ; * lisp/register.el (register-use-preview): Doc fix (bug... f729828bcfb ; Add texinfo reference to GNU Coding Standards. a6abb88fdcc ; * lisp/files.el (executable-find): Doc fix. # Conflicts: # src/treesit.c
| * ; * lisp/register.el (register-use-preview): Doc fix (bug#76739).Eli Zaretskii2025-03-131-2/+2
| |
* | Automatically document when setopt is neededStefan Kangas2025-03-121-4/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/help-fns.el (help--recommend-setopt): New function to automatically document the need to use `setopt` to set the values of any defcustoms with a `:set` property. (help-fns-describe-variable-functions): Add above new function to hook. * lisp/follow.el (follow-mode-prefix-key): * lisp/minibuffer.el (minibuffer-regexp-prompts): * lisp/register.el (register-use-preview): * lisp/savehist.el (savehist-autosave-interval): * lisp/saveplace.el (save-place-autosave-interval): * lisp/tab-bar.el (tab-bar-define-keys): * lisp/textmodes/text-mode.el (text-mode-ispell-word-completion): Delete now redundant text from docstrings.
* | Merge from savannah/emacs-30Po Lu2025-03-061-1/+5
|\ \ | |/ | | | | | | 93ac2cb742f Fix some widgets in customize-dirlocals 42a4c847e28 Fix register-use-preview behavior with never value
| * Fix register-use-preview behavior with never valueThierry Volpiatto2025-03-051-1/+5
| | | | | | | | | | | | | | | | | | Allow popping up preview when pressing C-h. Don't exit the minibuffer when the call to register-read-with-preview-fancy is triggered by C-h. * lisp/register.el (register-read-with-preview-fancy): Do it.
* | Merge from savannah/emacs-30Po Lu2025-03-051-1/+4
|\ \ | |/ | | | | | | | | | | 121371a7064 Move java/incrementing-version-code to AndroidManifest.xm... 8099dc6e3ae Provide an Android version code derived from the Emacs ve... 59fcb2aa1b2 ; * lisp/register.el (register-use-preview): Doc fix (bug... 0383937a701 ; Improve documentation of 'shortdoc'
| * ; * lisp/register.el (register-use-preview): Doc fix (bug#76739).Eli Zaretskii2025-03-041-1/+4
| |
| * Update copyright year to 2025Stefan Kangas2025-01-021-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Update copyright year to 2025Paul Eggert2025-01-011-1/+1
| | | | | | | | Run "TZ=UTC0 admin/update-copyright".
* | Merge from origin/emacs-30Eli Zaretskii2024-12-281-1/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2ba6387d1d6 ; Fix inaccuracy in ELisp Reference manual 8ac6a178804 ; * etc/PROBLEMS: Mention problems with XPM support in GD... 624322d5f6a Add missing fontification matches for elixir-ts-mode 5bafb11b400 ; Fix copyright year 186ea407326 Don't start docstrings with "This function" or similar cb8ce2e68bb Enable indent-tabs-mode in obj-c-mode 54f35137096 Fix comment indent in 'lua-ts-mode' and old grammar 8b95549e908 * admin/nt/dist-build/build-dep-zips.py: (deps src) handl... 8064b2a6798 Document undocumented completion commands c29b798537e ; etc/w32-feature.el (harfbuzz): improve test 0e43e35f96e * admin/nt/dist-build/emacs.nsi: (Uninstall) delete only ... b83cd8a8fb0 ; * etc/tutorials/TUTORIAL.ko: Fix the beginning. 41caccc488b ; * etc/publicsuffix.txt: Update from upstream. e6fb18406ee ; Fix refcards 14e791f9ba2 ; Update acknowledgments for Emacs 30 861b7864fc4 ; Fix node name in emacs-lisp-intro.texi 77243ba5be8 ; Update version tags of defcustoms fe2ac33bae8 ;* doc/misc/efaq.texi (New in Emacs 30): Mention 'trusted... 8fb884f0dc0 ; * etc/NEWS: Fix wording. e281355a5e8 Improve D-Bus and Tramp manual # Conflicts: # doc/emacs/emacs.texi # etc/NEWS # lisp/erc/erc-log.el # lisp/eshell/esh-mode.el # lisp/which-key.el
| * ; Update version tags of defcustomsEli Zaretskii2024-12-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * admin/release-process: Expand on 'cusver-check'. * lisp/editorconfig.el (editorconfig-indentation-alist) (editorconfig-trim-whitespaces-mode): * lisp/eshell/em-cmpl.el (eshell-cmpl-remote-file-ignore): * lisp/eshell/esh-ext.el (eshell-explicit-remote-commands): * lisp/gnus/nnfeed.el (nnfeed-date-format): * lisp/net/newst-ticker.el (newsticker-ticker-period): * lisp/progmodes/cc-vars.el (c-warn-ids-with-dollar): * lisp/progmodes/cperl-mode.el (cperl-fontify-trailer): * lisp/progmodes/eglot.el (customize-package-emacs-version-alist) (eglot-events-buffer-config, eglot-confirm-server-edits) (eglot-prefer-plaintext): * lisp/progmodes/flymake.el (customize-package-emacs-version-alist): * lisp/progmodes/ruby-mode.el (ruby-rubocop-use-bundler): * lisp/progmodes/verilog-mode.el (verilog-indent-ignore-multiline-defines) (verilog-indent-ignore-regexp, verilog-indent-class-inside-pkg) (verilog-align-decl-expr-comments) (verilog-align-comment-distance, verilog-align-assign-expr) (verilog-align-typedef-regexp, verilog-align-typedef-words) (verilog-fontify-variables): * lisp/register.el (register-preview-display-buffer-alist): * lisp/vc/vc-annotate.el (vc-annotate-use-short-revision): Add missing :version tags and additions to 'customize-package-emacs-version-alist' as appropriate.
* | ; Touch up 'buffer-to-register'Eshel Yaron2024-10-081-12/+17
| | | | | | | | | | * lisp/register.el (buffer-to-register): Refine docstring and interactive prompts; sharp-quote function name.
* | ; Fix 'add-hook' call in 'buffer-to-register'Barra Ó Catháin2024-10-081-2/+4
| | | | | | | | | | * lisp/register.el (buffer-to-register): Add 'with-current-buffer' so 'add-hook' correctly refers to buffer when given argument.
* | ; Fix warnings in register.elEli Zaretskii2024-10-051-1/+3
| | | | | | | | | | * lisp/register.el (dired-current-directory): Declare. (file-to-register): Doc fix.
* | Add file/buffer-to-register (Bug#73308)Barra Ó Catháin2024-10-051-1/+54
|/ | | | | | | | | | | | | | | | | * doc/emacs/regs.texi (File and Buffer Registers): Update documentation to refer to 'file-to-register' and 'buffer-to-register'. * etc/NEWS: Announce the new commands. * lisp/bindings.el (ctl-x-r-map): Map new commands into the register keymap. * lisp/register.el (register-command-info): Register new commands. (jump-to-register): Remove docstring line referring to using set-register instead of new commands. (file-to-register): Add function for storing files in registers. (buffer-to-register): Add function for storing buffers in registers. (register-buffer-to-file-query): Add function for converting buffer registers to file-query registers on killing a buffer.
* Improve register-use-preview docstringStefan Kangas2024-07-201-10/+13
| | | | * lisp/register.el (register-use-preview): Improve docstring.
* Miscellaneous checkdoc fixesStefan Kangas2024-07-201-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/ansi-color.el (ansi-color--ensure-context): * lisp/doc-view.el (doc-view-svg-face): * lisp/external-completion.el (external-completion-table): * lisp/ffap.el (ffap-ro-mode-hook, ffap-gnus-hook): * lisp/find-file.el: * lisp/flow-ctrl.el (flow-control-c-s-replacement) (flow-control-c-q-replacement): * lisp/forms.el (forms-multi-line): * lisp/help.el (search-forward-help-for-help): * lisp/hi-lock.el (hi-lock-use-overlays): * lisp/image.el (find-image): * lisp/isearch.el (isearch-forward, isearch-forward-regexp) (isearch-lazy-count-format): * lisp/jsonrpc.el (jsonrpc--continue, initialize-instance): * lisp/mouse-copy.el (mouse-kill-preserving-secondary): * lisp/pixel-scroll.el (pixel-bob-at-top-p) (pixel-scroll-down-and-set-window-vscroll): * lisp/printing.el (pr-gv-command, pr-gs-command) (pr-gs-switches): * lisp/register.el (register-use-preview): * lisp/repeat.el (repeat-check-key): * lisp/saveplace.el (save-place-abbreviate-file-names): * lisp/select.el (gui--clipboard-selection-unchanged-p): * lisp/ses.el (ses-header-row): * lisp/simple.el (transpose-sexps-default-function) (normal-erase-is-backspace, normal-erase-is-backspace-mode): * lisp/sqlite-mode.el (sqlite-mode): * lisp/tempo.el (tempo-insert-region): * lisp/term.el (term-mode-map, term-mode, term-char-mode): Checkdoc fixes.
* ; Minor improvements of last changeEli Zaretskii2024-01-271-4/+5
| | | | | * lisp/register.el (register-use-preview): Doc fix. * doc/emacs/regs.texi (Registers): Fix wording. (Bug#68654)
* Add new option to 'register-use-preview'Thierry Volpiatto2024-01-271-2/+16
| | | | | | | | | | | | When set to 'insist', exit minibuffer with same key as register name, instead of pressing RET. E.g., pressing "a" selects register "a", then pressing "a" again exits the minibuffer. * lisp/register.el (register-use-preview): New option 'insist'. (register-read-with-preview-fancy): Handle new option. * doc/emacs/regs.texi: Document it. * etc/NEWS: Mention 'insist'. (Bug#68654)
* Fix window setting in register preview (bug#67882)Thierry Volpiatto2024-01-101-15/+16
| | | | | | | | and allow configuring it if needed. * lisp/register.el (register-preview-display-buffer-alist): New user var. (register-preview,register-preview-1): Use it.
* Merge from savannah/emacs-29Po Lu2024-01-021-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dc4e6b13296 ; Update copyright years in more files 64b37776318 ; Run set-copyright from admin.el 8e1c56ae467 ; Add 2024 to copyright years # Conflicts: # doc/misc/modus-themes.org # doc/misc/texinfo.tex # etc/NEWS # etc/refcards/ru-refcard.tex # etc/themes/modus-operandi-theme.el # etc/themes/modus-themes.el # etc/themes/modus-vivendi-theme.el # lib/alloca.in.h # lib/binary-io.h # lib/c-ctype.h # lib/c-strcasecmp.c # lib/c-strncasecmp.c # lib/careadlinkat.c # lib/cloexec.c # lib/close-stream.c # lib/diffseq.h # lib/dup2.c # lib/filemode.h # lib/fpending.c # lib/fpending.h # lib/fsusage.c # lib/getgroups.c # lib/getloadavg.c # lib/gettext.h # lib/gettime.c # lib/gettimeofday.c # lib/group-member.c # lib/malloc.c # lib/md5-stream.c # lib/md5.c # lib/md5.h # lib/memmem.c # lib/memrchr.c # lib/nanosleep.c # lib/save-cwd.h # lib/sha1.c # lib/sig2str.c # lib/stdlib.in.h # lib/strtoimax.c # lib/strtol.c # lib/strtoll.c # lib/time_r.c # lib/xalloc-oversized.h # lisp/auth-source-pass.el # lisp/emacs-lisp/lisp-mnt.el # lisp/emacs-lisp/timer.el # lisp/info-look.el # lisp/jit-lock.el # lisp/loadhist.el # lisp/mail/rmail.el # lisp/net/ntlm.el # lisp/net/webjump.el # lisp/progmodes/asm-mode.el # lisp/progmodes/project.el # lisp/progmodes/sh-script.el # lisp/textmodes/flyspell.el # lisp/textmodes/reftex-toc.el # lisp/textmodes/reftex.el # lisp/textmodes/tex-mode.el # lisp/url/url-gw.el # m4/alloca.m4 # m4/clock_time.m4 # m4/d-type.m4 # m4/dirent_h.m4 # m4/dup2.m4 # m4/euidaccess.m4 # m4/fchmodat.m4 # m4/filemode.m4 # m4/fsusage.m4 # m4/getgroups.m4 # m4/getloadavg.m4 # m4/getrandom.m4 # m4/gettime.m4 # m4/gettimeofday.m4 # m4/gnulib-common.m4 # m4/group-member.m4 # m4/inttypes.m4 # m4/malloc.m4 # m4/manywarnings.m4 # m4/mempcpy.m4 # m4/memrchr.m4 # m4/mkostemp.m4 # m4/mktime.m4 # m4/nproc.m4 # m4/nstrftime.m4 # m4/pathmax.m4 # m4/pipe2.m4 # m4/pselect.m4 # m4/pthread_sigmask.m4 # m4/readlink.m4 # m4/realloc.m4 # m4/sig2str.m4 # m4/ssize_t.m4 # m4/stat-time.m4 # m4/stddef_h.m4 # m4/stdint.m4 # m4/stdio_h.m4 # m4/stdlib_h.m4 # m4/stpcpy.m4 # m4/strnlen.m4 # m4/strtoimax.m4 # m4/strtoll.m4 # m4/time_h.m4 # m4/timegm.m4 # m4/timer_time.m4 # m4/timespec.m4 # m4/unistd_h.m4 # m4/warnings.m4 # nt/configure.bat # nt/preprep.c # test/lisp/register-tests.el
| * ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
| |
* | ; Improve and correct documentation of registers (bug#66394)Eli Zaretskii2023-12-231-7/+4
| | | | | | | | | | | | | | | | | | Suggested by Thierry Volpiatto <thievol@posteo.net>. * doc/emacs/regs.texi (Registers): Mention filtering of registers in the preview. * lisp/register.el (register-use-preview) (register--preview-function, register-preview-info): Doc fixes.
* | Improve and update documentation of registersEli Zaretskii2023-12-211-70/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lisp/register.el (register-use-preview) (register--read-with-preview-function) (register-preview-function, register-preview-default-1) (register-preview-default, register--preview-function) (register-preview-info, register-command-info) (register-preview-forward-line, register-preview-next) (register-preview-previous, set-register, register-type) (register--type, register-preview, register-preview-1) (register-preview-get-defaults, register-read-with-preview) (register-read-with-preview-traditional) (register-read-with-preview-fancy, register-preview-delay): Doc fixes. * doc/emacs/regs.texi (Registers): Describe the new preview modes. * etc/NEWS: Move the registers entry to its correct place, and document the modified behavior. (Bug#66394)
* | * lisp/register.el (register-read-with-preview-fancy): Fit in 80 columnsStefan Monnier2023-12-201-66/+64
| |
* | Correct defcustoms in register.elPo Lu2023-12-211-2/+2
| | | | | | | | | | * lisp/register.el (register-preview-default-keys) (register-use-preview): Render :version tags strings.
* | Rename *basic symbols and words to traditional in registerThierry Volpiatto2023-12-201-10/+10
| | | | | | | | | | | | * lisp/register.el (register-use-preview): Do it. (register-read-with-preview-traditional): Renamed from register-read-with-preview-basic.
* | Fix condition in register-read-with-preview-fancyThierry Volpiatto2023-12-201-5/+5
| | | | | | | | | | | | | | | | | | | | | | Now with have :noconfirm no need to check for '(set modify) otherwise we fail as well in kmacros when register-use-preview is t. The conditions should not be hard coded in register-read-with-preview-fancy but in the cl-defmethod register-command-info for each command. * lisp/register.el (register-read-with-preview-fancy): Remove now unneeded condition.