From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode as a minor mode? Date: Sat, 28 Mar 2015 16:36:59 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427575117 28364 80.91.229.3 (28 Mar 2015 20:38:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Mar 2015 20:38:37 +0000 (UTC) Cc: Yuri D'Elia , emacs-devel@gnu.org To: joaotavora@gmail.com (=?windows-1252?B?Sm/jbyBU4XZvcmE=?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 28 21:38:25 2015 Return-path: Envelope-to: ged-emacs-devel@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 1YbxTs-0004fw-Hy for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2015 21:37:20 +0100 Original-Received: from localhost ([::1]:55206 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbxTr-0000w6-MJ for ged-emacs-devel@m.gmane.org; Sat, 28 Mar 2015 16:37:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbxTe-0000vw-IJ for emacs-devel@gnu.org; Sat, 28 Mar 2015 16:37:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YbxTb-0006as-5D for emacs-devel@gnu.org; Sat, 28 Mar 2015 16:37:06 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:40475) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YbxTa-0006am-Vd for emacs-devel@gnu.org; Sat, 28 Mar 2015 16:37:03 -0400 Original-Received: from ceviche.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id t2SKb11m032474; Sat, 28 Mar 2015 16:37:01 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 24BBE6610A; Sat, 28 Mar 2015 16:36:59 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1vo?= =?windows-1252?Q?ra=22's?= message of "Sat, 28 Mar 2015 16:11:25 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.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 RV5259=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5259> : inlines <2542> : streams <1413169> : uri <1892637> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:184483 Archived-At: > I like my syntax-table to understand to know as much as possible, so > that other commands can dwim. Perhaps I'll try a message-mode hack to > make blockquotes and smileys comment syntax. That should bring the 90% > to 99%... My previous message was another example of problematic situations: The behavior of the old electric-pair-mode did not use syntax-ppss and its `)' simply always skipped (if there was a `)' to skip, obviously). Those `)' thingies shouldn't be counted. There can be many other reasons. Here's another: in message-mode you might have a buffer that looks like: > foo far bla (blibli Here's my answer to that. Again, the parens are not balanced (in this case because the matching paren was simply in a part of the message which was omitted). > Anyway `electric-pair-local-mode' is now available so people can choose. I actually don't want to disable electric-pair-mode in text-modes. But I do find it occasionally too optimistic in its assessment of what it knows. Stefan