[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Printing \\= in the docstring
|
From: |
Heime |
|
Subject: |
Re: Printing \\= in the docstring |
|
Date: |
Tue, 16 Jul 2024 08:20:05 +0000 |
On Tuesday, July 16th, 2024 at 11:10 AM, Stephen Berman
<stephen.berman@gmx.net> wrote:
> On Mon, 15 Jul 2024 22:43:26 +0000 Heime heimeborgia@protonmail.com wrote:
>
> > On Tuesday, July 16th, 2024 at 9:22 AM, Heime heimeborgia@protonmail.com
> > wrote:
> >
> > > How can I print \\= in the docstring ?
> >
> > When I try \\= the = does not display. Neither does \\\\= or \\\=
>
>
> To print the sequence "\\=" as a string but not as a doc string escape
> sequence, using "\\\\=" does work. But if you want to print it in the
> context of a doc string escape sequence, you have to double it, just
> like you have to double "\" in normal Lisp strings. For example, this
> in a doc string:
>
> "\\\\=\\=\\=`\\\\(\\\\s-\\\\\\\\=\\\\=\\\\=\\\\[\\\\-\\\\]\\\\s-\\\\)\\\\(.*\\\\)
> uses \\\\\\\\=" appears like this in a "*Help*" buffer:
> \\\\=`\(\s-\\=\[\-\]\s-\)\(.*\) uses \\=
>
> Steve Berman
If I use "\\\\=" the only thing that is displayed is "\" when using "C-h v
myvar".