From b205ca9ca38512c2c4b91c54c6104a8a86b6273b Mon Sep 17 00:00:00 2001 From: andersvi Date: Wed, 9 Sep 2009 12:02:59 +0000 Subject: [PATCH] Fixed errors when hitting 'emacs -sclang' etc. with later emacsen. Updated switches to include hyphen. These switches seem to work with v.22 (possibly because the get treated as longopts?) git-svn-id: https://supercollider.svn.sourceforge.net/svnroot/supercollider/trunk@9388 a380766d-ff14-0410-b294-a243070f3f08 --- el/sclang-interp.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/el/sclang-interp.el b/el/sclang-interp.el index f185d34..94aee2d 100644 --- a/el/sclang-interp.el +++ b/el/sclang-interp.el @@ -687,17 +687,17 @@ if PRINT-P is non-nil. Return STRING if successful, otherwise nil." ;; add command line switches (add-to-list 'command-switch-alist - (cons "sclang" + (cons "-sclang" (lambda (switch) (sclang-start)))) (add-to-list 'command-switch-alist - (cons "sclang-debug" + (cons "-sclang-debug" (lambda (switch) (sclang-toggle-debug-command-handler 1)))) (add-to-list 'command-switch-alist - (cons "scmail" + (cons "-scmail" (lambda (switch) (sclang-start) (when command-line-args-left