aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinicius Jose Latorre2007-11-09 15:34:03 +0000
committerVinicius Jose Latorre2007-11-09 15:34:03 +0000
commitd54ad496474b0294cb99bd072e17c9db56e97c53 (patch)
treed1bfb0786ef433793b2fdeaaed089b0d791c1eb2
parent4a6789f7cda3fde1cd089b619ff23cd5adb68228 (diff)
downloademacs-d54ad496474b0294cb99bd072e17c9db56e97c53.tar.gz
emacs-d54ad496474b0294cb99bd072e17c9db56e97c53.zip
Clean the code for checking suitable Emacs version.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/ps-print.el11
2 files changed, 7 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ef1ec9f20fa..1919f435af7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,7 +1,7 @@
12007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br> 12007-11-09 Vinicius Jose Latorre <viniciusjl@ig.com.br>
2 2
3 * ps-print.el (ps-do-despool): If ps-lpr-switches is not a list, force 3 * ps-print.el: Clean the code for checking suitable Emacs version.
4 it to be one. 4 (ps-do-despool): If ps-lpr-switches is not a list, force it to be one.
5 (ps-print-version): New version 6.8.1. 5 (ps-print-version): New version 6.8.1.
6 6
72007-11-09 Juanma Barranquero <lekktu@gmail.com> 72007-11-09 Juanma Barranquero <lekktu@gmail.com>
diff --git a/lisp/ps-print.el b/lisp/ps-print.el
index ecd5488f9dc..ce92e4781ef 100644
--- a/lisp/ps-print.el
+++ b/lisp/ps-print.el
@@ -1462,12 +1462,11 @@ Please send all bug fixes and enhancements to
1462(or (featurep 'lisp-float-type) 1462(or (featurep 'lisp-float-type)
1463 (error "`ps-print' requires floating point support")) 1463 (error "`ps-print' requires floating point support"))
1464 1464
1465(let ((case-fold-search t)) 1465(if (featurep 'xemacs)
1466 (cond ((featurep 'xemacs)) 1466 ()
1467 (t 1467 (unless (and (boundp 'emacs-major-version)
1468 (unless (and (boundp 'emacs-major-version) 1468 (>= emacs-major-version 22))
1469 (>= emacs-major-version 22)) 1469 (error "`ps-print' only supports Emacs 22 and higher")))
1470 (error "`ps-print' only supports Emacs 22 and higher")))))
1471 1470
1472 1471
1473;; GNU Emacs 1472;; GNU Emacs