aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Kangas2020-01-18 09:15:36 +0100
committerStefan Kangas2020-01-18 09:15:49 +0100
commit43e79d42f9671de7e7c513e9be42e32aa9970603 (patch)
tree8990be96b8059c780e84ad1ffe1a0e30a6c7e729
parentac121d8c8f1863c0c1a0f3c8250518abfc26b2a9 (diff)
downloademacs-43e79d42f9671de7e7c513e9be42e32aa9970603.tar.gz
emacs-43e79d42f9671de7e7c513e9be42e32aa9970603.zip
Remove XEmacs and old Emacs compat code from ebnf2ps.el
* lisp/progmodes/ebnf2ps.el (ebnf-color-p) (ebnf-style-database): Remove XEmacs and old Emacs compat code.
-rw-r--r--lisp/progmodes/ebnf2ps.el21
1 files changed, 2 insertions, 19 deletions
diff --git a/lisp/progmodes/ebnf2ps.el b/lisp/progmodes/ebnf2ps.el
index d5820bbfe0a..d5dddfc2b7c 100644
--- a/lisp/progmodes/ebnf2ps.el
+++ b/lisp/progmodes/ebnf2ps.el
@@ -1157,21 +1157,6 @@ Please send all bug fixes and enhancements to
1157(and (string< ps-print-version "5.2.3") 1157(and (string< ps-print-version "5.2.3")
1158 (error "`ebnf2ps' requires `ps-print' package version 5.2.3 or later")) 1158 (error "`ebnf2ps' requires `ps-print' package version 5.2.3 or later"))
1159 1159
1160
1161;; to avoid gripes with Emacs 20
1162(or (fboundp 'assq-delete-all)
1163 (defun assq-delete-all (key alist)
1164 "Delete from ALIST all elements whose car is KEY.
1165Return the modified alist.
1166Elements of ALIST that are not conses are ignored."
1167 (let ((tail alist))
1168 (while tail
1169 (if (and (consp (car tail))
1170 (eq (car (car tail)) key))
1171 (setq alist (delq (car tail) alist)))
1172 (setq tail (cdr tail)))
1173 alist)))
1174
1175 1160
1176;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; 1161;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1177;; User Variables: 1162;; User Variables:
@@ -2053,8 +2038,7 @@ It must be a float between 0.0 (top) and 1.0 (bottom)."
2053 2038
2054 2039
2055;; Printing color requires x-color-values. 2040;; Printing color requires x-color-values.
2056(defcustom ebnf-color-p (or (fboundp 'x-color-values) ; Emacs 2041(defcustom ebnf-color-p t
2057 (fboundp 'color-instance-rgb-components)) ; XEmacs
2058 "Non-nil means use color." 2042 "Non-nil means use color."
2059 :type 'boolean 2043 :type 'boolean
2060 :version "20" 2044 :version "20"
@@ -2738,8 +2722,7 @@ Used in functions `ebnf-reset-style', `ebnf-push-style' and
2738 (ebnf-eps-footer-font . '(7 Helvetica "Black" "White" bold)) 2722 (ebnf-eps-footer-font . '(7 Helvetica "Black" "White" bold))
2739 (ebnf-eps-footer . nil) 2723 (ebnf-eps-footer . nil)
2740 (ebnf-entry-percentage . 0.5) 2724 (ebnf-entry-percentage . 0.5)
2741 (ebnf-color-p . (or (fboundp 'x-color-values) ; Emacs 2725 (ebnf-color-p . t)
2742 (fboundp 'color-instance-rgb-components))) ; XEmacs
2743 (ebnf-line-width . 1.0) 2726 (ebnf-line-width . 1.0)
2744 (ebnf-line-color . "Black") 2727 (ebnf-line-color . "Black")
2745 (ebnf-debug-ps . nil) 2728 (ebnf-debug-ps . nil)