all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Gustaf Waldemarson <gustaf.waldemarson@gmail.com>
Cc: 59730@debbugs.gnu.org
Subject: bug#59730: gdb-mi.el: Local variables reordering
Date: Sat, 03 Dec 2022 21:58:41 +0200	[thread overview]
Message-ID: <83fsdwcl8u.fsf@gnu.org> (raw)
In-Reply-To: <CABehr5fDrRAJmXHRpOCH3vvS4FEVbVt0=7UNyaLpg7VC1KivxQ@mail.gmail.com> (message from Gustaf Waldemarson on Thu, 1 Dec 2022 22:53:26 +0100)

> From: Gustaf Waldemarson <gustaf.waldemarson@gmail.com>
> Date: Thu, 1 Dec 2022 22:53:26 +0100
> Cc: 59730@debbugs.gnu.org
> 
> The updated patch is attached to this mail.

Thanks.  I have a couple of minor comments:

> +(defcustom gdb-locals-max-type-length 20
> +  "Maximum number of character to display in the local variables type column."
> +  :type 'integer
> +  :group 'gud
> +  :version "30.0")

This should be "30.1".  We don't release NN.o versions of Emacs.

> +(defcustom gdb-locals-max-name-length 20
> +  "Maximum number of character to display in the local variables name column."
> +  :type 'integer
> +  :group 'gud
> +  :version "30.0")

Likewise.

Also, please add more detailed description of what these options control.
The first line of the doc string is fine, but please add more text
explaining that this setting is for displaying the variables in the "Locals"
buffer.

> -          (propertize type 'font-lock-face font-lock-type-face)
> -          (propertize name 'font-lock-face font-lock-variable-name-face)
> +          (propertize (string-truncate-left name gdb-locals-max-name-length)
> +                      'font-lock-face font-lock-variable-name-face
> +                      'help-echo name)
> +          (propertize (string-truncate-left type gdb-locals-max-type-length)
> +                      'font-lock-face font-lock-type-face
> +                      'help-echo type)

I'm uncomfortable with backward-incompatible change in behavior for which
there's no way of getting the old behavior.  So please add another defcustom
that could be used to get the original order of type/name/value.

There also should be a NEWS entry about these new options, and the text
there should explain how to get back old behavior before these changes.





  parent reply	other threads:[~2022-12-03 19:58 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-30 22:09 bug#59730: gdb-mi.el: Local variables reordering Gustaf Waldemarson
2022-12-01 15:44 ` Eli Zaretskii
2022-12-01 20:40   ` Gustaf Waldemarson
2022-12-01 21:53     ` Gustaf Waldemarson
2022-12-02 13:48       ` Eli Zaretskii
2022-12-03 13:02         ` Gustaf Waldemarson
2022-12-03 19:58       ` Eli Zaretskii [this message]
2022-12-04 14:26         ` Gustaf Waldemarson
2022-12-07 17:50           ` Eli Zaretskii
2022-12-08 18:43             ` Gustaf Waldemarson
2022-12-10 13:29               ` Eli Zaretskii

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

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

  git send-email \
    --in-reply-to=83fsdwcl8u.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=59730@debbugs.gnu.org \
    --cc=gustaf.waldemarson@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.