changeset 99445:3b19071de1b9

(c-defun-name): Fix CLISP DEFUN handling.
author Sam Steingold <sds@gnu.org>
date Fri, 07 Nov 2008 15:39:53 +0000
parents b838c1b7587e
children 4a51ad03db62
files lisp/ChangeLog lisp/progmodes/cc-cmds.el
diffstat 2 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Nov 07 14:52:02 2008 +0000
+++ b/lisp/ChangeLog	Fri Nov 07 15:39:53 2008 +0000
@@ -1,3 +1,7 @@
+2008-11-07  Sam Steingold  <sds@gnu.org>
+
+	* progmodes/cc-cmds.el (c-defun-name): Fix CLISP DEFUN handling.
+
 2008-11-07  Juanma Barranquero  <lekktu@gmail.com>
 
 	* frame.el (make-frame-on-display): Use `string-match-p'.
--- a/lisp/progmodes/cc-cmds.el	Fri Nov 07 14:52:02 2008 +0000
+++ b/lisp/progmodes/cc-cmds.el	Fri Nov 07 15:39:53 2008 +0000
@@ -522,7 +522,7 @@
 	;; This is the list of brace syntactic symbols that can hang.
 	;; If any new ones are added to c-offsets-alist, they should be
 	;; added here as well.
-	;; 
+	;;
 	;; The order of this list is important; if SYNTAX has several
 	;; elements, the element that "wins" is the earliest in SYMS.
 	'(arglist-cont-nonempty		; e.g. an array literal.
@@ -1685,7 +1685,7 @@
   (c-save-buffer-state
       (beginning-of-defun-function end-of-defun-function
        where pos name-end)
- 
+
     (save-excursion
       ;; Move back out of any macro/comment/string we happen to be in.
       (c-beginning-of-macro)
@@ -1717,7 +1717,7 @@
 
 	 ((looking-at "DEFUN\\_>")
 	  ;; 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	  
+	  ;; DEFUN(POSIX::STREAM-LOCK, stream lockp &key BLOCK SHARED START LENGTH) ==> POSIX::STREAM-LOCK
 	  (down-list 1)
 	  (c-forward-syntactic-ws)
 	  (when (eq (char-after) ?\")
@@ -1727,9 +1727,11 @@
 	   (point)
 	   (progn
 	     (c-forward-token-2)
+             (when (looking-at ":") ; CLISP: DEFUN(PACKAGE:LISP-SYMBOL,...)
+               (skip-chars-forward "^,"))
 	     (c-backward-syntactic-ws)
 	     (point))))
-		
+
 	 (t
 	 ;; Normal function or initializer.
 	  (when (c-syntactic-re-search-forward "[{(]" nil t)