all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Robert Pluim <rpluim@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: emacs-30 7c50e4cc8cc 2/2: Improve 'compilation-transform-file-match-alist' documentation
Date: Wed, 04 Dec 2024 17:37:46 +0200	[thread overview]
Message-ID: <86r06nzcfp.fsf@gnu.org> (raw)
In-Reply-To: <87y10vcwpk.fsf@gmail.com> (message from Robert Pluim on Wed, 04 Dec 2024 16:08:23 +0100)

> From: Robert Pluim <rpluim@gmail.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 04 Dec 2024 16:08:23 +0100
> 
> >>>>> On Wed, 04 Dec 2024 16:56:04 +0200, Eli Zaretskii <eliz@gnu.org> said:
> 
>     Eli> I don't think I'd mind to install on emacs-30, but if we are doing
>     Eli> this, why not do a better job?  The tags above are not quite clear, to
>     Eli> say the least.  "Match"? "Replace with"? does that really explain
>     Eli> itself?
> 
> The docstring is supposed to explain it :-) How about:
> 
> diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
> index ee7fc6aaecb..99385fcca07 100644
> --- a/lisp/progmodes/compile.el
> +++ b/lisp/progmodes/compile.el
> @@ -77,8 +77,9 @@ compilation-transform-file-match-alist
>  Similarly, to remove a prefix \"bar/\", use:
>  
>      (\"\\\\=`bar/\" \"\")"
> -  :type '(repeat (list regexp (choice (const :tag "No replacement" nil)
> -                                      string)))
> +  :type '(repeat (list (regexp :tag "Match filename(s)")
> +                       (radio (const :tag "Not an error" nil)
> +                              (string :tag "Replace match with"))))
>    :version "27.1")

I think "Filename that matches", "Do not consider as error", and
"Replace matched filename with", or something to that effect, will be
better.



  reply	other threads:[~2024-12-04 15:37 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <173332205449.2846597.9153784089592444113@vcs3.savannah.gnu.org>
     [not found] ` <20241204142055.B1FEF5430D0@vcs3.savannah.gnu.org>
2024-12-04 14:25   ` emacs-30 7c50e4cc8cc 2/2: Improve 'compilation-transform-file-match-alist' documentation Robert Pluim
2024-12-04 14:56     ` Eli Zaretskii
2024-12-04 15:08       ` Robert Pluim
2024-12-04 15:37         ` Eli Zaretskii [this message]
2024-12-04 16:02           ` Robert Pluim
2024-12-04 16:17             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86r06nzcfp.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=rpluim@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.