all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Berman <stephen.berman@gmx.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: auto-hscroll only the current line in a window
Date: Fri, 19 May 2017 00:13:47 +0200	[thread overview]
Message-ID: <87o9upu82s.fsf@rosalinde> (raw)
In-Reply-To: <83k25d52kr.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 18 May 2017 23:31:48 +0300")

On Thu, 18 May 2017 23:31:48 +0300 Eli Zaretskii <eliz@gnu.org> wrote:

> Someone on reddit got excited about such a feature in Nano, so I came
> up with its emulation, see the latest trunk.  Give it a try and see if
> you like it.  It looks cool, but I cannot really think why would I
> need it in Real Lifeā„¢.
>
> Caveat: the feature might have some rough edges, and I expect a few of
> them to be insoluble, since some parts of the display engine simply
> cannot work 100% correctly with this feature, without a thorough
> redesign.  But it seemed to work surprisingly well in my testing, so
> maybe the problems only rarely rear their head.  Report any problems
> you see, of course.
>
> Enjoy.

I just tried it and it seems to work well and looks pretty nice.  One
thing missing is an update of the Customize interface for this user
option, perhaps like this (capitalization and style are not consistent
across Customize tags, I used ones that appears several times):

diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 117b23debe..08a2d0f29f 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -556,7 +556,12 @@ minibuffer-prompt-properties--setter
 		      (const :tag "Text-image-horiz" :value text-image-horiz)
 		      (const :tag "System default" :value nil)) "24.1")
              (tool-bar-max-label-size frames integer "24.1")
-	     (auto-hscroll-mode scrolling boolean "21.1")
+	     (auto-hscroll-mode scrolling
+                                (choice
+		                 (const :tag "Off (nil)" :value nil)
+		                 (const :tag "On (t)" :value t)
+		                 (const :tag "Current line only" :value current-line))
+                                "26.1")
 	     (void-text-area-pointer cursor
 				     (choice
 				      (const :tag "Standard (text pointer)" :value nil)

Steve Berman



  reply	other threads:[~2017-05-18 22:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-18 20:31 auto-hscroll only the current line in a window Eli Zaretskii
2017-05-18 22:13 ` Stephen Berman [this message]
2017-05-19  1:24   ` Kaushal Modi
2017-05-19  7:04   ` Eli Zaretskii
2017-05-19  9:43     ` Stephen Berman
2017-05-19 22:18       ` Kaushal Modi

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

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

  git send-email \
    --in-reply-to=87o9upu82s.fsf@rosalinde \
    --to=stephen.berman@gmx.net \
    --cc=eliz@gnu.org \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.