[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex edc5e2ff63 09/11: Call Texdoc coherently
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex edc5e2ff63 09/11: Call Texdoc coherently |
Date: |
Tue, 31 Jan 2023 10:41:27 -0500 (EST) |
branch: externals/auctex
commit edc5e2ff63f6777d81e0293eb69d47d3b5a0658f
Author: Ikumi Keita <ikumi@ikumi.que.jp>
Commit: Ikumi Keita <ikumi@ikumi.que.jp>
Call Texdoc coherently
* tex.el (TeX-documentation-texdoc): Use `call-process' rather than
`shell-command-to-string' to invoke Texdoc.
Bind buffer object of working buffer rather than its name to `buffer'.
Capitalize Texdoc in the doc string. (It seems that's the proper name
according to its documentation shown by "texdoc texdoc".)
---
tex.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tex.el b/tex.el
index 628f036259..9328c525a1 100644
--- a/tex.el
+++ b/tex.el
@@ -6382,7 +6382,7 @@ tracker. Visit ")
;;; Documentation
(defun TeX-documentation-texdoc (&optional arg)
- "Run texdoc to read documentation.
+ "Run Texdoc to read documentation.
Prompt for selection of the package of which to show the documentation.
@@ -6402,11 +6402,11 @@ show."
(progn
;; Create the buffer, insert the result of the command,
;; and accumulate the list of manuals.
- (with-current-buffer (get-buffer-create
- (setq buffer (format "*texdoc: %s*" pkg)))
+ (with-current-buffer
+ (setq buffer (get-buffer-create (format "*texdoc: %s*" pkg)))
(erase-buffer)
- (insert (shell-command-to-string
- (concat "texdoc --list --nointeract " pkg)))
+ (call-process "texdoc" nil t nil
+ "--list" "--nointeract" pkg)
(goto-char 1) ; No need to use `point-min' here.
(while (re-search-forward
"^ *\\([0-9]+\\) +\\([-~/a-zA-Z0-9_.${}#%,:\\ ()]+\\)"
@@ -6419,7 +6419,7 @@ show."
;; buffer, prompt for the number of the manual,
;; then run
;; texdoc --just-view <doc>
- (TeX-pop-to-buffer (get-buffer buffer))
+ (TeX-pop-to-buffer buffer)
(condition-case nil
(when (setq doc
(cdr (assoc (TeX-read-string "Please \
- [elpa] externals/auctex updated (ebd714ef81 -> a2a6ab9f22), Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 6ccc3d4149 03/11: Remove Emacs 24.3 compat code, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 03885c7627 02/11: Silence compiler warning, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex c2fdf896a6 04/11: * style/multibib.el: Replace `TeX-arg-eval'., Tassilo Horn, 2023/01/31
- [elpa] externals/auctex f5d40daa95 07/11: ; * style/nameref.el ("nameref"): Fix comment., Tassilo Horn, 2023/01/31
- [elpa] externals/auctex adbdce6a27 05/11: Pacify compiler warning, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex edc5e2ff63 09/11: Call Texdoc coherently,
Tassilo Horn <=
- [elpa] externals/auctex 3ceb011395 06/11: * style/multido.el ("multido"): Fix query prompt., Tassilo Horn, 2023/01/31
- [elpa] externals/auctex e7379b3fec 01/11: Simplify version and date specification, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 2bc07b78ff 08/11: Fix `TeX-documentation-texdoc' for okular, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex 38d8561add 10/11: Add a paragraph to Texdoc section in the documentation, Tassilo Horn, 2023/01/31
- [elpa] externals/auctex a2a6ab9f22 11/11: Merge remote-tracking branch 'origin/master' into externals/auctex, Tassilo Horn, 2023/01/31