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

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

Re: .dir-locals.el with emacs26


From: olsen . carl
Subject: Re: .dir-locals.el with emacs26
Date: Mon, 3 Sep 2018 05:03:49 -0700 (PDT)
User-agent: G2/1.0

On Monday, September 3, 2018 at 1:47:15 PM UTC+2, olsen...@gmail.com wrote:
> Hi all,
> I wonder if anyone can share some light on a problem that occurs to me while 
> running emacs26.
> 
> The problem is that emacs26 seems to ignore my .dir-locals.el file.
> When i run in emacs24 it works fine. 
> 
> Here is my .dir-locals.el
> 
> 
>    ((nil
>   (cmake-ide-cmake-opts . 
> "-DCMAKE_TOOLCHAIN_FILE=/sysroots/x86_64-ocpsdk-linux/usr/share/cmake/OEToolchainConfig.cmake
>  -DCMAKE_INSTALL_PREFIX=/home/ocp/user_sysroots/3.6.4/usr 
> -DCMAKE_EXPORT_COMPILE_COMMANDS=1")
>   (cmake-ide-build-dir . "/home/me/git/crypto/build")))
> 
> 
> Thanks
Ohh, forgot to share why I belive its the .dir-locals.el

In emacs24:
   cmake-ide-cmake-opts is a variable defined in `cmake-ide.el'.
   Its value is
     "-DCMAKE_TOOLCHAIN_FILE=/3.6.4/sysroots/x86_64-ocpsdk-
     linux/usr/share/cmake/OEToolchainConfig.cmake -
     DCMAKE_INSTALL_PREFIX=/home/ME/user_sysroots/3.6.4/usr -
     DCMAKE_EXPORT_COMPILE_COMMANDS=1"
     Original value was 
     "-DCMAKE_BUILD_TYPE=Release"
     Local in buffer main.cpp; global value is 
     "-DCMAKE_BUILD_TYPE=Release"

    This variable's value is directory-local, set by the file
    `/home/ME/src/cpp/darf/.dir-locals.el'.
    This variable is safe as a file local variable if its value
    satisfies the predicate `stringp'.

The same variable after starting with emacs26:
    cmake-ide-cmake-opts is a variable defined in ‘cmake-ide.el’.
    Its value is "-DCMAKE_BUILD_TYPE=Release"

    This variable is safe as a file local variable if its value
    satisfies the predicate ‘stringp’.

The "enable-dir-local-variable" is t for both emacs26 and 24:
emacs 24:
    enable-dir-local-variables is a variable defined in `files.el'.
    Its value is t
emacs 26:
    enable-dir-local-variables’s value is t


reply via email to

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