From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.help Subject: Re: New buffer not showing up in Emacs Buffers Menubar Date: Tue, 24 Sep 2024 12:39:36 +0200 Message-ID: <87cyktmj2v.fsf@gmx.net> References: <87ldzhmraw.fsf@gmx.net> <87h6a5mout.fsf@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10376"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 24 12:40:27 2024 Return-path: Envelope-to: geh-help-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 1st2y3-0002X7-E3 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 Sep 2024 12:40:27 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st2xZ-00034t-30; Tue, 24 Sep 2024 06:39:57 -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 1st2xX-00034W-C6 for help-gnu-emacs@gnu.org; Tue, 24 Sep 2024 06:39:55 -0400 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st2xV-0007I5-C3 for help-gnu-emacs@gnu.org; Tue, 24 Sep 2024 06:39:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1727174377; x=1727779177; i=stephen.berman@gmx.net; bh=z8/16Xe2x+qP9DrnAsP/XcSd5hYxDBToMRiEpJgnTec=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=panb4AGmmRfbrKxzgzWHW1ubbEZ1GTTol4MmrzW16od3QJGzA3aUuGqNn7PhaleN 1q2prCl8+UlgUPlVlZXa6oYNptAn1MdnU32eg9HXUlURAVyryddxSF65r5JmE7uMe jXI3Yfzq877ikBZjIg8TNYZg5GtXzFIGL1Zu7NwQHBY+Sx85fpV6rOLUhjI+t+MLr Jukx8dZ5YaHKufPCeu3NMZGdd0PLgh5uSyDio1UhVJLwSC3CbmfjoCKfHSXhVCQGF mApLqYz3eRUOzPgKBrRBws3AWrbDc8GnVL3/czIYxEei4D+T/1XyEX5SvC3h7kGGY tVJD+jMf11adSykY3Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from strobelfssd ([88.130.48.98]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MAONd-1smDJr40st-00AI80; Tue, 24 Sep 2024 12:39:37 +0200 In-Reply-To: (Heime's message of "Tue, 24 Sep 2024 10:00:06 +0000") X-Provags-ID: V03:K1:XBZT0dI1TbxZHPmD3QKhOoKWHDNKNcNdOj138Kxof9rYMlihfEh KSlWMgyQm6PZheXeCoxuJWj80V0+mZYB9X/vwrg6MzDTaXWjPXFUHgiLD3AYJLmmEC77b6R kmilkQuduWFAtvW27DTIf+lJYPBAQ0J9I/7mW797i7kR1nEoZRQ2M7wdQMZDEP/BH7/IOWO uSMHoqi1SVYFrK5EKKtHA== UI-OutboundReport: notjunk:1;M01:P0:zA05sh1QoWM=;5S/4DuRdU5Z+v7ljO9DqIsH/5sR UGYM2PfzMq4R+sJY9TK0CTdsnUTayuBI5AGk8z7P1+xFJH+24HVYXkh1rcAi6YLtNu6yGNkDu qZ/zWj0U0JtRnqGXG8tWyqKxxlcNluQ2khBQUI+fQQWEQDUlFKCpppPO4zs0SXHmwfnp6+bZG VDnvBfn8pdhHaCLD+SaHNdaMMPQt85EjJ85nzozyycweq5g7uA0v/1+qv3pm1hxlY2ix8PyPM 4hoPFgmWjKYZta3lz/G0eK2At2riidCKxFJdYFz2oIDRV9s283BWPrHYTUq5XEsFgkF8ji+jc qqpY3QP/wpyb0IZWbmNqq5R476GxZ6iPpMKLnW9QHOkXzH2CdGGh1alBqiRZbpVIWacgr3vah uUv/9m539/tuYOfvZlNzRiJDmQnVnr9ydf6u3KMNvqygt45BSzypgct6qY1UtQI6mNIYiU9Hd nApcV4nQoxrcd8CI8Vw2oh+ttxXkWXmfmzzQib2gVsRkdsOv3KSHCDTrcDOtsn4e6Ch9soBDJ yWXd/3QPfdooJ7gDdneHkQWBDcpgux679Hce0kUldw0jJjem9jmTvoXz2+GpCXDEeGhzoT1f0 LNbleosmCYbQjiHrrqcvMW7NbRp8dzZK/8Dip4MED3MPgiqZG0noYSd/Tf2rorvXSYOwHSY2x X9UVqx9kLy6pgCfJ3q7BJbGthjEBqRpEUy5eozDUP3etvJtsykolSCYiMh0sPsGTTdLEGSkMO y79j0IJKQyRhxXGYhFPYcDO6+miNOfmC7/vwesXC/bvG2ZueKxRGNJ9VQ0WYS251KZu1KIuv Received-SPF: pass client-ip=212.227.15.15; envelope-from=stephen.berman@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148052 Archived-At: On Tue, 24 Sep 2024 10:00:06 +0000 Heime wrote: > Sent with Proton Mail secure email. > > On Tuesday, September 24th, 2024 at 8:34 PM, Stephen Berman > wrote: > >> On Tue, 24 Sep 2024 08:19:08 +0000 Heime heimeborgia@protonmail.com wrot= e: >>=20 >> > Sent with Proton Mail secure email. >> >=20 >> > On Tuesday, September 24th, 2024 at 7:41 PM, Stephen Berman >> > stephen.berman@gmx.net wrote: >> >=20 >> > > On Mon, 23 Sep 2024 22:25:17 +0000 Heime heimeborgia@protonmail.com = wrote: >> > >=20 >> > > > Why do I need to call (switch-to-buffer dbuffer) to see the buffer= made ? >> > > >=20 >> > > > Without it I never see the BFRN buffer in the Emacs Buffers Menuba= r. >> > > >=20 >> > > > (defun print-alist (alist &optional bfrn) >> > > > "Print Associateed List ALIST to the buffer BFRN." >> > > >=20 >> > > > (let* ( (bfname (or bfrn "ALIST")) >> > > > (dbuffer (get-buffer-create (concat "=F0=92=86=B3 " bfname))) ) >> > > >=20 >> > > > (with-current-buffer dbuffer >> > > > (face-remap-add-relative 'default :background "blue") >> > > >=20 >> > > > (insert "\n ALIST \n\n") >> > > >=20 >> > > > (dolist (entry alist) >> > > >=20 >> > > > (let* ( (key (car entry) ) >> > > > (value (cdr entry) ) >> > > > (start (point)) ) >> > > >=20 >> > > > ;; Insert key >> > > > (insert (format " =E2=94=81 %-8s" key)) >> > > >=20 >> > > > ;; Colourise key >> > > > (add-text-properties start (point) >> > > > `(face (:foreground "green"))) >> > > >=20 >> > > > ;; Insert associated value >> > > > (insert (format "\n %s\n" value)) )) ) >> > > >=20 >> > > > ;; Finally, display the buffer >> > > > (switch-to-buffer dbuffer) )) >> > >=20 >> > > When I comment out `(switch-to-buffer dbuffer)' and evaluate the def= un >> > > in emacs -Q, I see "=F0=92=86=B3 ALIST" in the Buffers menu. >> > >=20 >> > > Steve Berman >> >=20 >> > I am still experiencing the problem though. >>=20 >>=20 >> Also when you run emacs -Q? >>=20 >> > Is there possibility of conflicts with other buffers in some situation= s ? >>=20 >> I don't know what you mean here. > > That some buffers fail to display unless specifically instructed to do so. > >> > Is there a limit to the number of buffers >> > that can be displayed in the Emacs Menubar ? >>=20 >>=20 >> Yes, the default is 15; see user option buffers-menu-max-size. > > Then this is something that I would have to look into as I make > a lot of buffers for test. > > Is there always a requirement to instruct pop-to-buffer, view-buffer,=20 > display-buffer, switch-to-buffer and display-like commands so that a=20 > new buffer gets shown. If you mean the buffer names being displayed in the Buffers menu, no, that should be automatic for the most recent buffers up to buffers-menu-max-size. Steve Berman