From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Sergey Organov Newsgroups: gmane.emacs.devel Subject: Re: How much I can rely on etc/TODO Date: Tue, 09 Apr 2019 15:05:11 +0300 Message-ID: References: <660a63e0-430a-c1d2-2dca-a764493be2cf@gnu.org> <83zhp07501.fsf@gnu.org> <83v9zn7m0g.fsf@gnu.org> <1aeb4b1e-2655-9682-c143-ec1fe0d81a77@gnu.org> <83h8b77c0t.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="86915"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 09 14:05:41 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hDpVU-000MVo-9K for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2019 14:05:40 +0200 Original-Received: from localhost ([127.0.0.1]:40123 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDpVT-0006rR-B7 for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2019 08:05:39 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:39638) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDpVM-0006rA-Qm for emacs-devel@gnu.org; Tue, 09 Apr 2019 08:05:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDpVK-0000Va-V6 for emacs-devel@gnu.org; Tue, 09 Apr 2019 08:05:32 -0400 Original-Received: from [195.159.176.226] (port=51032 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDpVI-0000RF-WA for emacs-devel@gnu.org; Tue, 09 Apr 2019 08:05:29 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1hDpV7-000M4a-Jv for emacs-devel@gnu.org; Tue, 09 Apr 2019 14:05:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:235161 Archived-At: Eli Zaretskii writes: >> From: lxsameer >> Date: Tue, 9 Apr 2019 08:50:14 +0100 >> >> So is "Give desktop.el a feature to switch between different named >> desktops. " still valid ? > > Yes, I think so. The only existing way of controlling which desktop > file is to be loaded is AFAIK either by specifying an explicit > directory when invoking desktop-read, or by customizing desktop-path. For about 15 years already we use package I wrote called 'desksess.el' that does this (and a little bit more) atop of 'desktop.el' (and 'session.el'). I can share it if anybody is interested. Nothing very fancy, but I think it could be useful at least as a source of some inspirations. Here is short package description (some statements about 'desktop.el' could well be very outdated): ;; This package is a wrapper above desktop.el and session.el and depends on ;; them. Unfortunately each of these two nice packages lack essential ;; features available in another: ;; ;; session.el: ;; - no capability to save non-list globals ;; - no way to save/restore desktop state (to visit files on startup that ;; have been visited before exit) ;; ;; desktop.el: ;; - desktop files scattered over file-system ;; - no recent files menu capability ;; - no capability to save/restore point and other locals when previously ;; visited file is closed and re-opened later ;; ;; The desksess.el tries to use the above two packages to provide more ;; comprehensive and convenient desktop save/restore/switch capabilities. ;; ;; Unlike desktop.el, we store all desktops in a single directory and ;; refer to them by their names, either through menu or commands, so ;; one has single list of all the available desktops. Though loading ;; of arbitrary desktop files is also supported, it's not the primary ;; workflow mode. ;; ;; The package has been extensively tested on Emacs 23.x an 24.4.1. -- Sergey