aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Steingold2008-11-07 15:39:53 +0000
committerSam Steingold2008-11-07 15:39:53 +0000
commit3f71582da655871abeb6132be91a98c554009187 (patch)
treeabcd442ad4a0e6e09b7cc75cb3d385470b6045d4
parent69135f12970865d9d78dd4054f06afbce40c56c0 (diff)
downloademacs-3f71582da655871abeb6132be91a98c554009187.tar.gz
emacs-3f71582da655871abeb6132be91a98c554009187.zip
(c-defun-name): Fix CLISP DEFUN handling.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/cc-cmds.el10
2 files changed, 10 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 9508ebe96e0..27b856bc9bc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-11-07 Sam Steingold <sds@gnu.org>
2
3 * progmodes/cc-cmds.el (c-defun-name): Fix CLISP DEFUN handling.
4
12008-11-07 Juanma Barranquero <lekktu@gmail.com> 52008-11-07 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * frame.el (make-frame-on-display): Use `string-match-p'. 7 * frame.el (make-frame-on-display): Use `string-match-p'.
diff --git a/lisp/progmodes/cc-cmds.el b/lisp/progmodes/cc-cmds.el
index 8e7df4c95a6..d0c60452a91 100644
--- a/lisp/progmodes/cc-cmds.el
+++ b/lisp/progmodes/cc-cmds.el
@@ -522,7 +522,7 @@ inside a literal or a macro, nothing special happens."
522 ;; This is the list of brace syntactic symbols that can hang. 522 ;; This is the list of brace syntactic symbols that can hang.
523 ;; If any new ones are added to c-offsets-alist, they should be 523 ;; If any new ones are added to c-offsets-alist, they should be
524 ;; added here as well. 524 ;; added here as well.
525 ;; 525 ;;
526 ;; The order of this list is important; if SYNTAX has several 526 ;; The order of this list is important; if SYNTAX has several
527 ;; elements, the element that "wins" is the earliest in SYMS. 527 ;; elements, the element that "wins" is the earliest in SYMS.
528 '(arglist-cont-nonempty ; e.g. an array literal. 528 '(arglist-cont-nonempty ; e.g. an array literal.
@@ -1685,7 +1685,7 @@ with a brace block."
1685 (c-save-buffer-state 1685 (c-save-buffer-state
1686 (beginning-of-defun-function end-of-defun-function 1686 (beginning-of-defun-function end-of-defun-function
1687 where pos name-end) 1687 where pos name-end)
1688 1688
1689 (save-excursion 1689 (save-excursion
1690 ;; Move back out of any macro/comment/string we happen to be in. 1690 ;; Move back out of any macro/comment/string we happen to be in.
1691 (c-beginning-of-macro) 1691 (c-beginning-of-macro)
@@ -1717,7 +1717,7 @@ with a brace block."
1717 1717
1718 ((looking-at "DEFUN\\_>") 1718 ((looking-at "DEFUN\\_>")
1719 ;; DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory, ...) ==> Ffile_name_directory 1719 ;; DEFUN ("file-name-directory", Ffile_name_directory, Sfile_name_directory, ...) ==> Ffile_name_directory
1720 ;; DEFUN(POSIX::STREAM-LOCK, stream lockp &key BLOCK SHARED START LENGTH) ==> POSIX::STREAM-LOCK 1720 ;; DEFUN(POSIX::STREAM-LOCK, stream lockp &key BLOCK SHARED START LENGTH) ==> POSIX::STREAM-LOCK
1721 (down-list 1) 1721 (down-list 1)
1722 (c-forward-syntactic-ws) 1722 (c-forward-syntactic-ws)
1723 (when (eq (char-after) ?\") 1723 (when (eq (char-after) ?\")
@@ -1727,9 +1727,11 @@ with a brace block."
1727 (point) 1727 (point)
1728 (progn 1728 (progn
1729 (c-forward-token-2) 1729 (c-forward-token-2)
1730 (when (looking-at ":") ; CLISP: DEFUN(PACKAGE:LISP-SYMBOL,...)
1731 (skip-chars-forward "^,"))
1730 (c-backward-syntactic-ws) 1732 (c-backward-syntactic-ws)
1731 (point)))) 1733 (point))))
1732 1734
1733 (t 1735 (t
1734 ;; Normal function or initializer. 1736 ;; Normal function or initializer.
1735 (when (c-syntactic-re-search-forward "[{(]" nil t) 1737 (when (c-syntactic-re-search-forward "[{(]" nil t)