From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthias Meulien Newsgroups: gmane.emacs.bugs Subject: bug#17683: 24.4.50; [PATCH] Missing char in Python class skeleton Date: Tue, 03 Jun 2014 22:04:30 +0200 Message-ID: <87ha41bvzl.fsf@choubidou.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1401826039 15186 80.91.229.3 (3 Jun 2014 20:07:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Jun 2014 20:07:19 +0000 (UTC) To: 17683@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 03 22:07:13 2014 Return-path: Envelope-to: geb-bug-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 1WruzG-0004kk-7j for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 22:07:10 +0200 Original-Received: from localhost ([::1]:55678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WruzF-0008Nq-M9 for geb-bug-gnu-emacs@m.gmane.org; Tue, 03 Jun 2014 16:07:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WruzA-0008NT-6t for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:07:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wruz9-00029u-53 for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:07:04 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wruz9-00029n-1K for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:07:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wruz8-00017A-Oe for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthias Meulien Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 03 Jun 2014 20:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17683 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14018260044243 (code B ref -1); Tue, 03 Jun 2014 20:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jun 2014 20:06:44 +0000 Original-Received: from localhost ([127.0.0.1]:42682 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wruyp-00016K-30 for submit@debbugs.gnu.org; Tue, 03 Jun 2014 16:06:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:36555) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Wruym-000163-JZ for submit@debbugs.gnu.org; Tue, 03 Jun 2014 16:06:42 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wruyg-0001jm-H7 for submit@debbugs.gnu.org; Tue, 03 Jun 2014 16:06:35 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:38394) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wruyg-0001jg-EM for submit@debbugs.gnu.org; Tue, 03 Jun 2014 16:06:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38265) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wruye-0008Le-IG for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:06:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wruyd-0001iO-9R for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:06:32 -0400 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:59942) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wruyc-0001iK-Uf for bug-gnu-emacs@gnu.org; Tue, 03 Jun 2014 16:06:31 -0400 Original-Received: by mail-wg0-f44.google.com with SMTP id a1so7242965wgh.15 for ; Tue, 03 Jun 2014 13:06:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:user-agent:mime-version :content-type; bh=DN+EA4u0pDUo0Qpt6c/8qgGsAZbgP/w5RtF9ybQ8LaA=; b=0XV1dO4KegnqPPgkORNwN+Qf1/3Iyvtq6RQOJWNQuPRsH0pMdthSopEPgOA/zrOecF jTbh0ndYW+wzOJgd92OEPquLoUdp2KlwqUyOraUaXkInMK88BQDqF/Ezq8sAQvPK/PPW oWhm7NSOwEd527j6FlFEL7EsIwFfILQU4Qy2sm+z6QwUNXcrONdugJgSKm94aDkHtWgM RLlcQkse+7LuvsMHNegIfmL0qDS6V+EKaXIrsKbPG6qJafLGnEDn719dxjB61SQyKtAu r0yOaCtF7vPC+mgVyH9tfOmu/uSNn6bJRd0Y31WI5PzZAq+65uDVYSf92xSrLS1Juuch +TSQ== X-Received: by 10.180.100.41 with SMTP id ev9mr36518518wib.22.1401825989704; Tue, 03 Jun 2014 13:06:29 -0700 (PDT) Original-Received: from choubidou.localdomain ([2a01:e35:2ef1:4540:e2b9:a5ff:fe0b:e998]) by mx.google.com with ESMTPSA id hs8sm44224995wib.10.2014.06.03.13.06.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Jun 2014 13:06:28 -0700 (PDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89953 Archived-At: --=-=-= Content-Type: text/plain When inserting a class skeleton in python mode (C-c C-t c) and entering an empty value at the inheritance prompt, the last character of the class name is deleted. To reproduce, start emacs with the -Q switch; Then press: C-x h C-w M-x p y t h o n SPC m o d C-c C-t c T e s t r e p o r Here is a patch to fix that problem: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-python.el-Fix-missing-char-while-inserting-class-ske.patch Content-Description: python.el: Fix missing char while inserting class skeleton >From 81552cf6913d93caf47c0c1b7863af214cb447b1 Mon Sep 17 00:00:00 2001 From: Matthias Meulien Date: Tue, 3 Jun 2014 21:59:59 +0200 Subject: [PATCH] python.el: Fix missing char while inserting class skeleton --- lisp/progmodes/python.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 436442d..ef433eb 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -2983,7 +2983,7 @@ The skeleton will be bound to python-skeleton-NAME." "class " str "(" ("Inheritance, %s: " (unless (equal ?\( (char-before)) ", ") str) - & ")" | -2 + & ")" | -1 ":" \n "\"\"\"" - "\"\"\"" \n > _ \n) -- 1.9.3 --=-=-= Content-Type: text/plain In GNU Emacs 24.4.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2) of 2014-05-27 on choubidou Windowing system distributor `The X.Org Foundation', version 11.0.11501000 Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB Important settings: value of $LC_COLLATE: C value of $LANG: fr_FR.UTF-8 locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: tooltip-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-x h C-w M-x p y t h o n SPC m o d C-c C-t c T e s t r e p o r Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set [2 times] Can't guess python-indent-offset, using defaults: 4 Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message dired format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils skeleton python easymenu comint ring ansi-color time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 80329 5956) (symbols 48 18657 0) (miscs 40 41 99) (strings 32 12365 4964) (string-bytes 1 352743) (vectors 16 10184) (vector-slots 8 387772 4257) (floats 8 69 289) (intervals 56 194 0) (buffers 960 11) (heap 1024 34297 1140)) --=-=-=--