From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: minibuffer-default-add-shell-commands Date: Sun, 30 Mar 2008 00:08:49 -0400 Message-ID: References: <87prtiik0l.fsf@jurta.org> <87iqz969fh.fsf@jurta.org> <87od9181m7.fsf@jurta.org> <87lk440z31.fsf@jurta.org> <8763v5axxc.fsf_-_@jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206850144 22606 80.91.229.12 (30 Mar 2008 04:09:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2008 04:09:04 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Mar 30 06:09:35 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JforO-00046r-J7 for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 06:09:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfoqm-0006Fc-V3 for ged-emacs-devel@m.gmane.org; Sun, 30 Mar 2008 00:08:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jfoqi-0006E8-Pm for emacs-devel@gnu.org; Sun, 30 Mar 2008 00:08:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jfoqh-0006Cb-14 for emacs-devel@gnu.org; Sun, 30 Mar 2008 00:08:52 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jfoqg-0006CM-NI for emacs-devel@gnu.org; Sun, 30 Mar 2008 00:08:50 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jfoqg-0007ej-CB for emacs-devel@gnu.org; Sun, 30 Mar 2008 00:08:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEADuv7kfO+LLN/2dsb2JhbACBWqZd X-IronPort-AV: E=Sophos;i="4.25,576,1199682000"; d="scan'208";a="17145524" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 30 Mar 2008 00:08:50 -0400 Original-Received: from pastel.home ([206.248.178.205]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id KHM14050; Sun, 30 Mar 2008 00:08:50 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id B00AB7FDF; Sun, 30 Mar 2008 00:08:49 -0400 (EDT) In-Reply-To: <8763v5axxc.fsf_-_@jurta.org> (Juri Linkov's message of "Sun, 30 Mar 2008 02:44:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:93867 Archived-At: > ! (interactive > ! (let ((minibuffer-default-add-function > ! 'minibuffer-default-add-shell-commands)) > ! (list (read-shell-command "Shell command: " nil nil > ! (and buffer-file-name > ! (file-relative-name buffer-file-name))) > ! current-prefix-arg > ! shell-command-default-error-buffer))) That means that whenever if I ever leave a M-! prompt open and go do something else, all my completions will now use minibuffer-default-add-shell-commands? That's not right. Let-binding is not right for minibuffer-default-add-function. Stefan