[Top][All Lists]

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

Re: bug in comment-region

From: David Kastrup
Subject: Re: bug in comment-region
Date: 09 Jun 2004 16:14:35 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

Werner LEMBERG <address@hidden> writes:

> > Try:
> >     (setq comment-empty-lines t)
> Thanks.  Anyway, my suggestion w.r.t. C-u still holds -- IMHO it is
> quite inconvenient to control the behaviour of such a versatile
> function with a global variable.  For example, I might prefer to
> comment empty lines in C mode but not in TeX mode.

(add-hook 'c-mode-hook (lambda ()
        (set (make-local-variable 'comment-empty-lines) t)))

David Kastrup, Kriemhildstr. 15, 44793 Bochum

reply via email to

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