From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-1?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Python doc string with three double quotes Date: Wed, 11 Sep 2013 20:43:17 +0200 Message-ID: <5230B9C5.1010000@easy-emacs.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378924901 8092 80.91.229.3 (11 Sep 2013 18:41:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2013 18:41:41 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 11 20:41:45 2013 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 1VJpMG-0002jJ-De for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 20:41:44 +0200 Original-Received: from localhost ([::1]:37460 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJpMG-0000U9-1f for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 14:41:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39571) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJpLx-0000U3-C1 for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 14:41:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJpLr-0006o3-Aa for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 14:41:25 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:58900) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJpLr-0006nw-0y for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 14:41:19 -0400 Original-Received: from purzel.sitgens (brln-4dba21f1.pool.mediaWays.net [77.186.33.241]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0Mh6n3-1VXLrg2bS5-00M2nC; Wed, 11 Sep 2013 20:41:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: X-Provags-ID: V02:K0:dnJNh+mSQjgy4YambjfZUjnL/xX3tAlnIF9fX2OKZBh 2GRrW2XVaAuZviKwRrnpStmu6mA9s08cKYRPBpP0+8pP5R5pvu 6nU33wxynT8PR3VZ9YAMtALTZj6i+30DdUhNl43vGCHPopvgq6 pFmPrWupImgnFuy0ZbKy623cmzB+12CcPoygI4i7eJMWhAd8qm BPBrpr+2FJwGCEvYdzLn9X4XTHjRy3y30DK2msmu+L62GGx6UQ ZXy0/9Ewc9BRwyEMyR3aGeQ5T0VXRmym1XLIx6T35ZrobS41jp ATsswDBeOxClb0DKkXbMAU2QdxFUPqmTeIGP8MZecQDtCRPA3C pKctICr29rtFMKiH+gxjeu+XaMOW2aaJbXs184Kq9 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.171 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:93333 Archived-At: Am 11.09.2013 18:48, schrieb Scott Reynolds: > Having an issue adding a doc string to my modules, functions, classes and > methods in python. I am using Emacs Prelude( > https://github.com/bbatsov/prelude). When started with --no-init-file the > behavior is not experienced. > > A python doc string is surrounded by three double quotes. Like so: > """ > This is a doc string for a function. > """ > > When I add the fifth ", emacs auto escapes the last two double quotes. It > is like this: > """ > This is a doc string for the method > "\"\" > > How do I prevent this from happening in python-mode ? > > Turning off electric-auto-pair, changes the behavior to escaping the third > double quote instead of the 5th and 6th. > > Anybody have any ideas to help me? > > Thanks ahead of time! > Can't reproduce with shipped python-mode. Maybe use this? Andreas