From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Halliday Newsgroups: gmane.emacs.help Subject: Re: emacs 24.4 disable popup in minibuffer Date: Tue, 11 Nov 2014 01:13:29 -0800 (PST) Message-ID: <15bb834c-763d-4a47-b075-7f09d26a2d27@googlegroups.com> References: <31f0e291-9b45-4c9e-a562-9ca9f3fbe890@googlegroups.com> <38ec833d-bbeb-4155-8c60-1b0888b2efa6@googlegroups.com> <5f3f3f6e-2401-4a88-b828-11c755fd1d67@googlegroups.com> <6b4bca6a-b4c7-4849-8001-fe48dc408f91@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1415697326 2995 80.91.229.3 (11 Nov 2014 09:15:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2014 09:15:26 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 10:15:21 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Xo7Xl-0003nE-GP for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 10:15:21 +0100 Original-Received: from localhost ([::1]:47541 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xo7Xk-0005Xd-Vv for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2014 04:15:20 -0500 X-Received: by 10.66.159.98 with SMTP id xb2mr30046829pab.33.1415697209633; Tue, 11 Nov 2014 01:13:29 -0800 (PST) X-Received: by 10.140.37.83 with SMTP id q77mr9649qgq.7.1415697209583; Tue, 11 Nov 2014 01:13:29 -0800 (PST) Original-Path: usenet.stanford.edu!h15no2151059igd.0!news-out.google.com!u1ni1qah.0!nntp.google.com!i13no771894qae.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=83.244.128.25; posting-account=kRukCAoAAAANs-vsVh9dFwo5kp5pwnPz Original-NNTP-Posting-Host: 83.244.128.25 User-Agent: G2/1.0 Injection-Date: Tue, 11 Nov 2014 09:13:29 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:208615 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:100893 Archived-At: On Friday, 7 November 2014 22:35:15 UTC, John Mastro wrote: > Sam Halliday 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. >=20 > You could try one of the two options below (untested, sorry). >=20 > But there's a good chance Stefan will have a better idea so it may be > worth waiting :) >=20 > ;; Option 1 > (defun popup-disable-in-minibuffer () > (set (make-local-variable 'popup-complete-enable) nil)) >=20 > (add-hook 'minibuffer-setup-hook 'popup-disable-in-minibuffer) >=20 > ;; Option 2 > (defun no-popup-in-minibuffer (function &rest args) > (let ((popup-complete-enable (and (not (minibufferp)) > popup-complete-enable))) > (apply function args))) >=20 > (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-comp= lete/commit/0c5b7a4efc89fe12b30ea2996f157437d78b613e That serves my purpose= s. (advice-add ...) is a pretty sweet thing, I'd probably have gone for tha= t if the package remained unchanged.