unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Thuna <thuna.cing@gmail.com>
Cc: 53501@debbugs.gnu.org
Subject: bug#53501: 29.0.50; Column widening widens multiple columns in *Process List*
Date: Tue, 25 Jan 2022 14:15:56 +0100	[thread overview]
Message-ID: <878rv4x8fn.fsf@gnus.org> (raw)
In-Reply-To: <877dapz5ci.fsf@gmail.com> (Thuna's message of "Mon, 24 Jan 2022 15:27:25 +0300")

Thuna <thuna.cing@gmail.com> writes:

> In the *Porcess List* buffer, if tabulated-list-widen-column is called
> on the second or the third column, both columns end up widening.  The
> same thing happens in columns 5 and 6 as well (although it is currently
> bugged due to bug#53498).
>
> This can be replicated as follows:
> 0. emacs -Q
> 1. M-x shell
> 2. M-x list-processes
> 3. C-x o
> 4. M-f M-f
> 5. }
>
> It is possible that this is not a bug in process itself but I have seen
> nothing else that could be the problem.

Hm, very odd.  I wondered whether it was somehow increasing the widths
of two columns, but:

(cl-incf (cadr (aref tabulated-list-format 1)))
(tabulated-list-print t)

demonstrates this problem.

It seems like tabulated-list-print is itself increasing the width of the
subsequent column?  Hm, yes.  No!  It's a matter of a shared list?

[("Process" 15 . #1=(t)) ("PID" . #2=(10 . #1#)) ("Status" . #2#) ("Buffer" 26 . #1#) ("TTY" . #3=(11 . #1#)) ("Thread" . #3#) ("Command" 0 . #1#)]

Yes, PID and Status share lists.

Right, the problem is that process-menu-mode uses a constant here, and
tabulated-list-mode mutates that, and that's undefined.  Now fixed in
Emacs 29.

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





      reply	other threads:[~2022-01-25 13:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-24 12:27 bug#53501: 29.0.50; Column widening widens multiple columns in *Process List* Thuna
2022-01-25 13:15 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878rv4x8fn.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=53501@debbugs.gnu.org \
    --cc=thuna.cing@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).