From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#49193: Document require-final-newline vs. readonly files Date: Wed, 23 Jun 2021 21:06:18 +0300 Message-ID: <83pmwctq05.fsf@gnu.org> References: <87v964ehov.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3069"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 49193@debbugs.gnu.org To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jun 23 20:08:29 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 1lw7IZ-0000Zx-2u for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Jun 2021 20:08:27 +0200 Original-Received: from localhost ([::1]:43254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lw7IY-0001EA-2k for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 23 Jun 2021 14:08:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42006) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw7HK-00009f-TX for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 14:07:11 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lw7HC-000723-Iu for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 14:07:05 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lw7HC-0001Bh-Dd for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 14:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 23 Jun 2021 18:07:02 +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.16244716004534 (code B ref 49193); Wed, 23 Jun 2021 18:07:02 +0000 Original-Received: (at 49193) by debbugs.gnu.org; 23 Jun 2021 18:06:40 +0000 Original-Received: from localhost ([127.0.0.1]:41855 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw7Gq-0001B3-GP for submit@debbugs.gnu.org; Wed, 23 Jun 2021 14:06:40 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:44114) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw7Gp-0001Ar-Gy for 49193@debbugs.gnu.org; Wed, 23 Jun 2021 14:06:39 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:46044) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lw7Gk-0006p7-3p; Wed, 23 Jun 2021 14:06:34 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1304 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw7Gj-0007Br-Kx; Wed, 23 Jun 2021 14:06:34 -0400 In-Reply-To: <87v964ehov.5.fsf@jidanni.org> 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:208910 Archived-At: > From: 積丹尼 Dan Jacobson > > Date: Wed, 23 Jun 2021 23:14:56 +0800 > > (info "(emacs) Customize Save") says: > If the value of the variable ‘require-final-newline’ is ‘t’, saving or > writing a file silently puts a newline at the end if there isn’t already > one there. If the value is ‘visit’, Emacs adds a newline at the end of > any file that doesn’t have one, just after it visits the file... > > OK, but mention if this even affects readonly files / owned by other users > that we visit. There's nothing to mention, because this feature doesn't change how saving to an unwritable file behaves in Emacs. The feature works on the buffer text, not on the buffer's file.