comparison lisp/info.el @ 14319:e39a2eb75dbe

(Info-edit, Info-goto-emacs-command-node): Pass proper format string to message.
author Karl Heuer <kwzh@gnu.org>
date Thu, 25 Jan 1996 00:54:59 +0000
parents 83f275dcd93a
children 87fde6ef6c95
comparison
equal deleted inserted replaced
14318:faae84d059c1 14319:e39a2eb75dbe
1630 Allowed only if variable `Info-enable-edit' is non-nil." 1630 Allowed only if variable `Info-enable-edit' is non-nil."
1631 (interactive) 1631 (interactive)
1632 (or Info-enable-edit 1632 (or Info-enable-edit
1633 (error "Editing info nodes is not enabled")) 1633 (error "Editing info nodes is not enabled"))
1634 (Info-edit-mode) 1634 (Info-edit-mode)
1635 (message (substitute-command-keys 1635 (message "%s" (substitute-command-keys
1636 "Editing: Type \\<Info-edit-map>\\[Info-cease-edit] to return to info"))) 1636 "Editing: Type \\<Info-edit-map>\\[Info-cease-edit] to return to info")))
1637 1637
1638 (defun Info-cease-edit () 1638 (defun Info-cease-edit ()
1639 "Finish editing Info node; switch back to Info proper." 1639 "Finish editing Info node; switch back to Info proper."
1640 (interactive) 1640 (interactive)
1728 (progn 1728 (progn
1729 ;; Info-find-node already pushed (car where) onto 1729 ;; Info-find-node already pushed (car where) onto
1730 ;; Info-history. Put the other nodes that were found on 1730 ;; Info-history. Put the other nodes that were found on
1731 ;; the history. 1731 ;; the history.
1732 (setq Info-history (nconc (cdr where) Info-history)) 1732 (setq Info-history (nconc (cdr where) Info-history))
1733 (message (substitute-command-keys 1733 (message "Found %d other entr%s. Use %s to see %s."
1734 "Found %d other entr%s. Use \\[Info-last] to see %s.")
1735 (1- num-matches) 1734 (1- num-matches)
1736 (if (> num-matches 2) "ies" "y") 1735 (if (> num-matches 2) "ies" "y")
1736 (substitute-command-keys "\\[Info-last]")
1737 (if (> num-matches 2) "them" "it"))))) 1737 (if (> num-matches 2) "them" "it")))))
1738 (error "Couldn't find documentation for %s." command)))) 1738 (error "Couldn't find documentation for %s." command))))
1739 1739
1740 ;;;###autoload 1740 ;;;###autoload
1741 (defun Info-goto-emacs-key-command-node (key) 1741 (defun Info-goto-emacs-key-command-node (key)