From: Robert Weiner <rsw@gnu.org>
To: 47417@debbugs.gnu.org
Subject: bug#47417: Expand/fix use of completion-no-auto-exit flag
Date: Fri, 26 Mar 2021 15:18:26 -0400 [thread overview]
Message-ID: <CA+OMD9juuWkramRh8qFbyryBvR10nxG9rzEiDdugVPMk4GnL=g@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 989 bytes --]
It seems to me a high-level view of completion-no-auto-exit is to allow
code outside of choose-completion and choose-completion-string to finish
the completion selection process. Presently, this flag does inhibit
closure of the minibuffer when choosing a completion but it does not
inhibit closure of the list of completions if '?' has been used. I think
the two are connected and that whatever external code is used to utilize
the finalized completion should also handle the closure of the completion
window.
This can be accomplished by simply wrapping the call to 'quit-window'
within 'choose-completion' with an '(unless completion-no-auto-exit...)'
like so:
(unless completion-no-auto-exit (quit-window nil (posn-window
(event-start event))))
Please consider adding this as a quick fix. Then packages like Hyperbole
which requires 2 clicks/presses to finalize a completion selection could
use choose-completion without having to replace the whole function.
Thanks,
Bob
[-- Attachment #2: Type: text/html, Size: 2406 bytes --]
next reply other threads:[~2021-03-26 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-26 19:18 Robert Weiner [this message]
2021-04-13 19:30 ` bug#47417: Expand/fix use of completion-no-auto-exit flag Juri Linkov
2021-12-15 17:43 ` Juri Linkov
2022-03-12 18:40 ` Juri Linkov
2022-04-05 18:22 ` 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='CA+OMD9juuWkramRh8qFbyryBvR10nxG9rzEiDdugVPMk4GnL=g@mail.gmail.com' \
--to=rsw@gnu.org \
--cc=47417@debbugs.gnu.org \
--cc=rswgnu@gmail.com \
/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.