aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/find-file.el14
1 files changed, 8 insertions, 6 deletions
diff --git a/lisp/find-file.el b/lisp/find-file.el
index 3f0ac1ea0d9..b8aee680516 100644
--- a/lisp/find-file.el
+++ b/lisp/find-file.el
@@ -109,6 +109,8 @@
109;; The *load-hooks allow you to place point where you want it in the other 109;; The *load-hooks allow you to place point where you want it in the other
110;; file. 110;; file.
111 111
112;;; Change Log:
113;;
112;; FEEDBACK: 114;; FEEDBACK:
113;; Please send me bug reports, bug fixes, and extensions, so that I can 115;; Please send me bug reports, bug fixes, and extensions, so that I can
114;; merge them into the master source. 116;; merge them into the master source.
@@ -121,9 +123,9 @@
121;; the development of this package: 123;; the development of this package:
122;; Rolf Ebert in particular, Fritz Knabe, Heddy Boubaker, Sebastian Kremer, 124;; Rolf Ebert in particular, Fritz Knabe, Heddy Boubaker, Sebastian Kremer,
123;; Vasco Lopes Paulo, Mark A. Plaksin, Robert Lang, Trevor West, Kevin 125;; Vasco Lopes Paulo, Mark A. Plaksin, Robert Lang, Trevor West, Kevin
124;; Pereira & Benedict Lofstedt. 126;; Pereira, Benedict Lofstedt & Justin Vallon.
125 127
126;; Code: 128;;; Code:
127;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 129;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
128;; User definable variables: 130;; User definable variables:
129 131
@@ -199,7 +201,7 @@ may not exist.
199 201
200A typical format is 202A typical format is
201 203
202 '(\".\" \"/usr/include/*\" \"$PROJECT/*/include\") 204 '(\".\" \"/usr/include\" \"$PROJECT/*/include\")
203 205
204Environment variables can be inserted between slashes (`/'). 206Environment variables can be inserted between slashes (`/').
205They will be replaced by their definition. If a variable does 207They will be replaced by their definition. If a variable does
@@ -210,7 +212,7 @@ the preceding slash. The star represents all the subdirectories except
210`..', and each of these subdirectories will be searched in turn.") 212`..', and each of these subdirectories will be searched in turn.")
211 213
212(defvar cc-search-directories 214(defvar cc-search-directories
213 '("." "/usr/include/*" "/usr/local/include/*") 215 '("." "/usr/include" "/usr/local/include/*")
214 "*See the description of the `ff-search-directories' variable.") 216 "*See the description of the `ff-search-directories' variable.")
215 217
216(defvar cc-other-file-alist 218(defvar cc-other-file-alist
@@ -563,14 +565,14 @@ Arguments: (search-dirs fname-stub &optional suffix-list)
563 (message "finding buffer %s..." filename)) 565 (message "finding buffer %s..." filename))
564 566
565 (if (bufferp (get-buffer filename)) 567 (if (bufferp (get-buffer filename))
566 (setq found filename)) 568 (setq found (buffer-file-name (get-buffer filename))))
567 569
568 (setq blist (buffer-list)) 570 (setq blist (buffer-list))
569 (setq buf (buffer-name (car blist))) 571 (setq buf (buffer-name (car blist)))
570 (while (and blist (not found)) 572 (while (and blist (not found))
571 573
572 (if (string-match (concat filename "<[0-9]+>") buf) 574 (if (string-match (concat filename "<[0-9]+>") buf)
573 (setq found buf)) 575 (setq found (buffer-file-name (car blist))))
574 576
575 (setq blist (cdr blist)) 577 (setq blist (cdr blist))
576 (setq buf (buffer-name (car blist)))) 578 (setq buf (buffer-name (car blist))))