Commit graph

77 commits

Author SHA1 Message Date
Juanma Barranquero
aa417798e7 (comment-region-internal): Fix docstring. 2004-06-17 00:02:13 +00:00
Juanma Barranquero
11a26e0569 (comment-search-forward, comment-search-backward): Fix typos.
(comment-region): Doc fix.
2004-06-10 20:38:28 +00:00
Stefan Monnier
f5f95edfe3 (comment-use-global-state): New var.
(comment-search-forward): Use it.
2004-03-08 01:20:53 +00:00
Stefan Monnier
31df2900a4 (comment-normalize-vars): Check the user-specified comment start marker. 2004-03-04 20:02:52 +00:00
Stefan Monnier
2720770c58 (uncomment-region): Allow non-terminated comment. 2004-03-04 19:20:35 +00:00
Eli Zaretskii
065b7364da (uncomment-region): Allow eob as comment end. 2004-02-16 14:12:57 +00:00
Eli Zaretskii
a71b3805cd (comment-insert-comment-function, comment-region-function,
uncomment-region-function): New functions.
(comment-indent): Use comment-insert-comment-function.
(uncomment-region): Use uncomment-region-function.
(comment-region): Use comment-region-function.
2004-02-16 12:37:21 +00:00
Stefan Monnier
0d6a08f64d (comment-normalize-vars): Initialize properly if comment-start was nil. 2003-11-25 21:20:51 +00:00
Stefan Monnier
8cc313a338 (comment-indent): Don't call indent-according-to-mode if the line has code.
Don't try to line up with something that's too far left.
2003-10-24 20:26:26 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
79ca2b1157 (uncomment-region): Remove padding coming from
comment-start rather than just from comment-padding.
2003-07-04 22:45:26 +00:00
Stefan Monnier
6976bf99f0 (comment-empty-lines): New var.
(comment-region-internal): Use it.
2003-05-30 20:06:40 +00:00
Stefan Monnier
bfe6e13f54 (comment-indent): Try to align to adjacent comments.
(comment-with-narrowing): Actually use the arguments.
(comment-valid-prefix-p): Rename from comment-valid-prefix
and fix to actually use its argument.
2003-05-10 22:54:35 +00:00
Stefan Monnier
07f10bab2b (comment-indent): Be more careful when inserting
the space, and insert it before setting `begpos'.
2003-05-09 20:09:04 +00:00
Stefan Monnier
0f21c5a0a6 (comment-normalize-vars): Add docstring. 2003-05-06 14:55:56 +00:00
Stefan Monnier
2abd030673 (comment-set-column, comment-kill, comment-or-uncomment-region):
Call comment-normalize-vars since these functions are autoloaded.
2003-05-06 14:06:34 +00:00
Richard M. Stallman
be5d837275 (comment-search-forward): Delete autoload cookie. 2003-05-06 10:40:35 +00:00
Richard M. Stallman
78e4fe6980 (comment-search-forward): Add autoload cookie. 2003-05-03 13:50:14 +00:00
Stefan Monnier
f0a478be88 (comment-normalize-vars): Fix regexp.
Prompt the user for the comment-start to use rather than signalling an error.
(uncomment-region): Don't leave half-removed comment markers.
2003-04-23 14:55:19 +00:00
Richard M. Stallman
75975685cb (comment-use-syntax): Add autoload cookie. 2003-04-19 04:20:58 +00:00
Dave Love
e6bba95eca (comment-indent): Ensure space before added comment. 2003-02-13 15:54:19 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Markus Rost
513bcaece9 (defgroup comment): Remove autoload cookie. 2002-11-12 00:11:30 +00:00
Stefan Monnier
4745e73833 (comment-with-narrowing): Use the `declare' thingy. 2002-09-13 18:22:37 +00:00
Juanma Barranquero
4679af47c1 (uncomment-region): Fix let/let* use. 2002-09-11 09:32:07 +00:00
Stefan Monnier
eb0b51f868 (uncomment-region): Be more careful with `='. 2002-09-10 06:20:52 +00:00
Stefan Monnier
3674a4a93f (comment-make-extra-lines): Only use the
dummy `=' char when there's really nothing else.
Don't remove spaces if it leads to an incorrect comment.
2002-09-03 01:45:18 +00:00
Stefan Monnier
90a4495712 (comment-region): Force lines' when block' is set. 2002-08-12 22:53:46 +00:00
Stefan Monnier
f23a0f3a2f (comment-normalize-vars): Refresh the comment-foo-skip
regexp when they don't match comment-foo any more.
2002-06-18 17:58:18 +00:00
Stefan Monnier
41dfdd7120 (comment-fill-column): Fix :type spec. 2002-04-30 13:01:03 +00:00
Stefan Monnier
88fe06af56 (comment-fill-column): New var.
(comment-indent): Use it.
(comment-or-uncomment-region): New fun.
(comment-dwim): Use it.
2002-04-29 23:43:11 +00:00
Stefan Monnier
a704fec0da (comment-column): Docstring improvement. 2002-04-08 22:58:27 +00:00
Stefan Monnier
0f38a885d5 (comment-forward): Use forward-comment to skip
over whitespace (or comments) even when comment-use-syntax is nil.
2002-03-04 01:10:55 +00:00
Pavel Janík
110c171f4d Fix typo. 2002-01-13 10:09:20 +00:00
Stefan Monnier
7a06b25076 (comment-indent): Jump to the middle of empty comments. 2001-12-14 21:53:29 +00:00
Stefan Monnier
81106dbe80 New bug. 2001-12-02 04:19:32 +00:00
Stefan Monnier
75e95a9780 New bug. 2001-11-29 21:29:36 +00:00
Stefan Monnier
0603917d5f (comment-column, comment-style, comment-multi-line)
(comment-auto-fill-only-comments): Remove :group arg.
(comment-padding): Add :type.
(comment-indent-new-line): Ignore comment-auto-fill-only-comments
if called interactively.
2001-11-19 20:55:30 +00:00
Stefan Monnier
a764440a8f (comment-indent): Fix misindentation for comment-only lines.
(comment-indent-new-line): Only obey comment-multi-line if the
comment-ender is not the end-of-line.
2001-11-19 06:08:38 +00:00
Stefan Monnier
9145f1c236 (comment-normalize-vars): Handle a nil comment-padding. 2001-11-13 20:19:22 +00:00
Stefan Monnier
9d5240d258 (comment-region-internal): Don't rebind
invisibility_spec now that the C routines handle it correctly.
2001-10-12 22:37:51 +00:00
Stefan Monnier
7164ef13a8 (comment-indent): Be a little more robust in case
comment-indent-function does funny things.
(comment-normalize-vars): Autoload.
(comment-region-internal): Fiddle with the visibility spec.
(comment-valid-prefix): New function.
(comment-indent-new-line): Use it.  Ignore adaptive-fill-prefixes
that would turn comment-text into non-comment-text.
2001-10-11 01:46:37 +00:00
Stefan Monnier
37dbd369b5 (comment-normalize-vars): Use " \t" rather than
"\\s-" when defining comment-end-skip.
2001-09-27 21:13:44 +00:00
Stefan Monnier
567e961e9f (comment-indent): Don't insert a fixed number of spaces. 2001-09-01 21:23:17 +00:00
Stefan Monnier
e036e92051 *** empty log message *** 2001-09-01 21:19:45 +00:00
Stefan Monnier
dde6824c46 (comment-beginning): Make sure the comment-start
we found isn't a comment-end (in cases where confusion is possible).
2001-08-21 18:31:50 +00:00
Stefan Monnier
75ed43a6a2 (comment-normalize-vars): Use [ \t] for the trailing
spaces in default comment-start-skip settings rather than \s-.
2001-03-02 20:31:48 +00:00
Stefan Monnier
76a4de0725 (comment-forward): Skip the comment-start before
searching for the comment-end.
2001-02-22 01:48:24 +00:00
Stefan Monnier
c64c05511b Remove useless Version. 2000-12-18 03:17:31 +00:00
Stefan Monnier
adf9c99461 (comment-indent-new-line): Use delete-horizontal-space
(so as to obey the field property in the minibuffer).
2000-12-11 21:41:41 +00:00