unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* .dir-locals.el with emacs26
@ 2018-09-03 11:47 olsen.carl
  2018-09-03 12:03 ` olsen.carl
  0 siblings, 1 reply; 2+ messages in thread
From: olsen.carl @ 2018-09-03 11:47 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: .dir-locals.el with emacs26
  2018-09-03 11:47 .dir-locals.el with emacs26 olsen.carl
@ 2018-09-03 12:03 ` olsen.carl
  0 siblings, 0 replies; 2+ messages in thread
From: olsen.carl @ 2018-09-03 12:03 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-09-03 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-09-03 11:47 .dir-locals.el with emacs26 olsen.carl
2018-09-03 12:03 ` olsen.carl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).