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: Thu, 28 Apr 2016 17:11:53 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113fb2ec05335305318ea0ff X-Trace: ger.gmane.org 1461863600 552 80.91.229.3 (28 Apr 2016 17:13:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Apr 2016 17:13:20 +0000 (UTC) To: 23387@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 28 19:13:12 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 1avpV0-0007sa-QQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 19:13:10 +0200 Original-Received: from localhost ([::1]:50282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avpUz-0008Dn-Lk for geb-bug-gnu-emacs@m.gmane.org; Thu, 28 Apr 2016 13:13:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avpUv-0008Aq-KR for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 13:13:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avpUs-0002vr-AU for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 13:13:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avpUs-0002vm-7x for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 13:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1avpUr-00080X-Ty for bug-gnu-emacs@gnu.org; Thu, 28 Apr 2016 13:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Apr 2016 17:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23387 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23387-submit@debbugs.gnu.org id=B23387.146186353130722 (code B ref 23387); Thu, 28 Apr 2016 17:13:01 +0000 Original-Received: (at 23387) by debbugs.gnu.org; 28 Apr 2016 17:12:11 +0000 Original-Received: from localhost ([127.0.0.1]:53458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avpU2-0007zS-Qo for submit@debbugs.gnu.org; Thu, 28 Apr 2016 13:12:10 -0400 Original-Received: from mail-lf0-f44.google.com ([209.85.215.44]:34129) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1avpU1-0007zD-8q for 23387@debbugs.gnu.org; Thu, 28 Apr 2016 13:12:09 -0400 Original-Received: by mail-lf0-f44.google.com with SMTP id j11so103533185lfb.1 for <23387@debbugs.gnu.org>; Thu, 28 Apr 2016 10:12:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=ROMHT64RG5ITotXwIrRmGakI3/XgyhuXqnobZO4vgPU=; b=OkmAKhtH9RWG11GCCfM6hDo8zoIKBLbA0xf5RxQKLAeTC3Xi5AYuBjatoiSXS8ddDT H4EEcFv+kg8imH0YKT9vQ/IKo9GUNjTzsvT4OwNufuuZkXQWYIsgWDvkevz/pOcMPRtT +oMKwFrRwvOSxQCn31LcSUGy5JBykhpIGFyLSI//MvmLTeiBFk+t7FBQcKmwKV8bj2Iv l3jklz3rrm/rlTz0vAaT9qjCaasyF6fN40G8HBXDmnmaxNgz1rrWH7hZEdb4C4TBwfXg ju2VA6BDiIWhfJsMHF0ZQr/e7TJyzkctwRe15+dIQnjhQfloJt4eCOFFK9oYJGWRQZq+ 9J1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=ROMHT64RG5ITotXwIrRmGakI3/XgyhuXqnobZO4vgPU=; b=Yb0IPmJluNEn5XSYBSgF7UOCfOTweZ3rLvHQgPIwbmwUjf7Jrh2SPuahOkPIj0WP8L r1PgSHsJNQiQXBlnTLEOPFME2vOE5xdK+BNN8TgtQ6CyuzwzAaa80vwWGed00CE6RZDC 8I/OM9RmWHlAabwnlptv77RXucWgJkv3bsDdfrkIJnfYoVyaxUGpngzMYW7tycUwVasv CsNXHdzsBwD5iCLlwByRKoo1zVjA0N2K5R0uFGA1uKWxh0O2LmoLPF+fsjqqLd5Xlf/o Jl4/BTpBo1RqUw1e9qpevAFdQINbOglZjgApkKD1Q57N4SdHFUkz7ZOF47wG9GmoddkX 37sA== X-Gm-Message-State: AOPr4FWMaoZJJbjrTJ/5wavqzRIC4xiWylRhpx+cFOUFO9VrlIo3lOouOhJaKWTQC7TeZXIgTj0pkvqNikSoGw== X-Received: by 10.25.18.102 with SMTP id h99mr6819837lfi.127.1461863523363; Thu, 28 Apr 2016 10:12:03 -0700 (PDT) In-Reply-To: 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:117102 Archived-At: --001a113fb2ec05335305318ea0ff Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Philipp Stephani schrieb am Mi., 27. Apr. 2016 um 16:16 Uhr: > > 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. > > Also happens in C++ mode, and probably others. --001a113fb2ec05335305318ea0ff Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Philip= p Stephani <p.stephani2@gmail.c= om> schrieb am Mi., 27. Apr. 2016 um 16:16=C2=A0Uhr:

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 s= tring
Actual: =E2=80=99 (Unicode quote) is inserted

This seems to happen only in Python mode, not in e.g. emacs-lisp-mode.

Also happens in C++ mode, and probably others.=C2=A0
--001a113fb2ec05335305318ea0ff--