all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* HowTo: quit an emacs --daemon
@ 2011-11-23  3:43 T. V. Raman
  2011-11-23  4:14 ` Óscar Fuentes
  2011-11-23  5:56 ` Dan Nicolaescu
  0 siblings, 2 replies; 4+ messages in thread
From: T. V. Raman @ 2011-11-23  3:43 UTC (permalink / raw)
  To: emacs-devel

Now that Ihave started using emacs --daemon, I  kill emacs even
more rarely than I used to --- but sometimes Ido have to e.g.,
after rebuilding emacs from git/bzr.

In  those cases, quitting out of all emacsclient sessions still
keeps the daemon around -- and killing that process feels crude
-- it then leaves files like the emacs.desktop file locked. Is
there a clean way of asking a running emacs --daemon process to quit?

-- 
Best Regards,
--raman



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

* Re: HowTo: quit an emacs --daemon
  2011-11-23  3:43 HowTo: quit an emacs --daemon T. V. Raman
@ 2011-11-23  4:14 ` Óscar Fuentes
  2011-11-23  5:56 ` Dan Nicolaescu
  1 sibling, 0 replies; 4+ messages in thread
From: Óscar Fuentes @ 2011-11-23  4:14 UTC (permalink / raw)
  To: raman; +Cc: emacs-devel

"T. V. Raman" <tv.raman.tv@gmail.com> writes:

[snip]

> In  those cases, quitting out of all emacsclient sessions still
> keeps the daemon around -- and killing that process feels crude
> -- it then leaves files like the emacs.desktop file locked. Is
> there a clean way of asking a running emacs --daemon process to quit?

M-x kill-emacs

If you wish to kill emacs from a console, try this:

emacsclient -e "(kill-emacs)"



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

* Re: HowTo: quit an emacs --daemon
  2011-11-23  3:43 HowTo: quit an emacs --daemon T. V. Raman
  2011-11-23  4:14 ` Óscar Fuentes
@ 2011-11-23  5:56 ` Dan Nicolaescu
  2011-11-23  7:01   ` Thierry Volpiatto
  1 sibling, 1 reply; 4+ messages in thread
From: Dan Nicolaescu @ 2011-11-23  5:56 UTC (permalink / raw)
  To: raman; +Cc: emacs-devel

"T. V. Raman" <tv.raman.tv@gmail.com> writes:

> Now that Ihave started using emacs --daemon, I  kill emacs even
> more rarely than I used to --- but sometimes Ido have to e.g.,
> after rebuilding emacs from git/bzr.
>
> In  those cases, quitting out of all emacsclient sessions still
> keeps the daemon around -- and killing that process feels crude
> -- it then leaves files like the emacs.desktop file locked. Is
> there a clean way of asking a running emacs --daemon process to quit?

M-x save-buffers-kill-emacs



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

* Re: HowTo: quit an emacs --daemon
  2011-11-23  5:56 ` Dan Nicolaescu
@ 2011-11-23  7:01   ` Thierry Volpiatto
  0 siblings, 0 replies; 4+ messages in thread
From: Thierry Volpiatto @ 2011-11-23  7:01 UTC (permalink / raw)
  To: emacs-devel

Dan Nicolaescu <dann@gnu.org> writes:

> "T. V. Raman" <tv.raman.tv@gmail.com> writes:
>
>> Now that Ihave started using emacs --daemon, I  kill emacs even
>> more rarely than I used to --- but sometimes Ido have to e.g.,
>> after rebuilding emacs from git/bzr.
>>
>> In  those cases, quitting out of all emacsclient sessions still
>> keeps the daemon around -- and killing that process feels crude
>> -- it then leaves files like the emacs.desktop file locked. Is
>> there a clean way of asking a running emacs --daemon process to quit?
>
> M-x save-buffers-kill-emacs

(defun tv-stop-emacs ()
  (interactive)
  (if (daemonp)
      (save-buffers-kill-emacs)
      (save-buffers-kill-terminal)))



-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




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

end of thread, other threads:[~2011-11-23  7:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-23  3:43 HowTo: quit an emacs --daemon T. V. Raman
2011-11-23  4:14 ` Óscar Fuentes
2011-11-23  5:56 ` Dan Nicolaescu
2011-11-23  7:01   ` Thierry Volpiatto

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.