GNU bug report logs -
#68921
File and Buffer register functions.
Previous Next
Full log
View this message in rfc822 format
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.