GNU bug report logs - #68921
File and Buffer register functions.

Previous Next

Package: emacs;

Reported by: Barra Ó Catháin <barra <at> ocathain.ie>

Date: Sun, 4 Feb 2024 03:39:02 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Thierry Volpiatto <thievol <at> posteo.net>
To: 68921 <at> debbugs.gnu.org
Cc: barra <at> ocathain.ie
Subject: bug#68921: File and Buffer register functions.
Date: Sun, 04 Feb 2024 07:15:56 +0000
Thierry Volpiatto <thievol <at> 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




This bug report was last modified 1 year and 78 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.