diff options
| author | Thomas Fitzsimmons <fitzsim@fitzsim.org> | 2021-04-08 09:00:43 -0400 |
|---|---|---|
| committer | Thomas Fitzsimmons <fitzsim@fitzsim.org> | 2021-04-08 09:00:43 -0400 |
| commit | 833045cf6a00a3cda0d7bc8c88a677ddbf82c4da (patch) | |
| tree | 3b5e6fd9f2d2753e0d27e7072e4cc8713403cdc6 | |
| parent | cad5c46a97406b22359a8d97daba53b131c68b76 (diff) | |
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.
| -rw-r--r-- | excorporate-time-zones.el | 7 | ||||
| -rw-r--r-- | 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 |
