[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#25132: 26.0.50; emacs hangs when loading org file with python source
bug#25132: 26.0.50; emacs hangs when loading org file with python source blocks
Thu, 19 Jan 2017 19:52:18 -0500
Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)
Dmitry Gutov <address@hidden> writes:
> On 08.01.2017 00:20, address@hidden wrote:
>> - (inhibit-modification-hooks t))
>> + (inhibit-modification-hooks
>> + (progn (make-local-variable 'inhibit-modification-hooks) t)))
> Are we not worried that inhibit-modificaiton-hooks will become
> buffer-local even after control flow leaves this let*?
My feeling is that inhibit-modification-hooks should usually be buffer
> If we are not, why not make inhibit-modification-hooks always
> buffer-local instead?
It would have to be in addition to, because even after doing
(make-variable-buffer-local 'var), (let ((var 'foo))...) still makes a
global binding. `make-variable-buffer-local' only has effect for
`setq', which I think will hardly ever happen for
Actually, I just grepped for inhibit-modification-hooks and the only
non-let I found is this:
(defun read-passwd (prompt &optional confirm default)
(setq-local inhibit-modification-hooks nil) ;bug#15501.