From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: execvy@gmail.com Newsgroups: gmane.emacs.devel Subject: Re: 31.0.50; tab-bar-formal-global erased global-modeline-string's mouse hover/click action menu Date: Wed, 4 Sep 2024 22:36:54 +0800 Message-ID: <30788fc9-6841-45ea-802f-d075eec37640@gmail.com> References: <87y147v77e.fsf@gmail.com> <868qw75w3l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19968"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: Eli Zaretskii , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 04 16:43:51 2024 Return-path: Envelope-to: ged-emacs-devel@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 1slrEd-00050t-Gw for ged-emacs-devel@m.gmane-mx.org; Wed, 04 Sep 2024 16:43:51 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1slrEL-0004wo-Jl; Wed, 04 Sep 2024 10:43:33 -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 1slr82-00046F-Ia for emacs-devel@gnu.org; Wed, 04 Sep 2024 10:37:03 -0400 Original-Received: from mail-pj1-x1042.google.com ([2607:f8b0:4864:20::1042]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1slr80-0005Hy-Tq; Wed, 04 Sep 2024 10:37:02 -0400 Original-Received: by mail-pj1-x1042.google.com with SMTP id 98e67ed59e1d1-2d88690837eso3582016a91.2; Wed, 04 Sep 2024 07:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725460618; x=1726065418; darn=gnu.org; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=88wwi/JnUHqAgCxEJ7nj01edu+gUW7ScmHtprwAEt+4=; b=lk5u8uA5xNckMOr12gW8z9HgTSprQs1HVcjfIB87APLpPCljHy/vHuohW6dpJITNMD KHnIzbnRtX+ppL8eGE6BsB5/xRES7aRbF5OMudwfOuQxWi+PaZGTxRTUdehQHyPFaNRA z+yOu+R1A9nKAMrQ1Xk8KCBlBmcIFRhdyP/0hP5J5a2qmKzEfJZOje/5cMHzrxfDMTNv SCwNamDrlFPw1ta+qmQFRUqNjqxtC4TRDJUwdw+Yu6IQTFfi6nBPZzY6HHk+QF0oFnUP qKTDiO/9ggI/etIiCBXLBsLHLOLmhJnVngid7fTC1qcV40GP07zYQkUgHI5I/IetWivO WyTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725460618; x=1726065418; h=content-transfer-encoding:in-reply-to:references:subject:to:from :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=88wwi/JnUHqAgCxEJ7nj01edu+gUW7ScmHtprwAEt+4=; b=R7omBUnR6wKshfN72L6+lgmzWFeKJ+1s6ufixfuUtA+bRWHF5hQ8LoqU3Xz/4cmug+ 4nwmmYWf24nFqNU2V32jvhThTB24RX5/qLsa5CThARup2gyyB+4ZbHINLHLpUBAe4SN7 ZB0kv5hleG5l5AgZ6hLKYmyEBe19jGs2yp+tB9/QIpL9lrf1RCr9TkdE/VyhErD8m89e V38dDNDz4Zi7tPGeGkaoO4U6pGOAup4e4D5DN2JBo68fbqrOkCXL5dIg7gYT7ph6euQ+ rKPmJhKRU6v2toQDHw7KO0y6+z0lqwVbjuD/zcX0Sxy6oh5aYqvsHjn3pbPBMd/unIWP r/mQ== X-Forwarded-Encrypted: i=1; AJvYcCXTyaxm9vC5jZ1GiXNHgoGApfOKurMgZyUvHLulx+a9qqR425r2Rc6PExjU9z/ItDLcAdqf2D2rA2XSyw==@gnu.org X-Gm-Message-State: AOJu0Yy4blknhPRdim5z2AvKXMLeZ5dyhxRYBdbkkVocKpZgzDSFuarK zPg0ryGF3F+I6ui9mDibVoRu5tuEThv9nOqXxtOuma2WS2QzfU7/9RwwPekw X-Google-Smtp-Source: AGHT+IGJ4fl42F6E3GsM3MHfOULqY0F8oJ+XiFWC1qI+cuYFVEcE8NPbzGkT58gJw23S6Z6XoF+mFw== X-Received: by 2002:a17:90a:df0f:b0:2d8:8681:44ba with SMTP id 98e67ed59e1d1-2da62fdd953mr6382003a91.15.1725460617969; Wed, 04 Sep 2024 07:36:57 -0700 (PDT) Original-Received: from [28.0.0.1] (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2da5932d1ecsm4165205a91.43.2024.09.04.07.36.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Sep 2024 07:36:57 -0700 (PDT) In-Reply-To: <868qw75w3l.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::1042; envelope-from=execvy@gmail.com; helo=mail-pj1-x1042.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 04 Sep 2024 10:43:31 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:323365 Archived-At: Thank you, I’ve forwarded the email to bug-gnu-emacs@gnu.org. Another question: how do you add rich text to emails? I'm reading the Emacs-devel email archives, and the code in the email body is plain text with a white background and black foreground. If we could display code with syntax highlighting in emails, that would be great. On 9/4/24 10:31 PM, Eli Zaretskii wrote: > > From: Eval EXEC > > Date: Wed, 04 Sep 2024 22:12:21 +0800 > > > > I'm using tab-bar-mode, and I've included `tab-bar-format-global` in `tab-bar-format`. This displays `global-mode-string` on the tab-bar. > > > > ```elisp > > (setq-default tab-bar-format > > tab-bar-format-menu-bar > > tab-bar-format-history > > tab-bar-format-tabs > > tab-bar-separator > > tab-bar-format-add-tab > > tab-bar-separator > > tab-bar-format-align-right > > tab-bar-format-global) > > ``` > > > > However, in `global-mode-string`, I have `mu4e`. The tab-bar seems to remove the hover and mouse click actions from `global-mode-string`. > > > > It appears that the issue is related to the use of "ignore": > > ```elisp > > (defun tab-bar-format-global () > > "Produce display of `global-mode-string' in the tab bar. > > When `tab-bar-format-global' is added to `tab-bar-format' > > \(possibly appended after `tab-bar-format-align-right'), > > then modes that display information on the mode line > > using `global-mode-string' will display the same text > > on the tab bar instead." > > (mapcar (lambda (string) > > `(global menu-item ,(format-mode-line string) ignore)) > > global-mode-string)) > > ``` > > > > If I remove `tab-bar-format-global` from `tab-bar-format`, the `global-mode-string` displays on the mode-line, and the `mu4e` indicator in `global-mode-string` works with mouse hover and click. I believe that if `global-mode-string` is displayed on the tab-bar, its items should also support mouse hover and click. > > > > What do you think? How can I quickly hack the tab-bar to enable mouse hover and click for `global-mode-string`? > > Thanks, but this should have been sent to bug-gnu-emacs@gnu.org, where > it would be picked up by our bug tracker. >