aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2004-02-28 22:13:00 +0000
committerVinicius Jose Latorre2004-02-28 22:13:00 +0000
commitcd0f9f85ad8651941fdc8f0626fac252b7b66905 (patch)
tree5e28683fae2704ea6e691e0fb73bc2cf34b90e6a
parent7fd08a0ae7c6402dd0aea30024ac2ef2a9e4caff (diff)
downloademacs-cd0f9f85ad8651941fdc8f0626fac252b7b66905.tar.gz
emacs-cd0f9f85ad8651941fdc8f0626fac252b7b66905.zip
New funs.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/progmodes/ebnf2ps.el41
2 files changed, 39 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1b430272184..6bb5012c332 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -12,6 +12,7 @@
12 (ebnf-repeat): Code fix. 12 (ebnf-repeat): Code fix.
13 13
14 * ebnf2ps.el: Doc fix. 14 * ebnf2ps.el: Doc fix.
15 (ebnf-syntax-directory, ebnf-syntax-file): New funs.
15 16
162004-02-28 Juri Linkov <juri@jurta.org> 172004-02-28 Juri Linkov <juri@jurta.org>
17 18
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el
index 69a85e0d1b3..56c80a4c464 100644
--- a/lisp/progmodes/ebnf2ps.el
+++ b/lisp/progmodes/ebnf2ps.el
@@ -5,7 +5,7 @@
5 5
6;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br> 6;; Author: Vinicius Jose Latorre <viniciusjl@ig.com.br>
7;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br> 7;; Maintainer: Vinicius Jose Latorre <viniciusjl@ig.com.br>
8;; Time-stamp: <2004/02/28 18:19:37 vinicius> 8;; Time-stamp: <2004/02/28 19:06:58 vinicius>
9;; Keywords: wp, ebnf, PostScript 9;; Keywords: wp, ebnf, PostScript
10;; Version: 4.0 10;; Version: 4.0
11;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/ 11;; X-URL: http://www.cpqd.com.br/~vinicius/emacs/
@@ -517,6 +517,12 @@ Please send all bug fixes and enhancements to
517;; 517;;
518;; `ebnf-setup' returns the current setup. 518;; `ebnf-setup' returns the current setup.
519;; 519;;
520;; `ebnf-syntax-directory' does a syntactic analysis of your EBNF files in the
521;; given directory.
522;;
523;; `ebnf-syntax-file' does a syntactic analysis of your EBNF in the given
524;; file.
525;;
520;; `ebnf-syntax-buffer' does a syntactic analysis of your EBNF in the current 526;; `ebnf-syntax-buffer' does a syntactic analysis of your EBNF in the current
521;; buffer. 527;; buffer.
522;; 528;;
@@ -525,8 +531,9 @@ Please send all bug fixes and enhancements to
525;; 531;;
526;; `ebnf-customize' activates a customization buffer for ebnf2ps options. 532;; `ebnf-customize' activates a customization buffer for ebnf2ps options.
527;; 533;;
528;; `ebnf-syntax-buffer', `ebnf-syntax-region' and `ebnf-customize' can be bound 534;; `ebnf-syntax-directory', `ebnf-syntax-file', `ebnf-syntax-buffer',
529;; to keys in the same way as `ebnf-' commands. 535;; `ebnf-syntax-region' and `ebnf-customize' can be bound to keys in the same
536;; way as `ebnf-' commands.
530;; 537;;
531;; 538;;
532;; Hooks 539;; Hooks
@@ -2064,6 +2071,34 @@ WARNING: It's *NOT* asked any confirmation to override an existing file."
2064 2071
2065 2072
2066;;;###autoload 2073;;;###autoload
2074(defun ebnf-syntax-directory (&optional directory)
2075 "Does a syntactic analysis of the files in DIRECTORY.
2076
2077If DIRECTORY is nil, it's used `default-directory'.
2078
2079The files in DIRECTORY that matches `ebnf-file-suffix-regexp' (which see) are
2080processed.
2081
2082See also `ebnf-syntax-buffer'."
2083 (interactive
2084 (list (read-file-name "Directory containing EBNF files (syntax): "
2085 nil default-directory)))
2086 (ebnf-directory 'ebnf-syntax-buffer directory))
2087
2088
2089;;;###autoload
2090(defun ebnf-syntax-file (file &optional do-not-kill-buffer-when-done)
2091 "Does a syntactic analysis of the FILE.
2092
2093If optional arg DO-NOT-KILL-BUFFER-WHEN-DONE is non-nil, the buffer isn't
2094killed after SYNTAX generation.
2095
2096See also `ebnf-syntax-buffer'."
2097 (interactive "fEBNF file to check syntax: ")
2098 (ebnf-file 'ebnf-syntax-buffer file do-not-kill-buffer-when-done))
2099
2100
2101;;;###autoload
2067(defun ebnf-syntax-buffer () 2102(defun ebnf-syntax-buffer ()
2068 "Does a syntactic analysis of the current buffer." 2103 "Does a syntactic analysis of the current buffer."
2069 (interactive) 2104 (interactive)