From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Mastro Newsgroups: gmane.emacs.bugs Subject: bug#26317: 26.0.50; Small incompatibility in ibuffer.el (ibuffer-compile-format) Date: Thu, 30 Mar 2017 16:07:59 -0700 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1490915359 16832 195.159.176.226 (30 Mar 2017 23:09:19 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 30 Mar 2017 23:09:19 +0000 (UTC) To: 26317@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 31 01:09:15 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctjBj-0003GP-Hr for geb-bug-gnu-emacs@m.gmane.org; Fri, 31 Mar 2017 01:09:07 +0200 Original-Received: from localhost ([::1]:38034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctjBp-0005Kj-7D for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Mar 2017 19:09:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctjBf-0005Jw-P2 for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:09:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctjBe-0003ia-NE for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:09:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55086) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctjBe-0003iT-G6 for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:09:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ctjBe-0001go-9D for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:09:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: John Mastro Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 30 Mar 2017 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26317 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.14909153146455 (code B ref -1); Thu, 30 Mar 2017 23:09:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 30 Mar 2017 23:08:34 +0000 Original-Received: from localhost ([127.0.0.1]:53285 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctjBA-0001fz-Di for submit@debbugs.gnu.org; Thu, 30 Mar 2017 19:08:33 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53809) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ctjB8-0001fl-76 for submit@debbugs.gnu.org; Thu, 30 Mar 2017 19:08:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctjB2-0003X2-0X for submit@debbugs.gnu.org; Thu, 30 Mar 2017 19:08:24 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:35502) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ctjB1-0003Wt-T6 for submit@debbugs.gnu.org; Thu, 30 Mar 2017 19:08:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44764) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ctjB0-000524-PJ for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:08:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ctjAz-0003Vb-LM for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:08:22 -0400 Original-Received: from mail-qk0-x22a.google.com ([2607:f8b0:400d:c09::22a]:34903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ctjAz-0003VM-H0 for bug-gnu-emacs@gnu.org; Thu, 30 Mar 2017 19:08:21 -0400 Original-Received: by mail-qk0-x22a.google.com with SMTP id r142so53854015qke.2 for ; Thu, 30 Mar 2017 16:08:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=5c5N4Dz+a45mOsCa2el4BMX3Ai/t1VRDyiW7JsmFp5s=; b=KvoUfkXkCBCMXdWCjjouoCJ7jE7jBdUVNGjXFUalm/YAz5P5Rfs4NptlnNuEDHEW1T zKFA+NevvaxFNNE012D1buage8LoFffNXamugYmzZm4vD37PPxqK9a6xLvD6KfMVtoMr c1OyKUNLRfoM+5x24rTcHGoa+QX2DT0ebOyxFdfDZpUAxVxeLE/DX8Q8ZPoRLs2OXTkM pSDyCW5Y2KAcMiKjrLWSY56mIo7T6hthOEqjiulNdL0T5+cxR3R/FktnxWj5e71irLVu OyFgdykCWuFN7V2OI2u1eWkqo5HqHe9yHkFeBIX7kxA3f5IAbiZG7nMC2QUxxSZ59k+I 4l9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=5c5N4Dz+a45mOsCa2el4BMX3Ai/t1VRDyiW7JsmFp5s=; b=E+OXjSciIeswPpbYC7iOAqibCmnjnFL5QerWayN2lHoPe7xBsNOcGGFC3812akW+AM csIWw/D4VkACdGwAVmxx3sUHUwqSpaS2rD3KSKGMK5V6X0P81s005qNJHE8oofYxV0zv lf/bwa+mBOpz+Hl54i8mcvAD/IKigp+cPO3RCbgrR04hKT12uphCUfXKTS/hUj/GYDv2 GHRQ+VIfTN7TDnQb+lbkTaWPKiq3Ea+t4LE9K7t+z0rEkzIicKN7co32HkLJmsbz+Jsb W3XGdmJOhy45rc3be87FVfKFA4i+yvEpXy6mT7L0ce7mJ1heF2pkt+Zx1Q1S5ukpNs/k lbXw== X-Gm-Message-State: AFeK/H3R6LDhHbzbbAt1z3j9mK0onXBoucN2usp/iJmeVvoJceOU+kAW6rGNxUh0jDpKbVcruWQhBH1Sb1LCMg== X-Received: by 10.55.165.205 with SMTP id o196mr2250336qke.20.1490915300374; Thu, 30 Mar 2017 16:08:20 -0700 (PDT) Original-Received: by 10.237.49.162 with HTTP; Thu, 30 Mar 2017 16:07:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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" Xref: news.gmane.org gmane.emacs.bugs:131112 Archived-At: In commit 7e2a8b1, ibuffer.el was change to use `string-width' in a couple places where it previously used `length'. The result is that custom columns which can return nil, which worked in Emacs 25, will now cause an error. To reproduce, run `emacs -Q', yank the following into *scratch*, and evaluate it: (require 'ibuffer) (define-ibuffer-column my-column (:name "X") (and (equal (buffer-name) "*scratch*") "Y")) (setq ibuffer-formats '((mark modified read-only " " (name 18 18 :left :elide) " " (my-column 5 5 :left) " " filename-and-process))) (ibuffer) It works in Emacs 25, but in Emacs 26 an error is signaled: Debugger entered--Lisp error: (wrong-type-argument stringp nil) string-width(nil) I came across this because I use the `ibuffer-vc' package, which defines a column (`vc-status') whose implementation returns nil for some buffers (by default, non-file-visiting buffers and buffers visiting remote files). I will follow up with a patch in a separate email (so I can include the bug number in the commit message). John