summaryrefslogtreecommitdiff
path: root/test/lisp
diff options
context:
space:
mode:
authorMorgan Smith <Morgan.J.Smith@outlook.com>2023-07-11 14:08:24 -0400
committerEli Zaretskii <eliz@gnu.org>2023-07-20 19:03:50 +0300
commit65108998b1ee0b42b57d478ba3b51f9040f04cd4 (patch)
tree709f84e4b598453441cab235474f84b7cdc36b29 /test/lisp
parent3c041e3e964008b8627854235188d16ff7a59839 (diff)
downloademacs-65108998b1ee0b42b57d478ba3b51f9040f04cd4.tar.gz
emacs-65108998b1ee0b42b57d478ba3b51f9040f04cd4.tar.bz2
emacs-65108998b1ee0b42b57d478ba3b51f9040f04cd4.zip
docview: imenu: check return value of 'mutool'
While 'mutool' supports many filetypes, 'mutool show' only supports PDF files. This would lead to cryptic imenu errors when opening other file types (like EPUB) since we would parse the error output. During my testing this caused 'imenu--index-alist' to have a value of '(nil). * lisp/doc-view.el (doc-view--pdf-outline): Error when 'mutool' returns an error. Use 'call-process' to get the return value and remove the call to 'shell-quote-argument' as 'call-process' doesn't want any escapes. (doc-view-mode): Handle possible error from 'doc-view-imenu-setup'. (doc-view-imenu-enabled): Remove superfluous (and ... t). (doc-view-imenu-setup): Remove check for mutool already ensured by 'doc-view-imenu-enabled' being non-nil. (Bug#64516)
Diffstat (limited to 'test/lisp')
0 files changed, 0 insertions, 0 deletions