From: Thierry Volpiatto <thievol@posteo.net>
To: 68921@debbugs.gnu.org
Cc: barra@ocathain.ie
Subject: bug#68921: File and Buffer register functions.
Date: Sun, 04 Feb 2024 07:15:56 +0000 [thread overview]
Message-ID: <87sf288ztf.fsf@posteo.net> (raw)
In-Reply-To: <877cjkagi3.fsf@posteo.net> (Thierry Volpiatto's message of "Sun, 04 Feb 2024 06:30:12 +0000")
Thierry Volpiatto <thievol@posteo.net> writes:
> That said if you really want to add such functions, you will have to add
> for each function the corresponding defmethod, here an example with a
> delete register function, you will find other examples in register.el:
>
> (defun register-delete (register)
> (interactive (list (register-read-with-preview "Delete register: ")))
> (setq register-alist (delete (assoc register register-alist)
> register-alist)))
>
> (cl-defmethod register-preview-command-info ((_command (eql register-delete)))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Read here register-command-info instead.
I use register-preview-command-info for my personal usage on Emacs-29,
the real thing is register-command-info.
Sorry again.
--
Thierry
next prev parent reply other threads:[~2024-02-04 7:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-03 20:50 bug#68921: File and Buffer register functions Barra Ó Catháin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-02-04 6:30 ` Thierry Volpiatto
2024-02-04 6:45 ` Thierry Volpiatto
2024-02-04 7:15 ` Thierry Volpiatto [this message]
2024-02-04 7:00 ` Eli Zaretskii
2024-02-06 22:42 ` Barra Ó Catháin via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-03-28 15:31 ` Barra Ó Catháin via Bug reports for GNU Emacs, the Swiss army knife of text editors
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sf288ztf.fsf@posteo.net \
--to=thievol@posteo.net \
--cc=68921@debbugs.gnu.org \
--cc=barra@ocathain.ie \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.