From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Bug? in CC-Mode
Date: Tue, 07 Jun 2005 13:38:59 -0600 [thread overview]
Message-ID: <d84sta$p4e$1@sea.gmane.org> (raw)
In-Reply-To: <87br6icatg.fsf@racin.rez-gif.supelec.fr>
Matthieu Lemerre wrote:
> I am interrested in knowing what would be the correct solution : would
> it be to check if paragraph-start is buffer-local before setting it?
> Or a more complicated scheme?
Don't call it outside of a CC Mode buffer, i.e. only call it within a
mode hook:
(add-hook 'c-mode-hook (lambda () (c-set-style "gnu")))
BTW, the manual says: The default style in all newly created buffers is
`gnu', but you can change this by setting variable `c-default-style'.
So you shouldn't need to do anything to get the GNU style.
--
Kevin Rodgers
next prev parent reply other threads:[~2005-06-07 19:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.3666.1118149525.25862.help-gnu-emacs@gnu.org>
2005-06-07 16:21 ` Bug? in CC-Mode Alan Mackenzie
2005-06-07 17:54 ` Matthieu Lemerre
2005-06-07 19:38 ` Kevin Rodgers [this message]
2005-06-07 13:00 Matthieu Lemerre
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='d84sta$p4e$1@sea.gmane.org' \
--to=ihs_4664@yahoo.com \
/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.