From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: How do I bind a variable for the minibuffer's use? Date: Mon, 28 Mar 2016 18:43:55 +0000 Message-ID: <20160328184354.GA5095@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1459190497 1443 80.91.229.3 (28 Mar 2016 18:41:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 28 Mar 2016 18:41:37 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 28 20:41:28 2016 Return-path: Envelope-to: ged-emacs-devel@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 1akc6N-0006x5-3s for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 20:41:23 +0200 Original-Received: from localhost ([::1]:42214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akc6M-0000pk-31 for ged-emacs-devel@m.gmane.org; Mon, 28 Mar 2016 14:41:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44286) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akc68-0000pJ-Td for emacs-devel@gnu.org; Mon, 28 Mar 2016 14:41:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1akc65-0001HY-Gd for emacs-devel@gnu.org; Mon, 28 Mar 2016 14:41:08 -0400 Original-Received: from mail.muc.de ([193.149.48.3]:10548) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1akc65-0001HD-BB for emacs-devel@gnu.org; Mon, 28 Mar 2016 14:41:05 -0400 Original-Received: (qmail 2958 invoked by uid 3782); 28 Mar 2016 18:41:02 -0000 Original-Received: from acm.muc.de (p548A556F.dip0.t-ipconnect.de [84.138.85.111]) by colin.muc.de (tmda-ofmipd) with ESMTP; Mon, 28 Mar 2016 20:41:01 +0200 Original-Received: (qmail 5128 invoked by uid 1000); 28 Mar 2016 18:43:55 -0000 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x X-Received-From: 193.149.48.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202337 Archived-At: Hello, Emacs. How do I bind a variable for the minibuffer? In particular, I want to bind text-property-default-nonsticky to include '(separator . t). The way it is done at the moment (in query-replace-read-from) is simply to bind that variable, in the hope that that binding will be the one seen by the minibuffer. When the variable has a buffer local binding in the current buffer, this doesn't work - the minibuffer only sees the global binding. This has led to bug #23127 Where is the function `current-minibuffer'? With it, I could create a local binding in the minibuffer. Where is the functionality to bind the default value of a variable? Any other ideas? -- Alan Mackenzie (Nuremberg, Germany).