From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] New package: salv Date: Mon, 18 Jul 2022 16:39:10 -0700 Message-ID: References: <87bktm2vj6.fsf@posteo.net> <8ff5d294-36b3-2dab-ea56-9170fad14b91@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3207"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Adam Porter , Philip Kaludercic Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Jul 19 01:43:53 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 1oDaP3-0000cf-KW for ged-emacs-devel@m.gmane-mx.org; Tue, 19 Jul 2022 01:43:53 +0200 Original-Received: from localhost ([::1]:60040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDaP2-0003Uk-8K for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Jul 2022 19:43:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47572) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDaKb-00088w-Ok for emacs-devel@gnu.org; Mon, 18 Jul 2022 19:39:18 -0400 Original-Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]:38498) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDaKZ-0001m5-Af for emacs-devel@gnu.org; Mon, 18 Jul 2022 19:39:17 -0400 Original-Received: by mail-pg1-x531.google.com with SMTP id e132so12000820pgc.5 for ; Mon, 18 Jul 2022 16:39:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=VRDfgQ3XWfmbeX8YvHrKr4WoB+uCJqENYsuZ/euF4JU=; b=IkA1cwxyG8TCYDNq/5UzzVhexn/zMS0xE33oZ9+bhMVMWD8GQ/IBdq0aZqZ98LSmYm vrcp6LoauciA9FbjaDFwuV+3vRlfwdVjOuq6shEkQbxil6EvQWOqpnz2mV6DiWkLhUij g0/7rK4OacMEMMegfA2vC4z88ouQKKOtZKp8v9G+421fa4+8JyZjQJ/beRGIgs77AsLN LjifJZTKb2bRMikw9dp3xP2kjEDQa3JCHFGG3soUvevJz3EA/3DJ3dXvJp3McxQuLaCL 4o7aMb4Rcv3V11GFJ7Hm/XjsBH7+cVDgGpRKn4qVwOI7vabNTk1pRHh5ZaSdnwRRyHg2 KoRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=VRDfgQ3XWfmbeX8YvHrKr4WoB+uCJqENYsuZ/euF4JU=; b=XoHUaYPk9jetLT+J59psUwBe4k6Y111Y0elYdCya/nn3GSoSAyn35oZ2ZwJWDhHRLA TS0y3XHEFgNzIzySF1PBWjemabO90Pli7rUTZYIYsD/dkgPoUKTAWmKI6ATyCzXjm5Hg fRSdYcdW76+TDDxQh2fWWNt1qAKpoGghbrQVAiSATQoP6pKnnOOPZ9dX4mYDc37onPpt 9BhzXQiD2P9dF/YgA1PW1VcFQ9zPvPpy2uI7NsHQSD1n+w7cCBkR69n/X3KU/M/jWLO6 NypJ0AzibNLYCsh5fewI7cVPmq+Yn8OuR08A502t17EbHHQwjtVnfCxyDyA2biokd/t8 BcUg== X-Gm-Message-State: AJIora8lK5t7esGCDoQQj5T5fVkl4BqmXhpbj4jqtheKZYourAW8R4wi h9IvKQnkET1pAiHiNBtNRsF+YT8PLMi2xC3FpFQ= X-Google-Smtp-Source: AGRyM1t/i+3aGdgelPJrdcmUOn6+7wau9Md+02RzFcM2LY25RB/9sx1Gn1jO0cGMepIxJC9QHmehi0oKsmNIyXeNPxU= X-Received: by 2002:a05:6a00:4148:b0:52b:603c:d3a with SMTP id bv8-20020a056a00414800b0052b603c0d3amr11315825pfb.3.1658187551487; Mon, 18 Jul 2022 16:39:11 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 18 Jul 2022 16:39:10 -0700 In-Reply-To: <8ff5d294-36b3-2dab-ea56-9170fad14b91@alphapapa.net> X-Hashcash: 1:21:220718:emacs-devel@gnu.org::/afc9AqJs1ZvILiB:JV2e Received-SPF: pass client-ip=2607:f8b0:4864:20::531; envelope-from=stefankangas@gmail.com; helo=mail-pg1-x531.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham 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: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292249 Archived-At: Adam Porter writes: > I've no objection to adding it to core, other than that it wouldn't be > easily available to users until Emacs 29 is released, which will be > quite a while. Yes, that's unfortunately true for any new feature we add to Emacs. OTOH, everyone will have it once it's released. To my mind, it should be feasible to release a forwards-compatibility package with just the new behavior, if there's demand for it on Emacs 28 or older. > Do you mean that the code should be essentially copied into files.el > as-is, or that other changes should be made accordingly? > > What if salv.el were added to emacs.git as a separate file, so that it > wouldn't need to be loaded unless activated? I wonder why `auto-save-visited-mode' is not just changed to fit your needs here. The main difference I can see is that it is not a local minor mode? I do think a local mode would be useful for adding to mode hooks, etc. So how about just adding a new local mode `auto-save-visited-local-mode'? Would that cover your use-case(s)? See also the new options `remote-file-name-inhibit-auto-save-visited' and `auto-save-visited-predicate' that were inspired by the recent discussion about `super-saver-mode' and `salve' on /r/emacs.