From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode as a minor mode? Date: Wed, 15 Apr 2015 23:21:32 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429133104 30599 80.91.229.3 (15 Apr 2015 21:25:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 21:25:04 +0000 (UTC) Cc: Yuri D'Elia , Stefan Monnier , emacs-devel@gnu.org To: joaotavora@gmail.com (=?iso-8859-1?Q?Jo=E3o_T=E1vora?=) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 15 23:24:55 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 1YiUnk-0001NP-8y for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 23:24:52 +0200 Original-Received: from localhost ([::1]:34174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUnj-0003Mx-Ae for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 17:24:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUkd-0002tm-8i for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:21:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiUkZ-0005Rc-9K for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:21:39 -0400 Original-Received: from galore.getmail.no ([84.210.184.6]:37688) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUkY-0005RV-Vi for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:21:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by galore.getmail.no (Postfix) with ESMTP id 4806C68837; Wed, 15 Apr 2015 23:21:33 +0200 (CEST) Original-Received: from galore.getmail.no ([127.0.0.1]) by localhost (galore.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id HmjdVwXI8XRr; Wed, 15 Apr 2015 23:21:32 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by galore.getmail.no (Postfix) with ESMTP id 8F496689EF; Wed, 15 Apr 2015 23:21:32 +0200 (CEST) X-Virus-Scanned: amavisd-new at galore.get.c.bitbit.net Original-Received: from galore.getmail.no ([127.0.0.1]) by localhost (galore.get.c.bitbit.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Hm7_W3WGHgx8; Wed, 15 Apr 2015 23:21:32 +0200 (CEST) Original-Received: from stories (cm-84.215.51.58.getinternet.no [84.215.51.58]) by galore.getmail.no (Postfix) with ESMTPS id 683726880C; Wed, 15 Apr 2015 23:21:32 +0200 (CEST) X-Hashcash: 1:23:150415:emacs-devel@gnu.org::bYT751Hh3rlDub3h:0000000000000000000000000000000000000000009Wqy X-Hashcash: 1:23:150415:joaotavora@gmail.com::6XpAR5icixZQpvXA:00000000000000000000000000000000000000000KMaQ X-Hashcash: 1:23:150415:wavexx@thregr.org::z7ppFTa8mqrP4bGy:00000000000000000000000000000000000000000000gYHY X-Hashcash: 1:23:150415:monnier@iro.umontreal.ca::W/xe+ObibaPjmuhZ:0000000000000000000000000000000000001FXc4 In-Reply-To: (=?iso-8859-1?Q?=22Jo=E3o_T=E1vora?= =?iso-8859-1?Q?=22's?= message of "Wed, 15 Apr 2015 22:16:42 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 84.210.184.6 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:185486 Archived-At: joaotavora@gmail.com (Jo=E3o T=E1vora) writes: > Anyway, the specific issue I wanted your feedback about is a few > messages back in this thread. It's about the use of > >>> (let ((citation-regexp (concat "^" message-cite-prefix-regexp ".*$")) > > as a way to consistently detect citations (inserted using message.el's > message-cite-* mechanisms). This is because there are lots of variables > there configuring the prefix, spacing and some other options, that > reference this variable in a comment that I couldn't understand. Like > this: > > (defcustom message-yank-prefix mail-yank-prefix > "*Prefix inserted on the lines of yanked messages. > ->Fix `message-cite-prefix-regexp' if it is set to an abnormal valu= e. > See also `message-yank-cited-prefix' and `message-yank-empty-pref= ix'." > :version "23.2" > :type 'string > :link '(custom-manual "(message)Insertion Variables") > :group 'message-insertion) Ah, right. Well, there's a lot of people who use various non-standard quoting methods. I doubt you'd be able to make them all work out of the box. You have people who use stuff like "Lars | Here's the quouted text"= =20=20 and so on. But if I understand your code correctly, I think what you're doing is fine, and people who use weird quoting styles will just have to cope. (Or rather, not get the new, nice functionality.) --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no