From: Drew Adams <drew.adams@oracle.com>
To: Tim Johnson <tim@akwebsoft.com>, Emacs <Help-gnu-emacs@gnu.org>
Subject: RE: python-mode broken - zip and git issues
Date: Sat, 31 Jan 2015 14:05:01 -0800 (PST) [thread overview]
Message-ID: <7f9babbe-2b1f-417a-bcff-0e67d5865db2@default> (raw)
In-Reply-To: <20150131205613.GL1459@mail.akwebsoft.com>
> I've loaded a python code file and run help on 'mode-name and it is
> coming up as "Py" for the buffer. Is this correct? I seem to
> remember in the past it was "python-mode" ...
>
> I'm confused and understanding mode-name is important because
> I've written a numer of elisp defuns that check for mode-name.
I don't use python-mode, but it sounds like you are perhaps
confused about `mode-name' vs `major-mode'.
`mode-name' is just the pretty (i.e., displayed) name, which is
a string. It sounds like what you probably want is `major-mode',
which is a symbol.
For example, for Emacs-Lisp mode:
* `mode-name' is "Emacs-Lisp"
* `major-mode' is `emacs-lisp-mode'
Always consult the doc: `C-h v mode-name'.
next prev parent reply other threads:[~2015-01-31 22:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-31 20:39 python-mode broken - zip and git issues Tim Johnson
2015-01-31 20:56 ` Tim Johnson
2015-01-31 22:05 ` Drew Adams [this message]
2015-01-31 22:23 ` Tim Johnson
2015-02-01 14:38 ` Stefan Monnier
2015-02-01 15:51 ` Drew Adams
2015-02-01 17:08 ` Tim Johnson
2015-02-01 20:23 ` Tim Johnson
2015-02-01 20:34 ` Drew Adams
2015-02-01 20:40 ` Tim Johnson
2015-02-03 20:21 ` Stefan Monnier
2015-02-01 18:03 ` Andreas Röhler
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=7f9babbe-2b1f-417a-bcff-0e67d5865db2@default \
--to=drew.adams@oracle.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=tim@akwebsoft.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).