unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#57256: Very long lines displayed in debugger window
@ 2022-08-17  1:45 uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-17  1:55 ` Phil Sainty
  2022-08-17 11:13 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 10+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-17  1:45 UTC (permalink / raw)
  To: 57256



When I use the debugger I frequently get extremely long lines.  I either have to move an
excessive amount to the right or having to reduce the scale height to a point where the
text gets too small to read.

Some work needs to be done so as to prettify the debugger output.






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  1:45 bug#57256: Very long lines displayed in debugger window uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-17  1:55 ` Phil Sainty
  2022-08-17  2:24   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
                     ` (2 more replies)
  2022-08-17 11:13 ` Lars Ingebrigtsen
  1 sibling, 3 replies; 10+ messages in thread
From: Phil Sainty @ 2022-08-17  1:55 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57256

On 2022-08-17 13:45, uzibalqa wrote:
> When I use the debugger I frequently get extremely long lines.
> I either have to move an excessive amount to the right or having
> to reduce the scale height to a point where the text gets too
> small to read.

You can also simply M-x toggle-truncate-lines






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  1:55 ` Phil Sainty
@ 2022-08-17  2:24   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-17  3:37     ` Phil Sainty
  2022-08-17  6:26   ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-18 13:39   ` Phil Sainty
  2 siblings, 1 reply; 10+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-17  2:24 UTC (permalink / raw)
  To: Phil Sainty; +Cc: 57256

------- Original Message -------
On Wednesday, August 17th, 2022 at 1:55 AM, Phil Sainty <psainty@orcon.net.nz> wrote:


> On 2022-08-17 13:45, uzibalqa wrote:
>
> > When I use the debugger I frequently get extremely long lines.
> > I either have to move an excessive amount to the right or having
> > to reduce the scale height to a point where the text gets too
> > small to read.
>
>
> You can also simply M-x toggle-truncate-lines

Would be much better to prettify the display and fitting it in the debugger window
automatically.   Reduces the amount of continuous typing we all have to do during
our interaction with emacs.  We sprain our fingers frequently enough that we can do
without.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  2:24   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-17  3:37     ` Phil Sainty
  2022-08-17  3:48       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 1 reply; 10+ messages in thread
From: Phil Sainty @ 2022-08-17  3:37 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57256

On 2022-08-17 14:24, uzibalqa wrote:
>> You can also simply M-x toggle-truncate-lines
> 
> Would be much better to prettify the display and fitting it in the
> debugger window automatically.

Conversely, a debugger frame might have a HUGE amount of data in that
truncated information, yet it might be a frame you don't care about,
and then you might have many pages of prettified output to get past in
order to see what you're actually interested in, which is irritating.

So I think even with prettified output, being able to toggle that is
going to be a necessary feature.


> Reduces the amount of continuous typing we all have to do during
> our interaction with emacs.

FWIW I highly recommend binding `toggle-truncate-lines' to a key
sequence (I have it on "s-\") as I find it's a very helpful thing to
have trivially available (i.e. without much typing) in all kinds of
situations.







^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  3:37     ` Phil Sainty
@ 2022-08-17  3:48       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-17 11:55         ` Eli Zaretskii
  0 siblings, 1 reply; 10+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-17  3:48 UTC (permalink / raw)
  To: Phil Sainty; +Cc: 57256

------- Original Message -------
On Wednesday, August 17th, 2022 at 3:37 AM, Phil Sainty <psainty@orcon.net.nz> wrote:


> On 2022-08-17 14:24, uzibalqa wrote:
>
> > > You can also simply M-x toggle-truncate-lines
> >
> > Would be much better to prettify the display and fitting it in the
> > debugger window automatically.
>
>
> Conversely, a debugger frame might have a HUGE amount of data in that
> truncated information, yet it might be a frame you don't care about,
> and then you might have many pages of prettified output to get past in
> order to see what you're actually interested in, which is irritating.
>
> So I think even with prettified output, being able to toggle that is
> going to be a necessary feature.
>
> > Reduces the amount of continuous typing we all have to do during
> > our interaction with emacs.
>
>
> FWIW I highly recommend binding `toggle-truncate-lines' to a key
> sequence (I have it on "s-\") as I find it's a very helpful thing to
> have trivially available (i.e. without much typing) in all kinds of
> situations.

If that is the case (huge amount of data) can there be a debug customisation
variable that regulates the display, so users can decide what they prefer to
see by default?





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  1:55 ` Phil Sainty
  2022-08-17  2:24   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-17  6:26   ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-18 13:39   ` Phil Sainty
  2 siblings, 0 replies; 10+ messages in thread
From: Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-17  6:26 UTC (permalink / raw)
  To: Phil Sainty; +Cc: 57256, uzibalqa

[-- Attachment #1: Type: text/plain, Size: 313 bytes --]

Phil Sainty <psainty@orcon.net.nz> writes:

> You can also simply M-x toggle-truncate-lines

Or, C-x x t

-- 
Akib Azmain Turja

Find me on Mastodon at @akib@hostux.social.

This message is signed by me with my GnuPG key.  Its fingerprint is:

    7001 8CE5 819F 17A3 BBA6  66AF E74F 0EFA 922A E7F5

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  1:45 bug#57256: Very long lines displayed in debugger window uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-17  1:55 ` Phil Sainty
@ 2022-08-17 11:13 ` Lars Ingebrigtsen
  2022-08-17 20:37   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  1 sibling, 1 reply; 10+ messages in thread
From: Lars Ingebrigtsen @ 2022-08-17 11:13 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57256

uzibalqa <uzibalqa@proton.me> writes:

> When I use the debugger I frequently get extremely long lines.  I
> either have to move an excessive amount to the right or having to
> reduce the scale height to a point where the text gets too small to
> read.
>
> Some work needs to be done so as to prettify the debugger output.

The data shown there is necessary, so this is working as designed.

Closing.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  3:48       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-17 11:55         ` Eli Zaretskii
  0 siblings, 0 replies; 10+ messages in thread
From: Eli Zaretskii @ 2022-08-17 11:55 UTC (permalink / raw)
  To: uzibalqa; +Cc: psainty, 57256

> Cc: 57256@debbugs.gnu.org
> Date: Wed, 17 Aug 2022 03:48:40 +0000
> From:  uzibalqa via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> 
> If that is the case (huge amount of data) can there be a debug customisation
> variable that regulates the display, so users can decide what they prefer to
> see by default?

It sounds like a solution that looks for a problem to me.

What exactly is the problem with the very long lines you see now?
Emacs has several display-related capabilities to allow you both bring
the hidden parts into view and disregard them, depending on your
needs.  I don't see why we need to add a pretty-printing feature,
which would definitely make the buffer have more lines, and then on
top of that add a customization option to selectively disable the
pretty-printing.  It's a complicated solution (and likely will become
even more so once we implement it) for a problem that I fail to see in
practice.





^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17 11:13 ` Lars Ingebrigtsen
@ 2022-08-17 20:37   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  0 siblings, 0 replies; 10+ messages in thread
From: uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-08-17 20:37 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 57256

------- Original Message -------
On Wednesday, August 17th, 2022 at 11:13 AM, Lars Ingebrigtsen <larsi@gnus.org> wrote:


> uzibalqa uzibalqa@proton.me writes:
>
> > When I use the debugger I frequently get extremely long lines. I
> > either have to move an excessive amount to the right or having to
> > reduce the scale height to a point where the text gets too small to
> > read.
> >
> > Some work needs to be done so as to prettify the debugger output.
>
>
> The data shown there is necessary, so this is working as designed.
>
> Closing.

The report is not about reducing the amount of output.  But in not
letting the debug information drag on horizontally ad infinitum.






^ permalink raw reply	[flat|nested] 10+ messages in thread

* bug#57256: Very long lines displayed in debugger window
  2022-08-17  1:55 ` Phil Sainty
  2022-08-17  2:24   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-08-17  6:26   ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
@ 2022-08-18 13:39   ` Phil Sainty
  2 siblings, 0 replies; 10+ messages in thread
From: Phil Sainty @ 2022-08-18 13:39 UTC (permalink / raw)
  To: uzibalqa; +Cc: 57256

On 2022-08-17 13:55, Phil Sainty wrote:
> On 2022-08-17 13:45, uzibalqa wrote:
>> When I use the debugger I frequently get extremely long lines.
>> I either have to move an excessive amount to the right or having
>> to reduce the scale height to a point where the text gets too
>> small to read.
> 
> You can also simply M-x toggle-truncate-lines

In fact, the debugger already supports pretty-printing for the
frame at point if you type "+" (collapse again with "-").

Here's a starter for you:

(defun debugger-expand-all-frames ()
   "Call `backtrace-multi-line' for all debugger frames."
   (interactive)
   (save-excursion
     (goto-char (point-min))
     (while (ignore-errors (backtrace-forward-frame))
       (backtrace-multi-line))))

(define-key debugger-mode-map (kbd "*") #'debugger-expand-all-frames)






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-08-18 13:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-17  1:45 bug#57256: Very long lines displayed in debugger window uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-17  1:55 ` Phil Sainty
2022-08-17  2:24   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-17  3:37     ` Phil Sainty
2022-08-17  3:48       ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-17 11:55         ` Eli Zaretskii
2022-08-17  6:26   ` Akib Azmain Turja via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-08-18 13:39   ` Phil Sainty
2022-08-17 11:13 ` Lars Ingebrigtsen
2022-08-17 20:37   ` uzibalqa via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).