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#59505: 29.0.50; Compact mode line breaks mouse interactions Date: Wed, 23 Nov 2022 22:48:14 +0200 Message-ID: <83r0xtxur5.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31612"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 59505@debbugs.gnu.org To: Rudolf =?UTF-8?Q?Adamkovi=C4=8D?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 23 21:49:12 2022 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 1oxwgC-000866-AN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Nov 2022 21:49:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oxwg5-0007IX-NM; Wed, 23 Nov 2022 15:49:05 -0500 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 1oxwg3-0007DS-Dy for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 15:49:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oxwg2-0000Zj-52 for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 15:49:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oxwg1-0007fh-Qf for bug-gnu-emacs@gnu.org; Wed, 23 Nov 2022 15:49:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Nov 2022 20:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59505 X-GNU-PR-Package: emacs Original-Received: via spool by 59505-submit@debbugs.gnu.org id=B59505.166923648729363 (code B ref 59505); Wed, 23 Nov 2022 20:49:01 +0000 Original-Received: (at 59505) by debbugs.gnu.org; 23 Nov 2022 20:48:07 +0000 Original-Received: from localhost ([127.0.0.1]:56387 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxwf8-0007dU-N7 for submit@debbugs.gnu.org; Wed, 23 Nov 2022 15:48:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oxwf6-0007cQ-3e for 59505@debbugs.gnu.org; Wed, 23 Nov 2022 15:48:05 -0500 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 1oxwf0-0000PN-Oq; Wed, 23 Nov 2022 15:47:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=PZAPGhS5AxhrPLcl6xPjYxCN77c85/zt6LkZs50Nm+0=; b=XYQ0dprMYh5tSKuyNXW2 5aNjF4samAuUPdz87RR4E6nd7qG4WsI+QSyFO4Cc+Q6Of9egqW+EPxX2ySFmkH9j601xUDQJ8PCnd 0+yGIZV9lSf+6onzNUICha7r3XdpVMMNWAXU5gKdN1VYisC0p+T3u8RKJRGWnWhFXxhZJrfnT3Z/5 VVvAyw2UUKxNMixQpyxqSfpD2zDQ7lG58bMmVkPaipsTfKEqTXcbQsWxnzS5ZoA/xJ7sacuvUgjTq GrDq2cQEu16XI+26UM+EX148MFfmz3dZJ+tS5Ef7poSKWZmAN/3VwUEegw+wkBILU1VSukCOhPKWf thByLqXdtYcBbg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oxwez-0006gg-St; Wed, 23 Nov 2022 15:47:58 -0500 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:248787 Archived-At: > Date: Wed, 23 Nov 2022 09:23:53 +0100 > From: Rudolf Adamkovič via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > > I noticed that > > (setq mode-line-compact t) > > breaks mouse interaction with the mode line. > > For instance, when I hover the mouse over a mode shown in the mode line, > Emacs often highlights zero, one, two, or even three modes, instead of > always highlighting the one under the mouse cursor. This is a limitation of how mode-line-compact is implemented. It starts by producing a string using format-mode-line. If you try this: M-: (insert (format-mode-line mode-line-format)) RET and hover the mouse over the inserted string, you will see the same issue there. The technical reason for this is that the original mode line is made of several separate Lisp string, which allows Emacs to highlight each of those parts separately, whereas the result of format-mode-line is a single Lisp string, where a sequence of characters that have the same mouse-face property will react together to the hovering mouse. So unless someone comes up with a better idea of how to compact the mode line, we will have to live with this limitation.