unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: GianUberto.Lauri@eng.it (Gian Uberto Lauri)
To: "Andrea Vettorello" <andrea.vettorello@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: X and EmacsClient
Date: Fri, 18 May 2007 15:03:22 -0400	[thread overview]
Message-ID: <17997.63610.505089.107132@mail.eng.it> (raw)
In-Reply-To: <7d5440240705180539x19b9d3e3sd3e801740ed29b57@mail.gmail.com>

>>>>> "AV" == Andrea Vettorello <andrea.vettorello@gmail.com> 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	other threads:[~2007-05-18 19:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-18 12:39 X and EmacsClient Andrea Vettorello
2007-05-18 19:03 ` Gian Uberto Lauri [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=17997.63610.505089.107132@mail.eng.it \
    --to=gianuberto.lauri@eng.it \
    --cc=andrea.vettorello@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=saint@eng.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).