diff options
| author | Noam Postavsky | 2017-03-23 23:54:58 -0400 |
|---|---|---|
| committer | Noam Postavsky | 2017-03-27 20:18:20 -0400 |
| commit | a62437d4b933825a92ac3836836edbca3540fa1c (patch) | |
| tree | ca39de58a02872e68f6f27449179f913d64d76b7 | |
| parent | 55086ef6517bd7294783d08d2b3cd50c330a9e96 (diff) | |
| download | emacs-a62437d4b933825a92ac3836836edbca3540fa1c.tar.gz emacs-a62437d4b933825a92ac3836836edbca3540fa1c.zip | |
Don't add `search-failed' to ignored errors in info.el (Bug#6106)
* lisp/info.el: Stop adding `search-failed' to `debug-ignored-errors'.
(Info-select-node, Info-search): Replace (signal 'search-failed ...)
with (user-error "Search failed: "...).
| -rw-r--r-- | lisp/info.el | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/lisp/info.el b/lisp/info.el index 8dc85f48a43..a06c868fb3d 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1672,7 +1672,7 @@ escaped (\\\",\\\\)." | |||
| 1672 | (forward-line 2) | 1672 | (forward-line 2) |
| 1673 | (if (looking-at "\^_") | 1673 | (if (looking-at "\^_") |
| 1674 | (forward-line 1) | 1674 | (forward-line 1) |
| 1675 | (signal 'search-failed (list "\n\^_")))) | 1675 | (user-error "Search failed: `\n\^_'"))) |
| 1676 | ;; Get nodename spelled as it is in the node. | 1676 | ;; Get nodename spelled as it is in the node. |
| 1677 | (re-search-forward "Node:[ \t]*") | 1677 | (re-search-forward "Node:[ \t]*") |
| 1678 | (setq Info-current-node | 1678 | (setq Info-current-node |
| @@ -1998,19 +1998,20 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1998 | Info-isearch-initial-node | 1998 | Info-isearch-initial-node |
| 1999 | bound | 1999 | bound |
| 2000 | (and found (> found opoint-min) (< found opoint-max))) | 2000 | (and found (> found opoint-min) (< found opoint-max))) |
| 2001 | (signal 'search-failed (list regexp "end of node"))) | 2001 | (user-error "Search failed: `%s' (end of node)" regexp)) |
| 2002 | 2002 | ||
| 2003 | ;; If no subfiles, give error now. | 2003 | ;; If no subfiles, give error now. |
| 2004 | (unless (or found Info-current-subfile) | 2004 | (unless (or found Info-current-subfile) |
| 2005 | (if isearch-mode | 2005 | (if isearch-mode |
| 2006 | (signal 'search-failed (list regexp "end of manual")) | 2006 | (user-error "Search failed: `%s' (end of manual)" regexp) |
| 2007 | (let ((search-spaces-regexp Info-search-whitespace-regexp)) | 2007 | (let ((search-spaces-regexp Info-search-whitespace-regexp)) |
| 2008 | (if backward | 2008 | (unless (if backward |
| 2009 | (re-search-backward regexp) | 2009 | (re-search-backward regexp nil t) |
| 2010 | (re-search-forward regexp))))) | 2010 | (re-search-forward regexp nil t)) |
| 2011 | (user-error "Search failed: `%s'" regexp))))) | ||
| 2011 | 2012 | ||
| 2012 | (if (and bound (not found)) | 2013 | (if (and bound (not found)) |
| 2013 | (signal 'search-failed (list regexp))) | 2014 | (user-error "Search failed: `%s'" regexp)) |
| 2014 | 2015 | ||
| 2015 | (unless (or found bound) | 2016 | (unless (or found bound) |
| 2016 | (unwind-protect | 2017 | (unwind-protect |
| @@ -2054,9 +2055,8 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 2054 | (setq list nil))) | 2055 | (setq list nil))) |
| 2055 | (if found | 2056 | (if found |
| 2056 | (message "") | 2057 | (message "") |
| 2057 | (signal 'search-failed (if isearch-mode | 2058 | (user-error "Search failed: `%s'%s" |
| 2058 | (list regexp "end of manual") | 2059 | regexp (if isearch-mode " (end of manual)" "")))) |
| 2059 | (list regexp))))) | ||
| 2060 | (if (not found) | 2060 | (if (not found) |
| 2061 | (progn (Info-read-subfile osubfile) | 2061 | (progn (Info-read-subfile osubfile) |
| 2062 | (goto-char opoint) | 2062 | (goto-char opoint) |
| @@ -5237,9 +5237,6 @@ BUFFER is the buffer speedbar is requesting buttons for." | |||
| 5237 | (erase-buffer)) | 5237 | (erase-buffer)) |
| 5238 | (Info-speedbar-hierarchy-buttons nil 0)) | 5238 | (Info-speedbar-hierarchy-buttons nil 0)) |
| 5239 | 5239 | ||
| 5240 | ;; FIXME: Really? Why here? | ||
| 5241 | (add-to-list 'debug-ignored-errors 'search-failed) | ||
| 5242 | |||
| 5243 | ;;;; Desktop support | 5240 | ;;;; Desktop support |
| 5244 | 5241 | ||
| 5245 | (defun Info-desktop-buffer-misc-data (_desktop-dirname) | 5242 | (defun Info-desktop-buffer-misc-data (_desktop-dirname) |