diff options
| author | Kenichi Handa | 2012-09-17 01:18:23 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2012-09-17 01:18:23 +0900 |
| commit | 0b97c030c678e7c77766e13e615ef2ce8394860a (patch) | |
| tree | a13ca606850984cbe16de5ac89753e6bfdd957e3 | |
| parent | 85a43e2ea45592610c43a25468aabef921c709f8 (diff) | |
| parent | 1667e065d0720c65efc0c5385b9efb9f75b318c1 (diff) | |
| download | emacs-0b97c030c678e7c77766e13e615ef2ce8394860a.tar.gz emacs-0b97c030c678e7c77766e13e615ef2ce8394860a.zip | |
merge trunk
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 23 |
2 files changed, 9 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a7538e50d82..b444761e55c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2012-09-16 Chong Yidong <cyd@gnu.org> | 1 | 2012-09-16 Chong Yidong <cyd@gnu.org> |
| 2 | 2 | ||
| 3 | * files.el (parse-colon-path): Use split-string (Bug#12351). | ||
| 4 | |||
| 3 | * window.el (special-display-popup-frame): Doc fix (Bug#8853). | 5 | * window.el (special-display-popup-frame): Doc fix (Bug#8853). |
| 4 | (display-buffer-function): Mark as obsolete. | 6 | (display-buffer-function): Mark as obsolete. |
| 5 | 7 | ||
diff --git a/lisp/files.el b/lisp/files.el index 4acdb542089..289f5c6b0b6 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -658,22 +658,13 @@ Not actually set up until the first time you use it.") | |||
| 658 | 658 | ||
| 659 | (defun parse-colon-path (search-path) | 659 | (defun parse-colon-path (search-path) |
| 660 | "Explode a search path into a list of directory names. | 660 | "Explode a search path into a list of directory names. |
| 661 | Directories are separated by occurrences of `path-separator' | 661 | Directories are separated by `path-separator' (which is colon in |
| 662 | \(which is colon in GNU and GNU-like systems)." | 662 | GNU and Unix systems). Substitute environment variables into the |
| 663 | ;; We could use split-string here. | 663 | resulting list of directory names." |
| 664 | (and search-path | 664 | (when (stringp search-path) |
| 665 | (let (cd-list (cd-start 0) cd-colon) | 665 | (mapcar (lambda (f) |
| 666 | (setq search-path (concat search-path path-separator)) | 666 | (substitute-in-file-name (file-name-as-directory f))) |
| 667 | (while (setq cd-colon (string-match path-separator search-path cd-start)) | 667 | (split-string search-path path-separator t)))) |
| 668 | (setq cd-list | ||
| 669 | (nconc cd-list | ||
| 670 | (list (if (= cd-start cd-colon) | ||
| 671 | nil | ||
| 672 | (substitute-in-file-name | ||
| 673 | (file-name-as-directory | ||
| 674 | (substring search-path cd-start cd-colon))))))) | ||
| 675 | (setq cd-start (+ cd-colon 1))) | ||
| 676 | cd-list))) | ||
| 677 | 668 | ||
| 678 | (defun cd-absolute (dir) | 669 | (defun cd-absolute (dir) |
| 679 | "Change current directory to given absolute file name DIR." | 670 | "Change current directory to given absolute file name DIR." |