From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: P G L Porta Mana Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: saveplace does not work with emacsclient Date: Mon, 7 Jan 2008 16:01:24 +0100 Message-ID: <20080107160124.6f4e9af1.piero.mana@physics.umu.se> References: <20080106044814.1e6ff426.porta.mana@gmail.com> <87r6gtd1vm.fsf@red-bean.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1199726339 18078 80.91.229.12 (7 Jan 2008 17:18:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Jan 2008 17:18:59 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org To: Karl Fogel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 07 18:19:21 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBvdA-0001bz-PO for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 18:19:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBvcn-0001Oy-M9 for ged-emacs-devel@m.gmane.org; Mon, 07 Jan 2008 12:18:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBtTN-0007hM-Gi for emacs-devel@gnu.org; Mon, 07 Jan 2008 10:01:05 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBtTL-0007hA-S2 for emacs-devel@gnu.org; Mon, 07 Jan 2008 10:01:05 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBtTL-0007h7-Q9 for emacs-devel@gnu.org; Mon, 07 Jan 2008 10:01:03 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBtTK-0002Iz-Uo for emacs-devel@gnu.org; Mon, 07 Jan 2008 10:01:03 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBtTJ-00051M-7P for emacs-pretest-bug@gnu.org; Mon, 07 Jan 2008 10:01:01 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1JBtTF-0002II-MC for emacs-pretest-bug@gnu.org; Mon, 07 Jan 2008 10:01:00 -0500 Original-Received: from kaffir.umdc.umu.se ([130.239.2.98] helo=smtp1.umu.se) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JBtTF-0002GQ-Ba for emacs-pretest-bug@gnu.org; Mon, 07 Jan 2008 10:00:57 -0500 Original-Received: by smtp1.umu.se (Postfix, from userid 8) id BF9E7BF; Mon, 7 Jan 2008 16:00:48 +0100 (CET) X-Scanned-By: ClamAV Original-Received: from s0798.ad.imit.kth.se (client128-22.wireless.umu.se [130.239.128.22]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp1.umu.se (Postfix) with ESMTP id 950C2B5; Mon, 7 Jan 2008 16:00:48 +0100 (CET) In-Reply-To: <87r6gtd1vm.fsf@red-bean.com> X-Mailer: Sylpheed X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-Mailman-Approved-At: Mon, 07 Jan 2008 12:15:53 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:86501 gmane.emacs.pretest.bugs:20536 Archived-At: Thanks for your answer. I use a precompiled version of Emacs (got from AucTeX website) on a Windows XP machine. There is both an emacsclient.exe and an emacsclientw.exe binary there. The second eliminates the appearance of a cmd shell. More can't I say since I don't understand more than that. I have temporarily fixed the bug now, by setting (setq server-visit-hook (quote (save-place-find-file-hook))) in my .emacs file. I must yet see whether this interferes with inverse search, ie when emacsclient(w) is called with the +[line] option. - Luca On Mon, 07 Jan 2008 08:41:33 -0800 Karl Fogel wrote: > P G L Porta Mana writes: > > Although saveplace-mode is activated by default, in files opened > > through emacsclientw the point appears at the beginning of buffer. > > > > This was tested with the following simple .emacs file: > > > > (server-start) > > (setq-default save-place t) > > (require 'saveplace) > > Is "emacsclientw" a typo for "emacsclient", or is there some wrapper > script going on here that I don't know about? > > I will reproduce and debug/fix when I get a chance. Thanks for the > report. > > -Karl