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 ()
|
||||
(if (equal (downcase (file-name-nondirectory Info-current-file))
|
||||
"dir")
|
||||
(error (substitute-command-keys
|
||||
(concat "The Info directory node has no index; "
|
||||
"type \\[Info-menu] to select a manual")))))
|
||||
(user-error (substitute-command-keys
|
||||
(concat "The Info directory node has no index; "
|
||||
"type `\\[Info-menu]' to select a manual")))))
|
||||
|
||||
;;;###autoload
|
||||
(defun Info-index (topic)
|
||||
|
|
Loading…
Add table
Reference in a new issue