From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#34517: tmm menubar menu items have no effect on Android Date: Tue, 19 Feb 2019 23:20:38 +0200 Organization: LINKOV.NET Message-ID: <8736ojwl1l.fsf@mail.linkov.net> References: <87sgwm75ko.fsf@mail.linkov.net> <87h8d0u70k.fsf@mail.linkov.net> <835ztgjvus.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="207494"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) Cc: 34517@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 19 23:14:13 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gwDeX-000rrw-EC for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 23:14:13 +0100 Original-Received: from localhost ([127.0.0.1]:55659 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwDeW-0003V0-9W for geb-bug-gnu-emacs@m.gmane.org; Tue, 19 Feb 2019 17:14:12 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gwDbS-0000V5-6d for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:11:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gwDSp-0001aG-Ko for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:02:09 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gwDSn-0001YL-7O for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:02:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gwDSm-0000IU-QG for bug-gnu-emacs@gnu.org; Tue, 19 Feb 2019 17:02:04 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 19 Feb 2019 22:02:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34517 X-GNU-PR-Package: emacs Original-Received: via spool by 34517-submit@debbugs.gnu.org id=B34517.15506136741036 (code B ref 34517); Tue, 19 Feb 2019 22:02:03 +0000 Original-Received: (at 34517) by debbugs.gnu.org; 19 Feb 2019 22:01:14 +0000 Original-Received: from localhost ([127.0.0.1]:56798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDRy-0000Gd-Bi for submit@debbugs.gnu.org; Tue, 19 Feb 2019 17:01:14 -0500 Original-Received: from firebrick.maple.relay.mailchannels.net ([23.83.214.59]:61332) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gwDRv-0000GT-H2 for 34517@debbugs.gnu.org; Tue, 19 Feb 2019 17:01:13 -0500 X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 4640D503FC1; Tue, 19 Feb 2019 22:01:09 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a45.g.dreamhost.com (unknown [100.96.26.166]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 0217C503C5D; Tue, 19 Feb 2019 22:01:08 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jurta@jurta.org Original-Received: from pdx1-sub0-mail-a45.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.16.2); Tue, 19 Feb 2019 22:01:09 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jurta@jurta.org X-MailChannels-Auth-Id: dreamhost X-Vacuous-Quick: 3c51857e662e7de7_1550613669129_710206387 X-MC-Loop-Signature: 1550613669129:534709481 X-MC-Ingress-Time: 1550613669128 Original-Received: from pdx1-sub0-mail-a45.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTP id AD8B68004C; Tue, 19 Feb 2019 14:01:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=linkov.net; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=linkov.net; bh=9LG6fH fQiD2Q5nYOHCJ08S2ACCE=; b=jcihSiaW5EukCSzncty1lepE4DY2J1j+JbLpdS pmWB41yBKUP6baCIuM/mN3j/vpbm3SfOwuQI15x1ZP2QveFAc9MmHfHjd5yuK9mY 5LRHBIntaU8yZXyyJHUJLbH8AHZPHwZ8pHzBbKjBxFkF23mv17RP6jmHGaR5fTvY OiQUs= Original-Received: from mail.jurta.org (m91-129-96-50.cust.tele2.ee [91.129.96.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jurta@jurta.org) by pdx1-sub0-mail-a45.g.dreamhost.com (Postfix) with ESMTPSA id D55F38004A; Tue, 19 Feb 2019 14:01:04 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a45 In-Reply-To: <835ztgjvus.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 19 Feb 2019 05:33:15 +0200") X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrtdeggdduheehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuggftfghnshhusghstghrihgsvgdpffftgfetoffjqffuvfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhofhffjgfkfgggtgfgsehtkeertddtreejnecuhfhrohhmpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqnecukfhppeeluddruddvledrleeirdehtdenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepmhgrihhlrdhjuhhrthgrrdhorhhgpdhinhgvthepledurdduvdelrdeliedrhedtpdhrvghtuhhrnhdqphgrthhhpefluhhrihcunfhinhhkohhvuceojhhurhhisehlihhnkhhovhdrnhgvtheqpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhhrtghpthhtohepvghlihiisehgnhhurdhorhhgnecuvehluhhsthgvrhfuihiivgeptd X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155576 Archived-At: >> > Touching the top menu items like =E2=80=9CFile=E2=80=9D opens a file= submenu nicely >> > in tmm's *Completions* buffer. >> > >> > But touching menu items in its submenu like =E2=80=9CNew Window on R= ight=E2=80=9D >> > does nothing. >> >> I can reproduce this in the latest version 27 on GNU/Linux: >> clicking with the mouse on menu items from M-` (tmm-menubar) >> has the same effect, i.e. no effect. > > tmm-menubar is supposed to be for when there's no mouse at all, so why > do we expect a mouse click to do anything in that case? Smartphones translate screen touch events to click event, so this is the only way to use menus. Also the help text of tmm menus says: "Click on a completion to select it." But now I see that tmm relies on completing-read-default and inserts initial input that gets concatenated with an item selected by clicking in the *Completions* buffer. When initial input is deleted manually with e.g. before clicking on a menu item, then tmm works correctly. So the bug is in completing-read-default and can be reproduced with a simpler test case: 0. emacs -Q 1. =E2=80=98C-h f TAB=E2=80=99 displays a list of completions 2. type a nonexistent function name, i.e. some random text in the minibuffer, e.g. =E2=80=9Cblabla=E2=80=9D 3. click on an existing valid completion in the *Completions* buffer, e.g. on =E2=80=9Cappend=E2=80=9D 4. instead of getting the selected item =E2=80=9Cappend=E2=80=9D, it fail= s with: user-error: Symbol=E2=80=99s function definition is void: appendblabla