From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: GianUberto.Lauri@eng.it (Gian Uberto Lauri) Newsgroups: gmane.emacs.help Subject: X and EmacsClient Date: Fri, 18 May 2007 15:03:22 -0400 Message-ID: <17997.63610.505089.107132@mail.eng.it> References: <7d5440240705180539x19b9d3e3sd3e801740ed29b57@mail.gmail.com> Reply-To: saint@eng.it NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1179493391 22806 80.91.229.12 (18 May 2007 13:03:11 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 18 May 2007 13:03:11 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Andrea Vettorello" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 18 15:03:10 2007 Return-path: Envelope-to: geh-help-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 1Hp26q-0007JY-Rj for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2007 15:03:05 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp2F3-0000XC-Hf for geh-help-gnu-emacs@m.gmane.org; Fri, 18 May 2007 09:11:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hp2Ep-0000Wv-Dp for help-gnu-emacs@gnu.org; Fri, 18 May 2007 09:11:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hp2En-0000Wi-1i for help-gnu-emacs@gnu.org; Fri, 18 May 2007 09:11:18 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hp2Em-0000Wf-Sd for help-gnu-emacs@gnu.org; Fri, 18 May 2007 09:11:16 -0400 Original-Received: from smtp.eng.it ([62.101.90.18] helo=mail.eng.it) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hp26Z-00045d-4p for help-gnu-emacs@gnu.org; Fri, 18 May 2007 09:02:47 -0400 Original-Received: from mail.eng.it (dioscuri-posta-gb [192.168.99.21]) by deliver.antivirus (Postfix) with SMTP id F12201801C; Fri, 18 May 2007 15:02:43 +0200 (CEST) Original-Received: from gastone (unknown [192.168.22.115]) by mail.eng.it (Postfix) with ESMTP id B1D9F18011; Fri, 18 May 2007 15:02:43 +0200 (CEST) In-Reply-To: <7d5440240705180539x19b9d3e3sd3e801740ed29b57@mail.gmail.com> X-Mailer: VM 7.19 under Emacs 22.0.98.1 X-attribution: CC X-Zippy: Yow! Legally-imposed CULTURE-reduction is CABBAGE-BRAINED! X-PMX-Version: 5.3.0.289146 X-detected-kernel: Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44138 Archived-At: >>>>> "AV" == Andrea Vettorello writes: Grande idea Andrea!!! La uso anche io se non ti spiace. AV> I've tried to add "server-edit" to the "delete-frame-functions" AV> variable and seems to work but i suspect it's a little clunky, as AV> i've noted (not fatal) error messages. I think the "delete-frame" AV> in "server-done-hook" isn't good either. The feeling is i'm doing AV> a big mess. Maybe you should check that the frame contains a server created buffer before calling server-edit. If you put server buffer in a dedicated frame, (cond ((string-match "#server#.*" (buffer-name (window-buffer (frame-first-window)))) (server-edit))) should be enought. Else you can cycle throught frame windows, and if you find a server created buffer, call server-edit. -- /\ ___ /___/\_|_|\_|__|___Gian Uberto Lauri_____ //--\| | \| | Integralista GNUslamico \/ e coltivatore diretto di Software