From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#23387: 25.0.93; Unicode quote inserted in Python mode outside of strings Date: Wed, 27 Apr 2016 16:14:57 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1461766583 13948 80.91.229.3 (27 Apr 2016 14:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Apr 2016 14:16:23 +0000 (UTC) To: 23387@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 27 16:16:09 2016 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 1avQG8-0003UD-U1 for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 16:16:09 +0200 Original-Received: from localhost ([::1]:43461 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQG8-0006zx-An for geb-bug-gnu-emacs@m.gmane.org; Wed, 27 Apr 2016 10:16:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQG3-0006tg-GQ for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:16:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avQG2-0000pU-AJ for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:16:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:37817) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQG2-0000pO-78 for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avQG2-0003O2-0r for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 27 Apr 2016 14:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146176651712958 (code B ref -1); Wed, 27 Apr 2016 14:16:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Apr 2016 14:15:17 +0000 Original-Received: from localhost ([127.0.0.1]:50154 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avQFI-0003Mw-KL for submit@debbugs.gnu.org; Wed, 27 Apr 2016 10:15:17 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41146) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avQFH-0003Mh-0e for submit@debbugs.gnu.org; Wed, 27 Apr 2016 10:15:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avQF5-0000X9-PN for submit@debbugs.gnu.org; Wed, 27 Apr 2016 10:15:09 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:38115) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQF5-0000X5-MF for submit@debbugs.gnu.org; Wed, 27 Apr 2016 10:15:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQF4-0005U5-9l for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:15:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avQF2-0000WI-T1 for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:15:02 -0400 Original-Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:38723) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avQF2-0000Vg-GX for bug-gnu-emacs@gnu.org; Wed, 27 Apr 2016 10:15:00 -0400 Original-Received: by mail-wm0-x22b.google.com with SMTP id u206so51624594wme.1 for ; Wed, 27 Apr 2016 07:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ViiOkfYEC+kKAPdJZiNHJ9tA4OMLZj/VS5ls4xkgkN8=; b=fjczUDJ7vTGaYeBTZxtpiUTXWOuDVTWwfRG2n/b+EOmn77NccqtsS5WZAJ9FX5UDOk jUzSZ17DXQqaMSGuSoWG3x/Cvm1b5cDNr/CAFtbqrLbwrtJl3UtS1M/k0XhRw/Wkj0T1 0PuINf4u1/DhwXOtKlY3yWM8Ui2U4FonXTUlxrvt6JeE0TJW4K2e1upbB52qdJ3zMF+e uHQVuC87m6J/Nng0A1IuuFulYtxliQ84vdYsPnBk6FFKt9JsAKhHo9BohKjgx0wqsRd8 572o7NYZPLL2n2UzIZZqQzut2yq4IcSR5mczyYV1gcmcRW/+W7dQABBLC4exUYUpliz1 aymw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=ViiOkfYEC+kKAPdJZiNHJ9tA4OMLZj/VS5ls4xkgkN8=; b=KVpa+iJNHwHrYBTgnpSbRVFukJny3ipT8HiZ8sBV8I7bplslCK3elmCVbJAKs67Rtg Cfiald/y/7YMQIf4K/ko3TYUdLNscmqKadDGCyhxDIHMGA2HulfkGdQjYLQe4c3Owo1o kk9mOZWW1KJur4wB7XcgH15pBZXWHg1jR2rk638mi/fs2Fqg0p1ztBME7JA7p90x1ZNk vOxvmdWaeRIcK7Ccd1XegwMqJDMYc4gwR8TxtLCRtDcQ6fYvQr64qmz7GR7TWSxGlcfp 7dt1ZrTyMeZ/77Wo/cEF0mxl4sCJAlP+YhEUjCiCLh9xoifV8UaxYgWOAzzR+Odbr7aF Xsdw== X-Gm-Message-State: AOPr4FW/0LjglRyo160pkbz5y3FL64qmnVGr1rU4viq8Aco3/3JOKISP54TlpZRYIQ3ppw== X-Received: by 10.28.31.73 with SMTP id f70mr10835974wmf.77.1461766499530; Wed, 27 Apr 2016 07:14:59 -0700 (PDT) Original-Received: from a.muc.corp.google.com ([2a00:79e0:15:4:453b:c3b3:e6f3:4183]) by smtp.gmail.com with ESMTPSA id w79sm29631036wme.19.2016.04.27.07.14.58 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 27 Apr 2016 07:14:58 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:116911 Archived-At: emacs -Q M-x electric-quote-mode M-x customize-variable RET electric-quote-string, set it to t, save M-x python-mode Hit ' Expected: ' (ASCII apostrophe) is inserted because point is outside a string Actual: =E2=80=99 (Unicode quote) is inserted This seems to happen only in Python mode, not in e.g. emacs-lisp-mode. In GNU Emacs 25.0.93.5 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.8) of 2016-04-24 built on localhost Repository revision: 0cd2e923dba8d8c7128b0c084ce6af22069e8db5 Windowing system distributor 'The X.Org Foundation', version 11.0.11501000 System Description: Ubuntu 14.04 LTS Configured using: 'configure --with-modules LDFLAGS=3D-Wl,-fuse-ld=3Dgold,--export-dynamic-symbol=3D__google_auxv' Configured features: XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Python Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-mode: t electric-quote-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 messages: Electric-Quote mode enabled Quit Creating customization items... Creating customization items ...done Resetting customization items...done Creating customization setup...done To install your edits, invoke [State] and choose the Set operation Source file =E2=80=98/usr/local/google/home/phst/ThirdParty/Emacs/lisp/prog= modes/python.el=E2=80=99 newer than byte-compiled file Can=E2=80=99t guess python-indent-offset, using defaults: 4 Source file =E2=80=98/usr/local/google/home/phst/ThirdParty/Emacs/lisp/dire= d.el=E2=80=99 newer than byte-compiled file Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message dired rfc822 mml mml-sec epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils python tramp-sh tramp tramp-compat auth-source cl-seq eieio eieio-core cl-macs gnus-util mm-util mail-prsvr password-cache tramp-loaddefs trampver ucs-normalize shell pcomplete format-spec advice json map seq byte-opt gv bytecomp byte-compile cl-extra cconv comint ring ansi-color cus-edit wid-edit thingatpt help-fns help-mode easymenu cl-loaddefs pcase cl-lib cus-start cus-load time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer cl-preloaded 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 inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 239874 9745) (symbols 48 24466 0) (miscs 40 400 230) (strings 32 29068 7264) (string-bytes 1 922223) (vectors 16 39237) (vector-slots 8 730263 4252) (floats 8 240 60) (intervals 56 261 0) (buffers 976 14) (heap 1024 32672 1237)) --=20 Google Germany GmbH Erika-Mann-Stra=C3=9Fe 33 80636 M=C3=BCnchen Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Gesch=C3=A4ftsf=C3=BChrer: Matthew Scott Sucherman, Paul Terence Manicle Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat sind, leiten Sie diese bitte nicht weiter, informieren Sie den Absender und l=C3= =B6schen Sie die E-Mail und alle Anh=C3=A4nge. Vielen Dank. This e-mail is confidential. If you are not the right addressee please do = not forward it, please inform the sender, and please erase this e-mail including any attachments. Thanks.