mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-03 10:53:23 +00:00
Signal user-error in info--ensure-not-in-directory-node
* lisp/info.el (info--ensure-not-in-directory-node): Change from 'error' to 'user-error' to reduce 'debug-on-error' frustration.
This commit is contained in:
parent
1e68351d56
commit
c00170e92c
1 changed files with 3 additions and 3 deletions
|
@ -3475,9 +3475,9 @@ If FILE is nil, check the current Info file."
|
||||||
(defun info--ensure-not-in-directory-node ()
|
(defun info--ensure-not-in-directory-node ()
|
||||||
(if (equal (downcase (file-name-nondirectory Info-current-file))
|
(if (equal (downcase (file-name-nondirectory Info-current-file))
|
||||||
"dir")
|
"dir")
|
||||||
(error (substitute-command-keys
|
(user-error (substitute-command-keys
|
||||||
(concat "The Info directory node has no index; "
|
(concat "The Info directory node has no index; "
|
||||||
"type \\[Info-menu] to select a manual")))))
|
"type `\\[Info-menu]' to select a manual")))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun Info-index (topic)
|
(defun Info-index (topic)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue