emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls


From: Kyle Meyer
Subject: Re: [O] [PATCH v2] org-sort: Read compare-func in interactive calls
Date: Sun, 14 May 2017 16:54:45 -0400

Nicolas Goaziou <address@hidden> writes:

> Kyle Meyer <address@hidden> writes:

[...]

>> Using an additional argument whose only purpose is to serve as a
>> interactive flag, which is what called-interactively-p's docstring
>> suggests, avoids these issues.
>
> I'd rather avoid this. What about using
>
>   (not (or executing-kbd-macro noninteractive))
>
> then, and not touch to signature?

I'm confused why called-interactively-p's docstring suggests that form.
At any rate, it won't do here:

    (funcall (lambda ()
               (interactive)
               (not (or executing-kbd-macro noninteractive))))
    ⇒ t

    (call-interactively (lambda ()
                          (interactive)
                          (not (or executing-kbd-macro noninteractive))))
    ⇒ t

-- 
Kyle



reply via email to

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