[Top][All Lists]

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

Re: How to change 'comment-region' behaviour globally?

From: Thorsten Jolitz
Subject: Re: How to change 'comment-region' behaviour globally?
Date: Sat, 16 Feb 2013 15:38:28 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.2 (gnu/linux)

Stefan Monnier <> writes:

>> if I want to temporarilly set it to another value in a program, do I
>> have to check first if its a global value or a buffer-local value that
>> is set for the buffer, or is this immaterial, i.e. whenever I call setq
>> on 'comment-style', it will apply to the version that is active in the
>> buffer?
> You can just do
>   (let ((comment-style 'plain))
>     (comment-region ...))

yes, much better than using 'setq'. Thanks for the tip. 


reply via email to

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