Subject: bug#19102: 24.4; outline-move-subtree-up/down error at last and second-last subtree

From: Stephen Berman <[email-masked]>
Date: Wed, 19 Nov 2014 21:14:42 +0100

On Wed, 19 Nov 2014 20:56:12 +0200 Eli Zaretskii <[email-masked]> wrote:

>> From: Stephen Berman <[email-masked]>
>> Cc: [email-masked],  [email-masked]
>> Date: Wed, 19 Nov 2014 18:09:52 +0100
>> 
>> On Wed, 19 Nov 2014 17:54:41 +0200 Eli Zaretskii <[email-masked]> wrote:
>> > Thanks.  Can you explain why the problem happened in the first place?
>> 
>> The error occurs when the sexp `(= (char-after) ?\n)' in
>> outline-move-subtree-down is evaluated at eob.
>
> Wouldn't using eolp instead of the comparison solve that problem more
> easily?

Well, that eliminates the wrong-type-argument error in the current code,
but it instead signals "End of buffer" and still fails to move the
subtree in the cases I listed.  But using eolp in place of the
comparison in my patch is fine, and cleaner, so thanks.  Do you see any
other problems with the patch or more room for improvement?

Steve Berman