Commit 5b9197895c584ff7e8bcee7b2c6c40cf1ec5ae4f
- Diff rendering mode:
- inline
- side by side
README
(6 / 0)
|   | |||
| 29 | 29 | ``lib'' in the sketch directory which is where the | |
| 30 | 30 | ``preferences.txt'' file will reside. Sym-linking also works. | |
| 31 | 31 | ||
| 32 | == Fixed Bugs == | ||
| 33 | |||
| 32 | 34 | * Compilation errors...The regular expression used to detect | |
| 33 | 35 | compilation error messages does indeed work. Unfortunately there is | |
| 34 | 36 | another regular expression that is interfering and being matched | |
| 35 | 37 | _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. |
processing-mode.el
(18 / 19)
|   | |||
| 59 | 59 | must be set to one of \"windows\", \"macosx\", or \"linux\". If | |
| 60 | 60 | no platform is selected, the default platform that Emacs is | |
| 61 | 61 | running 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)))))))) | ||
| 80 | 80 | ||
| 81 | 81 | (defun processing-sketch-compile (&optional cmd) | |
| 82 | 82 | "Runs the Processing Commander application with the current | |
| … | … | ||
| 113 | 113 | '(processing "^\\([[:alnum:]]+.pde\\):\\([0-9]+\\):\\([0-9]+\\):.*$" | |
| 114 | 114 | 1 2 3) | |
| 115 | 115 | compilation-error-regexp-alist-alist) | |
| 116 | (pushnew 'processing compilation-error-regexp-alist) | ||
| 117 | 116 | ||
| 118 | 117 | ;; Font-lock, keywords | |
| 119 | 118 | (defconst processing-font-lock-keywords-1 |

