emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs master + org Wrong type argument: number-or-marker-p


From: Mattias Engdegård
Subject: Re: emacs master + org Wrong type argument: number-or-marker-p
Date: Mon, 1 Aug 2022 20:47:04 +0200

1 aug. 2022 kl. 20.06 skrev Gregory Heytings <gregory@heytings.org>:

> Is it not allowed to specbind in a function and to unbind in its caller?

No, functions must be balanced with respect to the specbind stack. The bytecode 
machinery assumes this to be the case.

If you want a special behaviour for narrow-to-region over a dynamic extent, 
just bind a dynamic variable. Or, if that is insufficient, write a new function 
for it that takes a body function as argument which is called with the 
necessary clean-up done afterwards. Or implement it as a Lisp macro.

So please revert all changes relating to the new narrow-to-region argument and 
submit a new patch. It's better than somehow trying to patch up the current 
unworkable approach.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]