From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Mastro Newsgroups: gmane.emacs.help Subject: Re: emacs 24.4 disable popup in minibuffer Date: Fri, 7 Nov 2014 14:34:48 -0800 Message-ID: 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=UTF-8 X-Trace: ger.gmane.org 1415399735 26906 80.91.229.3 (7 Nov 2014 22:35:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 7 Nov 2014 22:35:35 +0000 (UTC) Cc: Sam Halliday To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 07 23:35:26 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 1Xms7n-0001RD-B7 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Nov 2014 23:35:23 +0100 Original-Received: from localhost ([::1]:34124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xms7n-0001fX-09 for geh-help-gnu-emacs@m.gmane.org; Fri, 07 Nov 2014 17:35:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48389) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xms7b-0001fD-OU for help-gnu-emacs@gnu.org; Fri, 07 Nov 2014 17:35:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xms7a-0006uO-So for help-gnu-emacs@gnu.org; Fri, 07 Nov 2014 17:35:11 -0500 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:52452) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xms7a-0006tw-OJ for help-gnu-emacs@gnu.org; Fri, 07 Nov 2014 17:35:10 -0500 Original-Received: by mail-oi0-f44.google.com with SMTP id h136so3103239oig.17 for ; Fri, 07 Nov 2014 14:35:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=ThngXueRjIXysGw9kBbUEg+KI6qKJJA3qsC3lri9Q7k=; b=gI0KAHQUFEr76aiAYUh+4gwQ+cJiSzqvXvEeekWT4Wqu44LBOFqsQvWqdqEKDjPDZp 8b7T+2NFdQ30Bjnr2F2B/l3LoboDNz8EAy5W+tn5uQm2zyY8HUkFEz0OQzpEEnn+Pr+X NK7x+QbxI6WunnlP4x+YliMZAIqunkUUOZkNy8G3TjkS5DMPOMKA5yrO9LpH0kck6a4b vyH06r+pV9k6JoGS6M/RCT/rpjr4vkIr+dFV91mQsYbq1SjjucO4yrkNJDMYe5MPHK3T eZqnvTXNuVnuJh/WK0twL7QFrEf6Vhq7a4kiKiOix5Ly50QgkApa6QxATn3CMTIiHuJC WmzQ== X-Received: by 10.182.230.169 with SMTP id sz9mr11812865obc.31.1415399708318; Fri, 07 Nov 2014 14:35:08 -0800 (PST) Original-Received: by 10.76.125.194 with HTTP; Fri, 7 Nov 2014 14:34:48 -0800 (PST) In-Reply-To: <6b4bca6a-b4c7-4849-8001-fe48dc408f91@googlegroups.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::22c 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:100843 Archived-At: 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. 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