From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: How to change keys for uncomment (C-u C-c C-c)? Date: Fri, 22 Apr 2005 16:53:56 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1114181474 6514 80.91.229.2 (22 Apr 2005 14:51:14 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 14:51:14 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 22 16:51:13 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOzU4-0003ie-Tt for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 16:50:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOzZ0-0008FI-Re for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 10:55:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-X-Trace: individual.net fl2N69zB9K9KYNU9Xo15gA3NsBYKAeqHJUBbcYx48tWBNXmT5C User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:Z8DX/Vxgf8ONZAayIkTI5ghOS4U= Original-Xref: shelby.stanford.edu gnu.emacs.help:130385 Original-To: help-gnu-emacs@gnu.org 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:25956 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25956 JS writes: > > I just wrote this in my .emacs file: > > > (add-hook 'this-major-mode-hook >           (lambda () >             (local-set-key "\C-cc" 'uncomment-region))) > > But when I restart emacs the program is split in two and I get this error: > > > > An error has occurred while loading `/home/johs/.emacs': > > Symbol's value as variable is void:            I don't know about you other guys, but something seems fishy with JS' .emacs file. When I read the post above, each supposed-to-be space character has a magenta coloured backlshash in front of it, suggestion some special or control-character. I won't paste his text here again (it is above), but if you do not see what I see, this is how it looks (drawn in normal ascii): (add-hook 'this-major-mode-hook \ \ \ \ \ \ \ \ \ \ (lambda\ () \ \ \ \ \ \ \ \ \ \ \ \ (local-set-key\ "\C-cc"\ 'uncomment-region))) When I put the cursor on one of those and used C-x =, this is what I got: Char: \ (04240, 2208, 0x8a0, file 0xA0) point=961 of 1442 (67%) column 0 Note: I had to use normal ascii to be sure that the "backslash-space" char above was displayed correctly. It is indeed only one character. Anyway, just a thought. /Mathias