Article View: gnu.emacs.help
Article #189628Re: Wanted: A simpler client/server mechanism
From: Mosur Mohan
Date: Tue, 18 Dec 1990 19:32
Date: Tue, 18 Dec 1990 19:32
36 lines
2199 bytes
2199 bytes
In article <9221@scolex.sco.COM> asharpe@sco.COM (Andrew Sharpe) writes:
> From: asharpe@sco.COM (Andrew Sharpe)
> Newsgroups: gnu.emacs.help
> Date: 14 Dec 90 19:08:08 GMT
> Organization: The Santa Cruz Operation, Inc.
>
> For what it's worth, here are the problems that I have found
> with the existing mechanism:
> .....
> A# uunet!sco!asharpe
> -----------------------------
> Semper Dowland, Semper Dolens
I use the following server-edit-hook to get the server buffer out of
the way immediately; after that, I can treat it as just another
buffer, saving or killing it as I please. Sounds like this may solve
your problem:
(setq server-edit-hook '(lambda nil
(let (cur-buf)
(setq cur-buf (current-buffer)) ;; remember cur-buf
(server-edit) ;; tell emacsclient I'm done
;; it will bury cur-buf
(switch-to-buffer cur-buf) ;; bring cur-buf back up
)))
--
-- Mohan. {mosurm@pdx.mentor.com, uunet!mntgfx!mosurm}
{Mosur Mohan, Mentor Graphics, Beaverton, OR}
----------------------------------------------------------------------
"Cogito ergo sum" ==> "I think, therefore I add."
--
-- Mohan. {mosurm@pdx.mentor.com, uunet!mntgfx!mosurm}
{Mosur Mohan, Mentor Graphics, Beaverton, OR}
----------------------------------------------------------------------
"Cogito ergo sum" ==> "I think, therefore I add."
Technical Details
Message-ID:
<MOSURM.90Dec18113240@mosurm.mentor.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!jarthur!usc!zaphod.mps.ohio-state.edu!swrinde!ucsd!celit!fpssun!nosun!qiclab!mntgfx!mosurm!mosurmReferences:
<9221@scolex.sco.COM>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103b8b,46f055bfc16396a8 X-Google-Attributes: gid103b8b,public X-Google-ArrivalTime: 1990-12-18 11:32:40 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!jarthur!usc!zaphod.mps.ohio-state.edu!swrinde!ucsd!celit!fpssun!nosun!qiclab!mntgfx!mosurm!mosurm From: mosurm@mosurm.mentor.com (Mosur Mohan) Newsgroups: gnu.emacs.help Subject: Re: Wanted: A simpler client/server mechanism Message-ID: <MOSURM.90Dec18113240@mosurm.mentor.com> Date: 18 Dec 90 19:32:40 GMT References: <9221@scolex.sco.COM> Sender: mosurm@mentor.com (Mosur Mohan) Organization: engr Lines: 36 In-Reply-To: asharpe@sco.COM's message of 14 Dec 90 19:08:08 GMT