From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.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#34986: write-region not governed by require-final-newline Date: Mon, 25 Mar 2019 12:14:06 +0800 Message-ID: <87y353lhf5.fsf@jidanni.org> References: <877ecnmy2v.fsf@jidanni.org> <87tvfrh9yx.fsf@tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="170263"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34986@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Mar 25 05:15:15 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h8H11-000iBN-4O for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2019 05:15:15 +0100 Original-Received: from localhost ([127.0.0.1]:36013 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8H0z-0000tL-Sc for geb-bug-gnu-emacs@m.gmane.org; Mon, 25 Mar 2019 00:15:13 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43234) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h8H0s-0000pq-Mo for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 00:15:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h8H0q-0006I6-OF for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 00:15:06 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43840) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h8H0o-0006Gm-NQ for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 00:15:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1h8H0o-0007nP-79 for bug-gnu-emacs@gnu.org; Mon, 25 Mar 2019 00:15:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <877ecnmy2v.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: Mon, 25 Mar 2019 04:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34986 X-GNU-PR-Package: emacs Original-Received: via spool by 34986-submit@debbugs.gnu.org id=B34986.155348725929881 (code B ref 34986); Mon, 25 Mar 2019 04:15:02 +0000 Original-Received: (at 34986) by debbugs.gnu.org; 25 Mar 2019 04:14:19 +0000 Original-Received: from localhost ([127.0.0.1]:57384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8H06-0007lt-V9 for submit@debbugs.gnu.org; Mon, 25 Mar 2019 00:14:19 -0400 Original-Received: from indri.birch.relay.mailchannels.net ([23.83.209.92]:65345) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1h8H04-0007lg-Ns for 34986@debbugs.gnu.org; Mon, 25 Mar 2019 00:14:17 -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 769585E1947; Mon, 25 Mar 2019 04:14:14 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (100-96-10-86.trex.outbound.svc.cluster.local [100.96.10.86]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id F045D5E1823; Mon, 25 Mar 2019 04:14:13 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com ([TEMPUNAVAIL]. [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.2); Mon, 25 Mar 2019 04:14:14 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Language-Battle: 2f3601864f254f21_1553487254302_1916099966 X-MC-Loop-Signature: 1553487254302:1292462576 X-MC-Ingress-Time: 1553487254301 Original-Received: from pdx1-sub0-mail-a39.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a39.g.dreamhost.com (Postfix) with ESMTP id B38417FFA2; Sun, 24 Mar 2019 21:14:11 -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=z3YBezuE851wpdyJn+ Gmgbk/J+w=; b=k0IK5vWbvbubAbzL6hR7tkk6ZO6xUsJfWhdOpbPa/5BpEhO15O DKQWgtnkQA3oHFDvXMHAV6w2CZ2B2FBfyAhn3QCYYOQmOqJs5fb4SqwfHwWMLxNl rf99x+tsZVZyXMv4KaloF50RrV2gUxoaRGXR2a4V04gx06VCUt4JTxcX4= Original-Received: from jidanni.org (111-246-96-69.dynamic-ip.hinet.net [111.246.96.69]) (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-a39.g.dreamhost.com (Postfix) with ESMTPSA id 40AF97FF14; Sun, 24 Mar 2019 21:14:09 -0700 (PDT) X-DH-BACKEND: pdx1-sub0-mail-a39 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: -100 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedutddrjeejgdefgecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvffufhffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepudduuddrvdegiedrleeirdeileenucfrrghrrghmpehmohguvgepshhmthhppdhhvghlohepjhhiuggrnhhnihdrohhrghdpihhnvghtpeduuddurddvgeeirdeliedrieelpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepfeegleekieesuggvsggsuhhgshdrghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:156742 Archived-At: >>>>> "BLC" =3D=3D Basil L Contovounesios writes: BLC> The user option require-final-newline is relevant only when visiting BLC> files, not when writing to arbitrary ones, OK, but perhaps add a note about that somewhere on the docstring: require-final-newline... Documentation: Whether to add a newline automatically at the end of the file. A value of t means do this only when the file is about to be saved. A value of =E2=80=98visit=E2=80=99 means do this right after the file is = visited. A value of =E2=80=98visit-save=E2=80=99 means do it at both of those time= s. Any other non-nil value means ask user whether to add a newline, when sav= ing. A value of nil means don=E2=80=99t add newlines.