From unknown Sun Aug 17 01:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49193: Document require-final-newline vs. readonly files 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 17:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49193@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16244704822764 (code B ref -1); Wed, 23 Jun 2021 17:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 23 Jun 2021 17:48:02 +0000 Received: from localhost ([127.0.0.1]:41835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw6yo-0000iW-Gl for submit@debbugs.gnu.org; Wed, 23 Jun 2021 13:48:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:38892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw6ym-0000i2-PC for submit@debbugs.gnu.org; Wed, 23 Jun 2021 13:48:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw6ym-0003tC-AY for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 13:48:00 -0400 Received: from dog.elm.relay.mailchannels.net ([23.83.212.48]:45413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw6yk-0002us-Ir for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 13:47:59 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B2F537E3164 for ; Wed, 23 Jun 2021 17:47:53 +0000 (UTC) Received: from pdx1-sub0-mail-a17.g.dreamhost.com (100-105-161-158.trex.outbound.svc.cluster.local [100.105.161.158]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 542A17E29F7 for ; Wed, 23 Jun 2021 17:47:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a17.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.158 (trex/6.3.3); Wed, 23 Jun 2021 17:47:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Average-Macabre: 2333499a53d692ac_1624470473546_2221888062 X-MC-Loop-Signature: 1624470473546:1439819985 X-MC-Ingress-Time: 1624470473546 Received: from pdx1-sub0-mail-a17.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a17.g.dreamhost.com (Postfix) with ESMTP id 10F3C8348C for ; Wed, 23 Jun 2021 10:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=uze8cZAETWAXWDkVhH gkgP/6HCk=; b=DI/WpBXrmk7xnUMnR6VydCXc/60Bb0qZSvw2ko6eJWg3APf7Mk KJdW5MtC4Avj+ZMN32XlRESkqrLOE16JcTChG0kkLcPAQk9nAr/Sqq6ILo+A8Kde Skg/A3Vj1D8WU220dztIdj3AGD6Qocz9rzQ3nIWguc+QW8RmuVtLny53U= 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-a17.g.dreamhost.com (Postfix) with ESMTPSA id C96088342E for ; Wed, 23 Jun 2021 10:47:52 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a17 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Date: Wed, 23 Jun 2021 23:14:56 +0800 Message-ID: <87v964ehov.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.212.48; envelope-from=jidanni@jidanni.org; helo=dog.elm.relay.mailchannels.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) (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.= .. OK, but mention if this even affects readonly files / owned by other user= s that we visit. From unknown Sun Aug 17 01:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49193: Document require-final-newline vs. readonly files 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 X-GNU-PR-Keywords: To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Cc: 49193@debbugs.gnu.org Received: via spool by 49193-submit@debbugs.gnu.org id=B49193.16244716004534 (code B ref 49193); Wed, 23 Jun 2021 18:07:02 +0000 Received: (at 49193) by debbugs.gnu.org; 23 Jun 2021 18:06:40 +0000 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 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 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 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 Date: Wed, 23 Jun 2021 21:06:18 +0300 Message-Id: <83pmwctq05.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87v964ehov.5.fsf@jidanni.org> References: <87v964ehov.5.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > 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. From unknown Sun Aug 17 01:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49193: Document require-final-newline vs. readonly files 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 X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 49193@debbugs.gnu.org Received: via spool by 49193-submit@debbugs.gnu.org id=B49193.162447618212228 (code B ref 49193); Wed, 23 Jun 2021 19:24:01 +0000 Received: (at 49193) by debbugs.gnu.org; 23 Jun 2021 19:23:02 +0000 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 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 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) 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 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 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= 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 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87v964ehov.5.fsf@jidanni.org> <83pmwctq05.fsf@gnu.org> Date: Thu, 24 Jun 2021 03:22:22 +0800 Message-ID: <87czsce68h.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >>>>> "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. From unknown Sun Aug 17 01:00:29 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Subject: bug#49193: closed (Re: bug#49193: Document require-final-newline vs. readonly files) Message-ID: References: <83lf6zu7qc.fsf@gnu.org> <87v964ehov.5.fsf@jidanni.org> X-Gnu-PR-Message: they-closed 49193 X-Gnu-PR-Package: emacs Reply-To: 49193@debbugs.gnu.org Date: Thu, 24 Jun 2021 05:56:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1624514162-17392-1" This is a multi-part message in MIME format... ------------=_1624514162-17392-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #49193: Document require-final-newline vs. readonly files which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 49193@debbugs.gnu.org. --=20 49193: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D49193 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1624514162-17392-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 49193-done) by debbugs.gnu.org; 24 Jun 2021 05:55:58 +0000 Received: from localhost ([127.0.0.1]:42233 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwILG-0004WH-LP for submit@debbugs.gnu.org; Thu, 24 Jun 2021 01:55:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43132) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwILF-0004W2-9g for 49193-done@debbugs.gnu.org; Thu, 24 Jun 2021 01:55:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34908) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwIL9-00074R-PH; Thu, 24 Jun 2021 01:55:51 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4932 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 1lwIL9-0006dw-Cs; Thu, 24 Jun 2021 01:55:51 -0400 Date: Thu, 24 Jun 2021 08:55:39 +0300 Message-Id: <83lf6zu7qc.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson In-Reply-To: <87czsce68h.5.fsf@jidanni.org> (message from =?utf-8?B?56mN?= =?utf-8?B?5Li55bC8?= Dan Jacobson on Thu, 24 Jun 2021 03:22:22 +0800) Subject: Re: bug#49193: Document require-final-newline vs. readonly files References: <87v964ehov.5.fsf@jidanni.org> <83pmwctq05.fsf@gnu.org> <87czsce68h.5.fsf@jidanni.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49193-done Cc: 49193-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: 積丹尼 Dan Jacobson > Cc: 49193@debbugs.gnu.org > Date: Thu, 24 Jun 2021 03:22:22 +0800 > > 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. I don't see a reason to mention that feature A doesn't change how feature B works, for every combination of A and B. So I'm closing this bug report. ------------=_1624514162-17392-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 23 Jun 2021 17:48:02 +0000 Received: from localhost ([127.0.0.1]:41835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw6yo-0000iW-Gl for submit@debbugs.gnu.org; Wed, 23 Jun 2021 13:48:02 -0400 Received: from lists.gnu.org ([209.51.188.17]:38892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lw6ym-0000i2-PC for submit@debbugs.gnu.org; Wed, 23 Jun 2021 13:48:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw6ym-0003tC-AY for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 13:48:00 -0400 Received: from dog.elm.relay.mailchannels.net ([23.83.212.48]:45413) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lw6yk-0002us-Ir for bug-gnu-emacs@gnu.org; Wed, 23 Jun 2021 13:47:59 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id B2F537E3164 for ; Wed, 23 Jun 2021 17:47:53 +0000 (UTC) Received: from pdx1-sub0-mail-a17.g.dreamhost.com (100-105-161-158.trex.outbound.svc.cluster.local [100.105.161.158]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 542A17E29F7 for ; Wed, 23 Jun 2021 17:47:53 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a17.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.105.161.158 (trex/6.3.3); Wed, 23 Jun 2021 17:47:53 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Average-Macabre: 2333499a53d692ac_1624470473546_2221888062 X-MC-Loop-Signature: 1624470473546:1439819985 X-MC-Ingress-Time: 1624470473546 Received: from pdx1-sub0-mail-a17.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a17.g.dreamhost.com (Postfix) with ESMTP id 10F3C8348C for ; Wed, 23 Jun 2021 10:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=uze8cZAETWAXWDkVhH gkgP/6HCk=; b=DI/WpBXrmk7xnUMnR6VydCXc/60Bb0qZSvw2ko6eJWg3APf7Mk KJdW5MtC4Avj+ZMN32XlRESkqrLOE16JcTChG0kkLcPAQk9nAr/Sqq6ILo+A8Kde Skg/A3Vj1D8WU220dztIdj3AGD6Qocz9rzQ3nIWguc+QW8RmuVtLny53U= 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-a17.g.dreamhost.com (Postfix) with ESMTPSA id C96088342E for ; Wed, 23 Jun 2021 10:47:52 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a17 From: =?utf-8?B?56mN5Li55bC8?= Dan Jacobson To: bug-gnu-emacs@gnu.org Subject: Document require-final-newline vs. readonly files Date: Wed, 23 Jun 2021 23:14:56 +0800 Message-ID: <87v964ehov.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=23.83.212.48; envelope-from=jidanni@jidanni.org; helo=dog.elm.relay.mailchannels.net X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 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, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.1 (-) (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.= .. OK, but mention if this even affects readonly files / owned by other user= s that we visit. ------------=_1624514162-17392-1-- From unknown Sun Aug 17 01:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49193: Document require-final-newline vs. readonly files Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Jun 2021 22:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 49193@debbugs.gnu.org Cc: eliz@gnu.org, jidanni@jidanni.org Received: via spool by 49193-submit@debbugs.gnu.org id=B49193.162457253726701 (code B ref 49193); Thu, 24 Jun 2021 22:09:01 +0000 Received: (at 49193) by debbugs.gnu.org; 24 Jun 2021 22:08:57 +0000 Received: from localhost ([127.0.0.1]:44282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwXWr-0006wb-Dz for submit@debbugs.gnu.org; Thu, 24 Jun 2021 18:08:57 -0400 Received: from mout.web.de ([212.227.17.12]:36305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwXWm-0006wH-2j for 49193@debbugs.gnu.org; Thu, 24 Jun 2021 18:08:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1624572516; bh=bENJuIlrkHRDdVI22SsLImVzRRC68QQ2MRvWCSHNvUs=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=QrZSLwAwyi/Hp6a/ZhgOgO9s2vONfjAFiY5JPDtUiWlD/oCAvkbVY9iGc/fqtZG0d KIiBEjNwxPu/dUpNtQtGVQfXLNCP2ud8a55RnQ5p6T65HFqhqsNuxxo/AROSPi2X/l r9SlaMeRUd83MITh5ETWJ+pvCoRUvTce6i1Mwf6o= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Received: from drachen.dragon ([178.6.28.156]) by smtp.web.de (mrweb102 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MGRZc-1m0zUy0OaO-00DF9t; Fri, 25 Jun 2021 00:08:36 +0200 From: Michael Heerdegen References: <87v964ehov.5.fsf@jidanni.org> <83pmwctq05.fsf@gnu.org> <87czsce68h.5.fsf@jidanni.org> <83lf6zu7qc.fsf@gnu.org> Date: Fri, 25 Jun 2021 00:08:34 +0200 In-Reply-To: <83lf6zu7qc.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 24 Jun 2021 08:55:39 +0300") Message-ID: <871r8q29wd.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:oefL48sYScy856mPsyUpn/KRnZ7XUTgRMEFJVbbW13pePSYjRie f0RT+3nMuY8GDsl8K2o/8ttWbc1xfdV++gYkq7Pv3MufL3yRMKgAO0gxTu3xClBwdLsYPr0 1BfLsjK3ClTo/7GQX2jlauw9rBDEJw6K0UQoqMEd/ufZBHluHOOSLnGeuLWthDRNKs72/Xi UeG+okc0qYA0C2CP/wIrw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:TMnzn6geoAQ=:d3pTj/qnguTwVukAQUwcL3 SESWqIiYmG7y0WM6CgtsDFND7rLuf+NKRY0kKJAfq9UGpvHcTs53Xiymh3VyB7PXsFXZQONan Zo6BgZhZHKo6oIUvDgeb8YMmz3vx39p1gHI17prl1KVyo0smlsCLOMJ6kaTfLAB1HzKnBO+mT uqvYTODAAJrRf8ylYJW94c2SbFeQH6g731Gg9k5RDxG8clefSeJLyByVFfw+khy1B3pj/CkRV p/EGfW7QzH/wSCRi2hthMHPoafmaLYDQJTHCrFmRQGRY2wKgpCBF49RIB42beQUYjzSXw2SOx wPuNouR5Uy4oBBtHSAGaLogoNhq8g3tY58VX3EAA6j05WHm1BI8aREAJyIlYFJR7cCb6wy/PE wyMmwbGygxq32dliBcrm+Z86FIwcuK97uGAGDfiPlzEOSpV2JxEBgUyhCcib0AUGB3uz3SXI5 PDxVNHaFwX2f+TYiErr4xHTOdh4Zr0a7YkekSzk0/9Z422+CksxvstjM5+YsSRmtTRBHGsRS4 jDcYPuTO/j+3PS9bMxGKOo8z6M/TsShGMAiC6tCm7KHuFQC5pz2XmZCHPCAdFkVY8I1fO8C+i GLXAOsFMKfKIKW/KfUCIVReJb7GekefOZM1ui4MIwYbTTeNnYxIjLsJYfVstF3EhjWknc5rHv rl4rt05AaWQqsUhFugCZu1kkRLsnk9GG8Plzc78ujWWqMIyCBayk6DCR/1/2qKxoJfnT751Nt yJPjuXYGizxE0XB8CPT1/7cQNy07u7SyB9Pp01lqlCJgYaWwYwM2xtxoQaA5lJ4Kr+5oGrEv+ 1MR+/v0NexevsM4OP2qPk1/qNCkH3Fyajb1/W4JpaZBVileKxik/T2sSpBPVCEH68Kd5xeTlQ K4mcc3dXncATa32ONQGhdWYHBd/2hsnrr24xUqRHBG42HPpEOG5XBrJR7f1Io6eFvH+sRV4JD 3Tvbghhn5Nb1Mh2OJcwMVzwua4yf3mlaGR2OkK7kT7aQQ5eWqUNBicuz+fS8iBYTbQ9etybl9 stJbhjN7DcUJJ+OtfGq+ajNlmc2XCxfskmPYmMgpTiE9Z7tv4CTKbkKBB2Fu5TPLORUxn9iHf zOBDFMoZ10DjhVvIYVP8evWqFqOVmUH+9w4nwopuwlGS6ZT5E9VCUP9Sg== X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: > > From: =E7=A9=8D=E4=B8=B9=E5=B0=BC Dan Jacobson > > Cc: 49193@debbugs.gnu.org > > Date: Thu, 24 Jun 2021 03:22:22 +0800 > >=20 > > 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. > >=20 > > Ah, that clears things up. > > So please mention that. > > I don't see a reason to mention that feature A doesn't change how > feature B works, for every combination of A and B. If you want a second opinion: That's not the source of my confusion about the text: | If the value is =E2=80=98visit=E2=80=99, Emacs adds a newline at the end = of any file | that doesn=E2=80=99t have one, just after it visits the file... But that's not true, is it? The file is not touched. Is the newline still added to the file's buffer? Or not even that (because the buffer is read-only)? Would | [...] Emacs adds a newline at the end of any file's buffer that | doesn=E2=80=99t have one, just after it visits the file... be clearer? Thanks, Michael. From unknown Sun Aug 17 01:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49193: Document require-final-newline vs. readonly files Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 25 Jun 2021 06:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Heerdegen Cc: 49193@debbugs.gnu.org, jidanni@jidanni.org Received: via spool by 49193-submit@debbugs.gnu.org id=B49193.162460126827894 (code B ref 49193); Fri, 25 Jun 2021 06:08:02 +0000 Received: (at 49193) by debbugs.gnu.org; 25 Jun 2021 06:07:48 +0000 Received: from localhost ([127.0.0.1]:44647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwf0G-0007Fq-7q for submit@debbugs.gnu.org; Fri, 25 Jun 2021 02:07:48 -0400 Received: from eggs.gnu.org ([209.51.188.92]:48742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lwf0F-0007FY-1N for 49193@debbugs.gnu.org; Fri, 25 Jun 2021 02:07:47 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41104) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lwf09-0007TG-N3; Fri, 25 Jun 2021 02:07:41 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3449 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 1lwf09-00053t-AE; Fri, 25 Jun 2021 02:07:41 -0400 Date: Fri, 25 Jun 2021 09:07:31 +0300 Message-Id: <83lf6yscik.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <871r8q29wd.fsf@web.de> (message from Michael Heerdegen on Fri, 25 Jun 2021 00:08:34 +0200) References: <87v964ehov.5.fsf@jidanni.org> <83pmwctq05.fsf@gnu.org> <87czsce68h.5.fsf@jidanni.org> <83lf6zu7qc.fsf@gnu.org> <871r8q29wd.fsf@web.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Michael Heerdegen > Cc: eliz@gnu.org, jidanni@jidanni.org > Date: Fri, 25 Jun 2021 00:08:34 +0200 > > | 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... > > But that's not true, is it? The file is not touched. Is the newline > still added to the file's buffer? Or not even that (because the buffer > is read-only)? > > Would > > | [...] Emacs adds a newline at the end of any file's buffer that > | doesn’t have one, just after it visits the file... > > be clearer? Depends on the beholder, I guess. Many newbies don't understand the fine difference, and have trouble with the idea that Emacs doesn't generally manipulate files for editing. From unknown Sun Aug 17 01:00:29 2025 X-Loop: help-debbugs@gnu.org Subject: bug#49193: Document require-final-newline vs. readonly files 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: Sat, 26 Jun 2021 17:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49193 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Michael Heerdegen , 49193@debbugs.gnu.org Received: via spool by 49193-submit@debbugs.gnu.org id=B49193.162472789527103 (code B ref 49193); Sat, 26 Jun 2021 17:19:01 +0000 Received: (at 49193) by debbugs.gnu.org; 26 Jun 2021 17:18:15 +0000 Received: from localhost ([127.0.0.1]:48592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxBwd-000735-8s for submit@debbugs.gnu.org; Sat, 26 Jun 2021 13:18:15 -0400 Received: from earwig.ash.relay.mailchannels.net ([23.83.222.54]:40378) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lxBwa-00072m-K5 for 49193@debbugs.gnu.org; Sat, 26 Jun 2021 13:18:13 -0400 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 87759780E9D; Sat, 26 Jun 2021 17:18:08 +0000 (UTC) Received: from pdx1-sub0-mail-a72.g.dreamhost.com (100-96-11-26.trex.outbound.svc.cluster.local [100.96.11.26]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F3C2A780E9C; Sat, 26 Jun 2021 17:18:07 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Received: from pdx1-sub0-mail-a72.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.96.11.26 (trex/6.3.3); Sat, 26 Jun 2021 17:18:08 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Abortive-Callous: 05c31c027dd27712_1624727888235_353188973 X-MC-Loop-Signature: 1624727888235:2738647394 X-MC-Ingress-Time: 1624727888235 Received: from pdx1-sub0-mail-a72.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a72.g.dreamhost.com (Postfix) with ESMTP id B86F27F1BC; Sat, 26 Jun 2021 10:18:07 -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=P9s4UGMpu3hPB/lsZV mBLbDugn4=; b=Jj5FtLN1daO5dQs0E5OetFmAd0a8UKNueAt04bZF73wihSckrO o0GHPTRsRgUopAEOabG1+PgpCiHNUsVld7N4Fjm0X3fpmu5/HVI5TvPhboeRoBHV NfXQYt3+5ZbSAziXmdXspz888JG/eLuPyqepkJHQeZzt6we4sfxHGQKb0= Received: from jidanni.org (111-246-96-72.dynamic-ip.hinet.net [111.246.96.72]) (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-a72.g.dreamhost.com (Postfix) with ESMTPSA id 97E9E86681; Sat, 26 Jun 2021 10:18:06 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a72 From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson References: <87v964ehov.5.fsf@jidanni.org> <83pmwctq05.fsf@gnu.org> <87czsce68h.5.fsf@jidanni.org> <83lf6zu7qc.fsf@gnu.org> <871r8q29wd.fsf@web.de> <83lf6yscik.fsf@gnu.org> Date: Sun, 27 Jun 2021 01:18:02 +0800 Message-ID: <87mtrca6k5.5.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) >> Would >>=20 >> | [...] Emacs adds a newline at the end of any file's buffer that >> | doesn=E2=80=99t have one, just after it visits the file... >>=20 >> be clearer? Better say **buffer** or BUFFER, not just plain buffer. EZ> Depends on the beholder, I guess. Many newbies don't understand the EZ> fine difference, and have trouble with the idea that Emacs doesn't EZ> generally manipulate files for editing. It's correct that they don't understand the difference, so it would be great if the manual helped a little to explain it, right there on that page too in fact.