@item user-error
The message is the empty string. @xref{Signaling Errors}.
+@item user-search-failed
+This is like @samp{search-failed}, but doesn't trigger the debugger,
+like @samp{user-error}. @xref{Signaling Errors}, and @xref{Searching
+and Matching}. This is used for searching in Info files, @xref{Search
+Text,,,info,Info}.
+
@item void-function
The message is @samp{Symbol's function definition is void}.
@xref{Function Cells}.
*** New command 'window-swap-states' swaps the states of two live
windows.
++++
+*** New error type 'user-search-failed' like 'search-failed' but
+avoids debugger like 'user-error'.
+
\f
* Changes in Emacs 26.1 on Non-Free Operating Systems
Info-isearch-initial-node
bound
(and found (> found opoint-min) (< found opoint-max)))
- (user-error "Search failed: `%s' (end of node)" regexp))
+ (signal 'user-search-failed (list regexp "(end of node)")))
;; If no subfiles, give error now.
(unless (or found Info-current-subfile)
(if isearch-mode
- (user-error "Search failed: `%s' (end of manual)" regexp)
+ (signal 'user-search-failed (list regexp "end of manual"))
(let ((search-spaces-regexp Info-search-whitespace-regexp))
(unless (if backward
(re-search-backward regexp nil t)
(re-search-forward regexp nil t))
- (user-error "Search failed: `%s'" regexp)))))
+ (signal 'user-seach-failed (list regexp))))))
(if (and bound (not found))
- (user-error "Search failed: `%s'" regexp))
+ (signal 'user-search-failed (list regexp)))
(unless (or found bound)
(unwind-protect
(setq list nil)))
(if found
(message "")
- (user-error "Search failed: `%s'%s"
- regexp (if isearch-mode " (end of manual)" ""))))
+ (signal 'user-search-failed
+ `(,regexp ,@(if isearch-mode '("end of manual"))))))
(if (not found)
(progn (Info-read-subfile osubfile)
(goto-char opoint)
/* Error condition used for failing searches. */
DEFSYM (Qsearch_failed, "search-failed");
+ /* Error condition used for failing searches started by user, i.e.,
+ where failure should not invoke the debugger. */
+ DEFSYM (Quser_search_failed, "user-search-failed");
+
/* Error condition signaled when regexp compile_pattern fails. */
DEFSYM (Qinvalid_regexp, "invalid-regexp");
Fput (Qsearch_failed, Qerror_message,
build_pure_c_string ("Search failed"));
+ Fput (Quser_search_failed, Qerror_conditions,
+ listn (CONSTYPE_PURE, 4,
+ Quser_search_failed, Quser_error, Qsearch_failed, Qerror));
+ Fput (Quser_search_failed, Qerror_message,
+ build_pure_c_string ("Search failed"));
+
Fput (Qinvalid_regexp, Qerror_conditions,
listn (CONSTYPE_PURE, 2, Qinvalid_regexp, Qerror));
Fput (Qinvalid_regexp, Qerror_message,