emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 2f05824 2/6: Set comment-prefix, clear c-opt-cpp-prefix


From: Stefan Monnier
Subject: [elpa] master 2f05824 2/6: Set comment-prefix, clear c-opt-cpp-prefix
Date: Thu, 29 Nov 2018 10:49:18 -0500 (EST)

branch: master
commit 2f0582451af081f8181b796132950431baf061d6
Author: Sergey Poznyakoff <address@hidden>
Commit: Sergey Poznyakoff <address@hidden>

    Set comment-prefix, clear c-opt-cpp-prefix
---
 vcl-mode.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/vcl-mode.el b/vcl-mode.el
index c6ea5e1..97f66b1 100644
--- a/vcl-mode.el
+++ b/vcl-mode.el
@@ -66,8 +66,7 @@
 (defvar vcl-mode-abbrev-table nil
   "Abbreviation table used in vcl-mode buffers.")
 (c-define-abbrev-table 'vcl-mode-abbrev-table
-  '(("else" "else" c-electric-continued-statement 0)
-    ("while" "while" c-electric-continued-statement 0)))
+  '(("else" "else" c-electric-continued-statement 0)))
 
 ;; Font locking
 (defconst vcl-font-lock-keywords-1
@@ -308,7 +307,7 @@
 
 (defvar vcl-font-lock-keywords vcl-font-lock-keywords-3)
 
-(put 'vcl-mode  'c-mode-prefix "vcl-")
+(put 'vcl-mode 'c-mode-prefix "vcl-")
 
 (defun vcl-sharp-comment-syntax ()
   (save-excursion
@@ -360,9 +359,10 @@ Key bindings:
   (set (make-local-variable 'syntax-propertize-function)
        vcl-syntax-propertize-function)
   (set (make-local-variable 'parse-sexp-lookup-properties) t)
-  (set (make-local-variable 'comment-start) "# ")
   
   (c-initialize-cc-mode t)
+  (c-lang-setvar comment-start "# ")
+  (setq c-opt-cpp-prefix nil)
   (set-syntax-table vcl-mode-syntax-table)
   (setq local-abbrev-table vcl-mode-abbrev-table
        abbrev-mode t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]