From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#24169: 25.1.50; Line numbers disappear when horizontally scrolled Date: Sat, 6 Aug 2016 13:52:06 -0400 Message-ID: References: <83a8gpkcvm.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1470506009 22745 195.159.176.226 (6 Aug 2016 17:53:29 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 6 Aug 2016 17:53:29 +0000 (UTC) Cc: ivan , 24169@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Aug 06 19:53:24 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 1bW5mg-0004lu-Og for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 19:53:18 +0200 Original-Received: from localhost ([::1]:50176 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bW5md-0006he-IE for geb-bug-gnu-emacs@m.gmane.org; Sat, 06 Aug 2016 13:53:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49575) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bW5mU-0006fc-R3 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 13:53:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bW5mQ-0002OT-JB for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 13:53:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60838) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bW5mQ-0002OP-FS for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 13:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bW5mQ-0004Po-97 for bug-gnu-emacs@gnu.org; Sat, 06 Aug 2016 13:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 06 Aug 2016 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24169 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24169-submit@debbugs.gnu.org id=B24169.147050593416909 (code B ref 24169); Sat, 06 Aug 2016 17:53:02 +0000 Original-Received: (at 24169) by debbugs.gnu.org; 6 Aug 2016 17:52:14 +0000 Original-Received: from localhost ([127.0.0.1]:58135 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW5le-0004Oe-6h for submit@debbugs.gnu.org; Sat, 06 Aug 2016 13:52:14 -0400 Original-Received: from mail-oi0-f43.google.com ([209.85.218.43]:35616) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bW5lc-0004OR-Ie for 24169@debbugs.gnu.org; Sat, 06 Aug 2016 13:52:13 -0400 Original-Received: by mail-oi0-f43.google.com with SMTP id 4so192684388oih.2 for <24169@debbugs.gnu.org>; Sat, 06 Aug 2016 10:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Edh7cB238sQSJFjzh+UDllOe5OF2y7KCsXTSz3j7eX8=; b=r8ycGwC6Q9U7dx+rDBf2Eryg/LGiqNj++ZF1SPf0LBCaTylBUEuCu/spCLjYL2J1yx +5zs5ZlGBbo74KvjjWzOKxu7X+zljWMsPp6D9gCYu0oZfO3/qUdgzyQZhfCszLke7ELx FNIoGe3WC3BjIE8tkTffoB92OiA0DRpltmnZKn9EDHy4vGXOuhTbBnz3uaTwmxPV2FbT UQTMyxM27VlcExeCHlpqM6IgSPKeCm4LeYlcv34IQnjdbzR3lnSn/HnYwWRo0zR7ofsK JEkpY/gH6JRIO8e3zrtAFNhJH5QdTOLwjO0+ipra3dYJNRd9hdLK8IEPLCvD9uyAWKSl iyoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Edh7cB238sQSJFjzh+UDllOe5OF2y7KCsXTSz3j7eX8=; b=MMN2ZJVNN/hW9ATwJRZ1E7xxD8xjuq9RAZ1th8YmjWdZONzAq+921FHebSpZdtMLTN /7ljGzzyKKg5j3/TedrmKL3b5hj2D1uXP0uhL6ReSnVvN9C1oNt78QDELUr7Ek8l45+E WO1PT5cBLKk48gKxbFYiTpxXplV86fM496Y8B6+2KtBIy2wneyYlZANMLaPuoM/6rmJd YMrmmOGPBt2WNdHT/uvxgvnJhdQuz+kt+Qsw8CvnWIlynbJQRvweVjs6hWSfw4re0C/V IMk2JP9m9jr2oqlXN/GoYW/Hw6LYXW0afuDdQzkZQqbkjI6ItM1/TlAOrP1TbziFuR1I XK5g== X-Gm-Message-State: AEkooutPQ0XIqjvTFL3H1KdKNgRB/1e4SnEvhnEqoslsyQafes8y5D//PzxnvllGRkvOEOFrBGtLfTRH3JWR0g== X-Received: by 10.157.24.7 with SMTP id b7mr4254089ote.35.1470505926930; Sat, 06 Aug 2016 10:52:06 -0700 (PDT) Original-Received: by 10.157.7.161 with HTTP; Sat, 6 Aug 2016 10:52:06 -0700 (PDT) In-Reply-To: <83a8gpkcvm.fsf@gnu.org> X-Google-Sender-Auth: A_Vrqc1JZqMsa24BevYLq2lQcPE 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:121914 Archived-At: On Sat, Aug 6, 2016 at 1:47 PM, Eli Zaretskii wrote: >> From: ivan >> Date: Sat, 6 Aug 2016 12:02:09 -0400 >> >> Using linum-mode displays line numbers to the left of the left fringe. I would expect them to remain visible >> regardless of any horizontal scrolling, since that's how the left fringe behaves (not to mention numerous other >> editors and applications). However, when using line-truncation, the line numbers disappear when the text is >> horizontally scrolled. I think this is worth fixing, because it would be more useful and look better (the dead >> space takes up screen real-estate and makes me sad). > > It's a bug in the design of linum-mode: it puts the overlay that > displays the line numbers on the first character of each line. So > when that first character is not displayed, the overlay is not shown > either. > > A possible fix would be to move the overlay to the first visible > character after the horizontal scroll. Patches welcome. Wouldn't it be simpler to put the overlay over the whole line, so it doesn't need to be moved?