From: Sam Halliday <sam.halliday@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs 24.4 disable popup in minibuffer
Date: Tue, 11 Nov 2014 01:13:29 -0800 (PST) [thread overview]
Message-ID: <15bb834c-763d-4a47-b075-7f09d26a2d27@googlegroups.com> (raw)
In-Reply-To: <mailman.13192.1415399713.1147.help-gnu-emacs@gnu.org>
On Friday, 7 November 2014 22:35:15 UTC, John Mastro wrote:
> Sam Halliday <sam.halliday@gmail.com> wrote:
> > I'd be greatly obliged if you could have a look and see if there is
> > anything obvious that could be done to disable the popup in the
> > minibuffer.
>
> You could try one of the two options below (untested, sorry).
>
> But there's a good chance Stefan will have a better idea so it may be
> worth waiting :)
>
> ;; Option 1
> (defun popup-disable-in-minibuffer ()
> (set (make-local-variable 'popup-complete-enable) nil))
>
> (add-hook 'minibuffer-setup-hook 'popup-disable-in-minibuffer)
>
> ;; Option 2
> (defun no-popup-in-minibuffer (function &rest args)
> (let ((popup-complete-enable (and (not (minibufferp))
> popup-complete-enable)))
> (apply function args)))
>
> (advice-add 'popup-complete--in-region
> :around #'no-popup-in-minibuffer)
Thanks John,
The author of the package issued an update which allows for the mode to be enabled for user specified modes https://github.com/syohex/emacs-popup-complete/commit/0c5b7a4efc89fe12b30ea2996f157437d78b613e That serves my purposes. (advice-add ...) is a pretty sweet thing, I'd probably have gone for that if the package remained unchanged.
prev parent reply other threads:[~2014-11-11 9:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 20:39 emacs 24.4 disable popup in minibuffer Sam Halliday
2014-11-06 22:40 ` Stefan Monnier
2014-11-07 14:45 ` Sam Halliday
2014-11-07 15:10 ` Stefan Monnier
[not found] ` <mailman.13131.1415373077.1147.help-gnu-emacs@gnu.org>
2014-11-07 19:15 ` Sam Halliday
2014-11-07 20:04 ` Sam Halliday
2014-11-07 22:34 ` John Mastro
2014-11-08 14:38 ` Stefan Monnier
2014-11-08 21:45 ` John Mastro
2014-11-08 22:08 ` Stefan Monnier
[not found] ` <mailman.13192.1415399713.1147.help-gnu-emacs@gnu.org>
2014-11-11 9:13 ` Sam Halliday [this message]
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=15bb834c-763d-4a47-b075-7f09d26a2d27@googlegroups.com \
--to=sam.halliday@gmail.com \
--cc=help-gnu-emacs@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.