From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.devel Subject: Re: vc-find-revision-no-save? Date: Sat, 29 Oct 2022 15:40:21 +0000 Message-ID: <87v8o2priy.fsf@posteo.net> References: <878rl543co.fsf@posteo.net> <878rkz161j.fsf@posteo.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="20319"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , dgutov@yandex.ru, john@yates-sheets.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Oct 29 17:43:28 2022 Return-path: Envelope-to: ged-emacs-devel@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 1oonzc-00053C-P7 for ged-emacs-devel@m.gmane-mx.org; Sat, 29 Oct 2022 17:43:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oonyS-0007tG-7N; Sat, 29 Oct 2022 11:42:16 -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 1oonwj-00079h-SK for emacs-devel@gnu.org; Sat, 29 Oct 2022 11:40:29 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oonwi-00023B-8k for emacs-devel@gnu.org; Sat, 29 Oct 2022 11:40:29 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id B5BE9240027 for ; Sat, 29 Oct 2022 17:40:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1667058025; bh=bflea6ktw9G63GlO2B5Y1/snzkGJnWve8QjbIYhJSq8=; h=From:To:Cc:Subject:Autocrypt:Date:From; b=qNLnx7xTqdn4iaAe+9FffYsiEmZH/LhreoizJgXMXdqOfaOT7MBkVnAymKap0OQV0 VB8CocHrHvuaP+DtfzsfELn9ivQHln2JK+bwiP51ZojSNfaRh+YmultwB2dGk8tWVT 0NpwdDfWj7xJxTGhqnRWmDWt7Hl4xV9zAusYgk+s1WOPdswUHkrBBDsvJYJl5ZkYzy Lu8kUW0qjeP/RSMIRmJG3ptfYcjlRI0Ut/+yJJCRSt8JNUmKXbha7idyki5lU3fKqs aqTVeRE1A24iDpy/EN9YTKsCsh+wnvuEgUijn+gGpb3dkyzIjCtHJfmPvaKkr4bJsx 89rJ9Mhn0zQXA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4N03X61bTrz9rxF; Sat, 29 Oct 2022 17:40:21 +0200 (CEST) In-Reply-To: (Stefan Monnier's message of "Sat, 29 Oct 2022 11:14:18 -0400") Autocrypt: addr=philipk@posteo.net; prefer-encrypt=nopreference; keydata= mDMEYHHqUhYJKwYBBAHaRw8BAQdAp3GdmYJ6tm5McweY6dEvIYIiry+Oz9rU4MH6NHWK0Ee0QlBo aWxpcCBLYWx1ZGVyY2ljIChnZW5lcmF0ZWQgYnkgYXV0b2NyeXB0LmVsKSA8cGhpbGlwa0Bwb3N0 ZW8ubmV0PoiQBBMWCAA4FiEEDM2H44ZoPt9Ms0eHtVrAHPRh1FwFAmBx6lICGwMFCwkIBwIGFQoJ CAsCBBYCAwECHgECF4AACgkQtVrAHPRh1FyTkgEAjlbGPxFchvMbxzAES3r8QLuZgCxeAXunM9gh io0ePtUBALVhh9G6wIoZhl0gUCbQpoN/UJHI08Gm1qDob5zDxnIHuDgEYHHqUhIKKwYBBAGXVQEF AQEHQNcRB+MUimTMqoxxMMUERpOR+Q4b1KgncDZkhrO2ql1tAwEIB4h4BBgWCAAgFiEEDM2H44Zo Pt9Ms0eHtVrAHPRh1FwFAmBx6lICGwwACgkQtVrAHPRh1Fw1JwD/Qo7kvtib8jy7puyWrSv0MeTS g8qIxgoRWJE/KKdkCLEA/jb9b9/g8nnX+UcwHf/4VfKsjExlnND3FrBviXUW6NcB Received-SPF: pass client-ip=185.67.36.65; envelope-from=philipk@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298761 Archived-At: Stefan Monnier writes: > Philip Kaludercic [2022-10-29 06:46:00] wrote: >> Richard Stallman writes: >>> [[[ To any NSA and FBI agents reading my email: please consider ]]] >>> [[[ whether defending the US Constitution against all enemies, ]]] >>> [[[ foreign or domestic, requires you to follow Snowden's example. ]]] >>> >>> > I can answer this one: because back when we wrote this code, the "Git" >>> > of the day was called "CVS" and getting a historic revision required >>> > fetching it from the centralized server, so you were usually quite happy >>> > to keep a local copy, even if you had to erase them manually every once >>> > in a while. >>> >>> I still sometimes use CVS, and this feature is still useful with it. >> >> In that case the suggestion to change the behaviour depending on the VCS >> should be fine. If a VCS requires a network connection, storing the >> files locally can be helpful. > > Note that, IIRC, the way the code works, if `vc-find-revision-no-save` > is non-nil you get an unsaved "file buffer", so it just takes a `C-x > C-s` to write the file to its "usual" place (i.e. `FILENAME.~REV~`, > IIRC) if you think it's worthwhile. > > For that reason, I'm not convinced we need a special per-VCS handling > of this. Right, I didn't think of that. I am just wondering if there are people who would rely on the previous behaviour and would be surprised if this were to change all of a sudden? > > Stefan