From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64398: Buffer list Date: Thu, 05 Oct 2023 15:21:05 +0800 Message-ID: <87il7lcz6m.fsf@yahoo.com> References: <833527rjwm.fsf@gnu.org> <83sf7t4aic.fsf@gnu.org> <83msxz35ns.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5895"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64398@debbugs.gnu.org, Eli Zaretskii , angelo.borsotti@gmail.com To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 05 09:21:59 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qoIgI-0001Af-9P for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 05 Oct 2023 09:21:58 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qoIg5-00055C-U6; Thu, 05 Oct 2023 03:21:45 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qoIg4-000551-Ku for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 03:21:44 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qoIg4-0004uy-D5 for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 03:21:44 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qoIgM-00051h-EX for bug-gnu-emacs@gnu.org; Thu, 05 Oct 2023 03:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 05 Oct 2023 07:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64398 X-GNU-PR-Package: emacs Original-Received: via spool by 64398-submit@debbugs.gnu.org id=B64398.169649050419297 (code B ref 64398); Thu, 05 Oct 2023 07:22:02 +0000 Original-Received: (at 64398) by debbugs.gnu.org; 5 Oct 2023 07:21:44 +0000 Original-Received: from localhost ([127.0.0.1]:45917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoIg4-00051B-99 for submit@debbugs.gnu.org; Thu, 05 Oct 2023 03:21:44 -0400 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]:33220) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qoIg2-00050v-1l for 64398@debbugs.gnu.org; Thu, 05 Oct 2023 03:21:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1696490478; bh=ljDjhpt2xtKBKxEZnqMGsl3iiuoo172t2Y7QTMnInlA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=ANa6O4PPCtzrybF2PAMNkJIK/k1IR9iE1nGUkFPLwEwKvSwAIA65/tZ5VVlg3uPOdSxqCKdkLX+E69PbltFAeR85VRgJCHROeTwqT5uPO3gFcqH5NbAj4rmnmjAcNdsyW34l7vUelbAMR+YYZ0TTcbYGdv1jpeatDBz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ZAATE.3x2_VgdkJg.PjOnd7aqSv9e7yuWfEppQFlAF4LEYB7CFmtpAbYy9d Qiadv73P4m9crLYis5583YbqHxao2kPUqCLX8.3vMzdqtI.PY2aqwpEzVCdg7M7.LAutt6Y773Kn dmlcvw0GPx1Js9C6tYrRRBNMW31.QCdnrFWO_MxmX6sAESpemz_jg6cNWUPA94jFxkqkOfXpJJhe hUHgEIjYMch7RfeH.EFHSWDmtnzgHCdVYCPOJt5higzEHR6BbhWjKjHNTxq1xKXtyjJimGZs.Xe9 lSvnt.4ngAJywcpjOjgVZwU1GgE16h9hyCI2BfDLm.R_G6CBIcmv5LLmDvrhVLnDGau7oruYGd1E aFugevWw2TioqgJL71DtN.MWIvjhPaeIvPOJvS7MUzrMPaxS4WRPTVy1ZEk.D4obsMlYvt1ZjPG9 lTRVBbBNNi03.4TMr9yfTFPo5P.CWU8KnEdawimEuq X-Sonic-MF: X-Sonic-ID: cdd252d4-f3a8-4aee-9d61-408a718b8705 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Thu, 5 Oct 2023 07:21:18 +0000 Original-Received: by hermes--production-sg3-64dc67fbb6-cd52p (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 5a0a9e25be51fe2d80adf14a7a9c4fce; Thu, 05 Oct 2023 07:21:12 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Wed, 6 Sep 2023 04:54:39 -0700") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:271847 Archived-At: Stefan Kangas writes: > Eli Zaretskii writes: > >>> It's tempting to just bump this to some similarly conservative value >>> like 15 or 12 on graphical displays, and be done with it. >> >> We could do that, but then 15 is the maximum value we could use, since >> it makes the menu take 24 lines, which is the largest value possible >> with 24-line TTY frames. > > How about something like the below? > > diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el > index 5e837485db3..14d8d664d58 100644 > --- a/lisp/menu-bar.el > +++ b/lisp/menu-bar.el > @@ -2314,14 +2314,16 @@ menu-bar-select-yank > > ;;; Buffers Menu > > -(defcustom buffers-menu-max-size 10 > +(defcustom buffers-menu-max-size (if (display-graphic-p) 15 10) > "Maximum number of entries which may appear on the Buffers menu. > -If this is 10, then only the ten most-recently-selected buffers are shown. > -If this is nil, then all buffers are shown. > -A large number or nil slows down menu responsiveness." > - :type '(choice integer > - (const :tag "All" nil)) > - :group 'menu) > +If this is a number, only that many most-recently-selected > +buffers are shown. > +If this is nil, all buffers are shown." > + :type '(choice natnump > + (const :tag "All" nil)) > + :group 'menu > + :version "30.1") > > (defcustom buffers-menu-buffer-name-length 30 > "Maximum length of the buffer name on the Buffers menu. This doesn't work because menu-bar.el is preloaded and additionally because Emacs supports creating both GUI and terminal frames in the same process, whereas a feature can only be loaded once, with the value of display-graphic-p subject to whatever frame is selected at the time it is loaded. Why not set it to 15 and call it a day? TIA.