emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Escape syntax in docstrings


From: Robert Pluim
Subject: Re: Escape syntax in docstrings
Date: Tue, 28 Mar 2023 17:23:03 +0200

>>>>> On Tue, 28 Mar 2023 14:27:17 +0200, Andreas Schwab <schwab@suse.de> said:

    Andreas> On Mär 28 2023, Robert Pluim wrote:
    >>>>>>> On Thu, 23 Mar 2023 23:02:08 +0100, Mattias Engdegård 
<mattias.engdegard@gmail.com> said:
    >> 
    Mattias> (That Emacs doesn't reject undefined character escape sequences 
such
    Mattias> as "\y" is not only a constant source of bugs, it also makes it
    Mattias> difficult for us to add new escape sequences without worrying about
    Mattias> breaking some (misguided) code. Almost every other language 
complain
    Mattias> about this.)
    >> 
    >> How strict do you want to be? Emacsʼ own source code has some decidely
    >> non-supported escape sequences, especially when specifying characters
    >> using the `?\c' syntax.

    Andreas> The elisp manual is explicit that a redundant backslash in ?\c is
    Andreas> ignored, and even recommends its use to avoid confusion in some 
cases.

OK, so weʼd only need to check in strings then. I think the list of
required changes would be a lot shorter, but Iʼve not explicitly
checked.

Robert
-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]