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

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

[debbugs-tracker] bug#16201: closed (24.3.50; error expanding pcase with


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16201: closed (24.3.50; error expanding pcase with a pred clause)
Date: Fri, 03 Jan 2014 04:42:01 +0000

Your message dated Thu, 02 Jan 2014 23:41:03 -0500
with message-id <address@hidden>
and subject line Re: bug#16201: 24.3.50; error expanding pcase with a pred 
clause
has caused the debbugs.gnu.org bug report #16201,
regarding 24.3.50; error expanding pcase with a pred clause
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
16201: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16201
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; error expanding pcase with a pred clause Date: Fri, 20 Dec 2013 15:45:10 +0100
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




--- End Message ---
--- Begin Message --- Subject: Re: bug#16201: 24.3.50; error expanding pcase with a pred clause Date: Thu, 02 Jan 2014 23:41:03 -0500 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)
> sorry if this is a known issue.

It wasn't, thank you.

>   pcase-bug.el:3:1:Error: Wrong type argument: stringp, nil

Should be fixed now, thank you,


        Stefan


--- End Message ---

reply via email to

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