From cfd85423ef5d679ba682f75803f699d0b4042591 Mon Sep 17 00:00:00 2001 From: kaoru Date: Sun, 24 Dec 2000 10:33:05 +0000 Subject: [PATCH] (wl-generate-user-agent-string-1): Fix conditional statement. --- wl/wl-version.el | 61 +++++++++++++++++++++++++++--------------------------- 1 file changed, 30 insertions(+), 31 deletions(-) diff --git a/wl/wl-version.el b/wl/wl-version.el index 009890f..8efdb25 100644 --- a/wl/wl-version.el +++ b/wl/wl-version.el @@ -101,37 +101,36 @@ Insert User-Agent field instead of X-Mailer field." (defun wl-generate-user-agent-string-1 (&optional verbose) "Return User-Agent field value. If VERBOSE return with SEMI, FLIM and APEL version." - (if (not verbose) - ;; Don't use product-string-verbose for short User-Agent field value. - (concat (product-string-1 'wl-version t) " " - (wl-extended-emacs-version3 "/" t)) - ;; verbose - (cond - ;; SEMI - ((and (boundp 'mime-edit-user-agent-value) mime-edit-user-agent-value) - (concat (product-string-verbose 'wl-version) " " - mime-edit-user-agent-value)) - ;; tm - ((and (boundp 'mime-editor/version) mime-editor/version) - (concat (product-string-verbose 'wl-version) " " - "tm/" mime-editor/version - (when (and (boundp 'mime-editor/codename) mime-editor/codename) - (concat " (" mime-editor/codename ")")) - (when (and (boundp 'mime-library-product) mime-library-product) - (concat " " (aref mime-library-product 0) - "/" (mapconcat 'int-to-string - (aref mime-library-product 1) - ".") - " (" (aref mime-library-product 2) ")")) - (condition-case nil - (progn - (require 'apel-ver) - (concat " " (apel-version))) - (file-error nil)) - " " (wl-extended-emacs-version3 "/" t))) - ;; error case - (t - (product-string-1 'wl-version nil))))) + (cond + ;; Don't use `product-string-verbose' for short User-Agent field value. + ((not verbose) + (concat (product-string-1 'wl-version t) " " + (wl-extended-emacs-version3 "/" t))) + ;; SEMI (verbose) + ((and (boundp 'mime-edit-user-agent-value) mime-edit-user-agent-value) + (concat (product-string-verbose 'wl-version) " " + mime-edit-user-agent-value)) + ;; tm (verbose) + ((and (boundp 'mime-editor/version) mime-editor/version) + (concat (product-string-verbose 'wl-version) " " + "tm/" mime-editor/version + (when (and (boundp 'mime-editor/codename) mime-editor/codename) + (concat " (" mime-editor/codename ")")) + (when (and (boundp 'mime-library-product) mime-library-product) + (concat " " (aref mime-library-product 0) + "/" (mapconcat 'int-to-string + (aref mime-library-product 1) + ".") + " (" (aref mime-library-product 2) ")")) + (condition-case nil + (progn + (require 'apel-ver) + (concat " " (apel-version))) + (file-error nil)) + " " (wl-extended-emacs-version3 "/" t))) + ;; error case + (t + (product-string-1 'wl-version nil)))) ;; from gnus (defun wl-extended-emacs-version (&optional with-codename) -- 1.7.10.4