emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/excorporate 833045c: Fix excorporate-customize-time-zon


From: Thomas Fitzsimmons
Subject: [elpa] externals/excorporate 833045c: Fix excorporate-customize-time-zone on Emacs 24.1
Date: Thu, 8 Apr 2021 09:02:35 -0400 (EDT)

branch: externals/excorporate
commit 833045cf6a00a3cda0d7bc8c88a677ddbf82c4da
Author: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Commit: Thomas Fitzsimmons <fitzsim@fitzsim.org>

    Fix excorporate-customize-time-zone on Emacs 24.1
    
    * excorporate.el (Package-Requires): Add cl-lib 0.6.1.
    * excorporate-time-zones.el: Require cl-lib.
    (excorporate-customize-time-zone): Replace hash-table-values with
    backward-compatible cl-loop call.
---
 excorporate-time-zones.el | 7 ++++++-
 excorporate.el            | 2 +-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/excorporate-time-zones.el b/excorporate-time-zones.el
index 6c78081..ffe25c6 100644
--- a/excorporate-time-zones.el
+++ b/excorporate-time-zones.el
@@ -29,6 +29,8 @@
 
 ;;; Code:
 
+(require 'cl-lib)
+
 ;; Generated with:
 
 ;;(insert
@@ -852,7 +854,10 @@ a list of valid values."
   (let ((zone (completing-read
               "Excorporate time zone: "
               (cons "Emacs Built-in"
-                    (hash-table-values exco--time-zone-olson-to-server))
+                    (cl-loop ; hash-table-values when Emacs < 24.4
+                     for v being the hash-values of
+                     exco--time-zone-olson-to-server
+                     collect v))
               nil t)))
     (unless (equal zone "")
       (customize-save-variable 'excorporate-time-zone
diff --git a/excorporate.el b/excorporate.el
index 1b9651c..e3cf542 100644
--- a/excorporate.el
+++ b/excorporate.el
@@ -8,7 +8,7 @@
 ;; Version: 0.9.5
 ;; Keywords: calendar
 ;; Homepage: https://www.fitzsim.org/blog/
-;; Package-Requires: ((emacs "24.1") (fsm "0.2.1") (soap-client "3.2.0") 
(url-http-ntlm "2.0.4") (nadvice "0.3"))
+;; Package-Requires: ((emacs "24.1") (cl-lib "0.6.1") (fsm "0.2.1") 
(soap-client "3.2.0") (url-http-ntlm "2.0.4") (nadvice "0.3"))
 
 ;; This program is free software: you can redistribute it and/or modify
 ;; it under the terms of the GNU General Public License as published by



reply via email to

[Prev in Thread] Current Thread [Next in Thread]