From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: How do I bind a variable for the minibuffer's use?
Date: Mon, 28 Mar 2016 18:43:55 +0000 [thread overview]
Message-ID: <20160328184354.GA5095@acm.fritz.box> (raw)
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).
next reply other threads:[~2016-03-28 18:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-28 18:43 Alan Mackenzie [this message]
2016-03-28 18:53 ` How do I bind a variable for the minibuffer's use? Eli Zaretskii
2016-03-28 18:57 ` Andreas Schwab
2016-03-28 18:59 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160328184354.GA5095@acm.fritz.box \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).