aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-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)