From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin. Date: Sun, 12 Oct 2014 08:39:09 +0000 Message-ID: <20141012083908.GA3148@acm.acm> References: <20141011134312.GA4148@acm.acm> <83vbnq8z6j.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1413103519 5702 80.91.229.3 (12 Oct 2014 08:45:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 12 Oct 2014 08:45:19 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 12 10:45:12 2014 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 1XdEm8-0004Jp-5a for ged-emacs-devel@m.gmane.org; Sun, 12 Oct 2014 10:45:12 +0200 Original-Received: from localhost ([::1]:56563 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdEm7-0004Xn-Rn for ged-emacs-devel@m.gmane.org; Sun, 12 Oct 2014 04:45:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdEly-0004Sl-0N for emacs-devel@gnu.org; Sun, 12 Oct 2014 04:45:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XdEln-0001vm-Nk for emacs-devel@gnu.org; Sun, 12 Oct 2014 04:45:01 -0400 Original-Received: from colin.muc.de ([193.149.48.1]:41341 helo=mail.muc.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XdEln-0001vS-Dw for emacs-devel@gnu.org; Sun, 12 Oct 2014 04:44:51 -0400 Original-Received: (qmail 97920 invoked by uid 3782); 12 Oct 2014 08:44:49 -0000 Original-Received: from acm.muc.de (pD951B032.dip0.t-ipconnect.de [217.81.176.50]) by colin.muc.de (tmda-ofmipd) with ESMTP; Sun, 12 Oct 2014 10:44:48 +0200 Original-Received: (qmail 3228 invoked by uid 1000); 12 Oct 2014 08:39:09 -0000 Content-Disposition: inline In-Reply-To: <83vbnq8z6j.fsf@gnu.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.12 (Macallan) X-Primary-Address: acm@muc.de X-detected-operating-system: by eggs.gnu.org: FreeBSD 8.x X-Received-From: 193.149.48.1 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:175281 Archived-At: Hi, Eli. On Sat, Oct 11, 2014 at 05:21:24PM +0300, Eli Zaretskii wrote: > > So: If point is in the LH margin of the code, highlight the first paren > > on the line and its match, or failing that, the last paren on the line > > with its match. > Thanks, but PLEASE don't call this a "margin". OK, not "margin". But what, then? I tried for some time to come up with something better that would still fit into a ~78 character first line of the doc string for the new customisable variable. So far, I've had this: "If non-nil, try to show parens when point is in LH or RH margin." Maybe I could omit the "try to ". Maybe I should. How about something like: "If non-nil, show parens when point is before or after the line's code." ? It's a bit clumsy, though. As for the name "show-paren-when-point-in-margin", that would have to become "show-parens-when-point-outside-code", or something, which isn't quite accurate (sometimes, short comments are inside a line of code), and isn't very nmonic. > We have already too many overloaded meanings of this term, so let's > avoid adding yet another one. Hmm. Or, perhaps we could just admit this, and allow "margin" to be used loosely whenever appropriate. ;-). -- Alan Mackenzie (Nuremberg, Germany).