diff options
Diffstat (limited to 'lisp/ffap.el')
| -rw-r--r-- | lisp/ffap.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el index 037b978b6fb..abf979f6129 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; ffap.el --- find file (or url) at point | 1 | ;;; ffap.el --- find file (or url) at point |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995-1997, 2000-2015 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1995-1997, 2000-2016 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Michelangelo Grigni <mic@mathcs.emory.edu> | 5 | ;; Author: Michelangelo Grigni <mic@mathcs.emory.edu> |
| 6 | ;; Maintainer: emacs-devel@gnu.org | 6 | ;; Maintainer: emacs-devel@gnu.org |
| @@ -974,14 +974,14 @@ out of NAME." | |||
| 974 | (push (cons "" (cdr (assoc (match-string 0) ; i.e. "(TeX-current-macro)" | 974 | (push (cons "" (cdr (assoc (match-string 0) ; i.e. "(TeX-current-macro)" |
| 975 | preferred-suffix-rules))) | 975 | preferred-suffix-rules))) |
| 976 | guess-rules)) | 976 | guess-rules)) |
| 977 | (setq kpsewhich-args (mapcar (lambda (rule) | ||
| 978 | (concat (car rule) name (cdr rule))) | ||
| 979 | guess-rules)) | ||
| 980 | (with-temp-buffer | 977 | (with-temp-buffer |
| 981 | (let ((process-environment (buffer-local-value | 978 | (let ((process-environment (buffer-local-value |
| 982 | 'process-environment curbuf)) | 979 | 'process-environment curbuf)) |
| 983 | (exec-path (buffer-local-value 'exec-path curbuf))) | 980 | (exec-path (buffer-local-value 'exec-path curbuf))) |
| 984 | (apply #'call-process "kpsewhich" nil t nil kpsewhich-args)) | 981 | (apply #'call-process "kpsewhich" nil t nil |
| 982 | (mapcar (lambda (rule) | ||
| 983 | (concat (car rule) name (cdr rule))) | ||
| 984 | guess-rules))) | ||
| 985 | (when (< (point-min) (point-max)) | 985 | (when (< (point-min) (point-max)) |
| 986 | (buffer-substring (goto-char (point-min)) (point-at-eol)))))))) | 986 | (buffer-substring (goto-char (point-min)) (point-at-eol)))))))) |
| 987 | 987 | ||