[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Control characters in doc strings
From: |
Mattias Engdegård |
Subject: |
Re: Control characters in doc strings |
Date: |
Sat, 24 Feb 2024 12:14:50 +0100 |
24 feb. 2024 kl. 11.58 skrev Eli Zaretskii <eliz@gnu.org>:
> With the current master I see the following warnings:
>
> In toplevel form:
> progmodes/cc-langs.el:682:18: Warning: docstring contains control char #x0d
> (position 15)
> progmodes/cc-langs.el:704:18: Warning: docstring contains control char #x0d
> (position 10)
> progmodes/cc-langs.el:841:18: Warning: docstring contains control char #x0c
> (position 9)
> progmodes/cc-langs.el:841:18: Warning: docstring contains control char #x0d
> (position 11)
> progmodes/cc-langs.el:1836:18: Warning: docstring contains control char #x0d
> (position 9)
>
> However, I don't think I see any such control characters there, at
> least not when I invoke "C-h v".
It's from a macro whose expansion includes (lambda () VALUE), and if VALUE is a
string it will be interpreted as a doc string. It is easy to suppress (now
done), but perhaps we should change the old compiler logic so that a single
string literal isn't both a doc string and return value.