From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.bugs Subject: bug#16201: 24.3.50; error expanding pcase with a pred clause Date: Fri, 20 Dec 2013 15:45:10 +0100 Message-ID: <87txe3h98p.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1387550835 6850 80.91.229.3 (20 Dec 2013 14:47:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Dec 2013 14:47:15 +0000 (UTC) To: 16201@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Dec 20 15:47:21 2013 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 1Vu1MF-00076u-K2 for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 15:47:19 +0100 Original-Received: from localhost ([::1]:49993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu1MF-00012x-AR for geb-bug-gnu-emacs@m.gmane.org; Fri, 20 Dec 2013 09:47:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu1M6-00012E-2I for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:47:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vu1Ly-0006ln-Us for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:47:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu1Ly-0006lS-Ry for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:47:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Vu1Ly-0003qS-JV for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:47:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Michael Heerdegen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 20 Dec 2013 14:47:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16201 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.138755076514693 (code B ref -1); Fri, 20 Dec 2013 14:47:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 20 Dec 2013 14:46:05 +0000 Original-Received: from localhost ([127.0.0.1]:59798 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu1L3-0003ov-9W for submit@debbugs.gnu.org; Fri, 20 Dec 2013 09:46:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33252) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vu1L0-0003of-Kk for submit@debbugs.gnu.org; Fri, 20 Dec 2013 09:46:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vu1Kt-0006X3-BY for submit@debbugs.gnu.org; Fri, 20 Dec 2013 09:46:02 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:34178) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu1Kt-0006Wz-7n for submit@debbugs.gnu.org; Fri, 20 Dec 2013 09:45:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu1Kn-0000gB-1l for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:45:55 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vu1Kg-0006Vi-S6 for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:45:48 -0500 Original-Received: from mout.web.de ([212.227.15.4]:63599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vu1Kg-0006VR-Fu for bug-gnu-emacs@gnu.org; Fri, 20 Dec 2013 09:45:42 -0500 Original-Received: from drachen.dragon ([90.187.44.149]) by smtp.web.de (mrweb003) with ESMTPA (Nemesis) id 0MddGu-1W8EIK259g-00PNmr for ; Fri, 20 Dec 2013 15:45:40 +0100 X-Provags-ID: V03:K0:wUJ1T3x/F2JPjLgx4R8YChEcleFXg/3BP9Mg2Ao72u47tqvXDAk E9CxpJbS31ZMHPe+zTlhbYJLrH9Ty8u36BJPaJbS/SlmoCRpmePeMKYlNQkyHqFvuwVAedw nnF0evCvGppU86h9pfSRpC94z9pCux3Vwc/sNBmuTFMduegkI+wN2ljWWCx5MWYytvKSfUI ll7bzehBEgod/0Qgf+XfA== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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:82288 Archived-At: Hi, sorry if this is a known issue. In emacs -Q (current trunk), save the following snipped --8<---------------cut here---------------start------------->8--- (require 'pcase) (defun test-buffer-file-name () (pcase buffer-file-name (`nil 'not-a-file) ((pred file-writable-p) 'writable) (_ 'not-writable))) --8<---------------cut here---------------end--------------->8--- into a file. Then, M-: (byte-compile-file buffer-file-name). You get an error: pcase-bug.el:3:1:Error: Wrong type argument: stringp, nil Same with C-x C-e with point after the defun. BTW, (require 'pcase) is necessary in the recipe. If pcase has not yet been loaded, the error doesn't happen. Instead you can compile or eval the defun (once), and it works as expected! Thanks, Michael. In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.4) of 2013-12-20 on drachen Windowing system distributor `The X.Org Foundation', version 11.0.11403000 System Description: Debian GNU/Linux testing (jessie) Configured using: `configure --prefix=/usr/local/built/' Important settings: value of $LC_ALL: de_DE.utf8 value of $LC_COLLATE: C value of $LC_TIME: C value of $LANG: de_DE.utf8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp