GNU bug report logs - #57936
29.0.50; Make info treat "\n" in node names as "\s"

Previous Next

Package: emacs;

Reported by: Stefan Kangas <stefankangas <at> gmail.com>

Date: Mon, 19 Sep 2022 16:13:02 UTC

Severity: wishlist

Tags: patch

Found in version 29.0.50

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#57936: closed (29.0.50; Make info treat "\n" in node names as
 "\s")
Date: Thu, 13 Oct 2022 14:04:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Thu, 13 Oct 2022 16:03:48 +0200
with message-id <CADwFkmks_yMP-0Fe2Z=zN9Pav5Leb5us75wbvu+RRTTccQB97w <at> mail.gmail.com>
and subject line Re: bug#57936: 29.0.50; Make info treat "\n" in node names as "\s"
has caused the debbugs.gnu.org bug report #57936,
regarding 29.0.50; Make info treat "\n" in node names as "\s"
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
57936: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=57936
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 29.0.50; Make info treat "\n" in node names as "\s"
Date: Mon, 19 Sep 2022 12:12:38 -0400
[Message part 3 (text/plain, inline)]
Severity: wishlist
Tags: patch

I often find myself writing an email, and I paste something like:

(info "(elisp) Interactive Examples")

But it sometimes ends up wrapped over two lines and I need to manually
adjust it back from something like:

(info "(elisp) Interactive
Examples")

And then I have to fiddle around with the formatting, which is just a
bit boring.

So I think it would be nice if `info' would just treat the node name
"(elisp) Interactive\nExamples" as "(elisp) Interactive Examples".  See
the attached patch.

Thoughts?
[0001-Make-info-treat-n-in-node-names-as-s.patch (text/x-diff, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Stefan Kangas <stefankangas <at> gmail.com>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57936-done <at> debbugs.gnu.org
Subject: Re: bug#57936: 29.0.50; Make info treat "\n" in node names as "\s"
Date: Thu, 13 Oct 2022 16:03:48 +0200
Lars Ingebrigtsen <larsi <at> gnus.org> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>> So I think it would be nice if `info' would just treat the node name
>> "(elisp) Interactive\nExamples" as "(elisp) Interactive Examples".  See
>> the attached patch.
>>
>> Thoughts?
>
> Makes sense to me, but:
>
>> +  (setq file-or-node
>> +        (replace-regexp-in-string "\n" " " file-or-node))
>
> `string-replace', I think.

Thanks, pushed with that change.


This bug report was last modified 2 years and 278 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.