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:16:42 +0100 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429132813 25644 80.91.229.3 (15 Apr 2015 21:20:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 15 Apr 2015 21:20:13 +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:20:12 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 1YiUjD-0007nG-HJ for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 23:20:11 +0200 Original-Received: from localhost ([::1]:34160 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUjC-000287-Mh for ged-emacs-devel@m.gmane.org; Wed, 15 Apr 2015 17:20:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUg1-0001Lc-Vf for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:16:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YiUfw-0003zQ-LM for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:16:53 -0400 Original-Received: from mail-wi0-x22e.google.com ([2a00:1450:400c:c05::22e]:36005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YiUfw-0003zM-DY for emacs-devel@gnu.org; Wed, 15 Apr 2015 17:16:48 -0400 Original-Received: by wizk4 with SMTP id k4so170830869wiz.1 for ; Wed, 15 Apr 2015 14:16:46 -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:content-transfer-encoding; bh=iYlD7837Ez1RjzESAd3mh2Uzl7QSvnCBu1Gk6P+OCYA=; b=CjfnBNzx2s8JE+INSXmjwsXWiIPTC2f1HjtoyE1+7dbKEiLADieh0279PS5NTodlzt EvCiIPcwWG34C7Zo+Xvpve2qFhGXcOZu4z5LDssER689vP6+C5FWGnP7KCoap9sIqkeY qrLINmFcG5ursVGJFQJhBkHCNOqqpfGSmM5CIYfsXsT0NsdO/gnECeejBz1eD81iPIhB pmQJMZvdkhJO+pMwTGXoF4gx87AGgjzJGL/Sft+ZVInfkWbK01IG35Bl88fP/JgsYe0S z/accF0cSO34Xcd4/3cgEVk5ToHn7N/7qGVMU0Jgbc4xZbF624AdvLAqnu87rzeCtMZY mTUw== X-Received: by 10.194.248.132 with SMTP id ym4mr7452544wjc.74.1429132606874; Wed, 15 Apr 2015 14:16:46 -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 gs7sm23225087wib.10.2015.04.15.14.16.45 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Apr 2015 14:16:45 -0700 (PDT) In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 15 Apr 2015 15:59:24 +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::22e 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:185485 Archived-At: Lars Magne Ingebrigtsen writes: > joaotavora@gmail.com (Jo=C3=A3o T=C3=A1vora) writes: > >> Since Lars hasn't responded yet, here's an updated patch that addresses >> the issues discussed so far. OK to install? > > Looks OK to me, I think, but I know nothing about electric-pair-mode... > The patch will help show-paren-mode, electric-pair-mode and general C-M-f sexp-base navigation. 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 value. See also `message-yank-cited-prefix' and `message-yank-empty-prefix= '." :version "23.2" :type 'string :link '(custom-manual "(message)Insertion Variables") :group 'message-insertion) Jo=C3=A3o=20