diff options
| author | Sam Steingold | 2005-03-21 14:37:36 +0000 |
|---|---|---|
| committer | Sam Steingold | 2005-03-21 14:37:36 +0000 |
| commit | 568ec09d6042ba8eb7150fb7a3f771e3a0ca51fc (patch) | |
| tree | 7d441a26a7e263dbea639605980db523492b60e8 | |
| parent | 7651545c1072b973dd518d58686e18c86f840a87 (diff) | |
| download | emacs-568ec09d6042ba8eb7150fb7a3f771e3a0ca51fc.tar.gz emacs-568ec09d6042ba8eb7150fb7a3f771e3a0ca51fc.zip | |
(add-log-current-defun): Support more C DEFUN forms.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/add-log.el | 16 |
2 files changed, 14 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index acf70150ce2..e7374fbff1d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2005-03-21 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * add-log.el (add-log-current-defun): Support more C DEFUN forms. | ||
| 4 | |||
| 1 | 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org> | 5 | 2005-03-21 Thien-Thi Nguyen <ttn@gnu.org> |
| 2 | 6 | ||
| 3 | * progmodes/dcl-mode.el (dcl-font-lock-keywords): | 7 | * progmodes/dcl-mode.el (dcl-font-lock-keywords): |
diff --git a/lisp/add-log.el b/lisp/add-log.el index ce98760222d..7706a697755 100644 --- a/lisp/add-log.el +++ b/lisp/add-log.el | |||
| @@ -812,7 +812,7 @@ Has a preference of looking backwards." | |||
| 812 | (looking-at "[ \t\n]")) | 812 | (looking-at "[ \t\n]")) |
| 813 | (forward-line -1)) | 813 | (forward-line -1)) |
| 814 | ;; See if this is using the DEFUN macro used in Emacs, | 814 | ;; See if this is using the DEFUN macro used in Emacs, |
| 815 | ;; or the DEFUN macro used by the C library. | 815 | ;; or the DEFUN macro used by the C library: |
| 816 | (if (condition-case nil | 816 | (if (condition-case nil |
| 817 | (and (save-excursion | 817 | (and (save-excursion |
| 818 | (end-of-line) | 818 | (end-of-line) |
| @@ -824,16 +824,20 @@ Has a preference of looking backwards." | |||
| 824 | (looking-at "DEFUN\\b")) | 824 | (looking-at "DEFUN\\b")) |
| 825 | (>= location tem)) | 825 | (>= location tem)) |
| 826 | (error nil)) | 826 | (error nil)) |
| 827 | ;; DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory, ...) ==> Ffile_name_directory | ||
| 828 | ;; DEFUN(POSIX::STREAM-LOCK, stream lockp &key BLOCK SHARED START LENGTH) ==> POSIX::STREAM-LOCK | ||
| 827 | (progn | 829 | (progn |
| 828 | (goto-char tem) | 830 | (goto-char tem) |
| 829 | (down-list 1) | 831 | (down-list 1) |
| 830 | (if (= (char-after (point)) ?\") | 832 | (when (= (char-after (point)) ?\") |
| 831 | (progn | 833 | (forward-sexp 1) |
| 832 | (forward-sexp 1) | 834 | (search-forward ",")) |
| 833 | (skip-chars-forward " ,"))) | 835 | (skip-syntax-forward " ") |
| 834 | (buffer-substring-no-properties | 836 | (buffer-substring-no-properties |
| 835 | (point) | 837 | (point) |
| 836 | (progn (forward-sexp 1) | 838 | (progn (search-forward ",") |
| 839 | (forward-char -1) | ||
| 840 | (skip-syntax-backward " ") | ||
| 837 | (point)))) | 841 | (point)))) |
| 838 | (if (looking-at "^[+-]") | 842 | (if (looking-at "^[+-]") |
| 839 | (change-log-get-method-definition) | 843 | (change-log-get-method-definition) |