diff options
author | Sam Steingold <sds@gnu.org> | 2005-03-21 14:37:36 +0000 |
---|---|---|
committer | Sam Steingold <sds@gnu.org> | 2005-03-21 14:37:36 +0000 |
commit | 568ec09d6042ba8eb7150fb7a3f771e3a0ca51fc (patch) | |
tree | 7d441a26a7e263dbea639605980db523492b60e8 /lisp/add-log.el | |
parent | 7651545c1072b973dd518d58686e18c86f840a87 (diff) | |
download | emacs-568ec09d6042ba8eb7150fb7a3f771e3a0ca51fc.tar.gz |
(add-log-current-defun): Support more C DEFUN forms.
Diffstat (limited to 'lisp/add-log.el')
-rw-r--r-- | lisp/add-log.el | 16 |
1 files changed, 10 insertions, 6 deletions
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." (looking-at "[ \t\n]")) (forward-line -1)) ;; See if this is using the DEFUN macro used in Emacs, - ;; or the DEFUN macro used by the C library. + ;; or the DEFUN macro used by the C library: (if (condition-case nil (and (save-excursion (end-of-line) @@ -824,16 +824,20 @@ Has a preference of looking backwards." (looking-at "DEFUN\\b")) (>= location tem)) (error nil)) + ;; DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory, ...) ==> Ffile_name_directory + ;; DEFUN(POSIX::STREAM-LOCK, stream lockp &key BLOCK SHARED START LENGTH) ==> POSIX::STREAM-LOCK (progn (goto-char tem) (down-list 1) - (if (= (char-after (point)) ?\") - (progn - (forward-sexp 1) - (skip-chars-forward " ,"))) + (when (= (char-after (point)) ?\") + (forward-sexp 1) + (search-forward ",")) + (skip-syntax-forward " ") (buffer-substring-no-properties (point) - (progn (forward-sexp 1) + (progn (search-forward ",") + (forward-char -1) + (skip-syntax-backward " ") (point)))) (if (looking-at "^[+-]") (change-log-get-method-definition) |