From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Tip: tty mode-line popup menus Date: Tue, 10 Dec 2024 07:14:31 +0100 Message-ID: References: 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="17275"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Emacs Devel To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 10 07:15:30 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 1tKtWr-0004PR-I0 for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Dec 2024 07:15:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKtW6-0005Fs-0o; Tue, 10 Dec 2024 01:14:42 -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 1tKtW1-0005Fh-FJ for emacs-devel@gnu.org; Tue, 10 Dec 2024 01:14:37 -0500 Original-Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKtVz-0005tW-Ln for emacs-devel@gnu.org; Tue, 10 Dec 2024 01:14:37 -0500 Original-Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-435004228c0so9879855e9.0 for ; Mon, 09 Dec 2024 22:14:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733811274; x=1734416074; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=xpg+QIaQ3IhrGd73wwnKlwwgHXBNuYI+VoFSPBLn9O4=; b=Q7Yi8QLqb5DoZ9tWygAEqbkJ54vwrBuxE9gvjnS0DReaBR4v65s6OoabNOIrzOp5gz XzOv0ZCLcRDKZJR+M3W4ipfALLQTGk5Y7+uCyuUj1WEcKGc3ndzyoprhYzlqiiu55ucb mJ04Hg9mQQa+n6cQZNVnxrxyvkaSRvxoQlegFWwS1D5Sj9ny4V2itiMym20lcnrFJIK0 dwnwCCV2NsaxQPm24TM/+oA8eoRJ4dNRzFNv9DY/ZWxKzvvH9leVhUdp2TCqK04gelFl 33Ab2X4Hg7mejmphgWlph/15zf+yJDZ00c6rnawUIiPrKO+arIrWcAeWUwX8l1hvIzZZ bWHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733811274; x=1734416074; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=xpg+QIaQ3IhrGd73wwnKlwwgHXBNuYI+VoFSPBLn9O4=; b=enW3Mi/zt3dBT5y9/r0mwj9irWOyad8OWWTfgPHUON1M/GJkLrvfR0pdjxCzGraTKK yVlSOWz35GIWd6xQGnnza+bWwjisg4bXokxHwuYxc2nFafr2aruJIG7UqcAPKmgCkBA5 KlCc3k/zchVC6rERxRf6T+XOPbwCyH8vSwPXFn7OpseJTOqFl7MHLu5rKXCxK6BhUHnC NFrRGXWFM7DVLxBeRctyDvYM/mNc9Z8UhIAefwBsq1kGNjZSwFZ4t5/wRrA3YSyU+VeC /lZC/6TbpbrrTqNLI7nbfInkQ4ttnluwncu93GE8E3I9dIM6c2NqFErLF+fBJLWfzBXH AJNA== X-Gm-Message-State: AOJu0YzCAW7Y/qB73NLgATVXPqCIgeFgNJZ0esgWLwbPiUygZWKboSIj CpQMWAghJao0LFpxygoiGGdo/EcCpCPxQiBPmPcEqMn3Uux8WLv3B71FPw== X-Gm-Gg: ASbGncsknx/vuhponafLVidsxI81mircQno4z4g07vdUaF4vQsbqEnW3RKtvZTRy9M5 XEzDPJcMqkKK5avuLg4c6AGaoyCx2yfU/ViKfSUEofb0Ei78LJJFyVZl7oPr2FKhRzwPpHHMOvx JgGEDiWbQgqtV+mZMnu5J3GJzF03019VT8gPBGrwGT2rmiBDrsOg0J+VqY8dw4BiQ4hIMlAvHsj w27P9eenEkfZKYBRmQ4WyeGiF6NnkFTKxxNfAR8v6x1et7FUeuXv2Ke6UvXCcjrSE9d9z74GtDn yTPRQKIulhdxfqOtXHqWyC1C8sw+0oRUlucZRrvvjbCIG2RUsjlsCGn3LDsqa7s= X-Google-Smtp-Source: AGHT+IEs2Qbyy4qY6Cthjv0tsoeh+PSkSSlKx9QGm5HceCmNot3gwxXkkr675Qas+z6tp5rp5lr8TQ== X-Received: by 2002:a05:6000:716:b0:385:df73:2f42 with SMTP id ffacd0b85a97d-386453e1ed4mr2954489f8f.32.1733811273378; Mon, 09 Dec 2024 22:14:33 -0800 (PST) Original-Received: from pro2 (p200300e0b73a150089512521f002ebd0.dip0.t-ipconnect.de. [2003:e0:b73a:1500:8951:2521:f002:ebd0]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3861ecf4045sm15167979f8f.8.2024.12.09.22.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Dec 2024 22:14:31 -0800 (PST) In-Reply-To: (Stefan Kangas's message of "Mon, 9 Dec 2024 17:59:18 -0500") Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=gerd.moellmann@gmail.com; helo=mail-wm1-x335.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 autolearn=ham autolearn_force=no X-Spam_action: no action 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:326273 Archived-At: Stefan Kangas writes: > Gerd M=C3=B6llmann writes: > >> I don't like the tty behavior. It is fiddly with a track pad, which I >> normally use, leading to inadvertent menu selections. Furthermore, >> keyboard operation of the menu seems impossible. >> >> To fix this, I've added this in my init.el: >> >> (defun my-fix-mode-line-map (map) >> (let* ((down-mouse (kbd " ")) >> (mouse (kbd " ")) >> (def (lookup-key map down-mouse))) >> (when def >> (define-key map down-mouse nil) >> (define-key map mouse def)))) >> >> (my-fix-mode-line-map mode-line-major-mode-keymap) >> (my-fix-mode-line-map mode-line-minor-mode-keymap) > > How about adding a defcustom for this behavior? Maybe, don't know. One problem is that I don't know where else something similar is done. I know only the two places above plus one in the Minions package, which probably simply mimicked what Emacs does in bindings.el. Or in other words, I don't have enough of an overview to design something that's really useful. > I guess many users are on laptops with trackpads these days, and would > find that convenient. I guess so, especially if they use tap-to-click like I do.