[Csnd] emacs & csound-x
Date | 2008-03-06 11:10 |
From | Rory Walsh |
Subject | [Csnd] emacs & csound-x |
I'm very close to having emacs set up just the way I want it but csound-x is causing a few problems for me. When I include (require 'stef-elisp) in my .emacs file I get the following error at startup: ------------------------------------------------------------ ("C:\\emacs-22.1\\bin\\emacs.exe") Loading encoded-kb...done Loading cua-base...done Loading desktop...done Loading cl-macs...done Loading cl-seq...done An error has occurred while loading `c:/emacs-22.1/.emacs': Wrong type argument: stringp, nil To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace. Desktop: 1 buffer restored. For information about the GNU Project and its goals, type C-h C-p. Auto-saving...done Quit Wrote c:/emacs-22.1/.emacs ------------------------------------------------------------ If I take it out everything starts fine. Any ideas? I can post my .emacs file is that helps. Rory. |
Date | 2008-03-06 19:11 |
From | Stéphane Rollandin |
Subject | [Csnd] Re: emacs & csound-x |
if you take it out, start emacs then evaluate (require 'stef-elisp) interactively, what happens ? if that fails, please turn "Enter debugger on error" on (that's in the "Options" menu), try again and send me the resulting walkback, along with your .emacs file. regards, Stef Rory Walsh a écrit : > I'm very close to having emacs set up just the way I want it but > csound-x is causing a few problems for me. When I include (require > 'stef-elisp) in my .emacs file I get the following error at startup: > > ------------------------------------------------------------ > ("C:\\emacs-22.1\\bin\\emacs.exe") > Loading encoded-kb...done > Loading cua-base...done > Loading desktop...done > Loading cl-macs...done > Loading cl-seq...done > > > An error has occurred while loading `c:/emacs-22.1/.emacs': > > Wrong type argument: stringp, nil > > To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Start Emacs with > the `--debug-init' option to view a complete error backtrace. > > Desktop: 1 buffer restored. > For information about the GNU Project and its goals, type C-h C-p. > Auto-saving...done > Quit > Wrote c:/emacs-22.1/.emacs > ------------------------------------------------------------ > > If I take it out everything starts fine. Any ideas? I can post my .emacs > file is that helps. > > Rory. > |
Date | 2008-03-06 19:19 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: emacs & csound-x |
Here are the results of the debugger: Debugger entered--Lisp error: (wrong-type-argument stringp nil) file-name-directory(nil) (let ((csound-bin-path ...)) (file-name-directory (or csound-bin-path cscsd-hidden-CSOUNDRC))) (progn (let (...) (file-name-directory ...))) (if (eq system-type (quote windows-nt)) (progn (let ... ...))) (when (eq system-type (quote windows-nt)) (let (...) (file-name-directory ...))) csound-find-directory() (let ((csound-path ...)) (if csound-path (expand-file-name "doc/manual/" csound-path) "~")) eval((let ((csound-path ...)) (if csound-path (expand-file-name "doc/manual/" csound-path) "~"))) custom-initialize-reset(csdoc-html-directory (let ((csound-path ...)) (if csound-path (expand-file-name "doc/manual/" csound-path) "~"))) custom-declare-variable(csdoc-html-directory (let ((csound-path ...)) (if csound-path (expand-file-name "doc/manual/" csound-path) "~")) "Directory containing the HTML docs" :type directory :group csound-x-applications-paths :group csound-doc) (defcustom csdoc-html-directory (let (...) (if csound-path ... "~")) "Directory containing the HTML docs" :type (quote directory) :group (quote csound-x-applications-paths) :group (quote csound-doc)) eval-buffer(# |
Date | 2008-03-06 21:48 |
From | Stéphane Rollandin |
Subject | [Csnd] Re: Re: Re: emacs & csound-x |
Attachments | csound-csd.el |
ok, got the bug. replace the csound-csd.el file in your csound-x directory with the one attached and tell me how it goes. Stef |
Date | 2008-03-07 11:59 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: Re: emacs & csound-x |
It now runs but I don't get any syntax highlighting? I can customise the group but when I load a csd I don't get any syntax highlighting. Any ideas on what could be wrong, I assume that once (require 'stef-elisp) is added to my .emacs file that any csd would be recognised? Rory. Stéphane Rollandin wrote: > ok, got the bug. > > replace the csound-csd.el file in your csound-x directory with the one > attached and tell me how it goes. > > Stef > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > |
Date | 2008-03-07 14:19 |
From | Stéphane Rollandin |
Subject | [Csnd] Re: Re: Re: Re: Re: emacs & csound-x |
Rory Walsh a écrit : > It now runs but I don't get any syntax highlighting? I can customise the > group but when I load a csd I don't get any syntax highlighting. Any > ideas on what could be wrong, I assume that once (require 'stef-elisp) > is added to my .emacs file that any csd would be recognised? did you install MMM-mode ? Stef |
Date | 2008-03-07 14:35 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: emacs & csound-x |
Yes, I just built it but I'm not sure how to install it? I just left it where is built and added the following to my emacs file: (global-set-key "\C-l" 'goto-line) (setq load-path (cons "C:/emacs-22.1/mmm-mode-0.4.8" load-path)) (require 'mmm-mode) (require 'stef-elisp) csound-x is definitely loading but still no coloured csds. Rory. Stéphane Rollandin wrote: > Rory Walsh a écrit : >> It now runs but I don't get any syntax highlighting? I can customise >> the group but when I load a csd I don't get any syntax highlighting. >> Any ideas on what could be wrong, I assume that once (require >> 'stef-elisp) is added to my .emacs file that any csd would be recognised? > > did you install MMM-mode ? > > Stef > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > |
Date | 2008-03-07 17:15 |
From | Stéphane Rollandin |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: emacs & csound-x |
Rory Walsh a écrit : > Yes, I just built it but I'm not sure how to install it? I just left it > where is built and added the following to my emacs file: > > (global-set-key "\C-l" 'goto-line) > (setq load-path (cons "C:/emacs-22.1/mmm-mode-0.4.8" load-path)) > (require 'mmm-mode) > (require 'stef-elisp) > > csound-x is definitely loading but still no coloured csds. actually the (require 'mmm-mode) is not needed, csound-x.el takes care of it. having it in the load-path should be enough; I don't see why requiring it would cause any trouble though. if you start the CSD mode manually in a csd buffer (with command 'csound-csd-mode) do you get the fontification ? Stef |
Date | 2008-03-07 18:06 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: emacs & csound-x |
If I do Alt-: and enter 'csound-csd-mode it return csound-csd-mode but nothing happens. I remind you again that I'm using windows, could this be an issue? Stéphane Rollandin wrote: > Rory Walsh a écrit : >> Yes, I just built it but I'm not sure how to install it? I just left >> it where is built and added the following to my emacs file: >> >> (global-set-key "\C-l" 'goto-line) >> (setq load-path (cons "C:/emacs-22.1/mmm-mode-0.4.8" load-path)) >> (require 'mmm-mode) >> (require 'stef-elisp) >> >> csound-x is definitely loading but still no coloured csds. > > actually the (require 'mmm-mode) is not needed, csound-x.el takes care > of it. having it in the load-path should be enough; I don't see why > requiring it would cause any trouble though. > > if you start the CSD mode manually in a csd buffer (with command > 'csound-csd-mode) do you get the fontification ? > > > Stef > > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > |
Date | 2008-03-07 18:52 |
From | Stéphane Rollandin |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: emacs & csound-x |
hello list I contacted Rory personnally and it seems the problem is kind of solved. For the record, it looks like the emacs packages 'windows and 'revive (or possibly just one of them) mess up csound-x. I'll put a warning in the bug section of csound-x info pages. Any feedback welcome, as usual... Stef |
Date | 2008-03-07 19:08 |
From | Rory Walsh |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: emacs & csound-x |
A final note to say that if one puts (require 'stef-elisp) before loading 'revive and 'windows it works fine. Thanks again for the help, Rory. Stéphane Rollandin wrote: > hello list > > I contacted Rory personnally and it seems the problem is kind of solved. > For the record, it looks like the emacs packages 'windows and 'revive > (or possibly just one of them) mess up csound-x. I'll put a warning in > the bug section of csound-x info pages. Any feedback welcome, as usual... > > > Stef > > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > csound" > |