unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Startup bug
Date: Fri, 01 Aug 2008 23:08:05 +0200	[thread overview]
Message-ID: <85y73gl9ze.fsf@lola.goethe.zz> (raw)
In-Reply-To: 718d7686-a5fc-4648-823f-db06801b69d8@b1g2000hsg.googlegroups.com

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


      reply	other threads:[~2008-08-01 21:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-01 20:41 Startup bug nickvence
2008-08-01 21:08 ` David Kastrup [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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=85y73gl9ze.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --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.
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).