From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.bugs Subject: bug#10729: 24.0.93; On MS-Windows: emacsclientw.exe -n -c does create a new frame, but does not always display the requested file or the requested directory (24.0.92 does) Date: Tue, 7 Feb 2012 14:08:42 +0100 Message-ID: References: <4F301471.9000402@gmx.at> <4F30D87C.9040408@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1328620221 13838 80.91.229.3 (7 Feb 2012 13:10:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 7 Feb 2012 13:10:21 +0000 (UTC) Cc: Albert , 10729@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 07 14:10:20 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RukoL-0004AL-4w for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 14:10:18 +0100 Original-Received: from localhost ([::1]:43171 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RukoK-0000GE-1N for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Feb 2012 08:10:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RukoD-0000F5-Ds for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 08:10:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RukoA-0001P2-ON for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 08:10:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54841) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RukoA-0001Of-JZ for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 08:10:06 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rukp3-0002lG-Rt for bug-gnu-emacs@gnu.org; Tue, 07 Feb 2012 08:11:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juanma Barranquero Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 07 Feb 2012 13:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10729 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10729-submit@debbugs.gnu.org id=B10729.132862022810573 (code B ref 10729); Tue, 07 Feb 2012 13:11:01 +0000 Original-Received: (at 10729) by debbugs.gnu.org; 7 Feb 2012 13:10:28 +0000 Original-Received: from localhost ([127.0.0.1]:58464 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RukoV-0002kT-RH for submit@debbugs.gnu.org; Tue, 07 Feb 2012 08:10:28 -0500 Original-Received: from mail-pz0-f44.google.com ([209.85.210.44]:35952) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RukoR-0002k8-Rm for 10729@debbugs.gnu.org; Tue, 07 Feb 2012 08:10:25 -0500 Original-Received: by dakl33 with SMTP id l33so5518098dak.3 for <10729@debbugs.gnu.org>; Tue, 07 Feb 2012 05:09:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=1vZSSdRGf8I2ZdEchEOJyRpZ4y2FsgvoPLQA5ea8INw=; b=exlv+zj8PzIe4HObnVED8V2SJ0Xz8JZbtRlOsFgprfP5srOCrMqakcFd3T+NfNlINo tiWmYGDPc5A+pjFbtP/SP2nst3qcIN/e1Dk2tja60MXhEV3MIJS5vww0URmxptwjUJx8 qIaRD+CSSJ7TE/8Wl8rnbDmCv+st7cVCC9Ey4= Original-Received: by 10.68.225.4 with SMTP id rg4mr57522477pbc.111.1328620162212; Tue, 07 Feb 2012 05:09:22 -0800 (PST) Original-Received: by 10.143.37.9 with HTTP; Tue, 7 Feb 2012 05:08:42 -0800 (PST) In-Reply-To: <4F30D87C.9040408@gmx.at> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:56634 Archived-At: On Tue, Feb 7, 2012 at 08:53, martin rudalics wrote: > A `set-buffer' can be needed if win is already selected but next-buffer > is not the current buffer. Thanks, now I understand. Looking at the code, select_window does not call Fset_buffer if the window is already selected. I think that should be noted in the docstring of Fselect_window, which on that issue says only this: Select window. Most editing will apply to window's buffer. Also make window's buffer current and make window the frame's selected window. Return window. > I'm not used to working with Emacs as server. =C2=A0Could you try putting= a > breakpoint somewhere in set_window_buffer and get a backtrace there? The attached backtrace is the call that sets *scratch* (bug.txt is the short test file). =C2=A0 =C2=A0 Juanma Breakpoint 3, Fset_window_buffer (window=3D81516037, buffer_or_name=3D54738949, keep_margins=3D54700058) at window.c:3069 3069 register struct window *w =3D decode_window (window); (gdb) bt #0 Fset_window_buffer (window=3D81516037, buffer_or_name=3D54738949, keep_margins=3D54700058) at window.c:3069 #1 0x01036cf3 in Ffuncall (nargs=3D3, args=3D0x88aeb0) at eval.c:2994 #2 0x010de95e in exec_byte_code (bytestr=3D20138569, vector=3D20138645, maxdepth=3D16, args_template=3D54700058, nargs=3D0, args=3D0x0) at bytecode.c:785 #3 0x01037b38 in funcall_lambda (fun=3D20138501, nargs=3D4, arg_vector=3D0x342a81a) at eval.c:3218 #4 0x0103701e in Ffuncall (nargs=3D5, args=3D0x88b1a0) at eval.c:3036 #5 0x010de95e in exec_byte_code (bytestr=3D20139169, vector=3D20139317, maxdepth=3D28, args_template=3D54700058, nargs=3D0, args=3D0x0) at bytecode.c:785 #6 0x010ddefc in Fbyte_code (bytestr=3D20139169, vector=3D20139317, maxdepth=3D28) at bytecode.c:423 #7 0x01034e58 in eval_sub (form=3D20139158) at eval.c:2341 #8 0x0103260e in internal_catch (tag=3D54981826, func=3D0x103451f , arg=3D20139158) at eval.c:1257 #9 0x010df31c in exec_byte_code (bytestr=3D20138897, vector=3D20139029, maxdepth=3D28, args_template=3D54700058, nargs=3D0, args=3D0x0) at bytecode.c:966 #10 0x01037b38 in funcall_lambda (fun=3D20138845, nargs=3D2, arg_vector=3D0x342a81a) at eval.c:3218 #11 0x0103701e in Ffuncall (nargs=3D3, args=3D0x88b850) at eval.c:3036 #12 0x010de95e in exec_byte_code (bytestr=3D20141809, vector=3D20141893, maxdepth=3D20, args_template=3D54700058, nargs=3D0, args=3D0x0) at bytecode.c:785 #13 0x01037b38 in funcall_lambda (fun=3D20141781, nargs=3D1, arg_vector=3D0x342a81a) at eval.c:3218 #14 0x0103701e in Ffuncall (nargs=3D2, args=3D0x88bb58) at eval.c:3036 #15 0x01036195 in call1 (fn=3D54848066, arg1=3D57495045) at eval.c:2756 #16 0x011c019a in replace_buffer_in_windows (buffer=3D57495045) at window.c= :2781 #17 0x010ab865 in Fkill_buffer (buffer_or_name=3D54700058) at buffer.c:1539 #18 0x01036c20 in Ffuncall (nargs=3D2, args=3D0x88bcb4) at eval.c:2987 #19 0x010de95e in exec_byte_code (bytestr=3D56290273, vector=3D81404805, maxdepth=3D20, args_template=3D1028, nargs=3D1, args=3D0x88bfbc) at bytecode.c:785 #20 0x01037704 in funcall_lambda (fun=3D56018789, nargs=3D1, arg_vector=3D0x404) at eval.c:3152 #21 0x0103701e in Ffuncall (nargs=3D2, args=3D0x88bfb4) at eval.c:3036 #22 0x010de95e in exec_byte_code (bytestr=3D54897281, vector=3D82037253, maxdepth=3D20, args_template=3D0, nargs=3D0, args=3D0x88c2c4) at bytecode.c:785 #23 0x01037704 in funcall_lambda (fun=3D56819493, nargs=3D0, arg_vector=3D0x0) at eval.c:3152 #24 0x0103701e in Ffuncall (nargs=3D1, args=3D0x88c2c0) at eval.c:3036 #25 0x01034be2 in eval_sub (form=3D82028518) at eval.c:2307 #26 0x01032b09 in internal_lisp_condition_case (var=3D81410938, bodyform=3D82028518, handlers=3D82026542) at eval.c:1454 #27 0x010df383 in exec_byte_code (bytestr=3D54897457, vector=3D82037125, maxdepth=3D56, args_template=3D0, nargs=3D0, args=3D0x88c7a4) at bytecode.c:981 #28 0x01037704 in funcall_lambda (fun=3D56815621, nargs=3D0, arg_vector=3D0x0) at eval.c:3152 #29 0x0103701e in Ffuncall (nargs=3D1, args=3D0x88c7a0) at eval.c:3036 #30 0x01034be2 in eval_sub (form=3D82028454) at eval.c:2307 #31 0x01032b09 in internal_lisp_condition_case (var=3D81410914, bodyform=3D82028454, handlers=3D82028502) at eval.c:1454 #32 0x010df383 in exec_byte_code (bytestr=3D54897521, vector=3D81404357, maxdepth=3D84, args_template=3D7196, nargs=3D7, args=3D0x88ccb0) at bytecode.c:981 #33 0x01037704 in funcall_lambda (fun=3D56954789, nargs=3D7, arg_vector=3D0x1c1c) at eval.c:3152 #34 0x0103701e in Ffuncall (nargs=3D8, args=3D0x88cc90) at eval.c:3036 #35 0x010de95e in exec_byte_code (bytestr=3D54817377, vector=3D57453061, maxdepth=3D32, args_template=3D0, nargs=3D0, args=3D0x88cf94) at bytecode.c:785 #36 0x01037704 in funcall_lambda (fun=3D56818309, nargs=3D0, arg_vector=3D0x0) at eval.c:3152 #37 0x0103701e in Ffuncall (nargs=3D1, args=3D0x88cf90) at eval.c:3036 #38 0x010de95e in exec_byte_code (bytestr=3D57148833, vector=3D81305125, maxdepth=3D4, args_template=3D0, nargs=3D0, args=3D0x88d294) at bytecode.c:= 785 #39 0x01037704 in funcall_lambda (fun=3D56816709, nargs=3D0, arg_vector=3D0x0) at eval.c:3152 #40 0x0103701e in Ffuncall (nargs=3D1, args=3D0x88d290) at eval.c:3036 #41 0x01034be2 in eval_sub (form=3D82028366) at eval.c:2307 #42 0x01032b09 in internal_lisp_condition_case (var=3D81410770, bodyform=3D82028366, handlers=3D82028414) at eval.c:1454 #43 0x010df383 in exec_byte_code (bytestr=3D57149281, vector=3D54798725, maxdepth=3D40, args_template=3D1028, nargs=3D1, args=3D0x88d798) at bytecode.c:981 #44 0x01037704 in funcall_lambda (fun=3D56045605, nargs=3D1, arg_vector=3D0x404) at eval.c:3152 #45 0x0103701e in Ffuncall (nargs=3D2, args=3D0x88d790) at eval.c:3036 #46 0x010de95e in exec_byte_code (bytestr=3D55380625, vector=3D81599493, maxdepth=3D128, args_template=3D0, nargs=3D0, args=3D0x88dac4) at bytecode.c:785 #47 0x01037704 in funcall_lambda (fun=3D55708613, nargs=3D0, arg_vector=3D0x0) at eval.c:3152 #48 0x0103701e in Ffuncall (nargs=3D1, args=3D0x88dac0) at eval.c:3036 #49 0x01034be2 in eval_sub (form=3D55900630) at eval.c:2307 #50 0x01032b09 in internal_lisp_condition_case (var=3D81410842, bodyform=3D55900630, handlers=3D55900054) at eval.c:1454 #51 0x010df383 in exec_byte_code (bytestr=3D55793521, vector=3D57560325, maxdepth=3D40, args_template=3D0, nargs=3D0, args=3D0x88df94) at bytecode.c:981 #52 0x01037704 in funcall_lambda (fun=3D57868997, nargs=3D0, arg_vector=3D0x0) at eval.c:3152 #53 0x0103701e in Ffuncall (nargs=3D1, args=3D0x88df90) at eval.c:3036 #54 0x01034be2 in eval_sub (form=3D55900966) at eval.c:2307 #55 0x0103260e in internal_catch (tag=3D81410794, func=3D0x103451f , arg=3D55900966) at eval.c:1257 #56 0x010df31c in exec_byte_code (bytestr=3D55793585, vector=3D81404421, maxdepth=3D48, args_template=3D2056, nargs=3D2, args=3D0x88e43c) at bytecode.c:966 #57 0x01037704 in funcall_lambda (fun=3D56954053, nargs=3D2, arg_vector=3D0x808) at eval.c:3152 #58 0x0103701e in Ffuncall (nargs=3D3, args=3D0x88e430) at eval.c:3036 #59 0x01035bf3 in Fapply (nargs=3D2, args=3D0x88e4c4) at eval.c:2492 #60 0x01036140 in apply1 (fn=3D81410338, arg=3D55901310) at eval.c:2730 #61 0x0104c229 in read_process_output_call (fun_and_args=3D55901014) at process.c:5002 #62 0x01032cd3 in internal_condition_case_1 (bfun=3D0x104c1a6 , arg=3D55901014, handlers=3D54757786, hfun=3D0x104c22b ) at eval.c:1538 #63 0x0104c8fc in read_process_output (proc=3D57560069, channel=3D4) at process.c:5201 #64 0x0104bd71 in wait_reading_process_output (time_limit=3D30, microsecs=3D0, read_kbd=3D-1, do_display=3D1, wait_for_cell=3D54700058, wait_proc=3D0x0, just_wait_proc=3D0) at process.c:4844 #65 0x010f8826 in sit_for (timeout=3D120, reading=3D1, do_display=3D1) at dispnew.c:6063 #66 0x0100923b in read_char (commandflag=3D1, nmaps=3D2, maps=3D0x88f980, prev_event=3D54700058, used_mouse_menu=3D0x88fa58, end_time=3D0x0) at keyboard.c:2690 #67 0x0101c25c in read_key_sequence (keybuf=3D0x88fbd4, bufsize=3D30, prompt=3D54700058, dont_downcase_last=3D0, can_return_switch_frame=3D1, fix_current_buffer=3D1) at keyboard.c:9302 #68 0x01005c93 in command_loop_1 () at keyboard.c:1448 #69 0x01032beb in internal_condition_case (bfun=3D0x100569b , handlers=3D54757786, hfun=3D0x1004eba ) at eval.c:1500 #70 0x010052f7 in command_loop_2 (ignore=3D54700058) at keyboard.c:1159 #71 0x0103260e in internal_catch (tag=3D54755810, func=3D0x10052d3 , arg=3D54700058) at eval.c:1257 #72 0x010052b3 in command_loop () at keyboard.c:1138 #73 0x0100488f in recursive_edit_1 () at keyboard.c:758 #74 0x01004baa in Frecursive_edit () at keyboard.c:822 #75 0x010028b5 in main (argc=3D4, argv=3D0xc62ca8) at emacs.c:1715 Lisp Backtrace: "set-window-buffer" (0x88aeb4) "set-window-buffer-start-and-point" (0x88b1a4) "byte-code" (0x88b404) "switch-to-prev-buffer" (0x88b854) "replace-buffer-in-windows" (0x88bb5c) "kill-buffer" (0x88bcb8) "server-unselect-display" (0x88bfb8) 0x362ff20 PVEC_COMPILED "funcall" (0x88c2c0) 0x362f000 PVEC_COMPILED "funcall" (0x88c7a0) "server-execute" (0x88cc94) 0x362fa80 PVEC_COMPILED 0x362f440 PVEC_COMPILED "funcall" (0x88d290) "server-execute-continuation" (0x88d794) 0x3520bc0 PVEC_COMPILED "funcall" (0x88dac0) 0x37302c0 PVEC_COMPILED "funcall" (0x88df90) "server-process-filter" (0x88e434) (gdb) frame 0 #0 Fset_window_buffer (window=3D81516037, buffer_or_name=3D54738949, keep_margins=3D54700058) at window.c:3069 3069 register struct window *w =3D decode_window (window); (gdb) p buffer_or_name $2 =3D 54738949 (gdb) pr # (gdb) frame 17 #17 0x010ab865 in Fkill_buffer (buffer_or_name=3D54700058) at buffer.c:1539 1539 replace_buffer_in_windows (buffer); (gdb) p buffer_or_name $3 =3D 54700058 (gdb) pr nil (gdb) frame 16 #16 0x011c019a in replace_buffer_in_windows (buffer=3D57495045) at window.c= :2781 2781 call1 (Qreplace_buffer_in_windows, buffer); (gdb) p buffer $4 =3D 57495045 (gdb) pr # (gdb)