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

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

[elpa] externals/phps-mode 8109c1a 328/405: (uncomment-region) working


From: Stefan Monnier
Subject: [elpa] externals/phps-mode 8109c1a 328/405: (uncomment-region) working
Date: Sat, 13 Jul 2019 10:00:42 -0400 (EDT)

branch: externals/phps-mode
commit 8109c1ac667cde41f43c87b592179104b7c72c7a
Author: Christian Johansson <address@hidden>
Commit: Christian Johansson <address@hidden>

    (uncomment-region) working
---
 phps-mode-functions.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/phps-mode-functions.el b/phps-mode-functions.el
index d4e1bc0..8b74643 100644
--- a/phps-mode-functions.el
+++ b/phps-mode-functions.el
@@ -806,9 +806,12 @@
   (set (make-local-variable 'phps-mode-functions-imenu) nil)
   (set (make-local-variable 'phps-mode-functions-processed-buffer) nil)
 
-  ;; Make (comment-region) work
-  (set (make-local-variable 'comment-start) "/* ")
-  (set (make-local-variable 'comment-end) " */")
+  ;; Make (comment-region) and (uncomment-region) work
+  (set (make-local-variable 'comment-start) "/*")
+  (set (make-local-variable 'comment-padding) " ")
+  (set (make-local-variable 'comment-end) "*/")
+  (set (make-local-variable 'comment-use-syntax) nil)
+  (set (make-local-variable 'comment-start-skip) "\/\\* ")
 
   ;; Support for change detection
   (add-hook 'after-change-functions #'phps-mode-functions-after-change))



reply via email to

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