From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68765: 30.0.50; Adding window-tool-bar package. Date: Thu, 23 May 2024 09:52:51 +0300 Message-ID: <86cypd58ak.fsf@gnu.org> References: <07df5e8408054bcae5968066b0cebf34@finder.org> <86fry0vihy.fsf@gnu.org> <86fry08di9.fsf@mail.linkov.net> <86cyrg5hc0.fsf@mail.linkov.net> <865xvyoupe.fsf@mail.linkov.net> <86frur76uj.fsf@gnu.org> <791456a05f91c68549027ea1ea33eaf6@finder.org> <84a5dcf2833598c5b588ab6dd4f5c762@finder.org> <86le4fxa41.fsf@mail.linkov.net> <86frufe9i9.fsf@gnu.org> <8cfec392c3f9259b7499ebd4f605bc25@finder.org> <86pltib8m7.fsf@gnu.org> <1d18b11671667fefa925dbc41423d547@finder.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26661"; mail-complaints-to="usenet@ciao.gmane.io" Cc: philipk@posteo.net, 68765@debbugs.gnu.org, monnier@iro.umontreal.ca, juri@linkov.net To: Jared Finder Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu May 23 08:54:24 2024 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 1sA2LI-0006lX-90 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 23 May 2024 08:54:24 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sA2Ks-0003RY-QK; Thu, 23 May 2024 02:53:58 -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 1sA2Kq-0003Q6-AG for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 02:53:56 -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 1sA2Kq-0001dx-1y for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 02:53:56 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sA2Kw-0007UT-7J for bug-gnu-emacs@gnu.org; Thu, 23 May 2024 02:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 May 2024 06:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68765 X-GNU-PR-Package: emacs Original-Received: via spool by 68765-submit@debbugs.gnu.org id=B68765.171644719228762 (code B ref 68765); Thu, 23 May 2024 06:54:02 +0000 Original-Received: (at 68765) by debbugs.gnu.org; 23 May 2024 06:53:12 +0000 Original-Received: from localhost ([127.0.0.1]:58536 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA2K7-0007Tq-Od for submit@debbugs.gnu.org; Thu, 23 May 2024 02:53:12 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44358) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sA2K5-0007Tj-FP for 68765@debbugs.gnu.org; Thu, 23 May 2024 02:53:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sA2Js-0001aB-8P; Thu, 23 May 2024 02:52:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xmsFrJQyHlVDoTCnRY17iJhphxxwJwYLLkk4I0wQLVs=; b=D2HeSBpf4Lt9 DhzU394HngA6YDfKEBVZPHqFMyEZ4txzUNAQR3TfPKa03dyKDDXjBTE4SSHtYNVapbrbFNJw2cOFy d0GPyUYZptUdBCYRoG5V0o7CAEBDXkdTqVGxdOpLXbVe/9nwuT24uH1gEBgRx2M07wVhXGLcg3cV+ KKJpt1mONdoJyHdLUjcCLbd+AxqzyZMyYCxNY5sPf47tKEz3PloFU017pnzR7wwmhOsoWq0iRIWPD VxSoQ8vtPlNI4eCUNOAz0onqLspdvJxLMyXvOBLhendlZ3TE4MerSUUdD2+e3tJahL0xZ6KnNhejg 8UUiseX4MhCe+zAsc9uqlw==; In-Reply-To: <1d18b11671667fefa925dbc41423d547@finder.org> (message from Jared Finder on Wed, 22 May 2024 21:19:05 -0700) 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:285683 Archived-At: > Date: Wed, 22 May 2024 21:19:05 -0700 > From: Jared Finder > Cc: juri@linkov.net, 68765@debbugs.gnu.org, philipk@posteo.net, > monnier@iro.umontreal.ca > > +@node Window Tool Bar > +@cindex mode, Window Tool Bar Index entries should preferably use only lower-case letters, to avoid problems with sorting index entries in different locales. In addition, I would rephrase the above index entry to say just @cindex window tool bar > +@findex global-window-tool-bar-mode > +@vindex global-window-tool-bar-mode This will create two identical index entries (since we produce a single Index from all the index entries). So leave just one of the two. > + The command @code{global-window-tool-bar-mode} toggles the display of > +a tool bar at the top of all windows. (You can also customize the > +variable @code{global-window-tool-bar-mode}.) To conserve space, a > +window tool bar is only shown if the tool bar for a buffer is different > +from the global (default) tool bar. The most common way a buffer has a > +different tool bar is due to its major mode, so you can think of the > +window tool bar as showing a major mode's tool bar if it exists. This paragraph left me puzzled. By default, the frame-global tool bar follows the major mode of the selected buffer's window. This is not going to change even under global-window-tool-bar-mode, is it? If so, when will the window-specific tool bar be displayed -- only in non-selected windows whose buffers have a major mode different from that of the selected-window's buffer? If so, this should be explicitly explained in the manual, I think. Also, does this mean the window-specific tool bar will appear and disappear depending on which window is selected? Wouldn't that cause annoying "flickering" of display? > +@findex window-tool-bar-mode > +If you want to toggle the display of a tool bar in just a single window, > +run the command @code{window-tool-bar-mode}. This is also useful to put > +in a hook. For example if you want the window tool bar to appear for > +all buffers that do not represent files and have a custom tool bar, you > +could add the following code to your init file (@pxref{Init File}): Are these window tool bars also limited to windows whose buffers' major mode is different from the selected window? In any case, this aspect, whether identical to global-window-tool-bar-mode or different from it, should be explicitly documented. Last, but not least: please mention the bug number in the commit log message. Thanks.