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
5c8ddcfb
Commit
5c8ddcfb
authored
Nov 03, 1996
by
Richard M. Stallman
Browse files
(comment-region): With just C-u as arg,
delete any number of comment-end delimiters from end of line.
parent
7e02c4dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lisp/simple.el
lisp/simple.el
+5
-5
No files found.
lisp/simple.el
View file @
5c8ddcfb
...
...
@@ -2264,11 +2264,11 @@ not end the comment. Blank lines do not get comments."
;; This is questionable if comment-end ends in
;; whitespace. That is pretty brain-damaged,
;; though.
(
skip-chars-backward
" \t"
)
(
if
(
and
(
>=
(
-
(
point
)
(
point-min
))
(
length
ce
))
(
save-excursion
(
backward-char
(
length
ce
))
(
looking-at
(
regexp-quote
ce
))))
(
while
(
progn
(
skip-chars-backward
" \t"
)
(
and
(
>=
(
-
(
point
)
(
point-min
))
(
length
ce
))
(
save-excursion
(
backward-char
(
length
ce
))
(
looking-at
(
regexp-quote
ce
))))
)
(
delete-char
(
-
(
length
ce
)))))
(
let
((
count
numarg
))
(
while
(
>
1
(
setq
count
(
1+
count
)))
...
...
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