GNU bug report logs -
#8510
24.0.50; lexbind problem (apparently): void-variable symbol
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Sat, 16 Apr 2011 15:45:02 UTC
Severity: normal
Tags: moreinfo
Found in version 24.0.50
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
"Drew Adams" <drew.adams <at> oracle.com> writes:
Hi Drew,
> I ran into this from my own code. This is not a recipe from emacs -Q.
> But I suspect that the problem is in the vanilla code, possibly in the
> C code for `documentation-property'.
I suspect its a bug in your code. :-)
Your description sounds very similar to an issue I had with anything.el
when switching to the (now merged) lexbind branch. The issue was that
some advice tried to access one arg of the adviced function by its
name. That's the fix:
--8<---------------cut here---------------start------------->8---
--- a/anything.el
+++ b/anything.el
@@@ -2816,7 -2816,7 +2816,7 @@@ if optional NOUPDATE is non-nil, anythi
(defadvice documentation-property (after anything-document-type-attribute activate)
"Hack to display type attributes' documentation as `anything-type-attributes
' docstring."
- (when (eq symbol 'anything-type-attributes)
+ (when (eq (ad-get-arg 0) 'anything-type-attributes)
(setq ad-return-value
(concat ad-return-value "\n\n++++ Types currently defined ++++\n"
(mapconcat (lambda (sym) (get sym 'anything-typeattrdoc))
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
This bug report was last modified 12 years and 144 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.