diff options
| author | Daniel Pfeiffer | 2004-10-26 21:39:34 +0000 |
|---|---|---|
| committer | Daniel Pfeiffer | 2004-10-26 21:39:34 +0000 |
| commit | 71796940395596955d99bf4fa385aeaebd7d6138 (patch) | |
| tree | 32e71dc76a653efc600ffdfbf8a8d3c74b9f6e37 | |
| parent | 4456f9649b1b92d39f50b1512900c6c57171785e (diff) | |
| download | emacs-71796940395596955d99bf4fa385aeaebd7d6138.tar.gz emacs-71796940395596955d99bf4fa385aeaebd7d6138.zip | |
(cc-other-file-alist): Bring it in line with cc-mode's auto-mode-alist entries and use \' instead of $.
| -rw-r--r-- | lisp/find-file.el | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/lisp/find-file.el b/lisp/find-file.el index 4805d08400b..d85d2ab0f51 100644 --- a/lisp/find-file.el +++ b/lisp/find-file.el | |||
| @@ -57,7 +57,7 @@ | |||
| 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 |
| @@ -239,22 +239,26 @@ the preceding slash. The star represents all the subdirectories except | |||
| 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")) | ||
| 245 | 244 | ||
| 246 | ("\\.c$" (".h")) | 245 | ("\\.c\\'" (".h")) |
| 247 | ("\\.h$" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp")) | 246 | ("\\.h\\'" (".c" ".cc" ".C" ".CC" ".cxx" ".cpp")) |
| 248 | 247 | ||
| 249 | ("\\.C$" (".H" ".hh" ".h")) | 248 | ("\\.C\\'" (".H" ".hh" ".h")) |
| 250 | ("\\.H$" (".C" ".CC")) | 249 | ("\\.H\\'" (".C" ".CC")) |
| 251 | 250 | ||
| 252 | ("\\.CC$" (".HH" ".H" ".hh" ".h")) | 251 | ("\\.CC\\'" (".HH" ".H" ".hh" ".h")) |
| 253 | ("\\.HH$" (".CC")) | 252 | ("\\.HH\\'" (".CC")) |
| 254 | 253 | ||
| 255 | ("\\.cxx$" (".hh" ".h")) | 254 | ("\\.c\\+\\+\\'" (".h++" ".hh" ".h")) |
| 256 | ("\\.cpp$" (".hh" ".h")) | 255 | ("\\.h\\+\\+\\'" (".c++")) |
| 257 | ) | 256 | |
| 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, |