all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: 19492@debbugs.gnu.org, Reuben Thomas <rrt@sc3d.org>
Subject: bug#19492: How to neatly call interactive commands interactively?
Date: Fri, 02 Aug 2019 22:46:24 -0400	[thread overview]
Message-ID: <874l2zt18f.fsf@gmail.com> (raw)
In-Reply-To: <87ef23mi2r.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Fri, 02 Aug 2019 22:24:28 +0200")

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	other threads:[~2019-08-03  2:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-02 22:09 bug#19492: How to neatly call interactive commands interactively? Reuben Thomas
2019-08-02 20:24 ` Lars Ingebrigtsen
2019-08-03  2:46   ` Noam Postavsky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874l2zt18f.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=19492@debbugs.gnu.org \
    --cc=larsi@gnus.org \
    --cc=rrt@sc3d.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.