help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trouble with global-set-key to map meta-g with 'goto-line


From: Giorgos Pontikakis
Subject: Re: Trouble with global-set-key to map meta-g with 'goto-line
Date: Fri, 21 Apr 2006 00:00:36 +0300
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

David Lee <live4thee@gmail.com> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]