From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Manoj Srivastava Newsgroups: gmane.emacs.devel Subject: Re: Trunk emacs infelicity with linum mode Date: Wed, 03 Sep 2014 09:28:20 -0700 Organization: Manoj Srivastava's Home Message-ID: <87wq9kd5y3.fsf@glaurung.internal.golden-gryphon.com> References: <87zjeix7hg.fsf@glaurung.internal.golden-gryphon.com> <838um1gar9.fsf@gnu.org> <87ppfdyhpf.fsf@glaurung.internal.golden-gryphon.com> <8361h5g7mv.fsf@gnu.org> <87zjehw5cs.fsf@glaurung.internal.golden-gryphon.com> <834mwog0u0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1409761749 19218 80.91.229.3 (3 Sep 2014 16:29:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2014 16:29:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 03 18:29:03 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XPDQb-0004Ok-KR for ged-emacs-devel@m.gmane.org; Wed, 03 Sep 2014 18:29:01 +0200 Original-Received: from localhost ([::1]:46575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPDQb-000501-84 for ged-emacs-devel@m.gmane.org; Wed, 03 Sep 2014 12:29:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45918) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPDQH-0004zq-Ty for emacs-devel@gnu.org; Wed, 03 Sep 2014 12:28:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPDQD-00008U-0u for emacs-devel@gnu.org; Wed, 03 Sep 2014 12:28:41 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:45373) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPDQC-00008L-Na for emacs-devel@gnu.org; Wed, 03 Sep 2014 12:28:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XPDQB-00045q-8s for emacs-devel@gnu.org; Wed, 03 Sep 2014 18:28:35 +0200 Original-Received: from c-71-231-121-134.hsd1.wa.comcast.net ([71.231.121.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 18:28:35 +0200 Original-Received: from srivasta by c-71-231-121-134.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 03 Sep 2014 18:28:35 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 161 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-231-121-134.hsd1.wa.comcast.net User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) (x86_64-unknown-linux-gnu) Face: iVBORw0KGgoAAAANSUhEUgAAACYAAAAwCAMAAABKbPgaAAAAM1BMVEUAAADIjH/0rp1KPz79 0b+ic2nlpJc2Ly2AY17VlYb4uqi2gHQXFBN2WVXgno5iT02Xa2Nx+jaIAAACVElEQVQ4jeWU23bj IAxFLUAggQX6/6+dI9LGTpo+9mlYiXNhc3TnOP50naZE0tqvgEk+soutnNfQ8yPTWMTENhNrjI+Y +N7POVt8tAzpn2vJlsmttbyfrdkP7hx5iezteGzsbOts7xT+tC1mcG+LtRP2X/16bEQExuyx1uZW vscrAWUT8aE0aDBeBuw8nS5u4WgWyDCllOZUBeyWgbWbGrBsTDpTx0qpphlcYPcgJLvBXFClPMg5 6WH2JidLIAaDF5aAed7uPTH4bjw0bZvfajp2tHc1F+cBm+Vr9YomGSwNhbmcczYEWUu5MBpYvCLV F+ZIKwQfYB+CBXnIRQFvIRhK6l96PemsFLEPFxi+MPxiTYH0Ave1InPsIYes3NJb42ytBSmmysyj lIQYHJm6Im1WbQ0kWMesKFRFPKTDzJ3GhWUn2KWKEkWlKthoACLm2eWJQQh2qKbAUgQxa+8TVjn1 aySm8656ookCfCc5TRzvnZ6YOu3NpHg+uR5YuRkNF/b5IHq5Y7Ve6c2+sR4hqIZ3+5DCt3ukh8Eo vFIXVJxqfMdbkd/BF3YaQkB/2RIUHPMS7RLVAHefrYzWZVQ/ei4peBsROFLi90ltQyvF5I05t4Zs L4C9DODJ2AZCUf8UitGjCIdfx15QQkfZibTOGT3edxns5fY6F2rstKcTwiiaJnQwvYkdzTlaTqNH IkSmGdLrON45tGsMNDoSYr4bxH5emHEFaoFjKBahHXFXfLx9cR9p6ejJXihuxPz57gWHZkWovbPl 9gsU8eImtBi++3D+f+sfT/Mg79fyEz8AAAAASUVORK5CYII= X-URL: http://www.golden-gryphon.com/ Mail-Copies-To: never Cancel-Lock: sha1:ijrXC32qL0rSLmKL9jbngZy9c5k= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:173986 Archived-At: On Wed, Sep 03 2014, Eli Zaretskii wrote: F>> From: Manoj Srivastava >> Date: Wed, 03 Sep 2014 00:06:11 -0700 >> > Also, after you load it, do you see the 'linum' face in the buffer >> > popped up by "M-x list-faces-display"? >> Yes, the face does exist. I can also see the same face in the >> line numbers on the left. In previous sessions, I had tried >> customizing the face, to no avail (I have since removed the >> customization). > I don't understand how is this possible. I can only suggest to run > Emacs under GDB, put a breakpoint on the line in xfaces.c marked below: > and then post the backtrace when the breakpoint breaks. > (Please make sure GDB reads the .gdbinit file when you start it, so > that the backtrace includes the Lisp level.) --8<---------------cut here---------------start------------->8--- (gdb) list lface_from_face_name_no_resolve 1951 signal an error if FACE_NAME is not a valid face name. If SIGNAL_P 1952 is zero, value is nil if FACE_NAME is not a valid face name. */ 1953 static Lisp_Object 1954 lface_from_face_name_no_resolve (struct frame *f, Lisp_Object face_name, 1955 int signal_p) 1956 { 1957 Lisp_Object lface; 1958 1959 if (f) 1960 lface = assq_no_quit (face_name, f->face_alist); (gdb) list 1961 else 1962 lface = assq_no_quit (face_name, Vface_new_frame_defaults); 1963 1964 if (CONSP (lface)) 1965 lface = XCDR (lface); 1966 else if (signal_p) 1967 signal_error ("Invalid face", face_name); 1968 1969 check_lface (lface); 1970 (gdb) break 1967 Breakpoint 3 at 0x4b0429: file xfaces.c, line 1967. (gdb) run -Q Starting program: /usr/local/src/emacs/src/emacs -Q [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffe794b700 (LWP 2199)] [New Thread 0x7fffe6d32700 (LWP 2200)] [New Thread 0x7fffe6531700 (LWP 2201)] Breakpoint 3, lface_from_face_name_no_resolve (f=f@entry=0x120f6d0, face_name=face_name@entry=17204162, signal_p=signal_p@entry=1) 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 (f=f@entry=0x120f6d0, face_name=face_name@entry=17204162, signal_p=signal_p@entry=1) at xfaces.c:1967 #1 0x00000000004b047b in get_lface_attributes_no_remap (f=f@entry=0x120f6d0, face_name=face_name@entry=17204162, attrs=attrs@entry=0x7fffffffc2c0, signal_p=signal_p@entry=1) at xfaces.c:2003 #2 0x00000000004b160f in get_lface_attributes (f=f@entry=0x120f6d0, face_name=17204162, attrs=attrs@entry=0x7fffffffc2c0, signal_p=1, named_merge_points=named_merge_points@entry=0x0) at xfaces.c:2050 #3 0x00000000004b7569 in lookup_named_face (f=f@entry=0x120f6d0, symbol=symbol@entry=17204162, signal_p=signal_p@entry=1) at xfaces.c:4503 #4 0x00000000004b760e in Fface_font (face=17204162, frame=, character=12672242) at xfaces.c:3844 #5 0x0000000000554fd2 in Ffuncall (nargs=, args=args@entry=0x7fffffffc438) at eval.c:2815 #6 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=16288805, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffc438) at bytecode.c:920 #7 0x0000000000554b47 in funcall_lambda (fun=22295153, nargs=nargs@entry=1, arg_vector=0x7fffffffc438, arg_vector@entry=0x7fffffffc5a8) at eval.c:2976 #8 0x0000000000554e0b in Ffuncall (nargs=2, args=args@entry=0x7fffffffc5a0) at eval.c:2869 #9 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=19151957, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffc5a0) at bytecode.c:920 #10 0x0000000000554b47 in funcall_lambda (fun=22294961, nargs=nargs@entry=1, arg_vector=0x7fffffffc5a0, arg_vector@entry=0x7fffffffc6e8) at eval.c:2976 #11 0x0000000000554e0b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffc6e0) at eval.c:2869 #12 0x00000000005551ca in call1 (fn=fn@entry=22953634, arg1=) at eval.c:2607 #13 0x000000000055c7f2 in mapcar1 (leni=1, vals=vals@entry=0x0, fn=fn@entry=22953634, seq=seq@entry=17119974) at fns.c:2591 #14 0x000000000055ca32 in Fmapc (function=22953634, sequence=17119974) at fns.c:2680 #15 0x0000000000554fe2 in Ffuncall (nargs=, args=args@entry=0x7fffffffc7d0) at eval.c:2811 #16 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=16288725, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffc7d0) at bytecode.c:920 #17 0x0000000000554b47 in funcall_lambda (fun=22295569, nargs=nargs@entry=1, arg_vector=0x7fffffffc7d0, arg_vector@entry=0x7fffffffc910) at eval.c:2976 #18 0x0000000000554e0b in Ffuncall (nargs=2, args=args@entry=0x7fffffffc908) at eval.c:2869 #19 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=16289461, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x7fffffffc908) at bytecode.c:920 #20 0x0000000000554b47 in funcall_lambda (fun=22296849, nargs=nargs@entry=0, arg_vector=0x7fffffffc908, arg_vector@entry=0x7fffffffca30) at eval.c:2976 #21 0x0000000000554e0b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x7fffffffca28) 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 (f=f@entry=0x120f6d0) at window.c:3369 #25 0x0000000000420db1 in adjust_frame_size (f=0x120f6d0, new_width=, new_height=, inhibit=, pretend=) at frame.c:582 #26 0x000000000041e4ce in change_frame_size (pixelwise=, safe=, delay=, pretend=, new_height=, new_width=, f=) 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=, new_height=, inhibit=0, pretend=) at frame.c:484 #29 0x00000000004cfd62 in Fx_create_frame (parms=17204162) at xfns.c:3244 #30 0x0000000000554fee in Ffuncall (nargs=, args=args@entry=0x7fffffffccf8) at eval.c:2808 #31 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=9233173, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:920 #32 0x0000000000554aaf in funcall_lambda (fun=9233077, nargs=nargs@entry=1, arg_vector=arg_vector@entry=0x7fffffffcea0) at eval.c:3042 #33 0x0000000000554e0b in Ffuncall (nargs=2, args=args@entry=0x7fffffffce98) at eval.c:2869 #34 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=9882037, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:920 #35 0x0000000000554aaf in funcall_lambda (fun=9881949, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd040) at eval.c:3042 #36 0x0000000000554e0b in Ffuncall (nargs=1, args=args@entry=0x7fffffffd038) at eval.c:2869 #37 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=9881709, maxdepth=, args_template=, nargs=nargs@entry=0, args=, args@entry=0x0) at bytecode.c:920 #38 0x0000000000554aaf in funcall_lambda (fun=9881621, nargs=nargs@entry=0, arg_vector=arg_vector@entry=0x7fffffffd350) at eval.c:3042 #39 0x0000000000554e0b in Ffuncall (nargs=nargs@entry=1, args=args@entry=0x7fffffffd348) at eval.c:2869 #40 0x000000000055078a in Ffuncall_interactively (nargs=1, args=0x7fffffffd348) at callint.c:270 #41 0x0000000000554ee1 in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffd340) at eval.c:2789 #42 0x0000000000555c4c in Fapply (nargs=nargs@entry=3, args=args@entry=0x7fffffffd340) at eval.c:2290 #43 0x0000000000550d5c in Fcall_interactively (function=20495666, record_flag=12672242, keys=12707029) at callint.c:419 #44 0x0000000000554fd2 in Ffuncall (nargs=, args=args@entry=0x7fffffffd428) at eval.c:2815 #45 0x0000000000589bf3 in exec_byte_code (bytestr=, vector=9622181, maxdepth=, args_template=, nargs=nargs@entry=1, args=, args@entry=0x7fffffffd428) at bytecode.c:920 #46 0x0000000000554b47 in funcall_lambda (fun=9622145, nargs=nargs@entry=1, arg_vector=0x7fffffffd428, arg_vector@entry=0x7fffffffd568) at eval.c:2976 #47 0x0000000000554e0b in Ffuncall (nargs=nargs@entry=2, args=args@entry=0x7fffffffd560) at eval.c:2869 #48 0x00000000005551ca in call1 (fn=, arg1=) at eval.c:2607 #49 0x00000000004eff4d in command_loop_1 () at keyboard.c:1569 #50 0x0000000000553367 in internal_condition_case (bfun=bfun@entry=0x4efbc0 , handlers=, hfun=hfun@entry=0x4e6e00 ) at eval.c:1347 #51 0x00000000004e256e in command_loop_2 (ignore=ignore@entry=12672242) at keyboard.c:1193 #52 0x000000000055324b in internal_catch (tag=12720194, func=func@entry=0x4e2550 , arg=12672242) at eval.c:1111 #53 0x00000000004e252b in command_loop () at keyboard.c:1172 #54 0x00000000004e69ef in recursive_edit_1 () at keyboard.c:782 #55 0x00000000004e6d30 in Frecursive_edit () at keyboard.c:853 #56 0x0000000000414791 in main (argc=0, argv=0x7fffffffd908) at emacs.c:1642 Lisp Backtrace: "face-font" (0xffffc440) "linum--face-height" (0xffffc5a8) "linum-update-window" (0xffffc6e8) "mapc" (0xffffc7d8) "linum-update" (0xffffc910) "linum-update-current" (0xffffca30) "x-create-frame" (0xffffcd00) "x-create-frame-with-faces" (0xffffcea0) "make-frame" (0xffffd040) "make-frame-command" (0xffffd350) "funcall-interactively" (0xffffd348) "call-interactively" (0xffffd430) "command-execute" (0xffffd568) --8<---------------cut here---------------end--------------->8--- Thanks for looking into this manoj -- You have a tendency to feel you are superior to most computers. Manoj Srivastava 4096R/C5779A1C E37E 5EC5 2A01 DA25 AD20 05B6 CF48 9438 C577 9A1C