[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Improve find-sibling-rules option type
From: |
Philip Kaludercic |
Subject: |
Re: [PATCH] Improve find-sibling-rules option type |
Date: |
Sun, 24 Sep 2023 08:34:19 +0000 |
"Paul W. Rankin" via "Emacs development discussions."
<emacs-devel@gnu.org> writes:
> * lisp/files.el (find-sibling-rules): use alist with tags for custom
> type
> ---
> This is preferable than having to enter a sexp as a user option.
>
>
> lisp/files.el | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/lisp/files.el b/lisp/files.el
> index 9d76668..e7adccd 100644
> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -7572,7 +7572,8 @@ files, you could say something like:
> In this example, if you're in \"src/emacs/emacs-27/lisp/abbrev.el\",
> and a \"src/emacs/emacs-28/lisp/abbrev.el\" file exists, it's now
> defined as a sibling."
> - :type 'sexp
> + :type '(alist :key-type (string :tag "Match")
^
(elisp) Simple Types lists a type `regexp'
that you could use here as well.
> + :value-type (string :tag "Expansion"))
> :version "29.1")
>
> (defun find-sibling-file (file)
--
Philip Kaludercic