From: Amadeus W.M. <ama...@ve...> - 2009-12-23 02:03:02
|
I need a little help with matlab-emacs because I'm getting an error, even though I believe I followed the installation instructions. This is the error I'm getting: Symbol's function definition is void: add-to-path Then I run emacs --debug-init myfile.m: ͂ Debugger entered--Lisp error: (void-function add-to-path) (add-to-path "~/mymatlab/emacsMode/matlab-emacs/matlab.el") eval-buffer(#<buffer *load*> nil "/home/amadeus/.emacs" nil t) ; Reading at buffer position 2793 load-with-code-conversion("/home/amadeus/.emacs" "/home/amadeus/.emacs" t t) load("~/.emacs" t t) ͂#[nil "some octal code which I can't copy and paste" [init-file-user system-type user-init-file-1 user-init-file otherfile source ms-dos "~" "/_emacs" windows-nt directory-files nil "^\\.emacs\ \(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_emacs" "/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" alt inhibit-default-init inhibit-startup-screen] 7]() command-line() normal-top-level() When I click on command-line() emacs complains that it Can't find library /usr/share/emacs/23.1/lisp/startup.el although I do have startup.elc in that path. This is what I did to install cedet and matlab-emacs: I downloaded matlab-emacs from cvs. I downloaded also cedet-1.0pre6. Put both in the same directory, then created a link cedet to cedet-1.0pre6. In cedet I did make then in matlab-emacs I also did make. This is what I have in my .emacs file: ;--------------------- ; Enable MATLAB mode | ; -------------------- ;; Load CEDET. ;; See cedet/common/cedet.info for configuration details. (load-file "~/mymatlab/emacsMode/cedet-1.0pre6/common/cedet.el") ;; Enable EDE (Project Management) features (global-ede-mode 1) ;; Enable EDE for a pre-existing C++ project ;; (ede-cpp-root-project "NAME" :file "~/myproject/Makefile") ;; Enabling Semantic (code-parsing, smart completion) features ;; Select one of the following: ;; * This enables the database and idle reparse engines (semantic-load-enable-minimum-features) ;; * This enables some tools useful for coding, such as summary mode ;; imenu support, and the semantic navigator (semantic-load-enable-code-helpers) ;; * This enables even more coding tools such as intellisense mode ;; decoration mode, and stickyfunc mode (plus regular code helpers) ;; (semantic-load-enable-gaudy-code-helpers) ;; * This enables the use of Exuberent ctags if you have it installed. ;; If you use C++ templates or boost, you should NOT enable it. ;; (semantic-load-enable-all-exuberent-ctags-support) ;; Enable SRecode (Template management) minor-mode. ;; (global-srecode-minor-mode 1) ;; Matlab proper (add-to-path "~/mymatlab/emacsMode/matlab-emacs/matlab.el") (require 'matlab-load) Thanks for any help. |
From: Mann <x6...@ya...> - 2013-03-29 13:04:14
|
I recently downloaded the matlab-mode and really loved every aspect of it except for one thing: the code completion does not work when editing a .m file. It only works when in the matlab shell mode. Is that what it is supposed to behave? If not, can someone help me solve this problem? |
From: Eric L. <Eri...@ma...> - 2013-03-29 14:10:39
|
From: Mann [mailto:x6...@ya...] Sent: Friday, March 29, 2013 9:04 AM To: mat...@li... Subject: [Matlab-emacs-discuss] (no subject) I recently downloaded the matlab-mode and really loved every aspect of it except for one thing: the code completion does not work when editing a .m file. It only works when in the matlab shell mode. Is that what it is supposed to behave? If not, can someone help me solve this problem? Hi, The shell code completion works by asking MATLAB what the completions are. This gives you a really vast ability to complete. Completion in the shell has a hard-coded list of constants to complete with. See all the variables that start with `matlab-keywords-'. For matlab-mode, you can also install the CEDET extra for matlab-mode. This has a primitive parser that will complete your symbols, find variables, and a few other tricks I don't recall. It will probably hit to 70% accuracy for you. Good Luck Eric |
From: Eric L. <Eri...@ma...> - 2009-12-23 14:12:42
|
Hi, Sadly, that line in the INSTALL is bogus. It should read: (add-to-list 'load-path "~/whatever") I clearly use too many different languages. Eric -----Original Message----- From: Amadeus W.M. [mailto:ama...@ve...] Sent: Tuesday, December 22, 2009 9:03 PM To: mat...@li... Subject: [Matlab-emacs-discuss] (no subject) I need a little help with matlab-emacs because I'm getting an error, even though I believe I followed the installation instructions. This is the error I'm getting: Symbol's function definition is void: add-to-path Then I run emacs --debug-init myfile.m: ͂ Debugger entered--Lisp error: (void-function add-to-path) (add-to-path "~/mymatlab/emacsMode/matlab-emacs/matlab.el") eval-buffer(#<buffer *load*> nil "/home/amadeus/.emacs" nil t) ; Reading at buffer position 2793 load-with-code-conversion("/home/amadeus/.emacs" "/home/amadeus/.emacs" t t) load("~/.emacs" t t) ͂#[nil "some octal code which I can't copy and paste" [init-file-user system-type user-init-file-1 user-init-file otherfile source ms-dos "~" "/_emacs" windows-nt directory-files nil "^\\.emacs\ \(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_emacs" "/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" alt inhibit-default-init inhibit-startup-screen] 7]() command-line() normal-top-level() When I click on command-line() emacs complains that it Can't find library /usr/share/emacs/23.1/lisp/startup.el although I do have startup.elc in that path. This is what I did to install cedet and matlab-emacs: I downloaded matlab-emacs from cvs. I downloaded also cedet-1.0pre6. Put both in the same directory, then created a link cedet to cedet-1.0pre6. In cedet I did make then in matlab-emacs I also did make. This is what I have in my .emacs file: ;--------------------- ; Enable MATLAB mode | ; -------------------- ;; Load CEDET. ;; See cedet/common/cedet.info for configuration details. (load-file "~/mymatlab/emacsMode/cedet-1.0pre6/common/cedet.el") ;; Enable EDE (Project Management) features (global-ede-mode 1) ;; Enable EDE for a pre-existing C++ project ;; (ede-cpp-root-project "NAME" :file "~/myproject/Makefile") ;; Enabling Semantic (code-parsing, smart completion) features ;; Select one of the following: ;; * This enables the database and idle reparse engines (semantic-load-enable-minimum-features) ;; * This enables some tools useful for coding, such as summary mode ;; imenu support, and the semantic navigator (semantic-load-enable-code-helpers) ;; * This enables even more coding tools such as intellisense mode ;; decoration mode, and stickyfunc mode (plus regular code helpers) ;; (semantic-load-enable-gaudy-code-helpers) ;; * This enables the use of Exuberent ctags if you have it installed. ;; If you use C++ templates or boost, you should NOT enable it. ;; (semantic-load-enable-all-exuberent-ctags-support) ;; Enable SRecode (Template management) minor-mode. ;; (global-srecode-minor-mode 1) ;; Matlab proper (add-to-path "~/mymatlab/emacsMode/matlab-emacs/matlab.el") (require 'matlab-load) Thanks for any help. ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ Matlab-emacs-discuss mailing list Mat...@li... https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss |