GNU bug report logs - #7524
Customize should wrap long lines and pretty print sexp values

Previous Next

Package: emacs;

Reported by: "Drew Adams" <drew.adams <at> oracle.com>

Date: Wed, 1 Dec 2010 06:07:01 UTC

Severity: wishlist

Tags: fixed, patch

Found in version 24.0.50

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 7524 in the body.
You can then email your comments to 7524 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Wed, 01 Dec 2010 06:07:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Drew Adams" <drew.adams <at> oracle.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 01 Dec 2010 06:07:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: <bug-gnu-emacs <at> gnu.org>
Subject: 24.0.50; backquote converts newlines in strings to "\n"
Date: Tue, 30 Nov 2010 22:10:03 -0800
Evaluate this:
 
`("Foo" . (lambda ()
            "Four score and seven years ago
Our forefathers brought forth etc.
Etc., etc., etc."
            (message "HOWDY")))
 
That doc string is a literal string with two embedded newline chars.
Evaluation converts each of those chars to a string of two chars: "\n":
 
("Foo" lambda nil "Four score and seven years ago\nOur forefathers brought forth
etc.\nEtc., etc., etc."
 (message "Howdy"))
 
Shouldn't happen.  (This is particularly messy when used in defcustom
values.)
 

In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600)
 of 2010-11-30 on 3249CTO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (4.4) --no-opt --cflags
-Ic:/imagesupport/include'
 





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Wed, 01 Dec 2010 15:59:01 GMT) Full text and rfc822 format available.

Message #8 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Wed, 01 Dec 2010 11:04:19 -0500
> Evaluate this:
> `("Foo" . (lambda ()
>             "Four score and seven years ago
> Our forefathers brought forth etc.
> Etc., etc., etc."
>             (message "HOWDY")))
 
> That doc string is a literal string with two embedded newline chars.
> Evaluation converts each of those chars to a string of two chars: "\n":
 
> ("Foo" lambda nil "Four score and seven years ago\nOur forefathers brought forth
> etc.\nEtc., etc., etc."
>  (message "Howdy"))
 
It's got nothing to do with backquote.  It's just that

    "foo
    bar"

is just another way to write "foo\nbar": the Elisp reader will return
the exact same string in both cases.  So the Elisp printer can't know
which one was used originally and has to choose arbitrarily which form
to output.

> Shouldn't happen.

Unavoidable.  Tho you do get to choose somewhat the print format by
choosing between prin1 and princ (aka %s and %S in format).

> (This is particularly messy when used in defcustom values.)

I don't know what you're referring to.  I'll keep the bug open for now,
assuming that the defcustom issue will be the actual bug.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Wed, 01 Dec 2010 16:36:02 GMT) Full text and rfc822 format available.

Message #11 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 7524 <at> debbugs.gnu.org
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Wed, 1 Dec 2010 08:40:28 -0800
> > (This is particularly messy when used in defcustom values.)
> 
> I don't know what you're referring to.  I'll keep the bug 
> open for now, assuming that the defcustom issue will be
> the actual bug.

You're right of course about the chars "\n" and a ^J char in a Lisp string.

`defcustom' does different things in this regard, depending on the :type (and
whether there is a mismatch, but that's something else no doubt).

See what the \n representation does, for example, with the file I sent to
emacs-devel yesterday, thread "Variable behavior for `mouse-3' second click at
same spot".  Here's a direct URL to the file.

http://www.emacswiki.org/emacs/mouse3.el

Eval the defcustom for `mouse3-region-popup-submenus', then use `M-x customize',
and you'll see how messy (how wide) the display is.

Independently of this, perhaps Customize should wrap long lines in some way.
Dunno.  Doesn't seem like it should be displaying lines as 168 chars wide rather
than wrapping them.

This doc-string with two newline chars gets shown as a single line without any
wrapping: 168 chars wide:

"Replace the selected rectangle by the contents of a register you name.
Note that the rectangle currently selected is first killed.  You can
restore it by yanking."

Much of the reason for adding the doc string to the lambda was to give Customize
users more info about these anonymous commands.  The way things are, I guess the
best thing for a programmer to do is create named commands and forgo anonymous
ones within option values.  Nothing wrong with that, but I think we should be
able to do better wrt Customize display.

Especially since most of the time newlines in strings _are_ shown in Customize
using newline chars rather than the two chars "\n".

Maybe the :type could be refined in this particular defcustom in some way that
would cause the Customize display to be as usual (newline chars, no "\n").
Dunno (suggestions welcome).  But at least this defcustom is not a case of
`mismatch' (mismatch seems always to display a newline char in a string as
"\n").





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Wed, 01 Dec 2010 18:03:01 GMT) Full text and rfc822 format available.

Message #14 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Wed, 01 Dec 2010 13:07:52 -0500
retitle 7524 Customize should wrap long lines and pretty print sexp values
severity 7524 wishlist
thanks

> See what the \n representation does, for example, with the file I sent
> to emacs-devel yesterday, thread "Variable behavior for `mouse-3'
> second click at same spot".  Here's a direct URL to the file.

> http://www.emacswiki.org/emacs/mouse3.el

> Eval the defcustom for `mouse3-region-popup-submenus', then use `M-x
> customize', and you'll see how messy (how wide) the display is.

Since the type you use is (sexp :tag "Command"), you give relatively
little information to Custom about what it can look like (not that the
type is wrong, actually).

And yes, Custom should probably try to wrap lines somehow in such cases
(e.g. pretty-print the sexp).  During the wrapping, it could convert
the \n in strings into actual LF chars.


        Stefan




Changed bug title to 'Customize should wrap long lines and pretty print sexp values' from '24.0.50; backquote converts newlines in strings to "\n"' Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Wed, 01 Dec 2010 18:03:02 GMT) Full text and rfc822 format available.

Severity set to 'wishlist' from 'normal' Request was from Stefan Monnier <monnier <at> iro.umontreal.ca> to control <at> debbugs.gnu.org. (Wed, 01 Dec 2010 18:03:02 GMT) Full text and rfc822 format available.

Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Wed, 01 Dec 2010 18:37:02 GMT) Full text and rfc822 format available.

Message #21 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 7524 <at> debbugs.gnu.org
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Wed, 1 Dec 2010 10:42:04 -0800
> Since the type you use is (sexp :tag "Command"), you give relatively
> little information to Custom about what it can look like (not that the
> type is wrong, actually).

Actually, I also tried this, but it seemed to make no difference:

(repeat (choice
         (cons :tag "Item"
          (string :tag "Name")
          (restricted-sexp
           :tag "Command"
           :match-alternatives (commandp)))
         (list :tag "Separator" (const "--"))))

And for the default value that causes a `mismatch' in older Emacs versions (20
through 23) for some reason - so I reverted to just `sexp'.

(Can you see anything wrong with that type spec?  Dunno why older versions give
the value a `mismatch'.)
 
> And yes, Custom should probably try to wrap lines somehow in 
> such cases (e.g. pretty-print the sexp).  During the wrapping,
> it could convert the \n in strings into actual LF chars.

Thanks.  I don't know the difference between the buglist wishlist status and the
Emacs TODO list.  I imagine that the difference is that almost anything that any
user requests gets put on the wishlist but only things that Emacs Dev thinks are
important get put on the TODO list.  But either is OK, I guess.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 17:51:02 GMT) Full text and rfc822 format available.

Message #24 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 06 Dec 2010 12:56:11 -0500
> Here's a direct URL to the file.
> http://www.emacswiki.org/emacs/mouse3.el

Nitpick: actually, it's not "a direct URL to the file".  It's a URL to
an html page; very annoying if you ask me since Emacs doesn't display
HTML nearly as well as Elisp.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 18:01:01 GMT) Full text and rfc822 format available.

Message #27 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 7524 <at> debbugs.gnu.org
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 6 Dec 2010 10:06:04 -0800
> > Here's a direct URL to the file.
> > http://www.emacswiki.org/emacs/mouse3.el
> 
> Nitpick: actually, it's not "a direct URL to the file".  It's a URL to
> an html page;


Call it what you will.  It's a URL to the file (direct or not, depending on your
view of "the file"): click the URL and you will see the file in your Web
browser.

Here is a more direct URL to the file:
http://www.emacswiki.org/emacs/download/mouse3.el 

Even that you could argue only takes you to a download action for the file.  






Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 18:05:02 GMT) Full text and rfc822 format available.

Message #30 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 7524 <at> debbugs.gnu.org
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 6 Dec 2010 10:10:41 -0800
> very annoying if you ask me since Emacs doesn't display
> HTML nearly as well as Elisp.

Poor Emacs.  While waiting for Emacs to become a less annoying Web browser, you
might want to try a different one?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 19:53:01 GMT) Full text and rfc822 format available.

Message #33 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 6 Dec 2010 20:58:25 +0100
On Mon, Dec 6, 2010 at 7:10 PM, Drew Adams <drew.adams <at> oracle.com> wrote:
>> very annoying if you ask me since Emacs doesn't display
>> HTML nearly as well as Elisp.
>
> Poor Emacs.  While waiting for Emacs to become a less annoying Web browser, you
> might want to try a different one?

Maybe this can help:

   http://www.20thingsilearned.com//open-source




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 20:11:01 GMT) Full text and rfc822 format available.

Message #36 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 06 Dec 2010 15:16:07 -0500
> Here is a more direct URL to the file:
> http://www.emacswiki.org/emacs/download/mouse3.el
> Even that you could argue only takes you to a download action for the file.

No, it's a URL which Emacs accepts fine and it then shows me the
contents in the right mode and everything.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 21:33:02 GMT) Full text and rfc822 format available.

Message #39 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Lennart Borgman'" <lennart.borgman <at> gmail.com>
Cc: 7524 <at> debbugs.gnu.org, 'Stefan Monnier' <monnier <at> iro.umontreal.ca>
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 6 Dec 2010 13:38:00 -0800
> Maybe this can help:
>    http://www.20thingsilearned.com//open-source

This is the first thing I see there (in IE 7):

 "This illustrated book was designed for HTML5-compliant browsers
  and will not work with your current browser.
  For the best viewing experience, please download a modern browser,
  or install the Google Chrome Frame plug-in and try launching this site again."

A browser that doesn't handle everything in HTML5 is not "modern"?  Hmph!

FWIW, in spite of that pretentious warning, the site was just as readable in IE
7 as in Google Chrome.

Anyway, I read what was written there, but found it pretty content-less.  What's
the point?





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 21:40:02 GMT) Full text and rfc822 format available.

Message #42 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Lennart Borgman <lennart.borgman <at> gmail.com>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 6 Dec 2010 22:45:14 +0100
On Mon, Dec 6, 2010 at 10:38 PM, Drew Adams <drew.adams <at> oracle.com> wrote:
>> Maybe this can help:
>>    http://www.20thingsilearned.com//open-source
>
> This is the first thing I see there (in IE 7):
>
>  "This illustrated book was designed for HTML5-compliant browsers
>  and will not work with your current browser.
>  For the best viewing experience, please download a modern browser,
>  or install the Google Chrome Frame plug-in and try launching this site again."
>
> A browser that doesn't handle everything in HTML5 is not "modern"?  Hmph!

Maybe they say that a bit too early...

> Anyway, I read what was written there, but found it pretty content-less.  What's
> the point?

Oh, it is a pretty little thing. And it actually tells how others do
to display html. (And maybe Emacs can do that soon too.)




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Mon, 06 Dec 2010 21:41:01 GMT) Full text and rfc822 format available.

Message #45 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 7524 <at> debbugs.gnu.org
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 6 Dec 2010 13:45:48 -0800
> > Here is a more direct URL to the file:
> > http://www.emacswiki.org/emacs/download/mouse3.el
> > Even that you could argue only takes you to a download 
> > action for the file.
> 
> No, it's a URL which Emacs accepts fine and it then shows me the
> contents in the right mode and everything.

Emacs Wiki deliberately has an HTML page as the entry point for each Lisp file.
That HTML page shows the Lisp code (with coloring no less), and it has a
Download link for those who might want to download it.  All of that is for user
convenience (e.g. preview before perhaps download).

I happen to agree with that design, but you need not agree and are welcome to
find it annoying.  I'd argue that the annoyance really comes from your (Emacs)
browser, but you need not agree with that either.





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Tue, 07 Dec 2010 03:37:02 GMT) Full text and rfc822 format available.

Message #48 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: "Drew Adams" <drew.adams <at> oracle.com>
Cc: 7524 <at> debbugs.gnu.org
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Mon, 06 Dec 2010 22:42:41 -0500
>> > Here is a more direct URL to the file:
>> > http://www.emacswiki.org/emacs/download/mouse3.el
>> > Even that you could argue only takes you to a download 
>> > action for the file.
>> 
>> No, it's a URL which Emacs accepts fine and it then shows me the
>> contents in the right mode and everything.

> Emacs Wiki deliberately has an HTML page as the entry point for each
> Lisp file.  That HTML page shows the Lisp code (with coloring no
> less), and it has a Download link for those who might want to download
> it.  All of that is for user convenience (e.g. preview before perhaps
> download).

> I happen to agree with that design, but you need not agree and are
> welcome to find it annoying.

I fully agree with this web-site design as well.  But when you post here
a link to source Elisp code, you should expect people to want to look at
it inside Emacs rather than inside a browser.  So you should send a URL
to the actual Elisp file, to to its HTML rendering.

And remember, it was just a nitpick.  You've blown it way out
of proportion.


        Stefan




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Thu, 23 Dec 2010 22:49:01 GMT) Full text and rfc822 format available.

Message #51 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Stefan Monnier'" <monnier <at> iro.umontreal.ca>
Cc: 7524 <at> debbugs.gnu.org
Subject: RE: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Thu, 23 Dec 2010 14:53:39 -0800
> And yes, Custom should probably try to wrap lines somehow in 
> such cases (e.g. pretty-print the sexp).

Any chance this pretty-printing will actually get done?
The utility goes well beyond `\n' in strings.

Just now I created a defcustom whose :type is
(repeat (restricted-sexp
         :tag "Keymap"
         :match-alternatives (keymapp 'nil)))

And you cannot believe how ugly such a value is, not to mention how error-prone
editing it would be!  Regardless of what one might think of trying to use a
keymap value this way, the point is that any non-trivial Lisp sexp needs to be
pretty-printed.

`restricted-sexp can be a quick-and-dirty substitute for defining the widgets
needed to get a new :type construct.  But it is rendered pretty unusable without
(at least) pretty-printing.

There are likely to be plenty of Lisp values for which pretty-printing would
help.  Any chance you will add this to the Emacs TO-DO list?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Thu, 22 Oct 2020 12:26:02 GMT) Full text and rfc822 format available.

Message #54 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: 7524 <at> debbugs.gnu.org
Cc: Stefan Monnier <monnier <at> iro.umontreal.ca>,
 Drew Adams <drew.adams <at> oracle.com>
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Thu, 22 Oct 2020 09:24:55 -0300
[Message part 1 (text/plain, inline)]
tags 7524 patch
quit

"Drew Adams" <drew.adams <at> oracle.com> writes:

>> > (This is particularly messy when used in defcustom values.)
>>
>> I don't know what you're referring to.  I'll keep the bug
>> open for now, assuming that the defcustom issue will be
>> the actual bug.
>
> You're right of course about the chars "\n" and a ^J char in a Lisp
string.
>
> `defcustom' does different things in this regard, depending on the :type
(and
> whether there is a mismatch, but that's something else no doubt).
>
> See what the \n representation does, for example, with the file I sent to
> emacs-devel yesterday, thread "Variable behavior for `mouse-3' second
click at
> same spot".  Here's a direct URL to the file.
>
> http://www.emacswiki.org/emacs/mouse3.el
>
> Eval the defcustom for `mouse3-region-popup-submenus', then use `M-x
customize',
> and you'll see how messy (how wide) the display is.
>

If I understand this bug report correctly, the wishlist item is about
pretty printing restricted-sexp values, which makes sense to me.  Values
of the sexp widget already get pretty-printed, but not the values of the
restricted-sexp widget.

I attach a patch to pretty-print restricted sexp values too, by using the
same function that the sexp widget uses.
[Message part 2 (text/html, inline)]
[0001-Pretty-print-restricted-sexp-values-too.patch (text/x-patch, attachment)]

Added tag(s) patch. Request was from Mauro Aranda <maurooaranda <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 22 Oct 2020 12:26:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#7524; Package emacs. (Thu, 22 Oct 2020 12:32:02 GMT) Full text and rfc822 format available.

Message #59 received at 7524 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: 7524 <at> debbugs.gnu.org, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#7524: 24.0.50; backquote converts newlines in strings to "\n"
Date: Thu, 22 Oct 2020 14:31:04 +0200
Mauro Aranda <maurooaranda <at> gmail.com> writes:

> If I understand this bug report correctly, the wishlist item is about
> pretty printing restricted-sexp values, which makes sense to me.  Values
> of the sexp widget already get pretty-printed, but not the values of the
> restricted-sexp widget.
>
> I attach a patch to pretty-print restricted sexp values too, by using the
> same function that the sexp widget uses.

I think that makes sense, even if my understanding of the widget code is
limited, so I've applied this to Emacs 28.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) fixed. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 22 Oct 2020 12:32:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.1, send any further explanations to 7524 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 22 Oct 2020 12:32:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 20 Nov 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 155 days ago.

Previous Next


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