GNU bug report logs - #73472
[PATCH] Substitute quotation marks in Eglot messages

Previous Next

Package: emacs;

Reported by: "Thomas Voss" <mail <at> thomasvoss.com>

Date: Wed, 25 Sep 2024 14:05:02 UTC

Severity: wishlist

Tags: patch

Done: João Távora <joaotavora <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: "Thomas Voss" <mail <at> thomasvoss.com>
Cc: 73472 <at> debbugs.gnu.org, joaotavora <at> gmail.com
Subject: bug#73472: [PATCH] Substitute quotation marks in Eglot messages
Date: Thu, 26 Sep 2024 08:52:06 +0300
> Date: Wed, 25 Sep 2024 20:03:20 +0200
> From: "Thomas Voss" <mail <at> thomasvoss.com>
> Cc: <73472 <at> debbugs.gnu.org>
> 
> Not sure why I didn’t think of this when creating the patch, but it’s
> probably a much better idea to change this:
> 
>     (substitute-quotes (apply #'format format args))
> 
> to this:
> 
>     (apply #'format (substitute-quotes format) args)
> 
> This limits the scope of the substitution to just the format strings,
> where we know no funny business is going on.

That is of course better, but do we indeed know that format will never
use quote characters for something that is not quoting?

I think the caller should itself use substitute-quotes where
appropriate.

And I'd like to hear João's opinion as well.




This bug report was last modified 135 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.