help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs 24.4 disable popup in minibuffer


From: John Mastro
Subject: Re: emacs 24.4 disable popup in minibuffer
Date: Fri, 7 Nov 2014 14:34:48 -0800

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 via email to

[Prev in Thread] Current Thread [Next in Thread]