unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* X and EmacsClient
@ 2007-05-18 12:39 Andrea Vettorello
  2007-05-18 19:03 ` Gian Uberto Lauri
  0 siblings, 1 reply; 2+ messages in thread
From: Andrea Vettorello @ 2007-05-18 12:39 UTC (permalink / raw)
  To: help-gnu-emacs

I would like to run the "server-edit" command when clicking with the
mouse to the close button of the eventually EmacsClient's opened
frame, i.e. the window close button using the X parlance.

I've looked on the Emacs documentation but i'm not sure i've
understand completely the "delete-frame" event described in
"Miscellaneous System Events". Do i need to intercept the
"delete-frame" event or it's enough to add my functions on the
"delete-frame-functions" variable?
BTW i'm using a Debian Emacs 22.xx, seems delete-frame-hook is deprecated.

I've tried to add "server-edit" to the "delete-frame-functions"
variable and seems to work but i suspect it's a little clunky, as i've
noted (not fatal) error messages. I think  the "delete-frame" in
"server-done-hook" isn't good either. The feeling is i'm doing a big
mess.

Could someone suggest a proper way?


-- 
Andrea

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-05-18 19:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-18 12:39 X and EmacsClient Andrea Vettorello
2007-05-18 19:03 ` Gian Uberto Lauri

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).