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

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

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


From: Stefan Monnier
Subject: Re: How to change 'comment-region' behaviour globally?
Date: Sat, 16 Feb 2013 09:33:08 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

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


-- Stefan




reply via email to

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