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

Symbol's function definition is void: #:--post-body--27977



Dear Bug Team!

in an emacs -Q from an up-to-date developer Emacs 24, load w3m, do M-x
w3m, hit g, enter an URL and hit RET.  You'll always get the following
error:

error in process sentinel: w3m-process-sentinel: Symbol's function
definition is void: #:--post-body--27977


Background:

This bug is related to a recent change of the behavior of the `labels'
macro in the CL package.

With former versions of the CL package, something like the following
worked:

  (labels ((fak (n) (if (< n 2) 1 (* n (apply 'fak (list (1- n)))))))
    (fak 5))

meaning you could call `apply' on the quoted (with "'") symbol of a
labels definition, like "'fac" in my example.

This has now been considered a bug by emacs dev.  You _must_ quote
the symbol with #' now, like this:

  (labels ((fak (n) (if (< n 2) 1 (* n (apply #'fak (list (1- n)))))))
    (fak 5))

The first variant with the simple "'" quote doesn't work anymore,
evaluating it will give you an error.

To fix the bug described here above, please modify
`w3m-process-do-with-temp-buffer' in "w3m-proc.el" so that it respects
this rule.  This fixes the bug for me.

Please also check if other occurrences of `labels' in the code must be
modified as well.


Best regards,

Michael.

================================================================

System Info to help track down your bug:
---------------------------------------
emacs-w3m-version
 => "1.4.478"
emacs-version
 => "GNU Emacs 24.1.50.1 (i486-pc-linux-gnu, GTK+ Version 3.4.2)\n of 2012-06-10 on zelenka, modified by Debian"
mule-version
 => "6.0 (HANACHIRUSATO)"
system-type
 => gnu/linux
(featurep 'gtk)
 => t
w3m-version
 => "w3m/0.5.3+cvs-1.1055"
w3m-type
 => w3m-m17n
w3m-compile-options
 => ("lang=en" "m17n" "image" "color" "ansi-color" "mouse" "gpm" "menu" "cookie" "ssl" "ssl-verify" "external-uri-loader" "w3mmailer" "nntp" "gopher" "ipv6" "alarm" "mark" "migemo")
w3m-language
 => nil
w3m-command-arguments
 => nil
w3m-command-arguments-alist
 => nil
w3m-command-environment
 => nil
w3m-input-coding-system
 => utf-8
w3m-output-coding-system
 => utf-8
w3m-use-mule-ucs
 => nil