[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: python.el doesn't define `comment-start-skip'
From: |
Stefan Monnier |
Subject: |
Re: python.el doesn't define `comment-start-skip' |
Date: |
Mon, 15 Nov 2010 10:38:16 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
> It's implied in newcomment.el that `comment-normalize-vars' should be
> called before using the library, which creates `comment-start-skip' if
> necessary. However, many programming modes seem to define it themselves;
> cperl-mode uses "#+ *", and the old python-mode.el uses just "# *".
> Should this be added?
The old commenting code (i.e. before newcomment.el) did not know how to
build comment-start-skip from comment-start, so many major modes set
it manually. Other major modes set it manually because newcomment.el
doesn't do a good enough job of guessing the value of
comment-start-skip.
In the case of python.el I don't think it's necessary.
Stefan "going through some of his voluminous backlog"
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: python.el doesn't define `comment-start-skip',
Stefan Monnier <=