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#69511: Restore any state after revert-buffer Date: Mon, 03 Jun 2024 19:55:53 +0300 Organization: LINKOV.NET Message-ID: <86v82qdkyu.fsf@mail.linkov.net> References: <86y1b0r00p.fsf@mail.linkov.net> <867cikpkpm.fsf@gnu.org> <864jdnpw83.fsf@mail.linkov.net> <86jzmjofdv.fsf@gnu.org> <86il23kywt.fsf@mail.linkov.net> <864jdnnrd6.fsf@gnu.org> <86wmqjjj3w.fsf@mail.linkov.net> <8634t7nofy.fsf@gnu.org> <867cf7pqaj.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="38699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: 69511@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jun 03 19:00:17 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 1sEB2f-0009r5-Su for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 03 Jun 2024 19:00:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEB2F-0007gS-G8; Mon, 03 Jun 2024 12:59:51 -0400 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 1sEB2E-0007gC-92 for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:59:50 -0400 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 1sEB2E-0007t8-0I for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 12:59:50 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sEB2Q-0003u0-RK for bug-gnu-emacs@gnu.org; Mon, 03 Jun 2024 13:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Jun 2024 17:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69511 X-GNU-PR-Package: emacs Original-Received: via spool by 69511-submit@debbugs.gnu.org id=B69511.171743394314810 (code B ref 69511); Mon, 03 Jun 2024 17:00:02 +0000 Original-Received: (at 69511) by debbugs.gnu.org; 3 Jun 2024 16:59:03 +0000 Original-Received: from localhost ([127.0.0.1]:50087 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEB1S-0003ql-Nr for submit@debbugs.gnu.org; Mon, 03 Jun 2024 12:59:03 -0400 Original-Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sEB1Q-0003q3-NH; Mon, 03 Jun 2024 12:59:01 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id BE3D7E0004; Mon, 3 Jun 2024 16:58:20 +0000 (UTC) In-Reply-To: <867cf7pqaj.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 03 Jun 2024 09:35:32 +0300") X-GND-Sasl: juri@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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:286475 Archived-At: close 69511 30.0.50 thanks >> IMO, "restore" is better than "state", because you don't really >> restore any state: a buffer has no state, per se. "Restore" is also >> better than "preserve". >> >> What is attractive in "restore" is that it is general and generic >> enough to include all the meanings you have shown in your examples. >> So I think "restore" is the best candidate till now. If someone has >> better suggestions, please speak up. > > Since no one has better suggestions, here is the patch that uses > "restore". This will create two different name prefixes: > > revert-buffer-preserve-modes > revert-buffer-restore-read-only > > but this is fine. So here is a complete patch with docs: So now pushed, and closed.