From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.devel Subject: Re: Show Paren mode: New prelude style Date: Mon, 31 Oct 2016 19:30:34 +0000 Message-ID: References: <86lgxa2cz4.fsf@realize.ch> <86h97y2bw9.fsf@realize.ch> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1477943089 29487 195.159.176.226 (31 Oct 2016 19:44:49 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 31 Oct 2016 19:44:49 +0000 (UTC) Cc: Emacs Development To: Alain Schneble Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 31 20:44:44 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 1c1IVL-0004gH-Ko for ged-emacs-devel@m.gmane.org; Mon, 31 Oct 2016 20:44:23 +0100 Original-Received: from localhost ([::1]:38249 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1IVO-00085p-6J for ged-emacs-devel@m.gmane.org; Mon, 31 Oct 2016 15:44:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1IIV-0004lH-84 for emacs-devel@gnu.org; Mon, 31 Oct 2016 15:31:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1IIU-0000Ii-C8 for emacs-devel@gnu.org; Mon, 31 Oct 2016 15:31:07 -0400 Original-Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]:36018) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1IIU-0000IS-7H for emacs-devel@gnu.org; Mon, 31 Oct 2016 15:31:06 -0400 Original-Received: by mail-vk0-x233.google.com with SMTP id p9so11246026vkd.3 for ; Mon, 31 Oct 2016 12:31:05 -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=vnd44O2RAf3kePQAk0GUR+3YZAt5KiEiZ/LTrE7rn9U=; b=CwKwhqwx0iFxssSlhebh2sFq6+PNMhkt9ahrlyhx2/LhzNBEWite6w+8X6opqByJ9E 0e/2cbGivuO8BqT/IT8oD+o4vDQwczwZtdMqDwwpaOdk2Q08DWQN2zBHbTTWYwCbwJeX sWE5NssEKRPWMRH9xbIyyiaXS90HMrOTeU5ssuZIFIvvD1wRodRAly6JzFaU5gAG2WCG suKvD26wQF8OC8xGECUX1+3yLLN9Ozt0pZzbZdtxFfwcR81/J8ConDb0y/sLOKrnoWt/ 7x1lk9IR8/HU+OqlGvxbKgFr1GfD6PoI9h6Y2PDAptvzF29lJzRnTvgTOlNjKbFe20xT Jczg== 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=vnd44O2RAf3kePQAk0GUR+3YZAt5KiEiZ/LTrE7rn9U=; b=Ff2kKwIc/kPBIs0gPzIyKtNV4M5I5oRaPWdNwSUuHFqcNk16Azthixd2WlJdQqnm/9 5TKQi0raYvVmGQpuBaS7U4dxRmllwElQqRmn987aGWc1lvoOKrTbRcqiwU9AagTuefZC Vg8dBgyZow+ITkgNCmJGzJX1AGVFmk2Z9dmh7SSg1gQ20TEQVEs5aI1bjZLUaPex2BDM OCIV5MMzQa2DDOj73DWHCRBRFDUEXhUfVwoKQ6S4S3jQMhocC4SoXDHqn7I7W5tgAsQb ZSNCNOWknFbeipTFKjqGPKx4wFWR194H5ApjTJ7+la6nkUVBaE4WFCwzqk7oROSxh537 XTwA== X-Gm-Message-State: ABUngvcL2Zjenty/yehboxzFxldhaBg2TNiCvMe16BjjNbBTCHYiCQjfMqyeFSWdomq4huW02BQe2M1QFGBd1A== X-Received: by 10.31.153.195 with SMTP id b186mr713074vke.140.1477942265349; Mon, 31 Oct 2016 12:31:05 -0700 (PDT) Original-Received: by 10.176.16.66 with HTTP; Mon, 31 Oct 2016 12:30:34 -0700 (PDT) In-Reply-To: <86h97y2bw9.fsf@realize.ch> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::233 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:209038 Archived-At: 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.