bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#19492: How to neatly call interactive commands interactively?


From: Noam Postavsky
Subject: bug#19492: How to neatly call interactive commands interactively?
Date: Fri, 02 Aug 2019 22:46:24 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> I don't think there's any way to do what you want.  (Somebody correct me
> if I'm wrong.)  And I don't really see how an interface that does this
> would work, really.  Something like

> (with-everything-interactive-if-this-is-interactive
>   (adaptive-wrap-prefix-mode)
>   (window-margin-mode))

I think it would be more like

    (funcall-preserving-interactiveness 'adaptive-wrap-prefix-mode)
    (funcall-preserving-interactiveness 'window-margin-mode)

The main implementation of this would really be called-interactively-p,
when it examines the call stack.

> Well, in this case that would be a pretty trivial macro to write, but I
> don't see this as being generally useful.  So I'm closing this as a
> "wontfix".

That said, while I don't think it's impossible, I don't know if it's
really worth the trouble.






reply via email to

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