[Top][All Lists]

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

Re: global-set-key not global?

From: Kevin Rodgers
Subject: Re: global-set-key not global?
Date: Mon, 09 Feb 2004 12:18:28 -0700
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Kai Grossjohann wrote:
> Emory Smith <address@hidden> writes:
>>On Feb 5, 2004, at 12:35 PM, Stefan Monnier wrote:
>>>>im using the following in my .emacs:
>>>>(global-set-key "\C-j"  'bs-cycle-next)
>>>>(global-set-key "\M-j"  'bs-cycle-previous)
>>>>but a number of major modes still seem to have C-j bound to
>>>>it works fine if i use local-set-key inside the add-hook for every
>>>>mode, but
>>>>seems like i shouldnt have to do this.
>>>Indeed.  Report those things as bugs.
>>so a local keymap entry is not supposed to override a global one?
> No.  But the global bindings for C-j and M-j should work for all
> modes, so that there is no need for a mode to bind C-j and M-j itself.
> So Stefan was only referring to these two keys.  For other keys, it's
> different.

C-j is LFD so I can understand why Emacs might treat it specially (and presumably C-m aka RET). But what is the significance of M-j?

Kevin Rodgers

reply via email to

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