all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Mastro <john.b.mastro@gmail.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Cc: Sam Halliday <sam.halliday@gmail.com>
Subject: Re: emacs 24.4 disable popup in minibuffer
Date: Fri, 7 Nov 2014 14:34:48 -0800	[thread overview]
Message-ID: <CAOj2CQTaAwcDkhSgZjOuoUL9Bq-x-qsMBpZamQ2n1PgYU4_YXQ@mail.gmail.com> (raw)
In-Reply-To: <6b4bca6a-b4c7-4849-8001-fe48dc408f91@googlegroups.com>

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)

-- 
john



  reply	other threads:[~2014-11-07 22:34 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 [this message]
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

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=CAOj2CQTaAwcDkhSgZjOuoUL9Bq-x-qsMBpZamQ2n1PgYU4_YXQ@mail.gmail.com \
    --to=john.b.mastro@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=sam.halliday@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.