unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Christoph Scholtes <cschol2112@googlemail.com>
Cc: 11496@debbugs.gnu.org
Subject: bug#11496: 24.1.50; Line numbers are not redrawn correctly in linum-mode
Date: Wed, 16 May 2012 22:40:39 -0400	[thread overview]
Message-ID: <jwvtxzfbkfi.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <86likr37id.fsf@googlemail.com> (Christoph Scholtes's message of "Wed, 16 May 2012 19:45:30 -0600")

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

> Start with emacs -Q.
> Don't maximize frame.
> Open a file that has more lines than the current frame.
> M-x linum-mode
> Maximize frame.
> Line numbers are only drawn where the original, visible frame boundary
> was.
> Press down arrow key.
> Line numbers are redrawn for the entire frame.

> The same thing happens when narrowing on a function and then widen
> again.  Only the narrowed piece has the new line numbers until the next
> explicit redraw.

You may have more luck with my reimplementation of linum which uses
jit-lock, which hopefully fixes those problems (tho it may come with
others of course).


        Stefan

[-- Attachment #2: nlinum.el --]
[-- Type: application/emacs-lisp, Size: 4183 bytes --]

  reply	other threads:[~2012-05-17  2:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-17  1:45 bug#11496: 24.1.50; Line numbers are not redrawn correctly in linum-mode Christoph Scholtes
2012-05-17  2:40 ` Stefan Monnier [this message]
2012-05-17  3:02   ` Christoph Scholtes
2012-05-17 13:59     ` Stefan Monnier
2012-05-17  3:50   ` Juanma Barranquero
2012-05-17 13:49     ` Stefan Monnier
2012-05-17 13:08   ` Johan Bockgård
2012-05-17  9:09 ` martin rudalics
2012-05-17 10:12   ` martin rudalics
2012-05-17 16:15     ` Eli Zaretskii
2012-05-18 17:59       ` Stefan Monnier

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=jwvtxzfbkfi.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=11496@debbugs.gnu.org \
    --cc=cschol2112@googlemail.com \
    /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).