diff options
| author | K. Handa | 2016-01-14 21:55:43 +0900 |
|---|---|---|
| committer | K. Handa | 2016-01-14 21:55:43 +0900 |
| commit | 641a3472ef245157ebcb2114f2d608cb3cb401a7 (patch) | |
| tree | 85e524c8d12caca29588382205f536b2008edc55 /lisp/ffap.el | |
| parent | 9835757013569673854b692ccbb58bfb3c3ed1f7 (diff) | |
| parent | ee83b77f5ddede0fed518d0c23cf0ae38ce5b745 (diff) | |
| download | emacs-641a3472ef245157ebcb2114f2d608cb3cb401a7.tar.gz emacs-641a3472ef245157ebcb2114f2d608cb3cb401a7.zip | |
Merge branch 'master' of git.sv.gnu.org:/srv/git/emacs
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 | ||