all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to change 'comment-region' behaviour globally?
Date: Sat, 16 Feb 2013 15:38:28 +0100	[thread overview]
Message-ID: <87obfk9vdn.fsf@gmail.com> (raw)
In-Reply-To: jwv1ucgz5vl.fsf-monnier+gmane.emacs.help@gnu.org

Stefan Monnier <monnier@iro.umontreal.ca> 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. 

-- 
cheers,
Thorsten




      reply	other threads:[~2013-02-16 14:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-16  2:00 How to change 'comment-region' behaviour globally? Thorsten Jolitz
2013-02-16  3:26 ` Drew Adams
2013-02-16 11:31   ` Thorsten Jolitz
2013-02-16 12:14   ` Thorsten Jolitz
2013-02-16 14:33     ` Stefan Monnier
2013-02-16 14:38       ` Thorsten Jolitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87obfk9vdn.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.