Re: ede-linux build directory

Eric Ludlam <[email protected]>
Newsgroups gmane.emacs.cedet
Message-ID <[email protected]>
On 12/18/2014 11:37 PM, Plutonium wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> I build my linux kernel on a different directory, i.e. not in the same
> directory with the source tree, when I open file with emacs and with
>
> (global-ede-mode t)
>
> every time I try to open a file from the linux source tree, it always
> ask me to set the linux build directory.
>
> I try to use
>
> (setq project-linux-build-directory-default
> "/home/user/workspace/linux-build/")
>
> this way, it always fails with error:
>
> "eieio-validate-slot-value: Invalid slot type: ede-linux-project,
> build-directory, string, nil"
>
> Is there any way to set the linux build directory in my init.el file,
> so that I don't have to select the directory every time?

Hi,

I'm not in a good position to try stuff out at the moment, and this 
section is not something I wrote.  However, by inspection, I'll guess 
the attached patch will solve the problem.  I updated tests and it 
"appears" to work by not throwing your error.

Eric

------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net

_______________________________________________
Cedet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cedet-devel
ede_linux.patch (text/x-patch, 560 B)
diff --git a/lisp/cedet/ede/linux.el b/lisp/cedet/ede/linux.el
index 48f6016..f953a04 100644
--- a/lisp/cedet/ede/linux.el
+++ b/lisp/cedet/ede/linux.el
@@ -116,7 +116,8 @@ If DIR has not been used as a build directory, fall back to
    ;; use configuration
    (case project-linux-build-directory-default
      (same dir)
-     (ask (read-directory-name "Select Linux' build directory: " dir)))))
+     (ask (read-directory-name "Select Linux' build directory: " dir))
+     (t project-linux-build-directory-default))))
 
 
 (defun ede-linux--get-archs (dir)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.