[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#68921: File and Buffer register functions.
From: |
Thierry Volpiatto |
Subject: |
bug#68921: File and Buffer register functions. |
Date: |
Sun, 04 Feb 2024 07:15:56 +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