diff options
| author | Adrian Robert | 2008-07-28 13:19:10 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-28 13:19:10 +0000 |
| commit | 14f798ff7e357b537ff47f65041588a153530621 (patch) | |
| tree | 4d46cf6c4a79a5103612d91884b7172d3aa124f6 | |
| parent | ddaa36e16efa267f40158baca709a58d2d748743 (diff) | |
| download | emacs-14f798ff7e357b537ff47f65041588a153530621.tar.gz emacs-14f798ff7e357b537ff47f65041588a153530621.zip | |
apply patch from Seiji Zenitani to find doc strings in ns*.m files
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/find-func.el | 2 | ||||
| -rw-r--r-- | lisp/help-fns.el | 8 |
3 files changed, 11 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index df9eb674dd4..0a1a6b32eb0 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-07-28 Seiji Zenitani <zenitani <at> mac.com> | ||
| 2 | |||
| 3 | * help-fns.el (help-C-file-name): Add .m (Obj-C code) for Cocoa port. | ||
| 4 | * emacs-lisp/find-func.el (find-function-search-for-symbol): Likewise. | ||
| 5 | |||
| 1 | 2008-07-28 Stephen Leake <stephen_leake@stephe-leake.org> | 6 | 2008-07-28 Stephen Leake <stephen_leake@stephe-leake.org> |
| 2 | 7 | ||
| 3 | * progmodes/ada-mode.el (ada-mode): Clean up XEmacs handling. | 8 | * progmodes/ada-mode.el (ada-mode): Clean up XEmacs handling. |
diff --git a/lisp/emacs-lisp/find-func.el b/lisp/emacs-lisp/find-func.el index efae0d1cdc8..015e75723dd 100644 --- a/lisp/emacs-lisp/find-func.el +++ b/lisp/emacs-lisp/find-func.el | |||
| @@ -239,7 +239,7 @@ The search is done in the source for library LIBRARY." | |||
| 239 | ;; that defines something else. | 239 | ;; that defines something else. |
| 240 | (while (and (symbolp symbol) (get symbol 'definition-name)) | 240 | (while (and (symbolp symbol) (get symbol 'definition-name)) |
| 241 | (setq symbol (get symbol 'definition-name))) | 241 | (setq symbol (get symbol 'definition-name))) |
| 242 | (if (string-match "\\`src/\\(.*\\.c\\)\\'" library) | 242 | (if (string-match "\\`src/\\(.*\\.\\(c\\|m\\)\\)\\'" library) |
| 243 | (find-function-C-source symbol (match-string 1 library) type) | 243 | (find-function-C-source symbol (match-string 1 library) type) |
| 244 | (when (string-match "\\.el\\(c\\)\\'" library) | 244 | (when (string-match "\\.el\\(c\\)\\'" library) |
| 245 | (setq library (substring library 0 (match-beginning 1)))) | 245 | (setq library (substring library 0 (match-beginning 1)))) |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index f2e9b1e1b98..d251ab0e349 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -149,9 +149,11 @@ KIND should be `var' for a variable or `subr' for a subroutine." | |||
| 149 | (if (member file build-files) | 149 | (if (member file build-files) |
| 150 | (throw 'loop file) | 150 | (throw 'loop file) |
| 151 | (goto-char pnt)))))))) | 151 | (goto-char pnt)))))))) |
| 152 | (if (string-match "\\.\\(o\\|obj\\)\\'" file) | 152 | (if (string-match "^ns.*\\(\\.o\\|obj\\)\\'" file) |
| 153 | (setq file (replace-match ".c" t t file))) | 153 | (setq file (replace-match ".m" t t file 1)) |
| 154 | (if (string-match "\\.c\\'" file) | 154 | (if (string-match "\\.\\(o\\|obj\\)\\'" file) |
| 155 | (setq file (replace-match ".c" t t file)))) | ||
| 156 | (if (string-match "\\.\\(c\\|m\\)\\'" file) | ||
| 155 | (concat "src/" file) | 157 | (concat "src/" file) |
| 156 | file))))) | 158 | file))))) |
| 157 | 159 | ||