auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why use command to match against TeX-command-output-list instead of *nam


From: Shiyao MA
Subject: Why use command to match against TeX-command-output-list instead of *name* ?
Date: Tue, 19 Nov 2019 13:56:21 +0800

Hi,


Why use command to match against TeX-command-output-list instead of *name* ?


For example, in =tex-buf.el=, 

(defun TeX-run-set-command (name command)
  "Remember TeX command to use to NAME and set corresponding output extension."
  (setq TeX-command-default name
TeX-output-extension
(if (and (null (TeX-PDF-from-DVI)) TeX-PDF-mode) "pdf" "dvi"))
  (let ((case-fold-search t)
(lst TeX-command-output-list))
    (while lst
      ******************          (if (string-match (car (car lst)) command) **********************************
 (setq TeX-output-extension (car (cdr (car lst)))
lst nil)
(setq lst (cdr lst))))))


Matching against *name* instead of *command* will be more natural and flexible.
--
Best,
Shiyao

reply via email to

[Prev in Thread] Current Thread [Next in Thread]