[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Startup bug
From: |
David Kastrup |
Subject: |
Re: Startup bug |
Date: |
Fri, 01 Aug 2008 23:08:05 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
nickvence@gmail.com writes:
> I'm using Emacs 21.4a and each time I open an existing file :: gets
> inserted at the beginning. Where might this bug have slipped in? Here
> is my .emacs file:
> (global-set-key "\M-g" 'goto-line)
> (add-hook 'c++-mode-hook
> '(lambda ()
> (font-lock-mode)
> (c-toggle-auto-state)
> (c-scope-operator)
> (show-paren-mode)))
This is a joke, right? I mean, there is not a single correct line in
that hook function. All minor modes should be called with 1 as argument
to switch the minor mode on (rather than toggle it). And what is the
deal with c-scope-operator?
C-h f c-scope-operator RET gives
c-scope-operator is an interactive compiled Lisp function in
`cc-cmds.el'.
(c-scope-operator)
Insert a double colon scope operator at point.
No indentation or other "electric" behavior is performed.
[back]
I mean, what did you _expect_ this call to do?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Startup bug, nickvence, 2008/08/01
- Re: Startup bug,
David Kastrup <=