Subject: w32_reset_fringes

From: martin rudalics <[email-masked]>
Date: Fri, 28 Nov 2008 13:52:48 +0100

The following is with Drew Adams `default-frame-alist' from bug#117 but
completely unrelated to the issues discussed there.  Hence .emacs is

(setq default-frame-alist
       '((foreground-color . "Black")
	(background-color . "LightBlue")
	(font . "-*-Lucida Console-normal-r-*-*-14-112-96-96-c-*-iso8859-1")
	(mouse-color . "Red")
	(cursor-color . "Red")
	(cursor-type . bar)
	(menu-bar-lines . 1)
	(top . 0)
	(left . 0)
	(width . 80)
	(height . 35)
	(minibuffer)
	(user-position . t)
	(vertical-scroll-bars . right)
	(icon-type)
	(left-fringe . 0)
	(right-fringe . 0)
	(fringe . 0)
	(menu-bar-lines . 1)
	(tool-bar-lines . 0)))

which gets you two frames - a main frame and a minibuffer frame.  In the
main frame type C-x C-f and then kill (with the window manager) the
minibuffer frame.

In GNU Emacs 23.0.60.1 (i386-mingw-nt5.1.2600)
  of 2008-11-27 on MACHNO
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

this gets me

Current directory is c:/Programme/Emacs-trunk/src/
GNU gdb 6.8
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-mingw32"...
SIGINT is used by the debugger.
Are you sure you want to change it? (y or n) [answered Y; input not from terminal]
DISPLAY =
TERM = emacs
Breakpoint 1 at 0x1151c6a: file w32fns.c, line 7279.
Breakpoint 2 at 0x109c79f: file sysdep.c, line 1135.
(gdb) run
btStarting program: c:/Programme/Emacs-trunk/bin/emacs.exe
[New thread 476.0x71c]
[New thread 476.0x1f4]

Breakpoint 1, w32_abort () at w32fns.c:7279
(gdb) bt
#0  w32_abort () at w32fns.c:7279
#1  0x010b5f36 in w32_reset_fringes () at fringe.c:1712
#2  0x01161def in x_delete_terminal (terminal=0x0) at w32term.c:6161
#3  0x010ddea9 in Fdelete_terminal (terminal=48912132, force=44013617) at terminal.c:334
#4  0x010efbdd in Fdelete_frame (frame=45964804, force=44013617) at frame.c:1515
#5  0x0100be38 in Ffuncall (nargs=3, args=0x12be1f0) at eval.c:3047
#6  0x01112783 in Fbyte_code (bytestr=45964800, vector=8579712, maxdepth=2) at bytecode.c:678
#7  0x0100b732 in funcall_lambda (fun=18827052, nargs=1, arg_vector=0x82ec24) at eval.c:3231
#8  0x0100bc27 in Ffuncall (nargs=2, args=0x11f472c) at eval.c:3101
#9  0x01110e2f in Fcall_interactively (function=44325801, record_flag=44013569, keys=48668580) at callint.c:857
#10 0x0100be21 in Ffuncall (nargs=4, args=0x12bee58) at eval.c:3050
#11 0x0100bff9 in call3 (fn=0, arg1=0, arg2=0, arg3=0) at eval.c:2870
#12 0x01056cc9 in Fcommand_execute (cmd=44325801, record_flag=44013569, keys=0, special=44013617) at keyboard.c:10333
#13 0x0105a5e2 in read_char (commandflag=1, nmaps=2, maps=0x82f090, prev_event=44013569, used_mouse_menu=0x82f0d8, end_time=0x0) at keyboard.c:3087
#14 0x0105c47d in read_key_sequence (keybuf=0x82f220, bufsize=30, prompt=44013569, dont_downcase_last=0, can_return_switch_frame=1, fix_current_buffer=1) at keyboard.c:9344
#15 0x0105e342 in command_loop_1 () at keyboard.c:1621
#16 0x01009fae in internal_condition_case (bfun=0x105e190 <command_loop_1>, handlers=44077321, hfun=0x105773c <cmd_error>) at eval.c:1511
#17 0x01051cca in command_loop_2 () at keyboard.c:1338
#18 0x01009ee3 in internal_catch (tag=0, func=0x1051ca7 <command_loop_2>, arg=44013569) at eval.c:1247
#19 0x01051a83 in command_loop () at keyboard.c:1303
#20 0x01051b70 in recursive_edit_1 () at keyboard.c:942
#21 0x010fa4f9 in read_minibuf (map=44002797, initial=50364131, prompt=44152324, backup_n=33, expflag=0, histvar=0, histpos=0, defalt=44056819, allow_props=0, inherit_input_method=0) at minibuf.c:735
#22 0x010fb181 in Fcompleting_read (prompt=0, collection=0, predicate=0, require_match=44229137, initial_input=44093873, hist=44093873, def=44056819, inherit_input_method=44013569) at minibuf.c:1818
#23 0x0100bd45 in Ffuncall (nargs=8, args=0x12be6f8) at eval.c:3075
#24 0x01112783 in Fbyte_code (bytestr=45964800, vector=8582688, maxdepth=7) at bytecode.c:678
#25 0x0100b732 in funcall_lambda (fun=18560372, nargs=4, arg_vector=0x82f784) at eval.c:3231
#26 0x0100bc27 in Ffuncall (nargs=5, args=0x11b3574) at eval.c:3101
#27 0x01112783 in Fbyte_code (bytestr=45964800, vector=8583040, maxdepth=4) at bytecode.c:678
#28 0x0100b732 in funcall_lambda (fun=18474988, nargs=2, arg_vector=0x82f8d4) at eval.c:3231
#29 0x0100bc27 in Ffuncall (nargs=3, args=0x119e7ec) at eval.c:3101
#30 0x01112783 in Fbyte_code (bytestr=45964800, vector=8583376, maxdepth=2) at bytecode.c:678
#31 0x0100b356 in Feval (form=19656352) at eval.c:2381
#32 0x011105f8 in Fcall_interactively (function=44404073, record_flag=44013569, keys=44047108) at callint.c:361
#33 0x0100be21 in Ffuncall (nargs=4, args=0x12bee58) at eval.c:3050
#34 0x0100bff9 in call3 (fn=0, arg1=0, arg2=0, arg3=0) at eval.c:2870
#35 0x01056cc9 in Fcommand_execute (cmd=44404073, record_flag=44013569, keys=0, special=44013569) at keyboard.c:10333
#36 0x0105e4f5 in command_loop_1 () at keyboard.c:1880
#37 0x01009fae in internal_condition_case (bfun=0x105e190 <command_loop_1>, handlers=44077321, hfun=0x105773c <cmd_error>) at eval.c:1511
#38 0x01051cca in command_loop_2 () at keyboard.c:1338
#39 0x01009ee3 in internal_catch (tag=0, func=0x1051ca7 <command_loop_2>, arg=44013569) at eval.c:1247
#40 0x01051ad7 in command_loop () at keyboard.c:1317
#41 0x01051b70 in recursive_edit_1 () at keyboard.c:942
#42 0x01051c91 in Frecursive_edit () at keyboard.c:1004
#43 0x01002e46 in main (argc=1, argv=0xa327b8) at emacs.c:1777

Lisp Backtrace:
"delete-frame" (0x82ea84)
"handle-delete-frame" (0x82ec24)
"call-interactively" (0x82ee24)
"completing-read" (0x82f624)
"read-file-name" (0x82f784)
"find-file-read-args" (0x82f8d4)
"byte-code" (0x82f990)
"call-interactively" (0x82fc04)
(gdb)