From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joaotavora@gmail.com (=?utf-8?B?Sm/Do28gVMOhdm9yYQ==?=) Newsgroups: gmane.emacs.devel Subject: Re: electric-pair-mode as a minor mode? Date: Wed, 15 Apr 2015 22:39:44 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1429134195 15688 80.91.229.3 (15 Apr 2015 21:43:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 21:43:15 +0000 (UTC) Cc: Yuri D'Elia , Stefan Monnier , emacs-devel@gnu.org To: Lars Magne Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 15 23:43:15 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 1YiV5W-0001IF-Pq for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 23:43:14 +0200 Original-Received: from localhost ([::1]:34238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiV5W-00084H-5t for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 17:43:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiV2I-0007CK-RC for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:39:59 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiV2E-0002Vt-AS for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:39:54 -0400 Original-Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:36093) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiV2E-0002Vo-3S for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:39:50 -0400 Original-Received: by wizk4 with SMTP id k4so171408897wiz.1 for ; Wed, 15 Apr 2015 14:39:49 -0700 (PDT) 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=JscXg9Jm0t2NKPkCfhx9rHzsdjAm72qwlXbJXsLzD3w=; b=b74Uzn1mHvN/6oJswRpzEXrZeJhvIsEGxxLdolomAxfaQqFST3CL/xA6dVQLGYYbao RMDHvWqlbZThiYu1P7Z8DvSN5EoRj3WY+qYrN9GjGgwis5qf5DhZYCCv1qGsaOwF3cWb x9GOq1ppFtVweMs3IOyfiHoo4Qd8QXPnGie2uZNKMXB6rvKCeBAVJaQUyw9JS6l6XllM Ei+Gq8/4yV13XURAO8QyWt8Mbpf+mrSc2rCjNERqrK2GU/btXkXY7NBXkBq1a78BZXIY 1/zntYBZauzduAQtzpp5O6HRyf1WtTTKKSwoYx4PpYOiZ67i/0ag+ujNC8m+LHpxYtGe lDig== X-Received: by 10.180.96.200 with SMTP id du8mr1797409wib.54.1429133989400; Wed, 15 Apr 2015 14:39:49 -0700 (PDT) Original-Received: from king.yourcompany.com (31.57.37.188.rev.vodafone.pt. [188.37.57.31]) by mx.google.com with ESMTPSA id ez19sm23271637wid.19.2015.04.15.14.39.46 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 14:39:48 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 15 Apr 2015 23:21:32 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::230 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:185489 Archived-At: Lars Magne Ingebrigtsen writes: > 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" > and so on. This is why I said "inserted using message.el's message-cite-* mechanisms". Do these people insert their quotes using message-yank-* variables? If so, the regexp could be constructed to respect those, and not message-cite-prefix-regexp, right? > 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.) Or that. It might not be worth the effort. On a related subject, I was thinking of (require 'smiley) in message.el to avoid a `message-smiley' variable (a list o strings), and just use the cars of `smiley-regexp-alist'. Can that be problematic? (especially because I've learned recently that changes to Emacs's Gnus are automatically cherry-picked to the Gnus upstream where they might break unexpectedly).