[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14434: 24.3; lisp mode's comment start seems bad
From: |
Leo Liu |
Subject: |
bug#14434: 24.3; lisp mode's comment start seems bad |
Date: |
Wed, 22 May 2013 12:26:24 +0800 |
After fixing bug#14303, we can observe the following bug:
1. Emacs -q
2. insert in a emacs lisp mode buffer:
(
;;
)
3. Move point to be end of ;;
4. M-j
You should see:
(
;;
;
)
This seems to be due to bad comment-start-skip. Is the following fix correct?
--- lisp/emacs-lisp/lisp-mode.el.gz
+++ #<buffer lisp-mode.el.gz>
@@ -219,7 +219,7 @@
(make-local-variable 'comment-start-skip)
;; Look within the line for a ; following an even number of backslashes
;; after either a non-backslash or the line beginning.
- (setq comment-start-skip "\\(\\(^\\|[^\\\\\n]\\)\\(\\\\\\\\\\)*\\);+ *")
+ (setq comment-start-skip "\\(\\(^\\|[^\\\\\n;]\\)\\(\\\\\\\\\\)*\\);+ *")
(make-local-variable 'font-lock-comment-start-skip)
;; Font lock mode uses this only when it KNOWS a comment is starting.
(setq font-lock-comment-start-skip ";+ *")
Diff finished. Wed May 22 12:24:18 2013
- bug#14434: 24.3; lisp mode's comment start seems bad,
Leo Liu <=