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>
Cc: Help-Gnu-Emacs <help-gnu-emacs@gnu.org>
Subject: RE: defining my own newline function
Date: Tue, 6 Nov 2007 06:29:41 -0800	[thread overview]
Message-ID: <DNEMKBNJBGPAOPIJOOICIECGEBAA.drew.adams@oracle.com> (raw)
In-Reply-To: <c5b438120711060533s4813d551s947e036870206514@mail.gmail.com>

> I can't  make 'M-: (current-local-mode)' do anything.  I assume you
> want me to press Alt-Shift-: (the shift is needed to make a colon
> rather than a semi-colon?).  When I do that, I prompted with
> Eval:
>
> so, I typed (current-local-mode) there and I get
>
> Debugger entered--Lisp error: (void-function current-local-mode)
>   (current-local-mode)
>   eval((current-local-mode))
>   eval-expression((current-local-mode) nil)
>   call-interactively(eval-expression)
>
> But the info line lists my major mode as the one being run.  The
> syntax highlighting is what I have defined, and my indent function is
> being used.  My local key map is also available, with an outdent
> function bound to backtab.  These keys don't work if I create a .txt
> file where my mode isn't running.  So, I think my mode is running and
> my local key map is happening with other keys.

You did it right. Sorry, I meant `current-local-map'. But that won't help
much. To check the current mode, just do `C-h v major-mode' - that's what I
should have said.

You can also do `M-x pp-eval-expression RET (current-local-map)'. That will
show you the keymap for the current mode, but in the form of a list. If you
don't recognize your keys there, then the map is not what you expect.

My questions were meant only as a quick sanity check - to make sure that you
did in fact enter your mode and that your mode does in fact use the map you
expect. HTH.

       reply	other threads:[~2007-11-06 14:29 UTC|newest]

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

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=DNEMKBNJBGPAOPIJOOICIECGEBAA.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).