Subject: bug#5042: 23.1; linum-mode gives incorrect line numbers with narrowed buffers

From: Lennart Borgman <[email-masked]>
Date: Sun, 10 Jan 2010 03:05:58 +0100

On Sun, Jan 10, 2010 at 2:32 AM, Mark Lillibridge
<[email-masked]> wrote:
>
>    That's a good idea.  We could add a buffer local variable that
> determines how to number lines when a restriction is in effect.  Rmail,
> Info, and similar modes could set this variable for their buffers to
> start numbering the visible restriction at 1.  Other buffers would
> depend on the user's global customization setting.  goto-line, linum,
> and related features would consult this variable.
>
>    I don't know any good arguments for which way to set the global
> default.

External utilities will use the whole file. So if the file is to be
touched by external utilities (like grep) then I think  the default
should be to start numbering from the file's beginning.