(mime-edit-user-agent-value): Include `emacs-patch-level'.
authoryamaoka <yamaoka>
Mon, 27 Sep 1999 07:06:58 +0000 (07:06 +0000)
committeryamaoka <yamaoka>
Mon, 27 Sep 1999 07:06:58 +0000 (07:06 +0000)
It exists in XEmacs 21.1.1 or later.

ChangeLog
mime-edit.el

index d34df3f..a18b21f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1999-09-27  Katsumi Yamaoka   <yamaoka@jpl.org>
+
+       * mime-edit.el (mime-edit-user-agent-value): Include
+       `emacs-patch-level'.  It exists in XEmacs 21.1.1 or later.
+
 1999-09-20  Yoshiki Hayashi <t90553@mail.ecc.u-tokyo.ac.jp>
 
        * mime-view.el (mime-preview-scroll-up-entitiy,
index ccff976..2464d6e 100644 (file)
@@ -638,16 +638,22 @@ If it is not specified for a major-mode,
                            ((featurep 'mule) "MULE"))
                      " XEmacs"
                      (if (string-match "^[0-9]+\\(\\.[0-9]+\\)" emacs-version)
-                         (concat "/"
-                                 (substring emacs-version 0 (match-end 0))
-                                 (if (and (boundp 'xemacs-betaname)
-                                          ;; It does not exist in XEmacs
-                                          ;; versions prior to 20.3.
-                                          xemacs-betaname)
-                                     (concat " " xemacs-betaname)
-                                   "")
-                                 " (" xemacs-codename ") ("
-                                 system-configuration ")")
+                         (concat
+                          "/"
+                          (substring emacs-version 0 (match-end 0))
+                          (cond ((and (boundp 'xemacs-betaname)
+                                      xemacs-betaname)
+                                 ;; It does not exist in XEmacs
+                                 ;; versions prior to 20.3.
+                                 (concat " " xemacs-betaname))
+                                ((and (boundp 'emacs-patch-level)
+                                      emacs-patch-level)
+                                 ;; It does not exist in FSF Emacs or in
+                                 ;; XEmacs versions earlier than 21.1.1.
+                                 (format " (patch %d)" emacs-patch-level))
+                                (t ""))
+                          " (" xemacs-codename ") ("
+                          system-configuration ")")
                        " (" emacs-version ")"))
            (let ((ver (if (string-match "\\.[0-9]+$" emacs-version)
                           (substring emacs-version 0 (match-beginning 0))