[Top][All Lists]

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

Re: describe-variable error when using dir-locals-set-directory-class

From: Michael Heerdegen
Subject: Re: describe-variable error when using dir-locals-set-directory-class
Date: Tue, 09 Jul 2013 03:40:43 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hongxu Chen <> writes:

> Hi,
>   I followed the docs on this page
>   and does some tweaks for the directory variables for ffap-c-path.
> #+BEGIN_SRC emacs-lisp
> (dir-locals-set-class-variables 'llvm-3.4-directory
>                                 '((nil . ((ffap-c-path . 
> ("/usr/lib/llvm-3.4/include"))))))
> (dir-locals-set-directory-class
>  "/usr/lib/llvm-3.4/include/clang-c/" 'llvm-3.4-directory)
>   However when I try `C-h v ffap-c-path', there is an error;
>   when I `toggle-debug-on-error', it reports:
> #+BEGIN_SRC emacs-lisp
>   Debugger entered--Lisp error: (wrong-type-argument char-or-string-p 
> ("/usr/lib/llvm-3.4/include/clang-c/" llvm-3\.4-directory nil))
>   insert-text-button(("/usr/lib/llvm-3.4/include/clang-c/" 
> llvm-3\.4-directory nil) type help-dir-local-var-def help-args 
> (ac-clang-flags ("/usr/lib/llvm-3.4/include/clang-c/" llvm-3\.4-directory 
> nil)))
>   describe-variable(ac-clang-flags)
>   call-interactively(describe-variable nil nil)
>   And describe-variable ONLY sucks for those variables that are set
>   using this sort of syntax.

That looks like a bug to me.  Although I can't reproduce it here with
trunk.  When I follow your recipe, I get a help buffer looking normal:

| ffap-c-path is a variable defined in `ffap.el'.
| Its value is ("/usr/lib/llvm-3.4/include")
| Local in buffer micha; global value is 
| ("/usr/include" "/usr/local/include" "/usr/include/x86_64-linux-gnu")
|   This variable's value is directory-local.
| Documentation:
| List of directories to search for include files.

What's your Emacs version, and does this happen with emacs -Q?

>   Also, I am wondering whether this kind of directory variable setting
>   can accept `evil' syntax just as `.dir-locals.el' does.

Sorry, I can't answer that.  Maybe someone else can help.



reply via email to

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