help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: python-mode broken - zip and git issues


From: Tim Johnson
Subject: Re: python-mode broken - zip and git issues
Date: Sat, 31 Jan 2015 13:23:54 -0900
User-agent: Mutt/1.4.2.3i

* Drew Adams <drew.adams@oracle.com> [150131 13:06]:
> > 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'.
  :) thanks for setting me straight..
  major-mode it is
  and a similar check can be done using (symbol-name major-mode)
  cheers

> `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'.

-- 
Tim 
tim at tee jay forty nine dot com or akwebsoft dot com
http://www.akwebsoft.com, http://www.tj49.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]