From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bauke Jan Douma Newsgroups: gmane.emacs.help Subject: desktop-save: DESKTOP-BUFFER-POINT for current buffer always becomdes 1 Date: Fri, 08 Jun 2007 08:03:36 +0200 Organization: a training zoo Message-ID: <4668F138.1060902@xs4all.nl> Reply-To: bjdouma@xs4all.nl NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1181282640 23629 80.91.229.12 (8 Jun 2007 06:04:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 8 Jun 2007 06:04:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 08 08:03:59 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HwXZm-0003zN-To for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jun 2007 08:03:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwXZm-0000Hm-7U for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Jun 2007 02:03:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HwXZW-0000Fu-OQ for help-gnu-emacs@gnu.org; Fri, 08 Jun 2007 02:03:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HwXZV-0000Ef-LH for help-gnu-emacs@gnu.org; Fri, 08 Jun 2007 02:03:42 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HwXZV-0000EX-GY for help-gnu-emacs@gnu.org; Fri, 08 Jun 2007 02:03:41 -0400 Original-Received: from smtp-vbr15.xs4all.nl ([194.109.24.35]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HwXZU-0005M4-Ni for help-gnu-emacs@gnu.org; Fri, 08 Jun 2007 02:03:40 -0400 Original-Received: from [192.168.1.240] (skyscraper.xs4all.nl [82.95.236.142]) (authenticated bits=0) by smtp-vbr15.xs4all.nl (8.13.8/8.13.8) with ESMTP id l5863b5Z020594 for ; Fri, 8 Jun 2007 08:03:37 +0200 (CEST) (envelope-from bjdouma@xs4all.nl) User-Agent: Thunderbird 2.0.0.0 (X11/20070326) X-Virus-Scanned: by XS4ALL Virus Scanner X-detected-kernel: FreeBSD 4.6-4.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:44771 Archived-At: OK, this has been irritiating me or some time: I have desktop-save-mode t but always find that when I restart emacs, the previous session's current buffer (at exit) always gets its DESKTOP-BUFFER-POINT set to 1. Yesterday tried to correct that, but I cannot get it to work correctly. The desktop file, ~/.emacs.desktop ad far as I can tell is perfectly correct, it's just that it has 1 for DESKTOP-BUFFER-POINT for the current buffer. Here's what I'm doing, at the very end of ~/.emacs: (require 'desktop) (setq desktop-save t) (setq desktop-save-mode t) (setq history-length t) (add-to-list 'desktop-globals-to-save '(minibuffer-history command-history file-name-history extended-command-history)) (setq desktop-save-mode t) (desktop-read) Any thoughts? Thanks. bjd