aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2004-02-26 00:44:29 +0000
committerVinicius Jose Latorre2004-02-26 00:44:29 +0000
commitea946fccfb3f1e2f6ee8bbb93a67d144f236c183 (patch)
tree7de95706d32a1a94a234bc8565e9b72617c7849e
parentdd341dd9c2dfa102585d11d0ad773c0ff074507f (diff)
downloademacs-ea946fccfb3f1e2f6ee8bbb93a67d144f236c183.tar.gz
emacs-ea946fccfb3f1e2f6ee8bbb93a67d144f236c183.zip
For compatibility with Emacs 20, define assq-delete-all if it's not defined.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/ebnf2ps.el32
2 files changed, 30 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3394f764c8d..dd667ff8e90 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12004-02-25 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2
3 * ebnf2ps.el: Doc fix. For compatibility with Emacs 20, define
4 assq-delete-all if it's not defined.
5 (ebnf-generate-region): Code fix.
6
12004-02-24 Vinicius Jose Latorre <viniciusjl@ig.com.br> 72004-02-24 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 8
3 * ebnf-abn.el: New file, implements an ABNF parser. 9 * ebnf-abn.el: New file, implements an ABNF parser.
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el
index 352767e508e..d13ed80fe5c 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/24 20:48:53 vinicius> 8;; Time-stamp: <2004/02/25 20:17:43 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/
@@ -1041,7 +1041,7 @@ Please send all bug fixes and enhancements to
1041;; Acknowledgements 1041;; Acknowledgements
1042;; ---------------- 1042;; ----------------
1043;; 1043;;
1044;; Thanks to Drew Adams <?@?> for suggestions: 1044;; Thanks to Drew Adams <drew.adams@oracle.com> for suggestions:
1045;; - `ebnf-production-name-p', `ebnf-stop-on-error', 1045;; - `ebnf-production-name-p', `ebnf-stop-on-error',
1046;; `ebnf-file-suffix-regexp'and `ebnf-special-show-delimiter' variables. 1046;; `ebnf-file-suffix-regexp'and `ebnf-special-show-delimiter' variables.
1047;; - `ebnf-delete-style', `ebnf-eps-file' and `ebnf-eps-directory' 1047;; - `ebnf-delete-style', `ebnf-eps-file' and `ebnf-eps-directory'
@@ -1065,6 +1065,22 @@ Please send all bug fixes and enhancements to
1065(and (string< ps-print-version "5.2.3") 1065(and (string< ps-print-version "5.2.3")
1066 (error "`ebnf2ps' requires `ps-print' package version 5.2.3 or later")) 1066 (error "`ebnf2ps' requires `ps-print' package version 5.2.3 or later"))
1067 1067
1068
1069;; to avoid gripes with Emacs 20
1070(eval-and-compile
1071 (or (fboundp 'assq-delete-all)
1072 (defun assq-delete-all (key alist)
1073 "Delete from ALIST all elements whose car is KEY.
1074Return the modified alist.
1075Elements of ALIST that are not conses are ignored."
1076 (let ((tail alist))
1077 (while tail
1078 (if (and (consp (car tail))
1079 (eq (car (car tail)) key))
1080 (setq alist (delq (car tail) alist)))
1081 (setq tail (cdr tail)))
1082 alist))))
1083
1068 1084
1069;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1085;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1070;; User Variables: 1086;; User Variables:
@@ -4471,12 +4487,12 @@ killed after process termination."
4471 (setq the-point (max (1- (point)) (point-min)) 4487 (setq the-point (max (1- (point)) (point-min))
4472 error-msg (concat error-msg ": " 4488 error-msg (concat error-msg ": "
4473 (error-message-string data) 4489 (error-message-string data)
4474 (if (string= error-msg "SYNTAX") 4490 ", "
4475 (format ". At %d in buffer \"%s\"." 4491 (and (string= error-msg "SYNTAX")
4476 the-point 4492 (format "at position %d "
4477 (buffer-name)) 4493 the-point))
4478 (format ". In buffer \"%s\"." 4494 (format "in buffer \"%s\"."
4479 (buffer-name)))))))))) 4495 (buffer-name)))))))))
4480 (cond 4496 (cond
4481 ;; error occurred 4497 ;; error occurred
4482 (error-msg 4498 (error-msg