[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Escape syntax in docstrings
From: |
Andreas Schwab |
Subject: |
Re: Escape syntax in docstrings |
Date: |
Tue, 28 Mar 2023 14:27:17 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
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.
The elisp manual is explicit that a redundant backslash in ?\c is
ignored, and even recommends its use to avoid confusion in some cases.
--
Andreas Schwab, SUSE Labs, schwab@suse.de
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."