From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#49193: Document require-final-newline vs. readonly files Date: Thu, 24 Jun 2021 03:22:22 +0800 Message-ID: <87czsce68h.5.fsf@jidanni.org> References: <87v964ehov.5.fsf@jidanni.org> <83pmwctq05.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12228"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49193@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 23 21:24:12 2021 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 1lw8Tq-0002sn-7Q for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Jun 2021 21:24:10 +0200 Original-Received: from localhost ([::1]:49728 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lw8Tp-0002ph-AA for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Jun 2021 15:24:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59416) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw8Ti-0002pO-Gx for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 15:24:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58575) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lw8Ti-0005VU-5p for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 15:24:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lw8Th-0003Cy-Kt for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 15:24:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87v964ehov.5.fsf@jidanni.org> Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jun 2021 19:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49193 X-GNU-PR-Package: emacs Original-Received: via spool by 49193-submit@debbugs.gnu.org id=B49193.162447618212228 (code B ref 49193); Wed, 23 Jun 2021 19:24:01 +0000 Original-Received: (at 49193) by debbugs.gnu.org; 23 Jun 2021 19:23:02 +0000 Original-Received: from localhost ([127.0.0.1]:41888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw8Sj-0003Ar-8t for submit@debbugs.gnu.org; Wed, 23 Jun 2021 15:23:02 -0400 Original-Received: from donkey.elm.relay.mailchannels.net ([23.83.212.49]:27914) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw8SZ-0003AU-Pt for 49193@debbugs.gnu.org; Wed, 23 Jun 2021 15:23:00 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 242EC781ADB; Wed, 23 Jun 2021 19:22:49 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a56.g.dreamhost.com (100-96-18-93.trex.outbound.svc.cluster.local [100.96.18.93]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id D09CC781B2E; Wed, 23 Jun 2021 19:22:47 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a56.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.18.93 (trex/6.3.3); Wed, 23 Jun 2021 19:22:49 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Suffer-Skirt: 6d383a373950639f_1624476168945_1350111930 X-MC-Loop-Signature: 1624476168945:434809133 X-MC-Ingress-Time: 1624476168944 Original-Received: from pdx1-sub0-mail-a56.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a56.g.dreamhost.com (Postfix) with ESMTP id 8B00A7E638; Wed, 23 Jun 2021 12:22:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to:cc :subject:references:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=BtYSTrtrnrPzoMIZWh uuwfalxbs=; b=CCadVHp2YpQxn1mv3kBXmWM8C9UeegGdgvPKUSkDJp4Lp4OC4Z tN7ClFw48Eq/JyHk1qgbdGj4A6kBh2Z1YoZ5OJToCsd7N79zDAzJ2XggVZIDwOxN ax5LxRdDXs5WC/eg0bKMrZToJB+IwDDgUKx3/eFESy3/WX9AvNE23snsk= Original-Received: from jidanni.org (220-140-1-205.dynamic-ip.hinet.net [220.140.1.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a56.g.dreamhost.com (Postfix) with ESMTPSA id CA96E7E08F; Wed, 23 Jun 2021 12:22:46 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a56 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:208911 Archived-At: >>>>> "EZ" =3D=3D Eli Zaretskii writes: >> From: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson >> >> Date: Wed, 23 Jun 2021 23:14:56 +0800 >>=20 >> (info "(emacs) Customize Save") says: >> If the value of the variable =E2=80=98require-final-newline=E2=80=99 i= s =E2=80=98t=E2=80=99, saving or >> writing a file silently puts a newline at the end if there isn=E2=80=99= t already >> one there. If the value is =E2=80=98visit=E2=80=99, Emacs adds a newl= ine at the end of >> any file that doesn=E2=80=99t have one, just after it visits the file.= .. >>=20 >> OK, but mention if this even affects readonly files / owned by other u= sers >> that we visit. EZ> There's nothing to mention, because this feature doesn't change how EZ> saving to an unwritable file behaves in Emacs. The feature works on EZ> the buffer text, not on the buffer's file. Ah, that clears things up. So please mention that.