GNU bug report logs -
#20184
24.4.50; Error in Emacs manual 24.4.50
Previous Next
Reported by: Bernard Hurley <bernard <at> marcade.biz>
Date: Mon, 23 Mar 2015 19:29:01 UTC
Severity: minor
Found in version 24.4.50
Fixed in version 24.5
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
--------
In the emacs manual version 24.4.50 section "2.7 Equality Predicates" the passage:
------------- snip --------------
-- Function: equal-including-properties object1 object2
This function behaves like `equal' in all cases but also requires
that for two strings to be equal, they have the same text
properties.
(equal "asdf" (propertize "asdf" '(asdf t)))
=> t
(equal-including-properties "asdf"
(propertize "asdf" '(asdf t)))
=> nil
------------- snip --------------
probably should read:
------------- snip --------------
-- Function: equal-including-properties object1 object2
This function behaves like `equal' in all cases but also requires
that for two strings to be equal, they have the same text
properties.
(equal "asdf" (propertize "asdf" 'asdf t))
=> t
(equal-including-properties "asdf"
(propertize "asdf" 'asdf t))
=> nil
------------- snip --------------
In other words the two occurrences of:
'(asdf t)
cause
*** Eval error *** Wrong number of arguments
I assume that what was meant in each case is:
'asdf t
Regards,
Bernard.
This bug report was last modified 10 years and 57 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.