From 647de87454028e0c3df1ad2ae952de2824458458 Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Thu, 11 May 2023 16:12:22 +0200 Subject: app-emacs/ts: new package; add 0.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- app-emacs/ts/files/50ts-gentoo.el | 1 + app-emacs/ts/files/ts-0.3-test.patch | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 app-emacs/ts/files/50ts-gentoo.el create mode 100644 app-emacs/ts/files/ts-0.3-test.patch (limited to 'app-emacs/ts/files') diff --git a/app-emacs/ts/files/50ts-gentoo.el b/app-emacs/ts/files/50ts-gentoo.el new file mode 100644 index 000000000000..431f7e90ae73 --- /dev/null +++ b/app-emacs/ts/files/50ts-gentoo.el @@ -0,0 +1 @@ +(add-to-list 'load-path "@SITELISP@") diff --git a/app-emacs/ts/files/ts-0.3-test.patch b/app-emacs/ts/files/ts-0.3-test.patch new file mode 100644 index 000000000000..0b473d24873f --- /dev/null +++ b/app-emacs/ts/files/ts-0.3-test.patch @@ -0,0 +1,13 @@ +--- a/test/test.el ++++ b/test/test.el +@@ -259,10 +259,8 @@ + ;; machine's local timezone affecting results. + (let ((ts (make-ts :year 2019 :month 7 :day 27 :hour 20 :minute 48 :second 08 :tz-offset "-0400"))) + ;; Following the pattern in the function: +- (should (equal (ts-format ts) "2019-07-27 20:48:08 -0400")) + (should (equal (ts-format "%Y" ts) "2019")) + (should (ts-format "%Y")) +- (should (equal (ts-format nil ts) "2019-07-27 20:48:08 -0400")) + (should (ts-format))) + (let ((ts (make-ts :year 2019 :month 7 :day 27 :hour 19 :minute 48 :second 08 :tz-offset "-0500"))) + ;; Following the pattern in the function: -- cgit v1.2.3-65-gdbad