Mercurial > emacs
comparison lisp/find-file.el @ 57719:018ef6100fc5
(cc-other-file-alist): Bring it in line with cc-mode's auto-mode-alist entries and use \' instead of $.
author | Daniel Pfeiffer <occitan@esperanto.org> |
---|---|
date | Tue, 26 Oct 2004 21:39:34 +0000 |
parents | ccb0467830b0 |
children | 185136bab53f 0fe073a08cef |
comparison
equal
deleted
inserted
replaced
57718:e60d53125cf2 | 57719:018ef6100fc5 |
---|---|
55 ;; the filename for the .c file contains part of the pathname of the .h | 55 ;; the filename for the .c file contains part of the pathname of the .h |
56 ;; file, as between src/fooZap.cc and include/FOO/zap.hh. In that case, the | 56 ;; file, as between src/fooZap.cc and include/FOO/zap.hh. In that case, the |
57 ;; format above can be changed to include a function to be called when the | 57 ;; format above can be changed to include a function to be called when the |
58 ;; current file matches the regexp: | 58 ;; current file matches the regexp: |
59 ;; | 59 ;; |
60 ;; '(("\\.cc$" cc-function) | 60 ;; '(("\\.cc$" cc--function) |
61 ;; ("\\.hh$" hh-function)) | 61 ;; ("\\.hh$" hh-function)) |
62 ;; | 62 ;; |
63 ;; These functions must return a list consisting of the possible names of the | 63 ;; These functions must return a list consisting of the possible names of the |
64 ;; corresponding file, with or without path. There is no real need for more | 64 ;; corresponding file, with or without path. There is no real need for more |
65 ;; than one function, and one could imagine the following value for cc-other- | 65 ;; than one function, and one could imagine the following value for cc-other- |
237 "*See the description of the `ff-search-directories' variable." | 237 "*See the description of the `ff-search-directories' variable." |
238 :type '(repeat directory) | 238 :type '(repeat directory) |
239 :group 'ff) | 239 :group 'ff) |
240 | 240 |
241 (defcustom cc-other-file-alist | 241 (defcustom cc-other-file-alist |
242 '( | 242 '(("\\.cc\\'" (".hh" ".h")) |
243 ("\\.cc$" (".hh" ".h")) | 243 ("\\.hh\\'" (".cc" ".C")) |
244 ("\\.hh$" (".cc" ".C")) | 244 |
245 | 245 ("\\.c\\'" (".h")) |
246 ("\\.c$" (".h")) | 246 ("\\.h\\'" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp")) |
247 ("\\.h$" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp")) | 247 |
248 | 248 ("\\.C\\'" (".H" ".hh" ".h")) |
249 ("\\.C$" (".H" ".hh" ".h")) | 249 ("\\.H\\'" (".C" ".CC")) |
250 ("\\.H$" (".C" ".CC")) | 250 |
251 | 251 ("\\.CC\\'" (".HH" ".H" ".hh" ".h")) |
252 ("\\.CC$" (".HH" ".H" ".hh" ".h")) | 252 ("\\.HH\\'" (".CC")) |
253 ("\\.HH$" (".CC")) | 253 |
254 | 254 ("\\.c\\+\\+\\'" (".h++" ".hh" ".h")) |
255 ("\\.cxx$" (".hh" ".h")) | 255 ("\\.h\\+\\+\\'" (".c++")) |
256 ("\\.cpp$" (".hh" ".h")) | 256 |
257 ) | 257 ("\\.cpp\\'" (".hpp" ".hh" ".h")) |
258 ("\\.hpp\\'" (".cpp")) | |
259 | |
260 ("\\.cxx\\'" (".hxx" ".hh" ".h")) | |
261 ("\\.hxx\\'" (".cxx"))) | |
258 "*Alist of extensions to find given the current file's extension. | 262 "*Alist of extensions to find given the current file's extension. |
259 | 263 |
260 This list should contain the most used extensions before the others, | 264 This list should contain the most used extensions before the others, |
261 since the search algorithm searches sequentially through each directory | 265 since the search algorithm searches sequentially through each directory |
262 specified in `ff-search-directories'. If a file is not found, a new one | 266 specified in `ff-search-directories'. If a file is not found, a new one |