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: Wed, 23 Sep 2020 11:13:53 -0700 (PDT) Message-ID: <75114652-4742-48ad-ac46-eb74d28b6608@default> References: <87bogubqjy.fsf@gnu.org> <873925ebpd.fsf@gnu.org> <87363ff7qp.fsf@gnus.org> <11ee80e5-6d98-4a1f-93c8-babb6da003f3@default> <87r1qxrgs1.fsf@gnus.org> <87v9g52dvz.fsf@red-bean.com> <83sgb8va8t.fsf@gnu.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="35314"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, cyd@gnu.org, 12507@debbugs.gnu.org To: Eli Zaretskii , Karl Fogel Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Sep 23 20:15:38 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 1kL9Io-000925-Ku for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 20:15:38 +0200 Original-Received: from localhost ([::1]:52880 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kL9In-0002A2-J8 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Sep 2020 14:15:37 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52054) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kL9IH-00029H-2r for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 14:15:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54496) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kL9IE-0007LI-8i for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 14:15:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kL9IE-0005S2-41 for bug-gnu-emacs@gnu.org; Wed, 23 Sep 2020 14:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Sep 2020 18:15:02 +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.160088484520815 (code B ref 12507); Wed, 23 Sep 2020 18:15:02 +0000 Original-Received: (at 12507) by debbugs.gnu.org; 23 Sep 2020 18:14:05 +0000 Original-Received: from localhost ([127.0.0.1]:37805 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL9HI-0005Pf-TO for submit@debbugs.gnu.org; Wed, 23 Sep 2020 14:14:05 -0400 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:36356) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kL9HG-0005P1-L3 for 12507@debbugs.gnu.org; Wed, 23 Sep 2020 14:14:03 -0400 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 08NI9XQA135026; Wed, 23 Sep 2020 18:13:57 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=txKtf2nOaUOHe6WvbKAfSc6TUs1x9Z42xE6dCNcmyEw=; b=JgJXp13+WdBr2SXemzYntpuXLOTE14O7VOTZ3NLPqsI9cF5U8ooJQFNFJti/ki+jjS8h UemOUI31D9sZJ/DjIxiX4Ky3om+QeNpZWbpxxR4TkueUGY15Z3104VUTjRplbiT2xzde MxETBefB3E16++2iSGZjeccU7gK4NxByZa7dqBxftih3vIWwq/K/7L1bg4pxUef+exps RpMrkxLzyDJL4/oB8ts0NVaSKOoozHxT8D+27aAyQNPFHjQ33ktaNrex7qmHKYTpX6o2 Swlnrf2qW7kLeXDiMJdEX549vURz8qHCswH9uuJk/JP8fgvqYw0aU5ohV29AdCPeCUh4 Gg== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 33q5rgjdgk-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Sep 2020 18:13:57 +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 08NIARtf102317; Wed, 23 Sep 2020 18:13:56 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserp3030.oracle.com with ESMTP id 33nujpwerh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 23 Sep 2020 18:13:56 +0000 Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 08NIDtae003495; Wed, 23 Sep 2020 18:13:55 GMT In-Reply-To: <83sgb8va8t.fsf@gnu.org> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5056.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 bulkscore=0 malwarescore=0 mlxlogscore=999 phishscore=0 adultscore=0 spamscore=0 suspectscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009230138 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9753 signatures=668680 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 impostorscore=0 clxscore=1015 suspectscore=0 phishscore=0 malwarescore=0 priorityscore=1501 mlxlogscore=999 adultscore=0 bulkscore=0 mlxscore=0 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009230138 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:188815 Archived-At: > > This way we would still use `write-region' and avoid visiting the file. >=20 > Why do we have to keep to use write-region? We don't. > > Even though we don't know exactly why Richard made the original motivat= ing > change (commit cfde584f6d, see [b] below), there was some problem with > `write-file' -- so we shouldn't just go back to that, because a regressio= n > would be likely. >=20 > You already had this discussion with Richard back then, see >=20 > https://urldefense.com/v3/__https://lists.gnu.org/archive/html/emacs- > devel/2005- > 05/msg01376.html__;!!GqivPVa7Brio!OSjUJblLyJ3EpHMJp5DOIs2JXP2on_caEr0IyNh= 9zTt > iU5_MphK2KXh6pWfteriy$ >=20 > If what Richard wrote in response is not clear enough, we can ask him > to try to elaborate. Thanks for finding that. Clearly, the save-place use case is particular, and the reason for it to use `write-region' doesn't apply to the use of a bookmark file. That's clear to me, at least, from what RMS said: If bookmark.el currently visits the file when reading it, changing the way it writes the file would not alter the outcome. How often do users visit the bookmark file? If they do this commonly, then it is better to visit the file. If they do this quite rarely, then could be is better to work like save-place-alist-to-file. Another alternative, which could be best if you want Emacs to make backup= s of the bookmark file in the usual way, is to visit the file normally, but kill the buffer after saving it, unless the buffer existed previously= .