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: Mon, 30 Mar 2015 18:02:15 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1427752958 10230 80.91.229.3 (30 Mar 2015 22:02:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Mar 2015 22:02:38 +0000 (UTC) Cc: Yuri D'Elia , Lars Magne Ingebrigtsen , 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 Tue Mar 31 00:02:32 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 1YchlJ-0008Pv-Rs for ged-emacs-devel@m.gmane.org; Tue, 31 Mar 2015 00:02:25 +0200 Original-Received: from localhost ([::1]:36108 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YchlJ-00026K-70 for ged-emacs-devel@m.gmane.org; Mon, 30 Mar 2015 18:02:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55491) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YchlE-000264-Mk for emacs-devel@gnu.org; Mon, 30 Mar 2015 18:02:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YchlB-0001rB-Fz for emacs-devel@gnu.org; Mon, 30 Mar 2015 18:02:20 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:29126) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YchlB-0001qy-CI for emacs-devel@gnu.org; Mon, 30 Mar 2015 18:02:17 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDYg3ohGMAx5MAwECgz4DA4NtBKg7 X-IPAS-Result: AgUFAGvvdVRBbthL/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDYg3ohGMAx5MAwECgz4DA4NtBKg7 X-IronPort-AV: E=Sophos;i="5.01,1,1400040000"; d="scan'208";a="114995479" Original-Received: from 65-110-216-75.cpe.pppoe.ca (HELO fmsmemgm.homelinux.net) ([65.110.216.75]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 30 Mar 2015 18:02:16 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E3870AE0BC; Mon, 30 Mar 2015 18:02:15 -0400 (EDT) In-Reply-To: (=?windows-1252?Q?=22Jo=E3o_T=E1vo?= =?windows-1252?Q?ra=22's?= message of "Mon, 30 Mar 2015 21:42:25 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:184576 Archived-At: > Well spotted. Though it shouldn't hurt to have a buffer pos ending a > comment that never started. It's kind of OK, but it's suboptimal. Another side effect (for normal cited lines) is that the last char of that line will have "end of comment" syntax rather than its normal syntax, so M-f may end up stopping one char earlier than expected (if the cited lines ends with a word). > Otoh I see no reason why it shouldn't be > `end' to `(1+ end)' instead... Because you generally don't know what's after `end'. I think in the case of the smiley regexps, rather than mark them as comments, it's better to only change the parenthesis's syntax to be "punctuation". Stefan