From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#19102: 24.4; outline-move-subtree-up/down error at last and second-last subtree Date: Sat, 22 Nov 2014 11:32:21 -0500 Message-ID: References: <87lhn7s522.fsf@rosalinde.fritz.box> <83lhn789tq.fsf@gnu.org> <87h9xvruan.fsf@rosalinde.fritz.box> <83tx1v6mur.fsf@gnu.org> <87a93nrlql.fsf@rosalinde.fritz.box> <83lhn76iex.fsf@gnu.org> <8761easv3s.fsf@rosalinde.fritz.box> <87r3wytcaa.fsf@rosalinde.fritz.box> <83vbm96dxs.fsf@gnu.org> <87oas0n8sr.fsf@rosalinde.fritz.box> <8361e84yxb.fsf@gnu.org> <87fvdcmpeg.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1416674019 975 80.91.229.3 (22 Nov 2014 16:33:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Nov 2014 16:33:39 +0000 (UTC) Cc: paul@tilk.co, 19102@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 22 17:33:31 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XsDcg-00056n-OX for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2014 17:33:22 +0100 Original-Received: from localhost ([::1]:45942 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsDcf-0002P9-Qi for geb-bug-gnu-emacs@m.gmane.org; Sat, 22 Nov 2014 11:33:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51813) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsDcV-0002OO-Gf for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 11:33:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XsDcM-0006Iw-TU for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 11:33:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44708) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsDcM-0006Is-Qg for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 11:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XsDcM-0007Zq-DN for bug-gnu-emacs@gnu.org; Sat, 22 Nov 2014 11:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 Nov 2014 16:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19102 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 19102-submit@debbugs.gnu.org id=B19102.141667394429079 (code B ref 19102); Sat, 22 Nov 2014 16:33:02 +0000 Original-Received: (at 19102) by debbugs.gnu.org; 22 Nov 2014 16:32:24 +0000 Original-Received: from localhost ([127.0.0.1]:41921 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsDbk-0007Yx-DO for submit@debbugs.gnu.org; Sat, 22 Nov 2014 11:32:24 -0500 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:51933) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XsDbi-0007Yp-VL for 19102@debbugs.gnu.org; Sat, 22 Nov 2014 11:32:23 -0500 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id sAMGWLfp001662; Sat, 22 Nov 2014 11:32:22 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 8768B43AC; Sat, 22 Nov 2014 11:32:21 -0500 (EST) In-Reply-To: <87fvdcmpeg.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Fri, 21 Nov 2014 18:31:19 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV5133=0 X-NAI-Spam-Version: 2.3.0.9393 : core <5133> : inlines <1554> : streams <1346836> : uri <1835708> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:96425 Archived-At: > Yes. As long as there is a final newline, the only change the current > code needs is to replace `=' with `eq'. So given that > require-final-newline is true for files in outline-mode, the only case > that requires adding a final newline is a non-file outline-mode buffer > that lacks a final newline. I don't understand why there'd be a difference between file and non-file buffers. Outline-mode doesn't care about files at all. The buffer can end without a newline both in the file and in the non-file case, regardless of the require-final-newline setting. OTOH, we can add a final newline pretty much any time we feel like it (better not do it gratuitously, but in the present case I can't think of any reason why we'd go out of our way just to avoid adding a final newline). Having failed to follow the thread until now, I don't know what should be done, but I hope this comment of mine can help someone else decide. Stefan