[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#10868: 24.0.93; `comment-style' needs to be explained
From: |
Lawrence Mitchell |
Subject: |
bug#10868: 24.0.93; `comment-style' needs to be explained |
Date: |
Thu, 23 Feb 2012 09:22:24 +0000 |
User-agent: |
Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.93 (gnu/linux) |
Drew Adams wrote:
>>> Read the bug #3370 thread, if you want to understand the problem.
>> Unfortunately, I did. It is long-winded and goes nowhere.
>> I encourage everyone else not to bother.
> Is it really so hard to understand?
> "the doc string for `comment-style' (which is pretty much
> useless) refers to `comment-styles', which is not
> recognized (and therefore has no link)."
> emacs -Q
> C-h v comment-style
> Style to be used for `comment-region'.
> See `comment-styles' for a list of available styles.
> C-h v comment-styles
> Bzzzzt -not recognized - no such variable, no such "list of available styles"
> ... until you load newcomment.el.
[...]
OK, here's the problem, and here's a patch.
2012-02-23 Lawrence Mitchell <wence@gmx.li>
* lisp/newcomment.el: Autoload comment-styles (Bug#3370).
The docstring of comment-style refers the user to comment-styles for
details on what the values mean. However, this is not available until
after newcomment.el is loaded. So autoload comment-styles to avoid
this problem.
---
lisp/newcomment.el | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lisp/newcomment.el b/lisp/newcomment.el
index 16282af..cd887cb 100644
--- a/lisp/newcomment.el
+++ b/lisp/newcomment.el
@@ -185,6 +185,7 @@ The `plain' comment style doubles this value.
This should generally stay 0, except for a few modes like Lisp where
it is 1 so that regions are commented with two or three semi-colons.")
+;;;###autoload
(defconst comment-styles
'((plain nil nil nil nil
"Start in column 0 (do not indent), as in Emacs-20")
--
1.7.9.rc0.23.g7e521
- bug#10868: 24.0.93; `comment-style' needs to be explained, Drew Adams, 2012/02/22
- bug#10868: 24.0.93; `comment-style' needs to be explained, Glenn Morris, 2012/02/22
- bug#10868: 24.0.93; `comment-style' needs to be explained, Drew Adams, 2012/02/22
- bug#10868: 24.0.93; `comment-style' needs to be explained, Glenn Morris, 2012/02/22
- bug#10868: 24.0.93; `comment-style' needs to be explained, Drew Adams, 2012/02/22
- bug#10868: 24.0.93; `comment-style' needs to be explained,
Lawrence Mitchell <=
- bug#10868: 24.0.93; `comment-style' needs to be explained, Stefan Monnier, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Drew Adams, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Stefan Monnier, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Drew Adams, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Chong Yidong, 2012/02/24
- bug#10868: 24.0.93; `comment-style' needs to be explained, Glenn Morris, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Glenn Morris, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Lawrence Mitchell, 2012/02/23
- bug#10868: 24.0.93; `comment-style' needs to be explained, Drew Adams, 2012/02/23