From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#22847: #17062: 24.3 current-fill-column breaks fill-match-adaptive-prefix Date: Mon, 29 Feb 2016 08:33:23 +0100 Message-ID: <56D3F443.9000706@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------070403000008000605030402" X-Trace: ger.gmane.org 1456731208 10793 80.91.229.3 (29 Feb 2016 07:33:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Feb 2016 07:33:28 +0000 (UTC) To: 22847@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 29 08:33:16 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 1aaIKR-0006k8-F2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 08:33:15 +0100 Original-Received: from localhost ([::1]:34925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaIKQ-0008DP-Jz for geb-bug-gnu-emacs@m.gmane.org; Mon, 29 Feb 2016 02:33:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaIKJ-0008Ct-7Y for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:33:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaIKE-0004Xd-Px for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:33:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:54672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaIKE-0004XT-Md for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:33:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aaIKE-0002pa-Ff for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Feb 2016 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 22847 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.145673115610842 (code B ref -1); Mon, 29 Feb 2016 07:33:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Feb 2016 07:32:36 +0000 Original-Received: from localhost ([127.0.0.1]:51799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaIJn-0002oo-VC for submit@debbugs.gnu.org; Mon, 29 Feb 2016 02:32:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:60161) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aaIJn-0002oY-E4 for submit@debbugs.gnu.org; Mon, 29 Feb 2016 02:32:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaIJh-0004Rh-13 for submit@debbugs.gnu.org; Mon, 29 Feb 2016 02:32:29 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47707) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaIJg-0004Rd-UO for submit@debbugs.gnu.org; Mon, 29 Feb 2016 02:32:28 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51125) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaIJf-00088p-Uc for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:32:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aaIJb-0004Pf-Pw for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:32:27 -0500 Original-Received: from mout.kundenserver.de ([212.227.126.130]:59586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aaIJb-0004PN-GN for bug-gnu-emacs@gnu.org; Mon, 29 Feb 2016 02:32:23 -0500 Original-Received: from [192.168.178.35] ([77.6.162.94]) by mrelayeu.kundenserver.de (mreue004) with ESMTPSA (Nemesis) id 0MSFaB-1aSmMQ3Cgd-00TYid for ; Mon, 29 Feb 2016 08:32:21 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Icedove/38.5.0 X-Provags-ID: V03:K0:EXFw9Kz67vAtB8dioJkHwY9tAyZEGslVnsVyiyHlRHKCbM04vAL ffAmNd4wX4qnKgvv5nl8JXuAbs8WW0cmZ42IAK164K/2aprv+JINkYGam8E1b+fhFHHSilT UMJAx5I1KTlJyh7BpO+YkBfsg5cNkFLQ94ugNmrWGH+umS0O0M5KKw6+0BVfx2EWfM2TH36 VkKL1faO6HUqo5HTb4YTg== X-UI-Out-Filterresults: notjunk:1;V01:K0:mhPl1pGuxOU=:8b1wAHBQHB6emPKmSv5nd7 bNSWLARCVEOhZmyS+KBCTC/iZEAXtZmcR6EeTBEyIrvvxbeV1g8aagethZZLvkLRKpgFIi9rD LC1HlvOHa+8xjTmn7bXcytbIC2c+JfhsOVJ9QC/frpEQOht0BRcIV74O8bqMZh2WGBQqUp3G1 4r1I3e9Olqk5hP9SRk2qJpxCWhnx/5x/+p5HmYHitLUdACRoQbD8r/qT3sz9EJ2PnIwE15/99 rJvU+aMw8ZvxCe+7BkkgOVWkmMOyZj/8WR/6RpoufUj7hRk9Usr7AHvQqV29biqJC7uEH17iu ayFT1YyPUYYOvlhMDGpOppk69utwn5by4vl22jRjD+lOjtIqW0QMDVliUsPuJ/6rP8zMjuL69 RXvTGnheUMNSXc27TNFkaH1coylnDD7KFlFUFlIDDiYjaFiPUkXJvJYvANTjtiXGVXkkNF9px r10ZuFUzOH2vEZmmq4Yp7KZYb8g2Tyihpsgs+s5qE88afj7NR19IkBXbVRme9UOb4GKdJp9Av yuJg78Vpno+cM63ar8BBSXPnNfzrpfwxzMeos3pZyihdbgfrAN+NYuTcc6rdaKg37KWldKiIS GhHo8O3LmZ4wQnhlwb+BEDIWYPjnnDE6GWyI/w7cI7Ab6xKPj2KrOHIlOmA8po9+lMANySOrU O6lFlqNAvPbQwsofUNZyXuxCnFzcF2hGy/scZkXkXs7tlcw4pZbZl5iT6XtbCQiLyCwEofO+J DQxDrFWi/WCgERuM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:114116 Archived-At: This is a multi-part message in MIME format. --------------070403000008000605030402 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit |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. --------------070403000008000605030402 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit 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.


--------------070403000008000605030402--