[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/datetime f183e03d1e 003/147: Silence a few warnings issued
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/datetime f183e03d1e 003/147: Silence a few warnings issued by 'flycheck' |
Date: |
Fri, 31 Jan 2025 06:59:56 -0500 (EST) |
branch: elpa/datetime
commit f183e03d1e05c3d8387e41c5e47d3b5a83883fe6
Author: Paul Pogonyshev <pogonyshev@gmail.com>
Commit: Paul Pogonyshev <pogonyshev@gmail.com>
Silence a few warnings issued by 'flycheck'
---
datetime.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/datetime.el b/datetime.el
index be2a7bc6c7..2a332fd6a6 100644
--- a/datetime.el
+++ b/datetime.el
@@ -1,4 +1,4 @@
-;;; datetime.el --- Library for parsing, formatting and matching timestamps
-*- lexical-binding: t -*-
+;;; datetime.el --- Parsing, formatting and matching timestamps -*-
lexical-binding: t -*-
;; Copyright (C) 2016 Paul Pogonyshev
@@ -89,6 +89,10 @@
(define-error 'datetime-unsupported-timezone "Timezones are currently not
supported")
+;; Set at the end of this file because the initializer is huge.
+(defvar datetime--locale-data nil
+ "Don't access directly, use `datetime-locale-field' instead.")
+
(defvar datetime--pattern-parsers '((parsed . (lambda (pattern options)
pattern))
(java . datetime--parse-java-pattern)))
@@ -583,7 +587,7 @@ Supported fields:
;; - all patterns have the following fallbacks: `:short' defaults to
;; `:medium', `:long' defaults to `:medium', `:full' defaults to
;; `:long'.
-(defvar datetime--locale-data
+(setq datetime--locale-data
'((ar
:eras ["ق.م" "م"]
:month-context-abbr ["ينا" "فبر" "مار" "أبر" "ماي" "يون" "يول"
"أغس" "سبت" "أكت" "نوف" "ديس"]
@@ -1255,8 +1259,7 @@ Supported fields:
:eras ["西元前" "西元"]
:month-standalone-abbr ["1月" "2月" "3月" "4月" "5月" "6月" "7月" "8月" "9月"
"10月" "11月" "12月"]
:date-patterns (:medium "yyyy/M/d" :long "yyyy'年'M'月'd'日'"
:full "yyyy'年'M'月'd'日' EEEE")
- :time-patterns (:short "a h:mm" :medium "a hh:mm:ss" :long
"ahh'時'mm'分'ss'秒'" :full "ahh'時'mm'分'ss'秒' z")))
- "Don't access directly, use `datetime-locale-field' instead.")
+ :time-patterns (:short "a h:mm" :medium "a hh:mm:ss" :long
"ahh'時'mm'分'ss'秒'" :full "ahh'時'mm'分'ss'秒' z"))))
(provide 'datetime)
- [nongnu] elpa/datetime 30bc4823bc 116/147: Expand documentation somewhat to include list of Java pattern elements and some examples., (continued)
- [nongnu] elpa/datetime 30bc4823bc 116/147: Expand documentation somewhat to include list of Java pattern elements and some examples., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 38a85cb352 121/147: Fix another bug in 'HarvestData' tool; no effect currently, but would be uncovered by future changes., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 9ff5066539 129/147: And yet another fix for 'HarvestData', for a bug that would be uncovered by future changes., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 348628bc3f 122/147: Reenable testing on macOS., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 51430e5c90 132/147: Make `datetime--determine-system-timezone` work on macOS (issue #11)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 3d27814a09 133/147: Update copyright notices to include 2024., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime bde4287c1d 141/147: Improve CI workflow so that it is obvious when the problem is in byte-compilation and not in failing tests., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 388741774d 144/147: Use Emacs 29.3 instead of 29.1 for CI on Windows, in hope that weird charset(?)-related problems would be gone., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime a71c4abd79 139/147: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 38f0e180ae 147/147: Post-release version bump., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime f183e03d1e 003/147: Silence a few warnings issued by 'flycheck',
ELPA Syncer <=
- [nongnu] elpa/datetime dd38546d80 002/147: Fix README formatting., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 0d1eeccaef 048/147: Release version 0.6.3., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 9b56503022 142/147: Make sure that timestamp aliases are ordered (alphabetically), to avoid spurious database changes on regeneration., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 4d11de3326 087/147: Upgrade to fetching data from Java 17 (Debian build 17.0.8+7-1); handle 'B' in Java patterns, as it is used in standard patterns now., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 93a6b20586 125/147: Fix parsing of eras when those are specified multiple times in the pattern for whatever reason., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime f043bb9c08 020/147: When `bool-vector' is unavailable due to too old Emacs, fall back to `vector'., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 31afcecc78 143/147: Regenerate timezone data extmap using OpenJDK 17.0.11 (Debian build 17.0.11-ea+7-Debian-1b1)., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime cac5bd0771 008/147: Consistently use `am-pm' instead of `am/pm' in various symbols; fixes the bug of querying AM/PM symbols not returning proper result for some locales., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime d99e56785d 009/147: Fix logic of falling back for decimal separator, era names and AM/PM symbols for locales in the form `xx-YY'., ELPA Syncer, 2025/01/31
- [nongnu] elpa/datetime 4b5996550f 011/147: Make `datetime--parse-java-pattern' parse `u' character, as specified in SimpleDateFormat help., ELPA Syncer, 2025/01/31