From e56a043b86ebe02e30e2eaf15639e9db6c1bfc9c Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Thu, 4 Jul 1996 05:45:50 +0000 Subject: [PATCH] (lisp-mode-variables): Set comment-start-skip to ignore backslash-quoted semicolons. --- lisp/emacs-lisp/lisp-mode.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/emacs-lisp/lisp-mode.el b/lisp/emacs-lisp/lisp-mode.el index 9879b9f5fa..541cbe6f44 100644 --- a/lisp/emacs-lisp/lisp-mode.el +++ b/lisp/emacs-lisp/lisp-mode.el @@ -119,7 +119,9 @@ (make-local-variable 'comment-start) (setq comment-start ";") (make-local-variable 'comment-start-skip) - (setq 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]\\)\\(\\\\\\\\\\)*\\);+ *") (make-local-variable 'comment-column) (setq comment-column 40) (make-local-variable 'comment-indent-function) -- 2.20.1