branch: externals/cm-mode
commit cb559785302e19bed862463ecebb3682af48321a
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>

    Change ": " into ":: " in auto-comments.
---
 README.md  | 4 ++--
 cm-mode.el | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 69abc5a305..7ef02b131f 100644
--- a/README.md
+++ b/README.md
@@ -27,9 +27,9 @@ The commands to delete or substitute text operate on the 
region. The command to
 
 ## Automaticaly adding comments ##
 
-If you want to automatically add a comment to every change you make, for 
example to keep track of who made the change, you can set the variable 
`cm-auto-comment` to the desired text. (Don't include the comment markup 
itself.) Once set, every change is automatically commented. If you explicitly 
make a comment with `C-c * c`, the value of `cm-auto-comment` is inserted at 
the beginning of the comment, followed by a colon and a space.
+If you want to automatically add a comment to every change you make, for 
example to keep track of who made the change, you can set the variable 
`cm-auto-comment` to the desired text. (Don't include the comment markup 
itself.) Once set, every change is automatically commented. If you explicitly 
make a comment with `C-c * c`, the value of `cm-auto-comment` is inserted at 
the beginning of the comment, followed by `:: ` (double colon space).
 
-The variable `cm-auto-comment` can be set globally through Customize (or with 
`setq-default` in your init file). This sets the global value. You can override 
this global value in a particular buffer by setting a buffer-local value. There 
are two ways to do this: you can use `C-c * C`, which will only set the value 
for the current session, or you can use a file-local (or directory-local) 
variable, which makes sure the value is set every time the file is loaded. 
(Note: if you use [Pandoc]( [...]
+The variable `cm-auto-comment` can be set globally through Customize (or with 
`setq-default` in your init file). This sets the global value. You can override 
this global value in a particular buffer by setting a buffer-local value. There 
are two ways to do this: you can use `C-c * C`, which will only set the value 
for the current session, or you can use a file-local (or directory-local) 
variable, which makes sure the value is set every time the file is loaded. 
(Note: if you use [Pandoc]( [...]
 
 
 ## Navigating changes ##
diff --git a/cm-mode.el b/cm-mode.el
index 95f37bf37e..5dc7922bba 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -281,12 +281,12 @@ comments, the text to be highlighted.
 If `cm-auto-comment' is set, a comment is added with its value.
 
 If TYPE is 'cm-highlight, a comment is added, which optionally
-starts with `cm-auto-comment' followed by colon-space."
+starts with `cm-auto-comment' followed by \":: \"."
   (multiple-value-bind (bdelim edelim) (cdr (assq type cm-delimiters))
     (insert (or bdelim "")
             (or text (if (and (eq type 'cm-comment)
                               cm-auto-comment)
-                         (concat cm-auto-comment ": ")
+                         (concat cm-auto-comment ":: ")
                        ""))
             (if (eq type 'cm-substitution) "~>" "")
             (or edelim "")))
@@ -296,7 +296,7 @@ starts with `cm-auto-comment' followed by colon-space."
                       (or cm-auto-comment "")
                       (if (and (eq type 'cm-highlight)
                                cm-auto-comment)
-                          ": "
+                          ":: "
                         "")))))
 
 ;; Making an addition is fairly simple: we just need to add markup if point

Reply via email to