* lisp/progmodes/verilog-mode.el (verilog-mode): Don't set
authorJohan Bockgård <bojohan@gnu.org>
Sun, 20 Oct 2013 10:13:26 +0000 (12:13 +0200)
committerJohan Bockgård <bojohan@gnu.org>
Sun, 20 Oct 2013 10:13:26 +0000 (12:13 +0200)
comment-indent-function globally.

lisp/ChangeLog
lisp/progmodes/verilog-mode.el

index 40bc3b4..fb8a4e2 100644 (file)
@@ -1,3 +1,8 @@
+2013-10-20  Johan Bockgård  <bojohan@gnu.org>
+
+       * progmodes/verilog-mode.el (verilog-mode): Don't set
+       comment-indent-function globally.
+
 2013-10-20  Jan Djärv  <jan.h.d@swipnet.se>
 
        * menu-bar.el: Put help-menu in menu-bar-final-items unconditionally.
index 174e4f7..7044943 100644 (file)
@@ -3657,7 +3657,7 @@ Key bindings specific to `verilog-mode-map' are:
   (set-syntax-table verilog-mode-syntax-table)
   (set (make-local-variable 'indent-line-function)
        #'verilog-indent-line-relative)
-  (setq comment-indent-function 'verilog-comment-indent)
+  (set (make-local-variable 'comment-indent-function) 'verilog-comment-indent)
   (set (make-local-variable 'parse-sexp-ignore-comments) nil)
   (set (make-local-variable 'comment-start) "// ")
   (set (make-local-variable 'comment-end) "")