From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Tromey Newsgroups: gmane.emacs.bugs Subject: bug#4386: 23.1; emacsclient -t FILE -vs- server-window Date: Wed, 09 Sep 2009 14:37:59 -0600 Message-ID: Reply-To: Tom Tromey , 4386@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252529282 10068 80.91.229.12 (9 Sep 2009 20:48:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Sep 2009 20:48:02 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 09 22:47:55 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MlU4P-0002Wh-DO for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2009 22:47:13 +0200 Original-Received: from localhost ([127.0.0.1]:42868 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlU4O-0004wJ-JS for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Sep 2009 16:47:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlU4J-0004tO-7D for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:47:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlU4E-0004mH-Fc for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:47:06 -0400 Original-Received: from [199.232.76.173] (port=51301 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlU4E-0004ly-4u for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:47:02 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:33221) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MlU4D-0003Vz-HS for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:47:01 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n89Kkxmn007707; Wed, 9 Sep 2009 13:46:59 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n89Kj4Wg007317; Wed, 9 Sep 2009 13:45:04 -0700 Resent-Date: Wed, 9 Sep 2009 13:45:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Tom Tromey Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Wed, 09 Sep 2009 20:45:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4386 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12525287586353 (code B ref -1); Wed, 09 Sep 2009 20:45:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 9 Sep 2009 20:39:18 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n89KdGdk006350 for ; Wed, 9 Sep 2009 13:39:17 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlTwh-0002sV-W0 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:39:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlTwc-0002rM-KI for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:39:14 -0400 Original-Received: from [199.232.76.173] (port=47213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlTwc-0002rI-E4 for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:39:10 -0400 Original-Received: from mx1.redhat.com ([209.132.183.28]:39620) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlTwb-0000x6-LT for bug-gnu-emacs@gnu.org; Wed, 09 Sep 2009 16:39:10 -0400 Original-Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n89Kd7Hf020338 for ; Wed, 9 Sep 2009 16:39:07 -0400 Original-Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n89Kd6O7017563; Wed, 9 Sep 2009 16:39:07 -0400 Original-Received: from opsy.redhat.com (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n89Kc02R016239; Wed, 9 Sep 2009 16:38:12 -0400 Original-Received: by opsy.redhat.com (Postfix, from userid 500) id B1A0F378182; Wed, 9 Sep 2009 14:37:59 -0600 (MDT) X-Attribution: Tom X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Wed, 09 Sep 2009 16:47:06 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:30897 Archived-At: Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: I set server-window in my .emacs: (server-start) (setq server-window (selected-frame)) Recently I decided to try emacsclient -t. So I changed my shell environment to have: EDITOR='emacsclient -t' Then I did a "git commit" in a shell. This brought up emacsclient in the terminal, as expected. However, the commit message buffer was not displayed. I looked, and the buffer was shown in server-window. I wish it was shown in the terminal instead. I tried setting server-window to a function: (setq saved-server-window server-window) (setq server-window (lambda (buffer) (if window-system saved-server-window (selected-frame)))) However, this did not work either. (I did not check but I assume that the terminal is not selected when this is invoked?) If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/share/emacs/23.1/etc/DEBUG for instructions. In GNU Emacs 23.1.1 (i386-redhat-linux-gnu, GTK+ Version 2.16.5) of 2009-08-26 on x86-2.fedora.phx.redhat.com Windowing system distributor `The X.Org Foundation', version 11.0.10601901 configured using `configure '--build=i386-redhat-linux-gnu' '--host=i386-redhat-linux-gnu' '--target=i586-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/var/lib' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-dbus' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xft' '--with-xpm' '--with-x-toolkit=gtk' 'build_alias=i386-redhat-linux-gnu' 'host_alias=i386-redhat-linux-gnu' 'target_alias=i586-redhat-linux-gnu' 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-bu ffer-size=4 -m32 -march=i586 -mtune=generic -fasynchronous-unwind-tables'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Fundamental Minor modes in effect: server-buffer-clients: (server <4>) shell-dirtrack-mode: t erc-list-mode: t erc-menu-mode: t erc-autojoin-mode: t erc-ring-mode: t erc-pcomplete-mode: t erc-track-mode: t erc-track-minor-mode: t erc-match-mode: t erc-button-mode: t erc-fill-mode: t erc-stamp-mode: t erc-netsplit-mode: t erc-spelling-mode: t erc-truncate-mode: t diff-auto-refine-mode: t erc-status-mode: t erc-services-mode: t erc-networks-mode: t erc-irccontrols-mode: t erc-noncommands-mode: t erc-move-to-prompt-mode: t erc-readonly-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: . SPC t h a t ' s SPC p r e t t y SPC g o o d C-c b C-z n n 2 K i SPC SPC SPC n SPC SPC SPC SPC SPC SPC n C-u C-z o C-z n C-z o f C-v C-v C-v M-< C-x k d f C-v C-v C-v C-v C-v C-x k C-u C-n C-u C-n C-u C-n p p f C-v C-x k d C-x b * c o m C-c c M-p n C-c c M-p n M-> M-v M-v M-v M-v M-> C-z n C-z n M-v C-x b C-r s l y C-r C-r C-g C-c b C-v C-v C-v M-> M-< M-> C-z o SPC SPC SPC C-z o C-x C-f ~ / g n b a s e s r g d g d b . 1 C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-v C-x k C-z o SPC SPC SPC > M S-SPC SPC = M-v M-v M-v C-v C-u C-n C-u C-n SPC C-z o M-> C-z n ESC [ > 1 ; 2 0 0 5 ; 0 c C-x C-b C-x o C-x 1 C-n C-n 1 C-o I n t r o d u c e SPC C-x 1 M-x r e p o r t - e m b Recent messages: Mark set call-interactively: Beginning of buffer [2 times] Mark set Quit Mark set [3 times] call-interactively: End of buffer Opening nntp server on news.gmane.org...done Mark set Compilation finished When done with a buffer, type C-x # Tom