apply patch from Seiji Zenitani to find doc strings in ns*.m files

This commit is contained in:
Adrian Robert 2008-07-28 13:19:10 +00:00
parent ddaa36e16e
commit 14f798ff7e
3 changed files with 11 additions and 4 deletions

View file

@ -239,7 +239,7 @@ The search is done in the source for library LIBRARY."
;; that defines something else.
(while (and (symbolp symbol) (get symbol 'definition-name))
(setq symbol (get symbol 'definition-name)))
(if (string-match "\\`src/\\(.*\\.c\\)\\'" library)
(if (string-match "\\`src/\\(.*\\.\\(c\\|m\\)\\)\\'" library)
(find-function-C-source symbol (match-string 1 library) type)
(when (string-match "\\.el\\(c\\)\\'" library)
(setq library (substring library 0 (match-beginning 1))))