Commit 5b9197895c584ff7e8bcee7b2c6c40cf1ec5ae4f

  • Tree SHA1: 684e81e
  • Parent SHA1: 6fa55a4 (Mode now requires compilation mode and also includes a regular expression for compilation error matching. But there's a bug with that)
  • raw diff | raw patch
Fixed the compilation regex error stuff by shadowing the global variable
README
(6 / 0)
  
2929 ``lib'' in the sketch directory which is where the
3030 ``preferences.txt'' file will reside. Sym-linking also works.
3131
32== Fixed Bugs ==
33
3234* Compilation errors...The regular expression used to detect
3335 compilation error messages does indeed work. Unfortunately there is
3436 another regular expression that is interfering and being matched
3537 _before_ it.
38
39 The fix is to shadow the global variable with a local one that
40 narrows down the searchable regex list to a single regexp:
41 'processing.
  
5959must be set to one of \"windows\", \"macosx\", or \"linux\". If
6060no platform is selected, the default platform that Emacs is
6161running on will be selected."
62 ;;(cd (expand-file-name processing-location))
63 (compile (concat processing-location "java/bin/java -classpath \""
64 (apply 'make-java-classpath
65 (mapcar (lambda (x) (expand-file-name (concat processing-location x)))
66 '("java/lib/rt.jar"
67 "java/lib/tools.jar"
68 "lib/antlr.jar" "lib/core.jar"
69 "lib/ecj.jar" "lib/jna.jar"
70 "lib/pde.jar")))
71 "\" processing.app.Commander"
72 " --sketch=\"" (expand-file-name sketch-dir)
73 "\" --output=\"" (expand-file-name output-dir)
74 ;; Remove this comment when Processing implements the --preferences=??? command-line option.
75 ;;"\" --preferences=\"" (expand-file-name "~/.processing/preferences.txt")
76 "\" --" cmd
77 (if (string= cmd "export-application")
78 (concat " --platform="
79 (if platform platform (processing-platform)))))))
62 (let ((compilation-error-regexp-alist '(processing)))
63 (compile (concat processing-location "java/bin/java -classpath \""
64 (apply 'make-java-classpath
65 (mapcar (lambda (x) (expand-file-name (concat processing-location x)))
66 '("java/lib/rt.jar"
67 "java/lib/tools.jar"
68 "lib/antlr.jar" "lib/core.jar"
69 "lib/ecj.jar" "lib/jna.jar"
70 "lib/pde.jar")))
71 "\" processing.app.Commander"
72 " --sketch=\"" (expand-file-name sketch-dir)
73 "\" --output=\"" (expand-file-name output-dir)
74 ;; Remove this comment when Processing implements the --preferences=??? command-line option.
75 ;;"\" --preferences=\"" (expand-file-name "~/.processing/preferences.txt")
76 "\" --" cmd
77 (if (string= cmd "export-application")
78 (concat " --platform="
79 (if platform platform (processing-platform))))))))
8080
8181(defun processing-sketch-compile (&optional cmd)
8282 "Runs the Processing Commander application with the current
113113 '(processing "^\\([[:alnum:]]+.pde\\):\\([0-9]+\\):\\([0-9]+\\):.*$"
114114 1 2 3)
115115 compilation-error-regexp-alist-alist)
116(pushnew 'processing compilation-error-regexp-alist)
117116
118117;; Font-lock, keywords
119118(defconst processing-font-lock-keywords-1