From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17183: can't insert a quote pair before another Date: Sun, 06 Apr 2014 08:39:26 -0400 Message-ID: References: <87bnwf8czs.fsf@kitaj.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1396788032 5567 80.91.229.3 (6 Apr 2014 12:40:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Apr 2014 12:40:32 +0000 (UTC) Cc: 17183@debbugs.gnu.org To: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 06 14:40:25 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 1WWmN6-0006eb-Qe for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Apr 2014 14:40:24 +0200 Original-Received: from localhost ([::1]:57968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWmN6-0002Yw-FY for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Apr 2014 08:40:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWmMt-00021y-7j for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 08:40:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WWmMl-0007o8-OT for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 08:40:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36311) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WWmMl-0007nR-Ji for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 08:40:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WWmMk-0004ME-Om for bug-gnu-emacs@gnu.org; Sun, 06 Apr 2014 08:40:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 Apr 2014 12:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17183 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17183-submit@debbugs.gnu.org id=B17183.139678797216697 (code B ref 17183); Sun, 06 Apr 2014 12:40:02 +0000 Original-Received: (at 17183) by debbugs.gnu.org; 6 Apr 2014 12:39:32 +0000 Original-Received: from localhost ([127.0.0.1]:37493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWmMG-0004LF-15 for submit@debbugs.gnu.org; Sun, 06 Apr 2014 08:39:32 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:49074) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WWmMC-0004L4-9W for 17183@debbugs.gnu.org; Sun, 06 Apr 2014 08:39:29 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s36CdQRt028044; Sun, 6 Apr 2014 08:39:26 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 44986AE1A3; Sun, 6 Apr 2014 08:39:26 -0400 (EDT) In-Reply-To: <87bnwf8czs.fsf@kitaj.lan> ("=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?="'s message of "Sun, 06 Apr 2014 02:26:15 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4904=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4904> : inlines <693> : streams <1152964> : uri <1722056> 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:87795 Archived-At: > + (unwind-protect > + (progn > + (delete-char -1) > + (not (nth 3 (syntax-ppss)))) > + (insert-char char))) Yuck! Why not (save-excursion (not (nth 3 (syntax-ppss (-1 (point))))))? Stefan