aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/htmlfontify.el
diff options
context:
space:
mode:
authorAlan Mackenzie2017-02-12 10:59:03 +0000
committerAlan Mackenzie2017-02-12 10:59:03 +0000
commitf4d5b687150810129b7a1d5b006e31ccf82b691b (patch)
tree4229b13800349032697daae3904dc3773e6b7a80 /lisp/htmlfontify.el
parentd5514332d4a6092673ce1f78fadcae0c57f7be64 (diff)
parent148100d98319499f0ac6f57b8be08cbd14884a5c (diff)
downloademacs-comment-cache.tar.gz
emacs-comment-cache.zip
Merge branch 'master' into comment-cachecomment-cache
Diffstat (limited to 'lisp/htmlfontify.el')
-rw-r--r--lisp/htmlfontify.el12
1 files changed, 9 insertions, 3 deletions
diff --git a/lisp/htmlfontify.el b/lisp/htmlfontify.el
index 21aac1ab216..74393ffbaeb 100644
--- a/lisp/htmlfontify.el
+++ b/lisp/htmlfontify.el
@@ -365,9 +365,15 @@ commands in `hfy-etags-cmd-alist'."
365 365
366(defun hfy-which-etags () 366(defun hfy-which-etags ()
367 "Return a string indicating which flavor of etags we are using." 367 "Return a string indicating which flavor of etags we are using."
368 (let ((v (shell-command-to-string (concat hfy-etags-bin " --version")))) 368 (with-temp-buffer
369 (cond ((string-match "exube" v) "exuberant ctags") 369 (condition-case nil
370 ((string-match "GNU E" v) "emacs etags" )) )) 370 (when (eq (call-process hfy-etags-bin nil t nil "--version") 0)
371 (goto-char (point-min))
372 (cond
373 ((looking-at-p "exube") "exuberant ctags")
374 ((looking-at-p "GNU E") "emacs etags")))
375 ;; Return nil if the etags binary isn't executable (Bug#25468).
376 (file-error nil))))
371 377
372(defcustom hfy-etags-cmd 378(defcustom hfy-etags-cmd
373 ;; We used to wrap this in a `eval-and-compile', but: 379 ;; We used to wrap this in a `eval-and-compile', but: