unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: global-set-key not global?
Date: Mon, 09 Feb 2004 12:18:28 -0700	[thread overview]
Message-ID: <4027DD04.6030301@yahoo.com> (raw)
In-Reply-To: 87isihvgvw.fsf@emptyhost.emptydomain.de

Kai Grossjohann wrote:
 > Emory Smith <emory.smith@mac.com> 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
 >>>>insert-newline.
 >>>>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	other threads:[~2004-02-09 19:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1967.1076003924.928.help-gnu-emacs@gnu.org>
2004-02-05 19:35 ` global-set-key not global? Stefan Monnier
     [not found]   ` <AB8C2728-59BF-11D8-ABDD-000A958A3AF4@mac.com>
2004-02-07 22:50     ` Emory Smith
     [not found]     ` <mailman.2070.1076194243.928.help-gnu-emacs@gnu.org>
2004-02-08 13:29       ` Kai Grossjohann
2004-02-09 19:18         ` Kevin Rodgers [this message]
2004-02-12 14:00           ` Kai Grossjohann
2004-02-05 17:54 Emory Smith

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4027DD04.6030301@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).