all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 34517@debbugs.gnu.org
Subject: bug#34517: tmm menubar menu items have no effect on Android
Date: Tue, 19 Feb 2019 23:20:38 +0200	[thread overview]
Message-ID: <8736ojwl1l.fsf@mail.linkov.net> (raw)
In-Reply-To: <835ztgjvus.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 19 Feb 2019 05:33:15 +0200")

>> > Touching the top menu items like “File” opens a file submenu nicely
>> > in tmm's *Completions* buffer.
>> >
>> > But touching menu items in its submenu like “New Window on Right”
>> > 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. <backspace>
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. ‘C-h f TAB’ displays a list of completions

2. type a nonexistent function name, i.e. some random text
   in the minibuffer, e.g. “blabla”

3. click on an existing valid completion in the *Completions* buffer,
   e.g. on “append”

4. instead of getting the selected item “append”, it fails with:

   user-error: Symbol’s function definition is void: appendblabla





  reply	other threads:[~2019-02-19 21:20 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-17 19:17 bug#34517: tmm menubar menu items have no effect on Android Juri Linkov
2019-02-18 21:22 ` Juri Linkov
2019-02-19  3:33   ` Eli Zaretskii
2019-02-19 21:20     ` Juri Linkov [this message]
2019-02-27 21:04       ` Juri Linkov
2019-02-27 22:10         ` Stefan Monnier
2019-02-28 21:03           ` Juri Linkov
2019-09-08 20:28 ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8736ojwl1l.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=34517@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.