From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jonas Bernoulli Newsgroups: gmane.emacs.bugs Subject: bug#25308: Shorten long "ui-lines" in Custom buffers Date: Sat, 31 Dec 2016 14:26:06 +0100 Message-ID: <87eg0o2psh.fsf@bernoul.li> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483190835 2102 195.159.176.226 (31 Dec 2016 13:27:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 31 Dec 2016 13:27:15 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.1.1 To: 25308@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 31 14:27:10 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1cNJgZ-00074m-SM for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 14:26:59 +0100 Original-Received: from localhost ([::1]:44081 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNJge-0007Ze-Ov for geb-bug-gnu-emacs@m.gmane.org; Sat, 31 Dec 2016 08:27:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42968) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNJfi-0006pY-6K for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:26:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNJff-0007Kg-20 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:26:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:45515) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cNJfe-0007KY-Uc for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cNJfe-0003BQ-Lq for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 31 Dec 2016 13:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25308 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.148319074912213 (code B ref -1); Sat, 31 Dec 2016 13:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 Dec 2016 13:25:49 +0000 Original-Received: from localhost ([127.0.0.1]:60914 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNJfQ-0003Av-RQ for submit@debbugs.gnu.org; Sat, 31 Dec 2016 08:25:49 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51976) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cNJfP-0003Ag-LK for submit@debbugs.gnu.org; Sat, 31 Dec 2016 08:25:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNJfJ-0007A1-Kb for submit@debbugs.gnu.org; Sat, 31 Dec 2016 08:25:42 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59861) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNJfJ-00079v-Gb for submit@debbugs.gnu.org; Sat, 31 Dec 2016 08:25:41 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cNJfI-0006VF-BQ for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:25:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cNJfF-00079C-95 for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:25:40 -0500 Original-Received: from mail.hostpark.net ([212.243.197.30]:46016) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cNJfF-00078h-1S for bug-gnu-emacs@gnu.org; Sat, 31 Dec 2016 08:25:37 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 25ADC1654E for ; Sat, 31 Dec 2016 14:25:31 +0100 (CET) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Original-Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id 89UpkCpWzQ0d for ; Sat, 31 Dec 2016 14:25:31 +0100 (CET) Original-Received: from hal (178-82-62-170.dynamic.hispeed.ch [178.82.62.170]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id EE38B16559 for ; Sat, 31 Dec 2016 14:25:30 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:127624 Archived-At: 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.