From: "Drew Adams" <drew.adams@oracle.com>
To: "'Chong Yidong'" <cyd@gnu.org>
Cc: 11454@debbugs.gnu.org
Subject: bug#11454: 24.1.50; `list-buffers-refresh', `Buffer-menu-buffer+size-width'
Date: Sat, 12 May 2012 06:43:33 -0700 [thread overview]
Message-ID: <877B41D90D8D4BB5998F2C69190EF9C3@us.oracle.com> (raw)
In-Reply-To: <87vck19afc.fsf@gnu.org>
> What would you suggest: ignoring Buffer-menu-buffer+size-width if both
> Buffer-menu-name-width and Buffer-menu-size-width are specified
> (i.e. ignoring it by default)?
Yes, if by "specified" you mean customized by the user. No, if you mean only
defined in the new code. The latter would just be overriding the user's
customizations.
Here's what I would suggest: Respect a user's customizations and, in priority,
customizations of the new options over customization of the old option.
For that you would need to detect whether a user has customized either of the
new options. (And if s?he customized only one of them, pick up the other new
option value from Buffer-menu-buffer+size-width if customized (minus the
customized new one), or the new default value if not.)
Or else, in the transition period of deprecation (before desupport), use nil as
the default value of all three options and then DTRT based on any existing
(hence customized) values. Maybe something like this (just a possibility):
(setq name-width Buffer-menu-name-width
size-width Buffer-menu-size-width)
(when Buffer-menu-buffer+size-width
(cond ((and name-width (not size-width))
(setq size-width (- Buffer-menu-buffer+size-width
name-width)))
((and size-width (not name-width))
(setq name-width (- Buffer-menu-buffer+size-width
size-width)))))
(unless name-width (setq name-width 19))
(unless size-width (setq size-width 7))
But perhaps there is a precedent for how such a change (e.g., splitting a
string-valued option in two) should be handled? Dunno.
Not a big deal, in any case. It just seems wrong to ignore user customizations
that can perhaps be respected.
next prev parent reply other threads:[~2012-05-12 13:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-11 20:06 bug#11454: 24.1.50; `list-buffers-refresh', `Buffer-menu-buffer+size-width' Drew Adams
2012-05-12 6:32 ` Chong Yidong
2012-05-12 13:43 ` Drew Adams [this message]
2012-05-12 14:29 ` Chong Yidong
2012-05-12 14:49 ` Drew Adams
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=877B41D90D8D4BB5998F2C69190EF9C3@us.oracle.com \
--to=drew.adams@oracle.com \
--cc=11454@debbugs.gnu.org \
--cc=cyd@gnu.org \
/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).