emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Trunk emacs infelicity with linum mode


From: Eli Zaretskii
Subject: Re: Trunk emacs infelicity with linum mode
Date: Thu, 04 Sep 2014 18:29:13 +0300

> From: Manoj Srivastava <address@hidden>
> Date: Wed, 03 Sep 2014 09:28:20 -0700
> 
> Breakpoint 3, lface_from_face_name_no_resolve (address@hidden, 
> address@hidden, address@hidden)
>     at xfaces.c:1967
> 1967        signal_error ("Invalid face", face_name);
> --8<---------------cut here---------------end--------------->8---
> 
> --8<---------------cut here---------------start------------->8---
> #0  lface_from_face_name_no_resolve (address@hidden, address@hidden, 
> address@hidden)
>     at xfaces.c:1967
> #1  0x00000000004b047b in get_lface_attributes_no_remap (address@hidden, 
> address@hidden, 
>     address@hidden, address@hidden) at xfaces.c:2003
> #2  0x00000000004b160f in get_lface_attributes (address@hidden, 
> face_name=17204162, address@hidden, signal_p=1, 
>     address@hidden) at xfaces.c:2050
> #3  0x00000000004b7569 in lookup_named_face (address@hidden, address@hidden, 
> address@hidden)
>     at xfaces.c:4503
> #4  0x00000000004b760e in Fface_font (face=17204162, frame=<optimized out>, 
> character=12672242) at xfaces.c:3844
> #5  0x0000000000554fd2 in Ffuncall (nargs=<optimized out>, address@hidden) at 
> eval.c:2815
> #6  0x0000000000589bf3 in exec_byte_code (bytestr=<optimized out>, 
> vector=16288805, maxdepth=<optimized out>, 
>     args_template=<optimized out>, address@hidden, args=<optimized out>, 
> address@hidden) at bytecode.c:920
> #7  0x0000000000554b47 in funcall_lambda (fun=22295153, address@hidden, 
> arg_vector=0x7fffffffc438, 
>     address@hidden) at eval.c:2976
> #8  0x0000000000554e0b in Ffuncall (nargs=2, address@hidden) at eval.c:2869
> #9  0x0000000000589bf3 in exec_byte_code (bytestr=<optimized out>, 
> vector=19151957, maxdepth=<optimized out>, 
>     args_template=<optimized out>, address@hidden, args=<optimized out>, 
> address@hidden) at bytecode.c:920
> #10 0x0000000000554b47 in funcall_lambda (fun=22294961, address@hidden, 
> arg_vector=0x7fffffffc5a0, 
>     address@hidden) at eval.c:2976
> #11 0x0000000000554e0b in Ffuncall (address@hidden, address@hidden) at 
> eval.c:2869
> #12 0x00000000005551ca in call1 (address@hidden, arg1=<optimized out>) at 
> eval.c:2607
> #13 0x000000000055c7f2 in mapcar1 (leni=1, address@hidden, address@hidden, 
> address@hidden) at fns.c:2591
> #14 0x000000000055ca32 in Fmapc (function=22953634, sequence=17119974) at 
> fns.c:2680
> #15 0x0000000000554fe2 in Ffuncall (nargs=<optimized out>, address@hidden) at 
> eval.c:2811
> #16 0x0000000000589bf3 in exec_byte_code (bytestr=<optimized out>, 
> vector=16288725, maxdepth=<optimized out>, 
>     args_template=<optimized out>, address@hidden, args=<optimized out>, 
> address@hidden) at bytecode.c:920
> #17 0x0000000000554b47 in funcall_lambda (fun=22295569, address@hidden, 
> arg_vector=0x7fffffffc7d0, 
>     address@hidden) at eval.c:2976
> #18 0x0000000000554e0b in Ffuncall (nargs=2, address@hidden) at eval.c:2869
> #19 0x0000000000589bf3 in exec_byte_code (bytestr=<optimized out>, 
> vector=16289461, maxdepth=<optimized out>, 
>     args_template=<optimized out>, address@hidden, args=<optimized out>, 
> address@hidden) at bytecode.c:920
> #20 0x0000000000554b47 in funcall_lambda (fun=22296849, address@hidden, 
> arg_vector=0x7fffffffc908, 
>     address@hidden) at eval.c:2976
> #21 0x0000000000554e0b in Ffuncall (address@hidden, address@hidden) at 
> eval.c:2869
> #22 0x00000000005551e8 in call0 (fn=22958818) at eval.c:2592
> #23 0x000000000046bda6 in run_funs (funs=17204162) at window.c:3315
> #24 0x000000000047188d in run_window_configuration_change_hook 
> (address@hidden) at window.c:3369
> #25 0x0000000000420db1 in adjust_frame_size (f=0x120f6d0, 
> new_width=<optimized out>, new_height=<optimized out>, 
>     inhibit=<optimized out>, pretend=<optimized out>) at frame.c:582
> #26 0x000000000041e4ce in change_frame_size (pixelwise=<optimized out>, 
> safe=<optimized out>, delay=<optimized out>, 
>     pretend=<optimized out>, new_height=<optimized out>, new_width=<optimized 
> out>, f=<optimized out>) at dispnew.c:5560
> #27 do_pending_window_change (safe=false) at dispnew.c:5487
> #28 0x0000000000420e27 in adjust_frame_size (f=0x120f6d0, 
> new_width=<optimized out>, new_height=<optimized out>, inhibit=0, 
>     pretend=<optimized out>) at frame.c:484
> #29 0x00000000004cfd62 in Fx_create_frame (parms=17204162) at xfns.c:3244

When I follow this recipe on my machine, I see no call to
run_window_configuration_change_hook, because adjust_frame_size
returns before that, having discovered (around line 500) that the new
and the old dimensions are identical, and therefore no resize is
needed.

Can you see why this is not so in your case?  Perhaps the calculations
of frame dimensions in the case of Lucid are to blame?

Also, I think linum-update-window should do nothing if 'linum' is not
a valid face on the selected frame, because functions in
window-configuration-change-hook can be called in many situations on
which linum has no control.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]