bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#22847: #17062: 24.3 current-fill-column breaks fill-match-adaptive-p


From: Andreas Röhler
Subject: bug#22847: #17062: 24.3 current-fill-column breaks fill-match-adaptive-prefix
Date: Mon, 29 Feb 2016 08:33:23 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0

reopen #17062


Unfortunatly can't deliver a backtrace, as it was some times ago.

The bug is visible by program-logic already.

fill-match-adaptive-prefix counts on current-fill-column having:

(>= (+ (current-left-margin) (length str)) (current-fill-column))

This will be broken if current-fill-column returns nil.

Returning nil is possible, see inside current-fill-column:

    (if fill-column

If fill-column is nil, current-fill-column will return nil which was the case coming upon.
A fix might make sure an integer is returned anyway: think at 0 or default value.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]