[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-25 f99b512: In M-%, avoid making buffer-local bi
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] emacs-25 f99b512: In M-%, avoid making buffer-local binding of text-property-default-nonsticky |
Date: |
Tue, 29 Mar 2016 18:47:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) |
> But very clumsy. You can't bind a variable in this sort of hook. So
> you have to save the current value somewhere, set the value you want,
> then hope that you can restore the original value afterwards (which you
> probably can, but you can't according to the (inadequate) doc string of
> minibuffer-exit-hook).
No, you set it unconditionally and without looking back.
Think of it as setting up a major mode.
Stefan