unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Startup bug
@ 2008-08-01 20:41 nickvence
  2008-08-01 21:08 ` David Kastrup
  0 siblings, 1 reply; 2+ messages in thread
From: nickvence @ 2008-08-01 20:41 UTC (permalink / raw)
  To: help-gnu-emacs

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

Thanks,
Nick


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Startup bug
  2008-08-01 20:41 Startup bug nickvence
@ 2008-08-01 21:08 ` David Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2008-08-01 21:08 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-08-01 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-01 20:41 Startup bug nickvence
2008-08-01 21:08 ` David Kastrup

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).