unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#25308: Shorten long "ui-lines" in Custom buffers
@ 2016-12-31 13:26 Jonas Bernoulli
  2016-12-31 13:57 ` Eli Zaretskii
       [not found] ` <handler.25308.C.15727997177484.notifdonectrl.0@debbugs.gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Jonas Bernoulli @ 2016-12-31 13:26 UTC (permalink / raw)
  To: 25308

Custom buffers contain two long lines, the first separating the initial
buttons from the options shown below, and the second is for symmetry, I
suppose.  This is implemented in `custom-group-value-create'.

These lines are 999 characters long.  When point ends up on the "line
line", then it ends up at the *end* of that line, scrolling all content
except for the line itself off-window.  This happens both with C-n/C-p,
as well as when using the mouse scroll wheel.

This is very distracting and I would suggest that these lines be removed
completely.  If that is not an option, then I would suggest to make the
lines short enough for them to almost always end before the window edge.
80 characters instead of 999 would do, I think.

If that is considered to be too ugly, then I would suggest setting the
`:align-to' to be just long enough to reach the edge of the window (but
never longer) at the time `custom-group-value-create' is called, using
something like:

(list 'space :align-to
      `(+ (0 . right)
          ,(min (window-hscroll)
                (- (line-end-position)
                   (line-beginning-position)))))

Thanks for considering these options.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-11-04 13:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-31 13:26 bug#25308: Shorten long "ui-lines" in Custom buffers Jonas Bernoulli
2016-12-31 13:57 ` Eli Zaretskii
2019-09-29 17:55   ` Lars Ingebrigtsen
2019-11-03 13:13   ` Stefan Kangas
2019-11-03 14:34     ` Lars Ingebrigtsen
2019-11-03 15:48     ` Eli Zaretskii
2019-11-03 16:48       ` Stefan Kangas
     [not found] ` <handler.25308.C.15727997177484.notifdonectrl.0@debbugs.gnu.org>
2019-11-04 13:21   ` bug#25308: acknowledged by developer (Re: bug#25308: Shorten long "ui-lines" in Custom buffers) Jonas Bernoulli

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).