From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Evgeny Roubinchtein Newsgroups: gmane.emacs.devel Subject: Re: Show Paren mode: New prelude style Date: Mon, 31 Oct 2016 15:57:45 -0400 Message-ID: References: <86lgxa2cz4.fsf@realize.ch> <86h97y2bw9.fsf@realize.ch> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113d4b1223445605402e9f10 X-Trace: blaine.gmane.org 1477943944 18875 195.159.176.226 (31 Oct 2016 19:59:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 31 Oct 2016 19:59:04 +0000 (UTC) Cc: Alain Schneble , Emacs Development To: Richard Copley Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 31 20:59:00 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1c1IjG-0002vB-Ol for ged-emacs-devel@m.gmane.org; Mon, 31 Oct 2016 20:58:46 +0100 Original-Received: from localhost ([::1]:38314 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1IjJ-0000x3-Ee for ged-emacs-devel@m.gmane.org; Mon, 31 Oct 2016 15:58:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1IiK-0000vI-3x for emacs-devel@gnu.org; Mon, 31 Oct 2016 15:57:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1IiJ-0006HS-88 for emacs-devel@gnu.org; Mon, 31 Oct 2016 15:57:48 -0400 Original-Received: from mail-yb0-x230.google.com ([2607:f8b0:4002:c09::230]:36477) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1IiJ-0006HB-0l for emacs-devel@gnu.org; Mon, 31 Oct 2016 15:57:47 -0400 Original-Received: by mail-yb0-x230.google.com with SMTP id v78so18637597ybe.3 for ; Mon, 31 Oct 2016 12:57:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=ttMJ8CEYQL468H4MMmzHu5AlBm1TOeQ6H/llGID8dFQ=; b=Ca8pPH7ounfyo64SsB+8wiBl9IhBLHWbCiZBa7A4jK6qw2qaDWX4LpEiIXzuabN/21 3LehNtIevia5sUzvqbw9TVUvVeyfjCRyplPJOD+jpeviRiE0hPMW2OGiNQtyZDqr9BlG KtXVBn/zFgKcrrJ4JE/1nJpb/4j5f34otEUFs5m+/CND9qIBT582s/RZ06DrFiAmn/eI ywST4Y0G1amHL0Znh7uJga8YkQOqAJsxyto2p+BSn86IdGeLE4UQneb5npyZ4J6UVVre FBOPL8EJA7syFEgA8fs+t0eR096FeHcaZoPxPI/HndsfNtEZ27eUoQ3RTWrRz8Y2PZ51 IMYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ttMJ8CEYQL468H4MMmzHu5AlBm1TOeQ6H/llGID8dFQ=; b=NpGJ9JZXcvcvFiWXZOZJxqMrWEWI2SH7PB9KH95M+8aYFhmsRjVStNVSQH3hzbrYzm 7H3jCl6EcnjlTe7C+ei4lgJuDA37d1cHjQ+6CN0NUe7wIrdDomjbmRBxgbCGrfWR1bnD 0kRkUUBrO18gGTw2WRd1ycI/RfY45A28C6fPmAUDTROY6TuGua7F6lpblheqaRUQylGX MNdORAapTPhnjr/xWCiGaMreVSHk6wyOMSJLG2ZZ/CBEAuvm1BAYCXsyBitQkcQI/zDL EJuHBCsZa9LI/Qs7GWeF3/LalgChkKlP4+mAB2exu5sT4S9dQfLfDStWOXqnJhznyaSm 14FA== X-Gm-Message-State: ABUngvfZsVldm49cXUV9t1hBGY+dysulcQqFHWlQ4GvK+ygx+fm0yNqAUNzRDTL2iobzvAkxSSea612LI9J79w== X-Received: by 10.37.37.140 with SMTP id l134mr26963193ybl.103.1477943866112; Mon, 31 Oct 2016 12:57:46 -0700 (PDT) Original-Received: by 10.37.161.71 with HTTP; Mon, 31 Oct 2016 12:57:45 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4002:c09::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:209040 Archived-At: --001a113d4b1223445605402e9f10 Content-Type: text/plain; charset=UTF-8 FWIW, the following two minor modes are already part of Emacs: * which-function-mode * semantic-stickyfunc-mode On Mon, Oct 31, 2016 at 3:30 PM, Richard Copley wrote: > On 27 October 2016 at 13:51, Alain Schneble wrote: > > Alain Schneble writes: > > > >> Below you will find a patch to extend show-paren-mode with a new > >> `prelude' style. It's an extension of `parenthesis' style. If the > >> matching opening paren is not visible, it will show the line of text > >> containing it as an overlay on the window's start line. I think it's > >> pretty useful, as it helps in keeping context when working e.g. in > >> defuns with many lines of code -- all without having to scroll up and > >> down. > > > > It just came to my mind that I might better had introduced a new > > separate customizable option to enable or disable prelude instead of > > mixing it with the already existing style. After all, it could be > > useful in *addition* to the existing ones. What do you think? > > Alain, > I agree, it seems to be orthogonal to show-paren mode. It sounds > more like a good old-fashioned minor-mode than a custom option. > > Did you rule out using header-line-format? My feeling is that > as a user I want to see the line at window-start and I'd prefer > it not to be obscured by an overlay. > > --001a113d4b1223445605402e9f10 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
FWIW, the following two minor modes are already part of = =C2=A0Emacs:

* which-function-mode
* semantic-= stickyfunc-mode
--001a113d4b1223445605402e9f10--