From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: emacsq via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#53945: saveplace should save the buffer's mark list too Date: Sun, 13 Feb 2022 19:20:11 +0000 Message-ID: References: <28eJAsN6tTuTwmTMhyX_qB5yiH1zr0LVMGh5-fRLCCHWyrGXgIM-L1FAQpUprjWO2Kt6OP7QJAFPCmqvLI2GmIVd62gAs07jWUOjyRz-Chg=@protonmail.com> <86pmnsyme4.fsf@mail.linkov.net> <86wnhzvsme.fsf@mail.linkov.net> Reply-To: emacsq Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28622"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 53945@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 13 20:21:10 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 1nJKQn-0007FK-W2 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 20:21:10 +0100 Original-Received: from localhost ([::1]:36922 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nJKQm-00084s-Tx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 13 Feb 2022 14:21:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44466) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nJKQg-00084g-SS for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 14:21:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45039) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nJKQg-0003y4-IB for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 14:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nJKQg-0007q4-Ew for bug-gnu-emacs@gnu.org; Sun, 13 Feb 2022 14:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: emacsq Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 13 Feb 2022 19:21: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.164478002030063 (code B ref 53945); Sun, 13 Feb 2022 19:21:02 +0000 Original-Received: (at 53945) by debbugs.gnu.org; 13 Feb 2022 19:20:20 +0000 Original-Received: from localhost ([127.0.0.1]:38936 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJKQ0-0007on-0I for submit@debbugs.gnu.org; Sun, 13 Feb 2022 14:20:20 -0500 Original-Received: from mail-4324.protonmail.ch ([185.70.43.24]:50843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nJKPy-0007oY-OJ for 53945@debbugs.gnu.org; Sun, 13 Feb 2022 14:20:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1644780012; bh=MTxHIP2Z5NKM/as6JKDmaDQFwpwLQywsrug89mVeSHQ=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=Awge/GryJNisLEPYs1k1Ubc+OGU4JwN2tRtudarPrZqIrwDgODhqPbOSNL3W/YbHy in6h4vl3+TzeqyEt4fi/MnBVq1jUjTFgBy1fiJHKEbdrhW8W4ZJd+eMOAFnXBcB8iV DdZkaWQqxihthhM5IboKdPtf6yq75OBIaz30r0gfhE4LXLHt7H0Nq7gb6YFQGsX3r6 fXMC841U1FSMTJ52guVcYamD3bU0qTBOONhU5oYKokWfiC00u/Vy8AebrRjDi+O3Wk fLB653yjA+RalMIwTggLf6d6KRwViTc9glxYZjWTKixtJ3VHLOtpQwFdl0sEdreT+9 hj9MbZpS6eviA== In-Reply-To: <86wnhzvsme.fsf@mail.linkov.net> 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" X-ACL-Warn: , emacsq Xref: news.gmane.io gmane.emacs.bugs:226835 Archived-At: > But are you sure that the package with the name "saveplace" > is a suitable place to save the mark ring? Since marks are also places in the file it's not unnatural if saveplace saves other places too. . > 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. I guess it's not hard to disable this optimization if marks are also saved. > What if someone would like to save only the mark ring, > but not to save locations in files? This can be solved with a new option if the need ever arises, and the option may not even affect the saving part (who cares if the current location is saved along with the marks, just one more number), only the restoring of the position is skipped when the file is opened.