emacs-devel
[Top][All Lists]
Advanced

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

RE: Delete variables obsolete since Emacs 23


From: Drew Adams
Subject: RE: Delete variables obsolete since Emacs 23
Date: Mon, 24 Aug 2020 21:06:23 -0700 (PDT)

>   > > interactive-p is used too much in the wild for us to ever delete it.
>   > > It should stay marked as obsolete, but with a comment saying "never
>   > > delete" or something, because removing it will break too much code
>   > > out there.
> 
> I agree we should never delete it, for that good reason.

Good.  That was the (only) point in question.

> But we made it obsolete for a good reason, too: any program which
> uses will misbehave in some unusual cases.  The only way to get
> fully correct behavior is to eliminate the calls to interactive-p,
> and instead use an optional argument which gets a non-nil value
> in an interactive call.
> 
> All the calls in the Emacs code have been replaced.

Uh, no, I don't think so.

(interactive-p) == (called-interactively-p 'interactive)

Grepping tells me there are 258 occurrences of the
latter in the Lisp code distributed with Emacs.



reply via email to

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