Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
37dbd369
Commit
37dbd369
authored
Sep 27, 2001
by
Stefan Monnier
Browse files
(comment-normalize-vars): Use " \t" rather than
"\\s-" when defining comment-end-skip.
parent
8f80abd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
lisp/ChangeLog
lisp/ChangeLog
+8
-3
lisp/newcomment.el
lisp/newcomment.el
+4
-2
No files found.
lisp/ChangeLog
View file @
37dbd369
2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
* newcomment.el (comment-normalize-vars): Use " \t" rather than
"\\s-" when defining comment-end-skip.
2001-09-27 Gerd Moellmann <gerd@gnu.org>
* mail/feedmail.el (feedmail-queue-send-edit-prompt-help):
* mail/feedmail.el (feedmail-queue-send-edit-prompt-help):
Call get-buffer-window first second arg `visible'.
* international/mule-diag.el (list-input-methods-1):
Output
something that's independent of Emacs' version.
* international/mule-diag.el (list-input-methods-1):
Output
something that's independent of Emacs' version.
* tar-mode.el (tar-mode-write-file): Don't signal an error by
calling byte-to-position with a nil tar-header-offset.
...
...
lisp/newcomment.el
View file @
37dbd369
...
...
@@ -5,7 +5,7 @@
;; Author: code extracted from Emacs-20's simple.el
;; Maintainer: Stefan Monnier <monnier@cs.yale.edu>
;; Keywords: comment uncomment
;; Revision: $Id: newcomment.el,v 1.3
3
2001/09/01 21:
19:45
monnier Exp $
;; Revision: $Id: newcomment.el,v 1.3
4
2001/09/01 21:
23:17
monnier Exp $
;; This file is part of GNU Emacs.
...
...
@@ -241,7 +241,9 @@ This is obsolete because you might as well use \\[newline-and-indent]."
(
let
((
ce
(
if
(
string=
""
comment-end
)
"\n"
(
comment-string-strip
comment-end
t
t
))))
(
set
(
make-local-variable
'comment-end-skip
)
(
concat
"\\s-*\\(\\s>"
(
if
comment-quote-nested
""
"+"
)
;; We use [ \t] rather than \s- because we don't want to
;; remove ^L in C mode when uncommenting.
(
concat
"[ \t]*\\(\\s>"
(
if
comment-quote-nested
""
"+"
)
"\\|"
(
regexp-quote
(
substring
ce
0
1
))
(
if
(
and
comment-quote-nested
(
<=
(
length
ce
)
1
))
""
"+"
)
(
regexp-quote
(
substring
ce
1
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment