From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22847: #17062: 24.3 current-fill-column breaks fill-match-adaptive-prefix Date: Mon, 29 Feb 2016 17:56:54 +0200 Message-ID: <83si0b8q7t.fsf@gnu.org> References: <56D3F443.9000706@easy-emacs.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1456761501 623 80.91.229.3 (29 Feb 2016 15:58:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 15:58:21 +0000 (UTC) Cc: 22847@debbugs.gnu.org To: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 16:58:10 2016 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 1aaQD4-0000Of-4N for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 16:58:10 +0100 Original-Received: from localhost ([::1]:37407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQD3-0004Zr-Ku for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 10:58:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37349) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQD0-0004Yo-Lx for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 10:58:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaQCw-0003wF-Lm for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 10:58:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQCw-0003wB-IH for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 10:58:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaQCw-0005vr-DA for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 10:58:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 15:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 22847-submit@debbugs.gnu.org id=B22847.145676143822748 (code B ref 22847); Mon, 29 Feb 2016 15:58:02 +0000 Original-Received: (at 22847) by debbugs.gnu.org; 29 Feb 2016 15:57:18 +0000 Original-Received: from localhost ([127.0.0.1]:53863 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQCE-0005uq-3w for submit@debbugs.gnu.org; Mon, 29 Feb 2016 10:57:18 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45820) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaQCC-0005ue-CE for 22847@debbugs.gnu.org; Mon, 29 Feb 2016 10:57:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaQC3-0003VZ-EK for 22847@debbugs.gnu.org; Mon, 29 Feb 2016 10:57:11 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:60975) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaQC3-0003VV-B2; Mon, 29 Feb 2016 10:57:07 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4729 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aaQC2-0007FI-Ho; Mon, 29 Feb 2016 10:57:07 -0500 In-reply-to: <56D3F443.9000706@easy-emacs.de> (message from Andreas =?UTF-8?Q?R=C3=B6hler?= on Mon, 29 Feb 2016 08:33:23 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:114138 Archived-At: > From: Andreas Röhler > Date: Mon, 29 Feb 2016 08:33:23 +0100 > > 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. While at that, please also fix the calculation of string length: it should use 'string-width', not 'length', IMO.