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: Sun, 1 Feb 2015 11:23:13 -0900 Organization: AkWebsoft Message-ID: <20150201202313.GA911@mail.akwebsoft.com> References: <20150131203933.GK1459@mail.akwebsoft.com> <20150131205613.GL1459@mail.akwebsoft.com> <7f9babbe-2b1f-417a-bcff-0e67d5865db2@default> <20150131222354.GM1459@mail.akwebsoft.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1422822215 27048 80.91.229.3 (1 Feb 2015 20:23:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 20:23:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Feb 01 21:23:31 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 1YI13K-0006J5-SQ for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 21:23:31 +0100 Original-Received: from localhost ([::1]:51821 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI13J-00024N-PN for geh-help-gnu-emacs@m.gmane.org; Sun, 01 Feb 2015 15:23:29 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI138-00024G-Ct for help-gnu-emacs@gnu.org; Sun, 01 Feb 2015 15:23:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YI135-0000fo-5l for help-gnu-emacs@gnu.org; Sun, 01 Feb 2015 15:23:18 -0500 Original-Received: from 191-232-4-64.mtaonline.net ([64.4.232.191]:49519 helo=tj49.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YI134-0000fA-Tc for help-gnu-emacs@gnu.org; Sun, 01 Feb 2015 15:23:15 -0500 Original-Received: by tj49.com (Postfix, from userid 501) id 67C0F59D6DB3; Sun, 1 Feb 2015 11:23:13 -0900 (AKST) Mail-Followup-To: help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: 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:102438 Archived-At: * Stefan Monnier [150201 07:11]: > > major-mode it is > > and a similar check can be done using (symbol-name major-mode) > > cheers >=20 > Don't use symbol-name on major-mode. Just use the symbol itself. > E.g. instead of (equal "foo-mode" (symbol-name major-mode)), you can > test (equal 'foo-mode major-mode). =20 Suppose I wrote an elisp function that dispatched actions based on any number of major modes.=20 Would there be anything wrong about a function like this: (defun tj-check-mode (prefix) "Test the major mode to see if the symbol begins with prefix. The test is case insensitive." (interactive) (string-prefix-p prefix (symbol-name major-mode) 1)) ;; would return t for major-mode 'python or 'python-mode =20 > As for Python mode, you might also like to try the built-in python-mode > that comes bundled with Emacs. =20 The R=F6hler is very feature-rich as opposed to the native 'python mode. I can't remember, but I may have started using the R=F6hler before the built-in was implemented. -- but sometimes simpler *is* better. --=20 Tim=20 tim at tee jay forty nine dot com or akwebsoft dot com http://www.akwebsoft.com, http://www.tj49.com