+2012-10-07 David Engster <deng@randomsample.de>
+
+ * semantic/ede-grammar.el (project-compile-target): Fix grammar
+ compilation after introduction of %provide statement.
+
2012-10-07 David Engster <deng@randomsample.de>
* semantic.el (semantic-new-buffer-setup-functions): Remove setup
(utd 0))
(mapc (lambda (src)
(with-current-buffer (find-file-noselect src)
- (save-excursion
- (semantic-grammar-create-package))
- ;; After compile, the current buffer is the compiled grammar.
- ;; Save and compile it.
- (save-buffer)
- (let* ((src (buffer-file-name))
+ (let* ((package (semantic-grammar-create-package))
+ (fname (progn (string-match ".*/\\(.+\\.el\\)" package)
+ (match-string 1 package)))
+ (src (with-current-buffer fname (buffer-file-name)))
(csrc (concat (file-name-sans-extension src) ".elc")))
(if (< emacs-major-version 24)
;; Does not have `byte-recompile-file'