From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: JS Newsgroups: gmane.emacs.help Subject: Re: How to change keys for uncomment (C-u C-c C-c)? Date: Fri, 22 Apr 2005 10:34:02 +0200 Organization: UNI-C Message-ID: References: <877jiwrvuc.fsf@robotron.ath.cx> <87is2gq7i1.fsf@robotron.ath.cx> <87ekd4q6bn.fsf@robotron.ath.cx> <87acnrrik8.fsf@robotron.ath.cx> <873btjrhq2.fsf@robotron.ath.cx> 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 1114159451 32751 80.91.229.2 (22 Apr 2005 08:44:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 08:44:11 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 22 10:44:10 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOtky-0007ID-V2 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 10:43:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOtpq-00058T-Pn for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 04:48:26 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!newspeer.monmouth.com!newsfeed.icl.net!newsfeed.fjserv.net!news-FFM2.ecrc.net!news.net.uni-c.dk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 43 Original-NNTP-Posting-Host: 130.225.245.182 Original-X-Trace: news.net.uni-c.dk 1114158743 9912 130.225.245.182 (22 Apr 2005 08:32:23 GMT) Original-X-Complaints-To: usenet@news.net.uni-c.dk Original-NNTP-Posting-Date: Fri, 22 Apr 2005 08:32:23 +0000 (UTC) User-Agent: KNode/0.7.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:130359 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:25930 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25930 David Hansen wrote: > On Thu, 21 Apr 2005 22:17:11 +0200 David Hansen wrote: > >> (global-set-key "\M-," 'comment-region) > > Stupid me... should be > > (global-set-key "\M-," 'comment-dwim) > > David I have just entered this in my .emacs fil: (global-set-key "\M-," 'comment-dwim) When I start up emacs I get this error: An error has occurred while loading `/home/johs/.emacs': Symbol's function definition is void: global-set-key  To ensure normal operation, you should investigate the cause of the error in your initialization file and remove it. Start Emacs with the `--debug-init' option to view a complete error backtrace Loading view...done ------------------------ I have then tried to start emacs like this: emacs --debug-init and then I get this: Debugger entered--Lisp error: (void-function global-set-key ) (global-set-key  "¬"   (quote comment-dwim)) eval-buffer(# nil "~/.emacs" nil t) load-with-code-conversion("/home/johs/.emacs" "~/.emacs" t t) load("~/.emacs" t t) #[nil " …—