sxemacs-devel
[Top] [All Lists]

More package version nonsense

From: Steve Youngs <steve@xxxxxxxxxxx>
Subject: More package version nonsense
Date: Wed, 15 Dec 2004 14:32:02 +1000
Organization: The SXEmacs Project
User-agent: Gnus/5.110003 (No Gnus v0.3) sxemacs/22.1
Here's another...

--- diff.el.orig        2004-12-15 14:31:12.000000000 +1000
+++ diff.el     2004-12-15 14:08:01.000000000 +1000
@@ -71,11 +71,8 @@
 
 ;;; Internal variables
 
-(defconst diff-emacs-19-p
-  (let ((ver (string-to-int (substring emacs-version 0 2))))
-    (>= ver 19)))
-
-(or diff-emacs-19-p (require 'emacs-19))
+(when (not emacs-major-version)
+  (require 'emacs-19))
 
 (defvar diff-old-file nil)
 ;; A list whose car is the name of the old file, and whose cdr indicates


-- 
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
|                        In space,                         |
|             No one can hear you rip a stinky             |
|------------------------------------<steve@xxxxxxxxxxx>---|

Attachment: pgpOj3hUwQ2IP.pgp
Description: PGP signature

<Prev in Thread] Current Thread [Next in Thread>