emacs-devel
[Top][All Lists]
Advanced

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

Re: Info-mode patch


From: Eli Zaretskii
Subject: Re: Info-mode patch
Date: Tue, 27 Jun 2023 14:45:53 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: emacs-devel@gnu.org
> Date: Mon, 26 Jun 2023 20:56:19 +0300
> 
> > -(defun Info-directory ()
> > +(defun Info-directory (&optional window)
> >    "Go to the Info directory node."
> >    (interactive)
> > -  (Info-find-node "dir" "top"))
> > +  (with-selected-window (or window (info-window))
> > +    (Info-find-node "dir" "top")))
> 
> I wonder why you modified a lot of commands instead of implementing
> a non-intrusive approach of creating standard wrapper commands like
> 
>   (defun Info-directory-other-window (&optional window)
>      "Go to the Info directory node in another window."
>      (interactive)
>      (with-selected-window (or window (info-window))
>        (Info-directory)))

Someone, I think it was Stefan, suggested to use a kind of "universal
window argument", similar to "C-x RET c" (which is bound to
universal-coding-system-argument, and allows to specify a
coding-system for the next command.  Wouldn't that approach resulted
in a cleaner, more elegant solution?



reply via email to

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