From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Lisp Api and backward compatibility Date: Fri, 12 Apr 2019 23:38:50 +0300 Message-ID: <83d0lrklgl.fsf@gnu.org> References: <83ef67kmb0.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="53485"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Sameer Rahmani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 12 22:39:45 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 1hF2xc-000Dme-9f for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2019 22:39:44 +0200 Original-Received: from localhost ([127.0.0.1]:42373 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hF2xb-0001zu-9C for ged-emacs-devel@m.gmane.org; Fri, 12 Apr 2019 16:39:43 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:46496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hF2x1-0001zn-Gw for emacs-devel@gnu.org; Fri, 12 Apr 2019 16:39:08 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hF2x1-0006QU-C4 for emacs-devel@gnu.org; Fri, 12 Apr 2019 16:39:07 -0400 Original-Received: from [176.228.60.248] (port=4750 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hF2wz-0003QG-M7; Fri, 12 Apr 2019 16:39:06 -0400 In-reply-to: (message from Sameer Rahmani on Fri, 12 Apr 2019 21:28:41 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:235381 Archived-At: > Cc: emacs-devel@gnu.org > From: Sameer Rahmani > Date: Fri, 12 Apr 2019 21:28:41 +0100 > > I picked up a task to change `desktop.el` to be able to save/read > desktops with a name ( basically writes the desktop in to a file under a > given name and later read from it). As you already know the > `desktop-save` fn for example gets directory name as the first argument > following by several optional args. So I was thinking to either: > > 1) Add a new optional arg called filename and ask the desktop name from > user in interactive. > > 2) don't add anything to the function signature and `read-string` it in > the function body. The function desktop-save is also a command, so we will need to devise a way to let the user specify the name interactively. And the same for desktop-read. I didn't think about this too much, but maybe a separate command, called desktop-save-named, say, would be a better alternative.