help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

X and EmacsClient


From: Gian Uberto Lauri
Subject: X and EmacsClient
Date: Fri, 18 May 2007 15:03:22 -0400

>>>>> "AV" == Andrea Vettorello <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]