]> git.eshelyaron.com Git - emacs.git/commitdiff
(epa--show-key): Use past tense of "expire" if the key
authorDaiki Ueno <ueno@unixuser.org>
Wed, 3 Dec 2008 06:16:18 +0000 (06:16 +0000)
committerDaiki Ueno <ueno@unixuser.org>
Wed, 3 Dec 2008 06:16:18 +0000 (06:16 +0000)
has already been expired.  Thanks to Peter BARABAS.

lisp/ChangeLog
lisp/epa.el

index c0a55b4aa485414ee08a121f654f73b8b0632be6..21f805ed537926e964e562fdb3d471f59da7eddc 100644 (file)
@@ -1,3 +1,8 @@
+2008-12-03  Daiki Ueno  <ueno@unixuser.org>
+
+       * epa.el (epa--show-key): Use past tense of "expire" if the key
+       has already been expired.  Thanks to Peter BARABAS.
+
 2008-12-03  Lute Kamstra  <lute@gnu.org>
 
        * align.el:
index 0f8f25206dac4f62d4886574f3fa9db7cee5577c..23dfeadcecfb7a2f1df9c7e189df1353ac245e5e 100644 (file)
@@ -586,7 +586,11 @@ If SECRET is non-nil, list secret keys instead of public keys."
                                      (epg-sub-key-creation-time (car pointer)))
                (error "????-??-??"))
              (if (epg-sub-key-expiration-time (car pointer))
-                 (format "\n\tExpires: %s"
+                 (format (if (time-less-p (current-time)
+                                          (epg-sub-key-expiration-time
+                                           (car pointer)))
+                             "\n\tExpires: %s"
+                           "\n\tExpired: %s")
                          (condition-case nil
                              (format-time-string "%Y-%m-%d"
                                                  (epg-sub-key-expiration-time