From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: Startup bug Date: Fri, 01 Aug 2008 23:08:05 +0200 Organization: Organization?!? Message-ID: <85y73gl9ze.fsf@lola.goethe.zz> References: <718d7686-a5fc-4648-823f-db06801b69d8@b1g2000hsg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217626901 16583 80.91.229.12 (1 Aug 2008 21:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 Aug 2008 21:41:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 01 23:42:31 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KP2OH-0002FW-0z for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 23:42:25 +0200 Original-Received: from localhost ([127.0.0.1]:51138 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KP2NM-0005ej-2c for geh-help-gnu-emacs@m.gmane.org; Fri, 01 Aug 2008 17:41:28 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!storethat.news.telefonica.de!telefonica.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:PldP+uk7KLILuJoiBRsxrv6RQvk= Original-Lines: 36 Original-NNTP-Posting-Date: 01 Aug 2008 23:08:05 CEST Original-NNTP-Posting-Host: 757353ad.newsspool3.arcor-online.net Original-X-Trace: DXC=F]M8\OU7TM@@Y=h<_c3PkHMcF=Q^Z^V3H4Fo<]lROoRA4nDHegD_]RE2Ud8mVZQL; K1_LiI6ENVaM3>5MOK`; S:bhJLcaHSU1i^PQO:hYmH@Lf^4A Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: news.stanford.edu gnu.emacs.help:160810 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:56157 Archived-At: 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