unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Ryan Krauss" <ryanlists@gmail.com>, <help-gnu-emacs@gnu.org>
Subject: RE: defining my own newline function
Date: Mon, 5 Nov 2007 21:43:23 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICEECFEBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <c5b438120711052028s3051d154s98486b8cec414c06@mail.gmail.com>

> (define-key pypoutline-mode-map "\C-j" 'pypoutline-newline-and-indent)
> (define-key pypoutline-mode-map [<return>] 'pypoutline-newline-and-indent)
> (define-key py-mode-map "\C-m" 'pypoutline-newline-and-indent)

> but none of them seem to be working.  If I type C-h k and
> then hit return (in a buffer running my mode), I get:

> RET (translated from <return>) runs the command newline

> What am I doing wrong?  Is there something I need to add
> to the syntax table of my mode or somewhere else?

Are you sure that you are in your mode and that your mode has your mode map
as its local map? What does `M-: (current-local-mode)' tell you?

[BTW, it's generally better to use plain text, not HTML, for email to a
mailing list.]

  reply	other threads:[~2007-11-06  5:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-06  4:28 defining my own newline function Ryan Krauss
2007-11-06  5:43 ` Drew Adams [this message]
2007-11-06 13:56   ` Ryan Krauss
2007-11-06 14:25     ` Ryan Krauss
     [not found] <c5b438120711060533s4813d551s947e036870206514@mail.gmail.com>
2007-11-06 14:29 ` Drew Adams

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=DNEMKBNJBGPAOPIJOOICEECFEBAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=ryanlists@gmail.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).