emacs-devel
[Top][All Lists]
Advanced

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

Re: Escape syntax in docstrings


From: Chen Zhaoyang
Subject: Re: Escape syntax in docstrings
Date: Thu, 23 Mar 2023 17:32:56 -0500
User-agent: Gnus/5.13 (Gnus v5.13)

Mattias Engdegård <mattias.engdegard@gmail.com> writes:

> Yes, this was changed recently, but I feel vindicated by your report: "\x" 
> never
> meant what the author thought it did (or at least what I think the author
> thought it did): it is a hex escape without digits and used to be equivalent 
> to
> "\000", yielding the control character NUL. Run `C-h f slash-in-docstring` in
> Emacs 29 or older and see for yourself.

Thank you for you clarification! I totally did not know about the fact
that "\x" means NUL in docstrings. 
I do agree that using the slash to represent λ in docstring is not so
good to begin with.

>> (defun agda-input-compose (f g)
>>  "\x -> concatMap F (G x)"
>
> Good catch. Would you tell the Agdas about it?

Yeah, I am grepping for cases like this and will submit a patch to them soon.

>> Can we document this change of behavior? 
>
> Will do.

Cool, thank you again!

-- 
Chen Zhaoyang




reply via email to

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