From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Yates Newsgroups: gmane.emacs.devel Subject: Re: Proposed extension of show-paren-mode: Highlight parens when point is in L or R margin. Date: Tue, 14 Oct 2014 14:32:31 -0400 Message-ID: References: <20141011134312.GA4148@acm.acm> <20141012100416.GC3148@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e016350baf860fe0505663ce3 X-Trace: ger.gmane.org 1413311564 31430 80.91.229.3 (14 Oct 2014 18:32:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 18:32:44 +0000 (UTC) Cc: Alan Mackenzie , Emacs developers To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 14 20:32:37 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 1Xe6th-0008Jp-1m for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 20:32:37 +0200 Original-Received: from localhost ([::1]:39896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe6tg-0003e0-MG for ged-emacs-devel@m.gmane.org; Tue, 14 Oct 2014 14:32:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe6td-0003dn-Ou for emacs-devel@gnu.org; Tue, 14 Oct 2014 14:32:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xe6tc-0004LE-N8 for emacs-devel@gnu.org; Tue, 14 Oct 2014 14:32:33 -0400 Original-Received: from mail-yh0-x22f.google.com ([2607:f8b0:4002:c01::22f]:65347) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xe6tc-0004Kq-JE for emacs-devel@gnu.org; Tue, 14 Oct 2014 14:32:32 -0400 Original-Received: by mail-yh0-f47.google.com with SMTP id c41so5437499yho.34 for ; Tue, 14 Oct 2014 11:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=F8mH1gMt03y9MkPcjntio/1jV2y1tr529TqT2bDmvAk=; b=ICBn8cDoqyF7jUwMwUm1YUzxMUTqJ36bM2ba9wTK0gAaHq246CJMpxdvugo7IOF6H4 ZQZ4szWQ/2gAOc4dMxmBwTK/MLtEVU6Etf/3zdFnp8hWILE/mDgqxi142sx7hEbJHxTp PVoCZM09rlJBQkLRgirrDKvrDNV+aKws6slDCewvkbSSih9ImnX1O3Bn6SnOH/LTeK3l HuVNyuFnu7eWNCdZaNOHmTxqiXhfPseQkx/xdQJmT3YqIW++bhQSk0opoO0O9uzKKWhR FA0IPpy+kWa24ugby3RsJBiORtCyiIF1Qlbb7nmFHqIk7iQkfmnFTY5Dnka3GvtNSCK8 lJiw== X-Received: by 10.236.19.106 with SMTP id m70mr6074998yhm.81.1413311551265; Tue, 14 Oct 2014 11:32:31 -0700 (PDT) Original-Received: by 10.170.153.213 with HTTP; Tue, 14 Oct 2014 11:32:31 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: SOwOnZ8bijaURFb431_up_K6Tuk X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c01::22f 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:175363 Archived-At: --089e016350baf860fe0505663ce3 Content-Type: text/plain; charset=UTF-8 It seems to me that the ultimate thrust of this proposal is to offer a variant show-paren-mode. This new variant would differ from the current behavior of firing only when the cursor is located immediately before an open-paren or immediately after a close-paren to a new behavior in which all logical whitespace (including comments) on the current line is ignored. Such a conceptual model has a number of virtues: - It relates the proposed behavior to today's behavior in a clear and intelligible way. - It points to a fully general model that includes how to behave when the cursor is within whitespace inside a line. - By accounting for _all_ whitespace on the line it finesses the need for "periphery" or similar terminology. /john --089e016350baf860fe0505663ce3 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
It seems to me that the ultimate thrust of this proposal i= s to offer a variant show-paren-mode.=C2=A0 This new variant would differ f= rom the current behavior of firing only when the cursor is located immediat= ely before an open-paren or immediately after a close-paren to a new behavi= or in which all logical whitespace (including comments) on the current line= is ignored.=C2=A0 Such a conceptual model has a number of virtues:
- I= t relates the proposed behavior to today's behavior in a clear and inte= lligible way. =C2=A0
- It points to a fully general model that in= cludes how to behave when the cursor is within whitespace inside a line.
- By accounting for _all_ whitespace on the line it finesses the ne= ed for "periphery" or similar terminology.

/john

--089e016350baf860fe0505663ce3--