unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: global-set-key not global?
Date: Thu, 12 Feb 2004 15:00:12 +0100	[thread overview]
Message-ID: <8765ecbdoz.fsf@emptyhost.emptydomain.de> (raw)
In-Reply-To: 4027DD04.6030301@yahoo.com

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> 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?

No, it does not have to do with the fact that C-j happens to be LFD.
It has to do with the fact that the default binding of C-j is
newline-and-indent, and that function should indent correctly in all
modes, by way of the indent-line-function variable.

M-j is bound to indent-new-comment-line by default, which reads some
variables to learn how to make a comment.  So the fix is to set the
variables so that the comment comes out right, rather than to change
the keybinding.

(Compare M-; which is comment-dwim in all modes, regardless of comment
syntax.  You don't have comment-latex, comment-c, comment-pascal, ...)

Kai

  reply	other threads:[~2004-02-12 14:00 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
2004-02-12 14:00           ` Kai Grossjohann [this message]
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=8765ecbdoz.fsf@emptyhost.emptydomain.de \
    --to=kai@emptydomain.de \
    /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).