From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Newsgroups: gmane.emacs.bugs Subject: bug#19356: electric-pair-mode painful quotes in latex-mode Date: Sun, 14 Dec 2014 11:43:09 +0000 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418557466 29519 80.91.229.3 (14 Dec 2014 11:44:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 11:44:26 +0000 (UTC) Cc: 19356-done@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 14 12:44:19 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 1Y07b0-0001j2-IV for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 12:44:18 +0100 Original-Received: from localhost ([::1]:35669 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y07b0-00061o-4h for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 06:44:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y07ar-0005za-B4 for bug-gnu-emacs@gnu.org; Sun, 14 Dec 2014 06:44:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y07al-0000eb-EO for bug-gnu-emacs@gnu.org; Sun, 14 Dec 2014 06:44:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y07al-0000eV-Bb for bug-gnu-emacs@gnu.org; Sun, 14 Dec 2014 06:44:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Y07al-00011E-2O for bug-gnu-emacs@gnu.org; Sun, 14 Dec 2014 06:44:03 -0500 Resent-From: joaotavora@gmail.com (=?UTF-8?Q?Jo=C3=A3o_?= =?UTF-8?Q?T=C3=A1vora?=) Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Dec 2014 11:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 19356 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 19356@debbugs.gnu.org, joaotavora@gmail.com, monnier@iro.umontreal.ca Original-Received: via spool by 19356-done@debbugs.gnu.org id=D19356.14185574023853 (code D ref 19356); Sun, 14 Dec 2014 11:44:02 +0000 Original-Received: (at 19356-done) by debbugs.gnu.org; 14 Dec 2014 11:43:22 +0000 Original-Received: from localhost ([127.0.0.1]:45270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y07a5-000105-MN for submit@debbugs.gnu.org; Sun, 14 Dec 2014 06:43:22 -0500 Original-Received: from mail-wi0-f180.google.com ([209.85.212.180]:40436) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Y07a2-0000zq-Lj for 19356-done@debbugs.gnu.org; Sun, 14 Dec 2014 06:43:19 -0500 Original-Received: by mail-wi0-f180.google.com with SMTP id n3so6499200wiv.1 for <19356-done@debbugs.gnu.org>; Sun, 14 Dec 2014 03:43:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=AhGmeqLDNbgQBMvHnvixy3uvL+X6VZ/sAR/gM7gy5Lo=; b=vRWNJvd941dSjcZNv1gNlWPt0QHKgWsfa6KqOwHAxwQM49qfiraeg0kzGT0on/SJoo Nw9yjqeQpSeUwkaeGUJqqvfsHxMk9+5Kk5x8hZxOvg/lP2CVEmDIgjLsx/YgQZT4uPKe 1iLy+EedUIGcY0v0QIIaRBj5+ET5BThDZRniPV/rAwOULh0sNgZI1p0KtPvJV1JXYZx/ aSrG5jCa3zmY9abHCyMQGkPt6u9baUcdGJGOfnuilTvQ4FCVUHpDyU1J1121PZ/UvHfJ aOmeyQPxzV9k7CHoS5/SREZqHviQYfMizqkiTA602S0O8af9V8Qx3kaMPvli+kc0KfM3 2q5A== X-Received: by 10.194.201.137 with SMTP id ka9mr44194712wjc.66.1418557392923; Sun, 14 Dec 2014 03:43:12 -0800 (PST) Original-Received: from holy.lan.yourcompany.com (31.57.37.188.rev.vodafone.pt. [188.37.57.31]) by mx.google.com with ESMTPSA id hn2sm8896494wjc.5.2014.12.14.03.43.11 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 14 Dec 2014 03:43:11 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Sat, 13 Dec 2014 23:53:06 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.92 (darwin) 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:97317 Archived-At: Stefan Monnier writes: >> What kind of surrounding should take place? Should it be >> ``wordityped'' >> or should it be >> "wordityped" >> ? > > I think either way would be OK. > I guess ideally > > C-M-SPC " > > should do > > ``wordityped'' > > and > > C-M-SPC " " > > should do > > "wordityped" > > but it's OK if we don't reach this ideal. Not sure If I agree that's ideal, but I'll try to implement it for and use in my tex-mode this week. > I don't see the need to extend electric-pair's code for this use > case, indeed, except if it can be done with a well-placed hook. I don't think it can. Not without heroic sophistication. > The patch looks OK. Installing it on emacs-24 sounds good, thank you Done. Hope I haven't forgotten anything... > (and no, it won't be cherry picked: it'll be merged instead). So this very same commit to emacs-24 (and all other commits) will be an ancestor of master. OK, that works, I suppose. I hear talk (and misunderstandings) of rebasing in emacs-devel, which is basically cherry-picking, and that's why I asked. I probably misunderstood (and sure as hell don't want to fuel that discusssion). J