From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74799: [PATCH] Clarify that save-place-file must be set before save-place-mode starts Date: Wed, 11 Dec 2024 23:01:08 +0200 Message-ID: <86zfl20wa3.fsf@gnu.org> References: <20241211200119.92243-1-hong@topbug.net> <865xnq2cbn.fsf@gnu.org> <87sequymtf.fsf@topbug.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28066"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74799@debbugs.gnu.org To: Hong Xu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 11 22:02:20 2024 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 1tLTqd-00079X-SH for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 11 Dec 2024 22:02:20 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tLTqQ-0003pp-7J; Wed, 11 Dec 2024 16:02:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLTqN-0003pX-85 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 16:02:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tLTqM-0001Lz-6z for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 16:02:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=xswcLxagWaBfmXFhZHKo3ECHVXBQ4s/ly8A6H91O10c=; b=R1S/KP9sA2+3xT8J65jVeSVUW/Eo6RtCPfMep5zkkcqdrkn3tQ1blNeZOkO5v5/pEuloEVjTPDcvqojgtiqoUO6uihQCWB8aUMPiAF8l/WWXvNzbXUAIFtAm34jGcNSjq/tjAib9mYQ1m+VqydP95Eapknh1PWyrEoSq950X5DiRgDCByQPhSx/EUUan+uI3PCWibq43qs9g0TA1R2Xc4loSJBrjm+FaJSfsKr0soPesy+aPiUlngY1A19UJJqNiJ1HwfXZmuI7WFv4TCEBOg6VHXB/EceeVcOgpQZkCKuf2yCcSveGqsbwR0EP3RQ4xOElYfr4zHA9NjUFFj4o7Hg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tLTqL-0007B0-W9 for bug-gnu-emacs@gnu.org; Wed, 11 Dec 2024 16:02:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 11 Dec 2024 21:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74799 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 74799-submit@debbugs.gnu.org id=B74799.173395088327472 (code B ref 74799); Wed, 11 Dec 2024 21:02:01 +0000 Original-Received: (at 74799) by debbugs.gnu.org; 11 Dec 2024 21:01:23 +0000 Original-Received: from localhost ([127.0.0.1]:36474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLTpi-000791-IH for submit@debbugs.gnu.org; Wed, 11 Dec 2024 16:01:22 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tLTpf-00078d-Qv for 74799@debbugs.gnu.org; Wed, 11 Dec 2024 16:01:20 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tLTpZ-0001Iz-Vn; Wed, 11 Dec 2024 16:01:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xswcLxagWaBfmXFhZHKo3ECHVXBQ4s/ly8A6H91O10c=; b=a2+RZMTg0fNM 8oVEjhlCqGWq4S9qacPxsa5CAHoV6O3cm6yNh/BYJ8B4V0B2BevlQKN6H+At8IPia4PcbICb6ctna wMV0PzZxS35c9FnmrqXQuEGLx+Vo0AuDTw2qT4ER9y76LAJrEqY+TKTYPTW4WG/RF+ABt6Z17WtWf 1ApQl06SCaejV5aliCiPPEH/iUG30Oj5sEOR0HnR8HGpkwD0VSVpXoaUC5G39RZIUU9tJ/LXxLGAm Oje/z2bdd0P2K5FtkMhD5KpRzS5Q41nnKZA+zDz4L09P0VEHibSPHwdRZDDosh9wTTTn7Mv4Io7+G 9N0Yziyl4TCXwe9BhIEfhQ==; In-Reply-To: <87sequymtf.fsf@topbug.net> (message from Hong Xu on Wed, 11 Dec 2024 12:41:32 -0800) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296870 Archived-At: > From: Hong Xu > Cc: 74799@debbugs.gnu.org > Date: Wed, 11 Dec 2024 12:41:32 -0800 > > On 2024-12-11 Wed 12:29 GMT-08, Eli Zaretskii wrote: > > >> - "Name of the file that records `save-place-alist' value." > >> + "Name of the file that records `save-place-alist' value. > >> +Must be set before starting save-place-mode." > >> :version "24.4" ; added locate-user-emacs-file > >> :type 'file) > > > > Thanks, but how about removing the limitation instead? > > I'm not sure how to do this. It seems to me the limitation didn't exist > in Emacs 29 but suddenly I have to set save-place-file before calling > save-place-mode. I thought this was intended but maybe this is a > regression? > > (It's difficult for me to try out Emacs 29 now to 100% confirm, sorry.) I'd start by comparing saveplace.el in Emacs 28 and Emacs 29. You could also try loading saveplace.el from Emacs 28 into an Emacs 29 session, to see if the problems you have go away. Btw, what actually happens if you modify the file name after you turn on save-place-mode? what doesn't work?