unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Copley <rcopley@gmail.com>
To: Alain Schneble <a.s@realize.ch>
Cc: Emacs Development <emacs-devel@gnu.org>
Subject: Re: Show Paren mode: New prelude style
Date: Mon, 31 Oct 2016 19:30:34 +0000	[thread overview]
Message-ID: <CAPM58oiVMYUGW3-Wibs0ihtkOHBVzEs+bZjV9QH5koyob=BUew@mail.gmail.com> (raw)
In-Reply-To: <86h97y2bw9.fsf@realize.ch>

On 27 October 2016 at 13:51, Alain Schneble <a.s@realize.ch> wrote:
> Alain Schneble <a.s@realize.ch> 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.



  reply	other threads:[~2016-10-31 19:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-27 12:27 Show Paren mode: New prelude style Alain Schneble
2016-10-27 12:51 ` Alain Schneble
2016-10-31 19:30   ` Richard Copley [this message]
2016-10-31 19:57     ` Evgeny Roubinchtein
2016-10-27 15:26 ` Eli Zaretskii
2016-10-27 17:15   ` Alain Schneble
2016-10-27 17:31     ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPM58oiVMYUGW3-Wibs0ihtkOHBVzEs+bZjV9QH5koyob=BUew@mail.gmail.com' \
    --to=rcopley@gmail.com \
    --cc=a.s@realize.ch \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).