bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: comment-column hard-coded and set twice


From: Andreas Röhler
Subject: Re: comment-column hard-coded and set twice
Date: Tue, 11 Mar 2008 19:18:26 +0100
User-agent: KMail/1.9.5

Am Dienstag, 11. März 2008 17:29 schrieb Chong Yidong:
> 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.

How will you do this setting? As shown above, the values in this hook are not 
to change from user side as easily as setting with defcustom.

Well, the experienced user writes a setq and that's it.

But let's think at people just looking for an editor too.

Andreas Röhler

> 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.
> 
> 
> 
> 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]