emacs-devel
[Top][All Lists]
Advanced

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

Re: Control help- and Info-mode buffers from other buffers


From: Eli Zaretskii
Subject: Re: Control help- and Info-mode buffers from other buffers
Date: Fri, 02 Jun 2023 18:16:47 +0300

> From: Arthur Miller <arthur.miller@live.com>
> Cc: juri@linkov.net,  manuel@ledu-giraud.fr,  emacs-devel@gnu.org
> Date: Fri, 02 Jun 2023 17:09:36 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> >   (with-selected-window (get-buffer-window "*info*")
> >> >     BODY...
> >> No you need a bit more than that sometimes. In case that interactive is 
> >> doing
> >> some prompting and buffer dependent setup, you will have to wrap 
> >> interactive
> >> body for itself, and function body for itself. See Info-mode or Info-find 
> >> (I
> >> think) in patch, but conceptually, yes that is about it. If you can live 
> >> with
> >> wrapping commands in with-selected-window. Due to fact that interactive 
> >> form
> >> must be the first form in a function body.
> >
> > You also have call-interactively, which can work around this minor
> > obstacle.
> 
> Can it? I am talking about interactive "marker" when in defun 
> impelementation; not
> calling interactive functions. 

Maybe I don't understand the problem you have in mind.

In any case, whatever the problem is, I'm sure we already have a
solution for it in gazillion other similar cases.



reply via email to

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