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: Wed, 05 Jul 2023 09:17:20 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu)

> Incosistent with what?

Incosistent with 'C-x M-:' (repeat-complex-command) that is used
to repeat a previous command with its arguments.  With this
additional 'declare' form:

  (defun Info-menu-other-window (window &rest args)
    (declare (interactive-args (window (info-window))))
    (interactive
     (let ((window (info-window)))
       (with-current-buffer (window-buffer window)
         (cons window (eval (cadr (interactive-form 'Info-menu)))))))
    (with-selected-window window
      (apply #'Info-menu args)))

'C-x M-:' will show the arguments of the previous command as

  (Info-menu-other-window (info-window) args...)

that you can safely repeat by just typing RET.



reply via email to

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