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 08:19:08 +0000 Message-ID: References: <87ldzhmraw.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="38682"; 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 10:20:37 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 1st0mj-0009q3-7P for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 24 Sep 2024 10:20:37 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1st0lg-0007Gc-QN; Tue, 24 Sep 2024 04:19:32 -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 1st0la-0007FZ-In for help-gnu-emacs@gnu.org; Tue, 24 Sep 2024 04:19:27 -0400 Original-Received: from mail-4325.protonmail.ch ([185.70.43.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1st0lY-0000fu-Es for help-gnu-emacs@gnu.org; Tue, 24 Sep 2024 04:19:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1727165951; x=1727425151; bh=sP8mCZfW3jZhHsHg32L0e+rFIbLPhHGR1jKbIEuJr3g=; 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=TbqXyuIN0VWfEkJRRe+3TovqZ8o8IjmB2MwcaIBQfWHAeyjReyLvBM1rdvbE+bGB/ uHLOhM6Iy6kkChD/KDtIrweXl1AB3+KgGGaP76AyIeOYIUMbemJnqyHyOwlmQXFjBx 6k6N7FlEtppRONFkGmJrkhLZ4+gij+VCzxG0xTFz43feURp5oleCTqZzmSzJ+cT2Xm zXf70ZAMiDZCPtg6M+Q1w3rfNzZ2V7UBYxnokWqamGnrQTvzGrSYVkutPUbYbmlWF+ QpgFLHgxLcP7/dyt1ofT6CZoPbt0Lz5pPsdt9M/QrPrQFlzTqEt4FicQvcQkodXwC4 MT44PBLDuiVMw== In-Reply-To: <87ldzhmraw.fsf@gmx.net> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 75e092b45837c36831e97c7aa9d40564c0e05c7c Received-SPF: pass client-ip=185.70.43.25; envelope-from=heimeborgia@protonmail.com; helo=mail-4325.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_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_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:148049 Archived-At: Sent with Proton Mail secure email. On Tuesday, September 24th, 2024 at 7:41 PM, Stephen Berman wrote: > 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 Menubar. > >=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 >=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 I am still experiencing the problem though. Is there possibility of confli= cts with other buffers in some situations ? Is there a limit to the number of = buffers that can be displayed in the Emacs Menubar ? It is the first time I am see= ing=20 this problem.