all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* linum + narrow = hang
@ 2016-01-31  1:51 unfrostedpoptart
  2016-01-31  2:08 ` Drew Adams
       [not found] ` <mailman.3223.1454206146.843.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 4+ messages in thread
From: unfrostedpoptart @ 2016-01-31  1:51 UTC (permalink / raw)
  To: help-gnu-emacs

Help!

I've been using emacs/Linux (usually RHEL) for many years and have always used c-x n n (narrow-to-region) and have used linum (global-linux-mode t in my init.el / custom-set-variables).   Lately, possibly since running on SUSE, emacs hangs if I try and narrow while linum is on.

It displays
Error in Post-command-hook (linum-update-current): (args-out-of-range 1 1)

The only way out seems to be kill -9 emacs-process.

Any ideas?  This is messing with my flow having to shut off linum.  Yes, I have the line number in the mode line but my compiler reports give errors with line numbers and it's much faster to see what's going on with linum.

Here's my config:
gnu emacs 24.5.1 x86_64-unknown-linux-gnu , GTK+ Version 2.18.9)
SUSE Linux Enterprise Desktop 11, Patchlevel 3

Thanks much,

 David


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: linum + narrow = hang
  2016-01-31  1:51 linum + narrow = hang unfrostedpoptart
@ 2016-01-31  2:08 ` Drew Adams
       [not found] ` <mailman.3223.1454206146.843.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2016-01-31  2:08 UTC (permalink / raw)
  To: unfrostedpoptart, help-gnu-emacs

> emacs hangs if I try and narrow while linum is on.  It displays
> Error in Post-command-hook (linum-update-current): (args-out-of-range 1 1)
> ...
> Any ideas?

`M-x report-emacs-bug'.  Provide a step-by-step recipe to repro
the problem, starting with `emacs -Q'.



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linum + narrow = hang
       [not found] ` <mailman.3223.1454206146.843.help-gnu-emacs@gnu.org>
@ 2016-01-31  4:04   ` unfrostedpoptart
  2016-01-31 16:14     ` Eli Zaretskii
  0 siblings, 1 reply; 4+ messages in thread
From: unfrostedpoptart @ 2016-01-31  4:04 UTC (permalink / raw)
  To: help-gnu-emacs

On Saturday, January 30, 2016 at 6:09:09 PM UTC-8, Drew Adams wrote:
> > emacs hangs if I try and narrow while linum is on.  It displays
> > Error in Post-command-hook (linum-update-current): (args-out-of-range 1 1)
> > ...
> > Any ideas?
> 
> `M-x report-emacs-bug'.  Provide a step-by-step recipe to repro
> the problem, starting with `emacs -Q'.

Thanks.  I ran with -Q and then manually loaded parts of my init.el.   It turned out to be in the custom-set-face section.  Specifically, the default font included setting a box around it:

:box (:line-width 1 :color "black")

I did this because I had put boxes around other font faces since I liked how it looked in various modes and I had to put the same size box around default face or text didn't line up anymore.   If I comment out that one line of my init.el, everything is fine.  So there's some odd interaction between linum and narrow if there's a box around default!
 
 David


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: linum + narrow = hang
  2016-01-31  4:04   ` unfrostedpoptart
@ 2016-01-31 16:14     ` Eli Zaretskii
  0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2016-01-31 16:14 UTC (permalink / raw)
  To: help-gnu-emacs

> Date: Sat, 30 Jan 2016 20:04:56 -0800 (PST)
> From: unfrostedpoptart <david@therogoffs.com>
> 
> Thanks.  I ran with -Q and then manually loaded parts of my init.el.   It turned out to be in the custom-set-face section.  Specifically, the default font included setting a box around it:
> 
> :box (:line-width 1 :color "black")
> 
> I did this because I had put boxes around other font faces since I liked how it looked in various modes and I had to put the same size box around default face or text didn't line up anymore.   If I comment out that one line of my init.el, everything is fine.  So there's some odd interaction between linum and narrow if there's a box around default!

This is now fixed for the next release.  Thanks for a detailed report.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-01-31 16:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-31  1:51 linum + narrow = hang unfrostedpoptart
2016-01-31  2:08 ` Drew Adams
     [not found] ` <mailman.3223.1454206146.843.help-gnu-emacs@gnu.org>
2016-01-31  4:04   ` unfrostedpoptart
2016-01-31 16:14     ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.