view .dir-locals.el @ 17959:1329866151be

[Win32] Use spawn instead of exec for main octave wrapper executable. * src/main.in.cc (prepare_spawn): New function, copied from libtool. (octave_exec): Use it and call spawnv instead of execv (note: execv kills the current process, instead of replacing it). (main): Make sure argv[0] always points to the executable, required by libtool wrappers.
author Michael Goffioul <michael.goffioul@gmail.com>
date Tue, 19 Nov 2013 14:25:32 -0500
parents 9ff04de067ce
children
line wrap: on
line source

((nil .
      ((c-file-style . "gnu")
       (indent-tabs-mode . nil)
       (fill-column . 72)
       (eval . (when (and (buffer-file-name)
                          (string-match-p "\\.h\\'" (buffer-file-name))
                          (not (string-match-p "/gnulib/" (buffer-file-name))))
                 (c++-mode)
                 (c-set-style "gnu")))))
 (change-log-mode . ((indent-tabs-mode . t)))
 (makefile-mode . ((indent-tabs-mode . t))))