Subject: 24.2; nlinum version 1.2 does not work correctly with indirect buffers

From: Mark Lillibridge <[email-masked]>
Date: Sat, 08 Feb 2014 11:30:48 -0800

This bug report will be sent to the Bug-GNU-Emacs mailing list
and the GNU bug tracker at debbugs.gnu.org.  Please check that
the From: line contains a valid email address.  After a delay of up
to one day, you should receive an acknowledgement at that address.

Please write in English if possible, as the Emacs maintainers
usually do not have translators for other languages.

Please describe exactly what actions triggered the bug, and
the precise symptoms of the bug.  If you can, give a recipe
starting from `emacs -Q':

    emacs24 -q
     ; substitute below path to your copy of nlinum:
    {esc}: (load "/home/mdl/elisp/nlinum") 
    
    {esc}x global-nlinum-mode {enter}
    {ctrl+x}b *scratch* {enter}
    
    {ctrl+x}4c
    
    Hit enter multiple times; observe that line numbers for the new
    lines appear in the original buffer but not the indirect buffer you
    are currently in.  This is a bug: line numbers should be present for
    every line in both buffers.
    
    Type some more text.  Same effect.
    
    Switch to the original buffer via {ctrl+x}o
    Insert some text here.  Note line numbers still missing in indirect buffer.

In GNU Emacs 24.2.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2013-11-24 on foil
Windowing system distributor `The Cygwin/X Project', version 11.0.11403000
Configured using:
 `configure '--prefix=/home/mdl/bin/emacs-24.2' '--without-gif''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  global-nlinum-mode: t
  nlinum-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
o t h e r SPC n i t o r SPC k SPC C-u 3 <escape> G 
<help-echo> <C-escape> C-: C-g <escape> : C-y <return> 
<help-echo> <escape> x C-y <return> <help-echo> <help-echo> 
<help-echo> C-x b C-y <return> C-x 4 c <return> <return> 
<return> <return> h e l l o <return> C-x o d f b h 
j <return> d k d <return> <down-mouse-1> <mouse-movement> 
<mouse-1> <escape> x b u g <tab> <escape> <backspace> 
C-g <escape> x b u g - <tab> <escape> <backspace> <escape> 
<backspace> r e p <tab> o <tab> r <tab> <return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
scroll-up-command: End of buffer [3 times]
Quit
Loading /home/mdl/elisp/nlinum...done
t
Global-Nlinum mode enabled
Quit
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu view cus-start cus-load
nlinum linum time-date tooltip ediff-hook vc-hooks lisp-float-type
mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process dynamic-setting font-render-setting
x-toolkit x multi-tty emacs)