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.devel Subject: Re: Tip: tty mode-line popup menus Date: Mon, 09 Dec 2024 16:45:46 +0200 Message-ID: <86y10odied.fsf@gnu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1510"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Gerd =?iso-8859-1?Q?M=F6llmann?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Dec 09 15:46: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 1tKf1p-00009Z-CB for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Dec 2024 15:46:29 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tKf1M-0006vE-Qu; Mon, 09 Dec 2024 09:46:02 -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 1tKf1K-0006ux-I1 for emacs-devel@gnu.org; Mon, 09 Dec 2024 09:45:58 -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 1tKf1J-00086V-Dr; Mon, 09 Dec 2024 09:45: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=4GqciA6HNGO5VZ1XgL6XrxMB/YbqYlGVuwV5BlICx8Y=; b=oOjEpbKNbA5L7/uL8KKN G/MAvVfdFwH43XLlvKrq3EwbUb6Xf4kfgaUXYIj8WybOUaVGjDZEGa6pirAV11tItuDB4HN08Wi3l kOtzCrGAFzXIL2VpqSOYFroj4n9NsHDnjpXJy2+qHfs8q1nbxfbcES5IME3l8RVoJkD43V45USVdh EiJwPxEkvyS7pzrlyo5RJX3V4y85ho2RBdppg6U4Iq5G18aMpUDc4ZSyr2vXmyC3kktiIyjKHGwoj coDbddb4yWRt3UY9FQXDJfM4a7OQPBr5E8YQyR3m+JCdLp0xLSKYbrCes2NEJNokd7/6bMz210xde lf0YzIntQC+7dA==; In-Reply-To: (message from Gerd =?iso-8859-1?Q?M=F6llmann?= on Mon, 09 Dec 2024 09:01:46 +0100) 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:326246 Archived-At: > From: Gerd Möllmann > Date: Mon, 09 Dec 2024 09:01:46 +0100 > > When clicking on, say, the major mode indicator in the mode-line > different things happen, depending on whether I'm using a GUI or tty > Emacs (-nw): > > - GUI (NS In may case): a popup menu opens on down-mpuse-1 and stays > open when I release the mouse button. > > - Tty: a popup menu opens on down-mouse-1 and is closed as soon as I > release the mouse button. If the mouse is over a menu item[B releasing > the button also selects the menu item. Yes. TTY menus behave like the no-toolkit build of Emacs behaves, because they share some of the code and the general design. > I don't like the tty behavior. You don't like it because you are used to how the various GUI toolkits behave: they leave the menu displayed when you release the mouse button. But Emacs has always produced both kinds of behaviors, depending on the toolkit (or lack thereof). The reason for popping down a menu on mouse release is that otherwise one needs a separate event loop (which toolkits have and TTY mouse doesn't). > It is fiddly with a track pad, which I normally use, leading to > inadvertent menu selections. Furthermore, keyboard operation of the > menu seems impossible. ??? Of course, it possible: type F10, and then use arrow keys to navigate and RET to select.