From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Alex Schroeder Newsgroups: gmane.emacs.devel Subject: Re: desktop and misc.texi Date: Sat, 16 Aug 2003 15:55:54 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87r83laeqd.fsf_-_@emacswiki.org> References: <87ekzmsdjs.fsf@emacswiki.org> <3F3DDDF3.4090500@math.ku.dk> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061042289 24013 80.91.224.253 (16 Aug 2003 13:58:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 16 Aug 2003 13:58:09 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Aug 16 15:58:07 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19o1ZH-0001Jl-00 for ; Sat, 16 Aug 2003 15:58:07 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 19o1ak-0003DI-00 for ; Sat, 16 Aug 2003 15:59:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19o1Y8-00035O-BW for emacs-devel@quimby.gnus.org; Sat, 16 Aug 2003 09:56:56 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.20) id 19o1Xl-0002tk-D4 for emacs-devel@gnu.org; Sat, 16 Aug 2003 09:56:33 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.20) id 19o1XE-0002eL-W5 for emacs-devel@gnu.org; Sat, 16 Aug 2003 09:56:32 -0400 Original-Received: from [62.2.95.247] (helo=smtp.hispeed.ch) by monty-python.gnu.org with esmtp (Exim 4.20) id 19o1XE-0002Z9-Cb for emacs-devel@gnu.org; Sat, 16 Aug 2003 09:56:00 -0400 Original-Received: from confusibombus.emacswiki.org (dclient80-218-95-248.hispeed.ch [80.218.95.248]) by smtp.hispeed.ch (8.12.6/8.12.6/tornado-1.0) with ESMTP id h7GDtrCK020246; Sat, 16 Aug 2003 15:55:54 +0200 Original-To: Lars Hansen Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAACkElEQVR42s1a0bLsIAgzjv// y7kPd9pVKxKVdk6fzux2C4EAwR6QZBpcQEopIf3Fq3a52Lfh0Mjjk99zcWYBwA2ihEen9jVxfAf/ u0+Y2HQwNoVw4Dx34trRV6NSjiLPmfPt77jwiBxB/3PnZ3B2AGxzHnGu0wcBwAIAyQwZGvQhiFcy YLOFQcSB/MS82n3ec37vykNqRFTX9rVWR2U5+pZNIggll0CUOQN9BDdm1LfBmcZxIEqjL6r2JU/D galaB7Zg4jlY2ulnIx9OR4iMRl38CAFyKaA8jAxE7lNn650VKMULZ/54crqn0YQCJGQliebXkFIK hwqmGm28cgsSjz/hzRCMneQEwMjVoH3gWTtMPgIslJUV5uIluvUEkyzU+gUGQO62e9NuSdZCzNOM fDPC87iCqfE9gHinsIrSL16TPBfrYIeHzqKU90a50jCh54EcrgAUFo5ibzvebgr/I66USQ0CspQp IVSoBQK3WswDDIndIraHxoglqOjM1d044PQvu1NY0EHtqQR/XwJ+PeCs0x2dSlApZVw4MPER23PD 7JekoHxrqTRod/2Gx5nhx5dfAJhqPt7tDMIZxNN/7lOIaparPn7ZQ88drlORC2eLWXowxIq4gHTh VN1BSmsHoxYAbPWDTuGQuuecS+aYQUYpfr0YqPQOuuUk5tApK077+2xfOYP+XyWEIwPcE49lvT9N y2+wU2KylGGp4yxlALcm6fSlmgk62yfSsfNunDl5d6W91MBUoZw679YAJoMMkhijuXdFOL+khaL2 s+g3zy4APQuQvSc/BNAYnkl6E8ivYtEHJXa1dihE3zgnKMdNgN8DiIwgA17NykUMvFDQ+LALvXXI BuBLAHv/DvBmc/0HzR03PqXmLcQAAAAASUVORK5CYII= In-Reply-To: <3F3DDDF3.4090500@math.ku.dk> (Lars Hansen's message of "Sat, 16 Aug 2003 09:32:03 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:15978 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:15978 Lars Hansen writes: > I agree, so pleese go ahead. I have appended two patches, one for misc.texi and one for desktop.el. I don't think any ChangeLog entries are required, because these are mostly doc changes. I also changed one (eq desktop-save 't) to (eq desktop-save t); I think that should be harmless. If you agree with these changes, I can commit them. Alex. *** misc.texi.~1.43.~ 2003-06-09 23:41:30.000000000 +0200 --- misc.texi 2003-08-16 15:50:33.000000000 +0200 *************** *** 1888,1903 **** @example (desktop-load-default) (desktop-read) @end example @noindent @findex desktop-save ! The first time you save the state of the Emacs session, you must do it ! manually, with the command @kbd{M-x desktop-save}. Once you have done ! that, exiting Emacs will save the state again---not only the present ! Emacs session, but also subsequent sessions. You can also save the ! state at any time, without exiting Emacs, by typing @kbd{M-x ! desktop-save} again. In order for Emacs to recover the state from a previous session, you must start it with the same current directory as you used when you --- 1888,1902 ---- @example (desktop-load-default) (desktop-read) + (setq desktop-enable t) @end example @noindent @findex desktop-save ! The first time you exit Emacs, you will be asked whether you want to ! save your session. Once you have done that, exiting Emacs will save ! the state again in subsequent sessions. You can also save the state ! at any time, without exiting Emacs, by typing @kbd{M-x desktop-save}. In order for Emacs to recover the state from a previous session, you must start it with the same current directory as you used when you *** desktop.el.~1.58.~ 2003-06-09 23:40:37.000000000 +0200 --- desktop.el 2003-08-16 15:52:47.000000000 +0200 *************** *** 37,54 **** ;; - buffer-read-only ;; - some local variables ! ;; To use this, first put these two lines in the bottom of your .emacs ! ;; file (the later the better): ;; ;; (desktop-load-default) ;; (desktop-read) ;; ! ;; Between these two lines you may wish to add something that updates the ;; variables `desktop-globals-to-save' and/or `desktop-locals-to-save'. If ;; for instance you want to save the local variable `foobar' for every buffer ;; in which it is local, you could add the line ;; ! ;; (setq desktop-locals-to-save (cons 'foobar desktop-locals-to-save)) ;; ;; To avoid saving excessive amounts of data you may also wish to add ;; something like the following --- 37,54 ---- ;; - buffer-read-only ;; - some local variables ! ;; To use this, add these lines in the bottom of your .emacs file: ;; ;; (desktop-load-default) ;; (desktop-read) + ;; (setq desktop-enable t) ;; ! ;; Between the first two lines you may wish to add something that updates the ;; variables `desktop-globals-to-save' and/or `desktop-locals-to-save'. If ;; for instance you want to save the local variable `foobar' for every buffer ;; in which it is local, you could add the line ;; ! ;; (add-to-list 'desktop-locals-to-save 'foobar) ;; ;; To avoid saving excessive amounts of data you may also wish to add ;; something like the following *************** *** 397,403 **** desktop-enable (let ((exists (file-exists-p (expand-file-name desktop-base-file-name desktop-dirname)))) (or ! (eq desktop-save 't) (and exists (memq desktop-save '(ask-if-new if-exists))) (and (or --- 397,403 ---- desktop-enable (let ((exists (file-exists-p (expand-file-name desktop-base-file-name desktop-dirname)))) (or ! (eq desktop-save t) (and exists (memq desktop-save '(ask-if-new if-exists))) (and (or