From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: How much I can rely on etc/TODO Date: Tue, 9 Apr 2019 06:52:00 -0700 (PDT) Message-ID: <8cc67f8c-081c-48bd-9e2d-792b2ee9d883@default> References: <660a63e0-430a-c1d2-2dca-a764493be2cf@gnu.org> <83zhp07501.fsf@gnu.org> <83v9zn7m0g.fsf@gnu.org> <1aeb4b1e-2655-9682-c143-ec1fe0d81a77@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="20695"; mail-complaints-to="usenet@blaine.gmane.org" To: lxsameer , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 09 15:53:00 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 1hDrBM-0005FK-2R for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2019 15:53:00 +0200 Original-Received: from localhost ([127.0.0.1]:42043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDrBK-0000K8-Vu for ged-emacs-devel@m.gmane.org; Tue, 09 Apr 2019 09:52:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:38969) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hDrAj-0000Ic-0N for emacs-devel@gnu.org; Tue, 09 Apr 2019 09:52:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hDrAh-0004ub-Qp for emacs-devel@gnu.org; Tue, 09 Apr 2019 09:52:20 -0400 Original-Received: from userp2130.oracle.com ([156.151.31.86]:48632) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hDrAe-0004pR-7W; Tue, 09 Apr 2019 09:52:17 -0400 Original-Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x39Dhrg7073626; Tue, 9 Apr 2019 13:52:07 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=WhG/YY776N3jJ8mLWBVavB6F3iUzxsrODOqEXcSkJaw=; b=CXe53a+yQLmEwq65K77QYfUsYJ5Ck0+00tVDeMuBf9kXM+90AXyyGIpD92UtExBme7t4 fJyvXgP2yMFPDPIuUzUFcuZe3oaod60YYgFYoOHadYVKbTcDDbVxFhmE5vhQorj3jH2u 7HJ6rSFSF5WwbOhSZHtk2mLIgko8CXguFEFRQ6yzjy+bmE4WLBOECCvD7ocXJLaHKGBZ 8MCe88ZjqUWXduuCjgRNoC5Bb6hAx+FcR6fk8uSI6illgI9oDZxbYKerINfI7B8k7qPj 9tNjBT7Zvmfe1JKZnB7wLHX0AxfStuQVt8S6EuV+yT3cWYb/SEnFeybd2V1dE2cvyVvY Ow== Original-Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 2rpkhsw5s0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Apr 2019 13:52:02 +0000 Original-Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x39DptAk085751; Tue, 9 Apr 2019 13:52:02 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3020.oracle.com with ESMTP id 2rpkej9q71-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 09 Apr 2019 13:52:02 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x39Dq1U6004088; Tue, 9 Apr 2019 13:52:01 GMT In-Reply-To: <1aeb4b1e-2655-9682-c143-ec1fe0d81a77@gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4834.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9221 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904090088 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9221 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904090088 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 156.151.31.86 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:235163 Archived-At: > So is "Give desktop.el a feature to switch between > different named desktops." still valid ? Dunno just what was meant by that item, but my guess is yes, it probably is still valid. --- Bookmark+ lets you create bookmarks to desktops, and so switch among them easily. `desktop.el' still does not let you switch among arbitrary desktop files AFAIK. But it could... But this Bookmark+ facility is based partly on the fact that it has `bmkp-desktop-read', which lets you load a particular desktop file. Similarly, function `bmkp-desktop-change-dir' accepts a desktop file as arg. `desktop.el' still does not allow this AFAIK. It's still based on the assumption/restriction that you can have only one desktop file per directory. There's no good reason for this, IMO - a desktop file could be anywhere. In particular, there could be multiple desktop files in the same directory. The directory orientation of `desktop.el' is an unnecessary encumbrance (which has never served any useful purpose AFAIK). `bmkp-desktop-read' & `bmkp-desktop-change-dir' are based on `desktop-read' & `desktop-change-dir'. The difference they offer is to accept a desktop file as arg. Pretty simple change, but it makes a big difference in how you can use desktops. Neither of those `bmkp-*' functions has, itself, anything to do with bookmarks. They or similar could easily be added to `desktop.el', to make desktops and desktop switching more flexible. That would be a good start toward fulfilling that TODO wish. It might even be all that's needed. Well, on its own it doesn't provide the desktop naming. (Bookmark names provide that for Bookmark+.) But naming should be trivial - a start would be to use the desktop file name or a name derived from it, as default. [FWIW, I've mentioned this before, including years ago.] https://www.emacswiki.org/emacs/download/bookmark%2b-1.el