unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* How do I bind a variable for the minibuffer's use?
@ 2016-03-28 18:43 Alan Mackenzie
  2016-03-28 18:53 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alan Mackenzie @ 2016-03-28 18:43 UTC (permalink / raw)
  To: emacs-devel

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).



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-03-28 18:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-28 18:43 How do I bind a variable for the minibuffer's use? Alan Mackenzie
2016-03-28 18:53 ` Eli Zaretskii
2016-03-28 18:57 ` Andreas Schwab
2016-03-28 18:59 ` Stefan Monnier

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).