From 23e981e047914eca4d340751909e7c7cf8668bd1 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Wed, 26 Mar 2025 21:39:18 +0100 Subject: [PATCH] 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. (cherry picked from commit c00170e92c5c3f68734e0e2d632d6efdcbb9c969) --- lisp/info.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lisp/info.el b/lisp/info.el index 48902a9f5c8..5b52eb20d83 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -3514,9 +3514,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) -- 2.39.5