From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53945: saveplace should save the buffer's mark list too Date: Sun, 13 Feb 2022 20:38:29 +0200 Organization: LINKOV.NET Message-ID: <86wnhzvsme.fsf@mail.linkov.net> References: <28eJAsN6tTuTwmTMhyX_qB5yiH1zr0LVMGh5-fRLCCHWyrGXgIM-L1FAQpUprjWO2Kt6OP7QJAFPCmqvLI2GmIVd62gAs07jWUOjyRz-Chg=@protonmail.com> <86pmnsyme4.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29801"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 53945@debbugs.gnu.org To: emacsq Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 13 19:47:38 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nJJuM-0007eb-1l for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 19:47:38 +0100 Original-Received: from localhost ([::1]:57510 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJJuK-0001KU-F9 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 13:47:36 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39152) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJJsp-0001HR-75 for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 13:46:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44980) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJJso-0005GK-GO for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 13:46:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJJso-0006ub-Fu for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 13:46:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Feb 2022 18:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53945 X-GNU-PR-Package: emacs Original-Received: via spool by 53945-submit@debbugs.gnu.org id=B53945.164477793926517 (code B ref 53945); Sun, 13 Feb 2022 18:46:02 +0000 Original-Received: (at 53945) by debbugs.gnu.org; 13 Feb 2022 18:45:39 +0000 Original-Received: from localhost ([127.0.0.1]:38873 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJJsR-0006td-GV for submit@debbugs.gnu.org; Sun, 13 Feb 2022 13:45:39 -0500 Original-Received: from relay11.mail.gandi.net ([217.70.178.231]:33549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJJsP-0006tC-JL for 53945@debbugs.gnu.org; Sun, 13 Feb 2022 13:45:38 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id 3518B100002; Sun, 13 Feb 2022 18:45:29 +0000 (UTC) In-Reply-To: (emacsq's message of "Sat, 12 Feb 2022 20:09:53 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226829 Archived-At: >> Did you know that desktop-save-mode saves the mark ring of every buffer? > > No, but I don't use desktop mode, I like to start with no buffers > when I restart emacs. But when I open a file then I like it when it > puts the cursor to where it was last time. That's why I use saveplace > to save this location info and also saving other useful locations in the > file (the mark ring) is a logical and handy improvement to it. The format used by saveplace.el allows adding more data, so it's easy to add the mark ring. But are you sure that the package with the name "saveplace" is a suitable place to save the mark ring? For example, saveplace.el is optimized to not save the location when point is at the beginning of the buffer. So in such cases the mark ring will not be saved too. You said that don't want to use the desktop mode. What if someone would like to save only the mark ring, but not to save locations in files?