help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Lisp error on function :documentation


From: Stefan Monnier
Subject: Re: Lisp error on function :documentation
Date: Sun, 16 Oct 2022 00:07:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

>> > (defun ivy-config ()
>> > (:documentation (concat "Ivy completion.\n\n" ivy-details))
>> > (add-to-list 'load-path "~/contrib/ivy"))
>> 
>> 
>> Works for me. Is your Emacs simply too old?
>
> Would not think so.  Emacs 29.0.50 actually.

Than you might want to give more details about what you've done since
what I understood of what you've done does not result in the error
you showed.

    /usr/bin/emacs -Q
    M-x ielm RET
    (defun ivy-config ()
       (:documentation (concat "Ivy completion.\n\n" ivy-details))
       (add-to-list 'load-path "~/contrib/ivy"))
    RET

complains that "Symbol’s value as variable is void: ivy-details", which
indicates that it understood `:documentation` correctly (i.e. it
processed it when creating the function rather than later when we call
it).


        Stefan




reply via email to

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