From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Johnson Newsgroups: gmane.emacs.help Subject: Re: python-mode broken - zip and git issues Date: Sat, 31 Jan 2015 13:23:54 -0900 Organization: AkWebsoft Message-ID: <20150131222354.GM1459@mail.akwebsoft.com> References: <20150131203933.GK1459@mail.akwebsoft.com> <20150131205613.GL1459@mail.akwebsoft.com> <7f9babbe-2b1f-417a-bcff-0e67d5865db2@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1422743057 25256 80.91.229.3 (31 Jan 2015 22:24:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 22:24:17 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 23:24:16 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YHgSe-0007wu-J7 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 23:24:16 +0100 Original-Received: from localhost ([::1]:42961 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHgSd-0001dn-SA for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 17:24:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55618) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHgSQ-0001dD-Tr for Help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 17:24:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHgSJ-000730-Rl for Help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 17:24:02 -0500 Original-Received: from 191-232-4-64.mtaonline.net ([64.4.232.191]:60212 helo=tj49.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHgSJ-00072h-Jn for Help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 17:23:55 -0500 Original-Received: by tj49.com (Postfix, from userid 501) id 1E26559CC0AE; Sat, 31 Jan 2015 13:23:54 -0900 (AKST) Mail-Followup-To: Emacs Content-Disposition: inline In-Reply-To: <7f9babbe-2b1f-417a-bcff-0e67d5865db2@default> User-Agent: Mutt/1.4.2.3i X-detected-operating-system: by eggs.gnu.org: Mac OS X 10.x X-Received-From: 64.4.232.191 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102406 Archived-At: * Drew Adams [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