[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Filter registers before preview
From: |
Michael Heerdegen |
Subject: |
Re: [PATCH] Filter registers before preview |
Date: |
Mon, 31 Jul 2023 02:15:16 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Evgenii Klimov <eugene.dev@lipklim.org> writes:
> Hi, I find registers very useful (especially with elaborate
> `register-preview-function'), but as they become more and more numerous,
> it gets difficult to select the right one, because every command
> (`jump-to-register', `insert-register', etc.) shows every register in
> the preview buffer, even if the register is not applicable in this
> context.
>
> The following is my attempt to deal with this issue. If you find this
> idea interesting then I can rewrite this patch to conform with
> the surrounding code (cl-defgeneric/cl-defmethod) and your remarks.
The idea sounds useful.
Ideally the code remains extensible so that adding new types of
registers is not harder than now (I guess that's what you meant with the
last sentence).
Michael.