mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-23 18:47:57 +00:00
* lisp/ffap.el (ffap-latex-mode): Avoid free variable.
This commit is contained in:
parent
1a6b0846b5
commit
2a9532d592
@ -974,14 +974,14 @@ out of NAME."
|
||||
(push (cons "" (cdr (assoc (match-string 0) ; i.e. "(TeX-current-macro)"
|
||||
preferred-suffix-rules)))
|
||||
guess-rules))
|
||||
(setq kpsewhich-args (mapcar (lambda (rule)
|
||||
(concat (car rule) name (cdr rule)))
|
||||
guess-rules))
|
||||
(with-temp-buffer
|
||||
(let ((process-environment (buffer-local-value
|
||||
'process-environment curbuf))
|
||||
(exec-path (buffer-local-value 'exec-path curbuf)))
|
||||
(apply #'call-process "kpsewhich" nil t nil kpsewhich-args))
|
||||
(apply #'call-process "kpsewhich" nil t nil
|
||||
(mapcar (lambda (rule)
|
||||
(concat (car rule) name (cdr rule)))
|
||||
guess-rules)))
|
||||
(when (< (point-min) (point-max))
|
||||
(buffer-substring (goto-char (point-min)) (point-at-eol))))))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user