emacs-devel
[Top][All Lists]
Advanced

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

Re: Info-mode patch


From: Juri Linkov
Subject: Re: Info-mode patch
Date: Mon, 26 Jun 2023 20:56:19 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> -(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)))



reply via email to

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