From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: python-mode broken - zip and git issues Date: Sat, 31 Jan 2015 14:05:01 -0800 (PST) Message-ID: <7f9babbe-2b1f-417a-bcff-0e67d5865db2@default> References: <20150131203933.GK1459@mail.akwebsoft.com> <20150131205613.GL1459@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422741937 8479 80.91.229.3 (31 Jan 2015 22:05:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2015 22:05:37 +0000 (UTC) To: Tim Johnson , Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 23:05:36 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 1YHgAY-0003Sy-O9 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 23:05:34 +0100 Original-Received: from localhost ([::1]:42916 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHgAY-00064r-3o for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2015 17:05:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53358) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHgAI-00064l-J0 for Help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 17:05:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHgAF-0002JI-Dg for Help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 17:05:18 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:33636) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHgAF-0002JE-75 for Help-gnu-emacs@gnu.org; Sat, 31 Jan 2015 17:05:15 -0500 Original-Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id t0VM52Yw032186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 31 Jan 2015 22:05:03 GMT Original-Received: from aserz7021.oracle.com (aserz7021.oracle.com [141.146.126.230]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0VM51GU014795 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 31 Jan 2015 22:05:02 GMT Original-Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id t0VM51Mh014789; Sat, 31 Jan 2015 22:05:01 GMT In-Reply-To: <20150131205613.GL1459@mail.akwebsoft.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.8.2 (807160) [OL 12.0.6691.5000 (x86)] X-Source-IP: acsinet21.oracle.com [141.146.126.237] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:102405 Archived-At: > 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" ... >=20 > 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'.