[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: comment-column hard-coded and set twice
From: |
Chong Yidong |
Subject: |
Re: comment-column hard-coded and set twice |
Date: |
Tue, 11 Mar 2008 12:29:58 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.92 (gnu/linux) |
Andreas Röhler <andreas.roehler@online.de> writes:
> newcomment.el introduces comment-column
>
> ,----
> | (defcustom comment-column 32
> | "Column to indent right-margin comments to.
> `----
>
> The same variable is set in lisp-mode.el again
>
> ,----
> | (make-local-variable 'comment-column)
> | (setq comment-column 40)
> `----
>
> In the result my customization isn't honoured, value
> from lisp-mode.el is taken instead.
>
> Looks like a bug for me.
This appears to be intentional.
Documentation:
Column to indent right-margin comments to.
Each mode may establish a different default value for this variable; you
can set the value for a particular mode using that mode's hook.
Comments might be indented to a different value in order not to go beyond
`comment-fill-column' or in order to align them with surrounding comments.