From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: Tip: tty mode-line popup menus Date: Mon, 9 Dec 2024 17:59:18 -0500 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="31385"; mail-complaints-to="usenet@ciao.gmane.io" To: =?UTF-8?Q?Gerd_M=C3=B6llmann?= , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Dec 10 00:00:03 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 1tKmjT-00084Z-Gc for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Dec 2024 00:00:03 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKmip-00082a-Ug; Mon, 09 Dec 2024 17:59:23 -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 1tKmio-00082Q-Fc for emacs-devel@gnu.org; Mon, 09 Dec 2024 17:59:22 -0500 Original-Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tKmim-0003g2-Vy for emacs-devel@gnu.org; Mon, 09 Dec 2024 17:59:22 -0500 Original-Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-5d2726c0d45so7396655a12.2 for ; Mon, 09 Dec 2024 14:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733785159; x=1734389959; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:from:to:cc:subject:date:message-id :reply-to; bh=WO7aSQQkRVH7U85k5318HAKNRNqnK5BjMtU3rhcAmno=; b=atEbiWuHQwGlqGgd18ECDvUHiPGfOY6gEmrfbpWvdXI1U6MEvZ7bLDA4/mz3N0BV0t hWV8EblmXl6XiKMBbzjEynLzQg5EJ4pny9xOqlE+CseisS9l9nE9loaWjs5gqKncC5NY iPRrOIDK0+Wh0mdWfUIqwrAVTI2Q6AxTci/2jwuGNKf/1ZP6cxga4UyETR2pLtEvqS9c GkNJMxoNCBS32cXdrcx501SLoE29I321RE/kUAy0B67pcZB5K97pFbdMUkQhxaApur79 nycGw9YBc35nnox/4g6nK5o+t+1rFxcBbgQxL6xJ/CY35eRY5uYOSDv5n/kwY3Ki479K 41Ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733785159; x=1734389959; h=content-transfer-encoding:to:subject:message-id:date:mime-version :references:in-reply-to:from:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=WO7aSQQkRVH7U85k5318HAKNRNqnK5BjMtU3rhcAmno=; b=WUZ+1xSuBwjRusxuXP+mFU4vCD49eEMfwRlsrj2g2jxO4c5JhA+IqeQw1uNHl3njxx Wqu1sUrP7VpbWxZPI12OEfvzARF97rknFIoui3TaklAoQsKG9XTzdIuc1pD9Q6n1FwVg FFMznSrryouCl8CUf5DzZFM70cTawnUj/o/RaGlzoPabbXeTtw4sL0BQpT7ZsZrhwmFV etY+sT5u7RkSy3OaBGV9D6lmYVz3PU5e1o/MEfbRbZehBkYdSPItPIyZPTjTKxTADSTG eQRxmeuVzcRDBtmrnC2yqu949ikgHeQJgBK3YJipSDyBaDd603rpgkiuRKMPSBZxrral 6HBw== X-Forwarded-Encrypted: i=1; AJvYcCUN3BaJTb3OuTM+hc89ae4Q9fbRKss4+4M2v1SBzkfwvl/L2aS+eZNM19yqgEgRMzx4XVLyW5eswG1Kiw==@gnu.org X-Gm-Message-State: AOJu0YyxiAcv6PHpk2gYthdezQ7jpGFNk2dGwsh+tFzP4VCAzgaXGkHn dxBX2Lthguz30Vwfwbzlo7kPoB74AVpww1q3XZ40Zn6JMOiG3j12q35702A9Pxb/Wk2DaMQDxln SlJTTO5fQOEubqyFnt6twSxtYCHI= X-Gm-Gg: ASbGnctXw6HyiSGomGFYaOmuJGriiFnwKXBoqdvu3ARpq6geqVO9ko0Qs13cowMZln2 VDC5TtaukiSQjjBSooI6FD+TOssNPUW/84fHYsg== X-Google-Smtp-Source: AGHT+IGdm00SYn0U/iKzLE5YUV7pAbVNexwl1aOT6M3ozlq7G308pz2PSJ1sDTj0M2mWaWsrQeCK69U5ohtfEahktUU= X-Received: by 2002:a05:6402:268a:b0:5d1:f009:925e with SMTP id 4fb4d7f45d1cf-5d41856a3fcmr2767756a12.16.1733785158929; Mon, 09 Dec 2024 14:59:18 -0800 (PST) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 9 Dec 2024 17:59:18 -0500 In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=stefankangas@gmail.com; helo=mail-ed1-x530.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:326259 Archived-At: 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? I guess many users are on laptops with trackpads these days, and would find that convenient.