From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Pontikakis Newsgroups: gmane.emacs.help Subject: Re: Trouble with global-set-key to map meta-g with 'goto-line Date: Fri, 21 Apr 2006 00:00:36 +0300 Organization: FORTHnet S.A., Atthidon 4, GR-17671 Kalithea, Greece, Tel: +30 2109559000, Fax: +30 2109559333, url: http://www.forthnet.gr Message-ID: <87acagx8qz.fsf@artemis.extherm.gr> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1145569240 12074 80.91.229.2 (20 Apr 2006 21:40:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 21:40:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 20 23:40:39 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWgt0-0007Dg-OJ for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2006 23:40:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWgsz-0001oc-Uq for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2006 17:40:25 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.aset.psu.edu!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!130.59.10.21.MISMATCH!kanaga.switch.ch!switch.ch!news.grnet.gr!newsfd02.forthnet.gr!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: athnrd02.forthnet.gr Original-X-Trace: athprx02.forthnet.gr 1145566832 8671 193.92.150.73 (20 Apr 2006 21:00:32 GMT) Original-X-Complaints-To: abuse@forthnet.gr Original-NNTP-Posting-Date: Thu, 20 Apr 2006 21:00:32 +0000 (UTC) User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:ADEOwmhBxstETvRvDJweWaD1az0= Cache-Post-Path: newsfd02!unknown@ppp133-150.adsl.forthnet.gr Original-Xref: shelby.stanford.edu gnu.emacs.help:138905 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:34523 Archived-At: David Lee writes: > Hi, all > I am a beginner with GNU Emacs(21.3.1). I added this line to ~/.emacs > (global-set-key [(meta-g)] 'goto-line) > but it doesn't work for me, and minibuffer gave this hint: > Set face: default (M-g d), bold (M-g b), italic (M-g i).. > > Seems that my settings didn't take effects. > > Anything wrong? > > [ I'm using SuSE 10.0, and I tried with failure under FC5, either. ] > > Thanks in advance. I use (define-key global-map (kbd "M-g") 'goto-line) and works fine in emacs 21.4 (which comes bundled with slackware 10) and emacs 22.0.50.1 (from CVS). I don't know if this is a specific problem with emacs 21.3 but I doubt it. Maybe you should try starting with emacs -q and try executing the above expression within the scratch buffer. Does this work? Hope this helps, -- Giorgos