From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#12507: [debbugs-tracker] Processed: severity 12507 wishlist Date: Sat, 19 Sep 2020 10:29:58 -0700 (PDT) Message-ID: References: <87bogubqjy.fsf@gnu.org> <873925ebpd.fsf@gnu.org> <87363ff7qp.fsf@gnus.org> <11ee80e5-6d98-4a1f-93c8-babb6da003f3@default> <87r1qxrgs1.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33790"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Karl Fogel , Chong Yidong , 12507@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 19 19:31:18 2020 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 1kJghi-0008fJ-7d for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 19:31:18 +0200 Original-Received: from localhost ([::1]:45748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kJghg-0002la-Ri for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 19 Sep 2020 13:31:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40636) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kJghS-0002lM-0W for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 13:31:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36473) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kJghR-0001nS-NI for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 13:31:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kJghR-0000jK-JT for bug-gnu-emacs@gnu.org; Sat, 19 Sep 2020 13:31:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 Sep 2020 17:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12507 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 12507-submit@debbugs.gnu.org id=B12507.1600536622522 (code B ref 12507); Sat, 19 Sep 2020 17:31:01 +0000 Original-Received: (at 12507) by debbugs.gnu.org; 19 Sep 2020 17:30:22 +0000 Original-Received: from localhost ([127.0.0.1]:48019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJggn-000088-MY for submit@debbugs.gnu.org; Sat, 19 Sep 2020 13:30:22 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:60450) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kJggl-0008SC-Cs for 12507@debbugs.gnu.org; Sat, 19 Sep 2020 13:30:20 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08JHUDRc027597; Sat, 19 Sep 2020 17:30:13 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=YYn9hS9RfrZGLaAnLftxkfXAIWdtkN01qCiu9i2x4i0=; b=MDYLiG02xkB/gfeFt24zPVkL+4Ov8NuRPN/J1qj7+ROqddFZsNXUkox5lB4XxDJIlEeo fWq1LSCu7gImZCfLANjRlIgX1rA5NpaE4woTsWWA0rjkBP0dJwT4RM4u02srNGXsgJhp zGW0RD8r2ExE354nttVxkCKmyWHQgUNyrvLiVmfz6g0oO0VGQL0tSzxITNrjiAxt4mU9 D+Bv0OOluEBue6ntrHb1Swqb4qO7hWYvtNxTX/SfEj8r2IIPE/Ejq9lw1q3bleyUa8hu Fl1YEKac2AwJqtaHoxfh2aDkZmmhko4d77uTM7H7WCz7vC5GxjDXQ7q6iSiFw79l/VH/ /w== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 33ndnu0w0r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 19 Sep 2020 17:30:13 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08JHUCHx063314; Sat, 19 Sep 2020 17:30:12 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 33n81954ma-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 19 Sep 2020 17:30:12 +0000 Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08JHU0GS010126; Sat, 19 Sep 2020 17:30:00 GMT In-Reply-To: <87r1qxrgs1.fsf@gnus.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5044.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9749 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=960 spamscore=0 malwarescore=0 mlxscore=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009190151 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9749 signatures=668679 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=0 bulkscore=0 clxscore=1015 impostorscore=0 mlxlogscore=984 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009190151 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" Xref: news.gmane.io gmane.emacs.bugs:188419 Archived-At: > > No, `write-region' should not, itself, make a backup file. >=20 > No, but there should perhaps be a global mechanism for modes to decide > whether the data it writes should have backup files, and these modes > should then call a wrapper around `write-region' that does this stuff. >=20 > And it should be user-customisable, if it exists. Huh? This is about a particular context (mode, if you like). In _this particular context_ the proper behavior is to use `write-file'. There's zero reason to use `write-region' in this context. And to fix this context in this regard there's zero reason to propose some far-reaching, general change to `write-region'. `write-region' is simply the wrong function to use in this context. Trying to generalize this for all contexts is a different solution (in search of a problem). The subject of this bug report is: "`bookmark-write-file': use `write-file', not `write-region' , to get backups" To be clear, if this isn't clear already: This doesn't affect me or my code, personally, because I fixed this long ago in Bookmark+. I'm just trying to help vanilla Emacs DTRT. There's a real bug here, which I can attest to because Bookmark+ users have lamented not having backed up their bookmark files (before I fixed the code to use `write-file'). There's no reason to expect or require users to manually back up their bookmark files, especially when it's trivial for Emacs itself to DTRT and provide backup by default. By _default_.