aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/cedet/semantic/bovine/grammar.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/cedet/semantic/bovine/grammar.el b/lisp/cedet/semantic/bovine/grammar.el
index 0eab01b58b1..65c856a8cae 100644
--- a/lisp/cedet/semantic/bovine/grammar.el
+++ b/lisp/cedet/semantic/bovine/grammar.el
@@ -475,6 +475,7 @@ Menu items are appended to the common grammar menu.")
475 ;; This is with-demoted-errors. 475 ;; This is with-demoted-errors.
476 (condition-case err 476 (condition-case err
477 (with-current-buffer (find-file-noselect infile) 477 (with-current-buffer (find-file-noselect infile)
478 (setq infile buffer-file-name)
478 (if outdir (setq default-directory outdir)) 479 (if outdir (setq default-directory outdir))
479 (semantic-grammar-create-package nil t)) 480 (semantic-grammar-create-package nil t))
480 (error (message "%s" (error-message-string err)) nil))) 481 (error (message "%s" (error-message-string err)) nil)))
@@ -509,8 +510,12 @@ Menu items are appended to the common grammar menu.")
509 510
510;;; Commentary: 511;;; Commentary:
511;; 512;;
512;; This file was generated from admin/grammars/" 513;; This file was generated from "
513 lang ".by. 514 (if (string-match "\\(OFFadmin/grammars/.*\\.by\\)\\'" infile)
515 (match-string 1 infile)
516 (concat "admin/grammars/"
517 (if (string-equal lang "scm") "scheme" lang) ".by"))
518".
514 519
515;;; Code: 520;;; Code:
516") 521")