From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: New buffer not showing up in Emacs Buffers Menubar Date: Tue, 24 Sep 2024 11:32:57 +0000 Message-ID: References: <87ldzhmraw.fsf@gmx.net> <87h6a5mout.fsf@gmx.net> <87cyktmj2v.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="25365"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Stephen Berman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 24 13:33:42 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 1st3nZ-0006I8-L2 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 Sep 2024 13:33:41 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st3n4-0006nJ-Ra; Tue, 24 Sep 2024 07:33:10 -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 1st3n2-0006n4-Tw for help-gnu-emacs@gnu.org; Tue, 24 Sep 2024 07:33:08 -0400 Original-Received: from mail-40130.protonmail.ch ([185.70.40.130]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st3mz-0005kR-3P for help-gnu-emacs@gnu.org; Tue, 24 Sep 2024 07:33:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1727177582; x=1727436782; bh=3bsMCXSi7jKb5YlDwtTaWAWW5wct8FuM9hblWpOjI/k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=T81CmYp0/5b4KrFAnDflEg8AnKhNXYZnuXMWheMgEjp7SMMh31+68hE/Guf4fg11b TMayA33KkeT1svvW55KOOf1LndhFajHAevgxmIbx9DTCbbjH3+Hs+M7CgZQIgR/Et+ QjPt/NUXRq+gLqLo6Bt5wgWlv4uh9p/3cXDJOVGZj7zLdAYAi8VhSoVZd/HOMB3N8y gcDLUZ5jDxagE1IeXBw4bhtZpYlgwzqWtSH6JnK4KNERxHbgWU9QsYcp4x4peAI4iB JbOXZVzI1DIh2WtwdHCrD/nqWfh7qlGzErHA1Hs6rpcOsAwkXx4FvGNQGzM73Uw4Gn CLDpE+OOfJxzA== In-Reply-To: <87cyktmj2v.fsf@gmx.net> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 32223ae9d751e4cd712d0ef87c4294cb0131f57b Received-SPF: pass client-ip=185.70.40.130; envelope-from=heimeborgia@protonmail.com; helo=mail-40130.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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:148053 Archived-At: Sent with Proton Mail secure email. On Tuesday, September 24th, 2024 at 10:39 PM, Stephen Berman wrote: > On Tue, 24 Sep 2024 10:00:06 +0000 Heime heimeborgia@protonmail.com wrote= : >=20 > > Sent with Proton Mail secure email. > >=20 > > On Tuesday, September 24th, 2024 at 8:34 PM, Stephen Berman > > stephen.berman@gmx.net wrote: > >=20 > > > On Tue, 24 Sep 2024 08:19:08 +0000 Heime heimeborgia@protonmail.com w= rote: > > >=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.c= om wrote: > > > > >=20 > > > > > > Why do I need to call (switch-to-buffer dbuffer) to see the buf= fer made ? > > > > > >=20 > > > > > > Without it I never see the BFRN buffer in the Emacs Buffers Men= ubar. > > > > > >=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 = defun > > > > > 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 > > > Also when you run emacs -Q? > > >=20 > > > > Is there possibility of conflicts with other buffers in some situat= ions ? > > >=20 > > > I don't know what you mean here. > >=20 > > That some buffers fail to display unless specifically instructed to do = so. > >=20 > > > > Is there a limit to the number of buffers > > > > that can be displayed in the Emacs Menubar ? > > >=20 > > > Yes, the default is 15; see user option buffers-menu-max-size. > >=20 > > Then this is something that I would have to look into as I make > > a lot of buffers for test. > >=20 > > Is there always a requirement to instruct pop-to-buffer, view-buffer, > > display-buffer, switch-to-buffer and display-like commands so that a > > new buffer gets shown. >=20 >=20 > If you mean the buffer names being displayed in the Buffers menu, no, tha= t > should be automatic for the most recent buffers up to buffers-menu-max-si= ze. >=20 > Steve Berman And the older ones would be removed from view ? Hew does one set=20 buffers-menu-max-size ? With a setq as (setq buffers-menu-max-size new-siz= e)=20 or with a different command ?