all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.