From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Fishman Newsgroups: gmane.emacs.help Subject: Re: starting the emacs daemon using init.org? Date: Mon, 20 Jul 2015 08:42:28 -0400 Organization: Easynews - www.easynews.com Message-ID: References: <87twszc33d.fsf@skimble.plus.com> <87lhebohta.fsf@nl106-137-147.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1437396325 27260 80.91.229.3 (20 Jul 2015 12:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Jul 2015 12:45:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 20 14:45:24 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZHARf-0006mq-KX for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jul 2015 14:45:23 +0200 Original-Received: from localhost ([::1]:55203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHARf-0003hh-4w for geh-help-gnu-emacs@m.gmane.org; Mon, 20 Jul 2015 08:45:23 -0400 Original-Path: usenet.stanford.edu!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!fx03.iad.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAALVBMVEXG87t8xXThBQWq85q9 87AvUC6PUVH/BgamyajC87a/87P////r6+ud7oq49KsBy7dJAAACKUlEQVQ4jc3Sv2vbQBQH 8CulwcEdeoOKwM1QD/bSzVktKDEdMpRqeMKQFNqAhEGbh3aVB5sDafAYL106xZMzuAiehnqI EciLMR2viz0Vor+hdydZMa6z97sI9NH7cYdI9ZGQr4/kP4Fu1akehFqHDaoHoOviPLD3oVtz 7PIErFCeeRdqOuvptwDMYSyfpKB7iYh3DOCTeOKzegGvk8hD1O22eD2B9tUWum9wbpXYy6NA wAzMeQFu1AeT2VAW0Af4sYUvfmRbCWLciXq0B2ZYf4C+GL/AGBIcOP4O4MzFKbiTAGOPYg7V mu1j5OIdfIgT7FtHGKoZIHKB6IuK9kDODpNsK0pPVnqCFbyFSyYWMMPnIA9CVsbm5l2HuRjZ FVERBXFPs8QQMhIZvqUX8jJmiTzIRy5FwWhEdAmR4y1KnQbn1KrnMOrLj6PPDnW8bw2+1K7I OINrecF9jwyJyBlfAvkzvlEy6DBHJ3m+8yU5HY9V0TWl+nALx+slMQTkRWKHQprEOJeST3qg p8RoHZRjsmm1ctrrJ0HkX0mFvG+uTnf7qe3SNG2dcc4bm70iAemaHxAJ91zF2G2noMl/UVVk bAoihgINlKwa6XkuhBsKGJgnPBuVEeG/5Wzqz3tZ0bYh4SsBS+qXZtTMRTWUcC/Bnybi7+R5 VoaAdZNz7ZU/RT8u2nEuQTw0VpmjH/7UChHQlFAGT1Rg8GS7Hcm+0F4EDgvYIohLAFS++wvs R0Pau3fdJgAAAABJRU5ErkJggg== User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:el5ip5Y/ED1JyjmhmqGBOCXBNi0= Original-Lines: 49 Original-X-Complaints-To: abuse@easynews.com X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. X-Received-Bytes: 3490 X-Received-Body-CRC: 2372457639 Original-Xref: usenet.stanford.edu gnu.emacs.help:213584 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105870 Archived-At: On 2015-07-20 12:28:26 +0100, Sharon Kimble wrote: > Emanuel Berg writes: >> Sharon Kimble writes: >> >>> I've been thinking about running emacs as a daemon >>> to quicken my loadup times and also able to recover >>> quickly when emacs crashes and restarts. But how? >> 1. Does your Emacs really take that long to start? > > 'fraid so! I've never actually timed it, but I am sitting waiting for it > to be in a useable state. >> >> 2. In which situations does it crash? > > Usually when I'm writing in latex, and suddenly, in the blink of an eye, > its gone! So far I haven't lost any data on restarting. but it is an > annoyance. I can't remember the last time Emacs crashed on me. I do tend to have issues with mistyping so I have disabled my most common reasons for my Emacs to disappear. First I never need to background Emacs from the keyboard: ;;; Re-establish C-z prefix (defvar my-control-map (make-sparse-keymap)) (define-key global-map [(control z)] my-control-map) With gives me another key to put my own bindings. I then make sure any C-x C-c isn't an accident: ;;; Require confirmation and rebind C-x C-c appropriately (defun my-exit-from-emacs () (interactive) (if (yes-or-no-p "Do you want to exit ") (save-buffers-kill-terminal))) (define-key global-map [(control x) (control c)] 'my-exit-from-emacs) Since disappearing is common enough to be an issue you might try to investigate further with the usual: (setq debug-on-error t) (setq debug-on-quit t) (setq debug-on-signal t) to find out what is really happening, and consider making a bug report. -- Barry Fishman