From unknown Sat Aug 09 15:53:56 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48298 <48298@debbugs.gnu.org> To: bug#48298 <48298@debbugs.gnu.org> Subject: Status: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) Reply-To: bug#48298 <48298@debbugs.gnu.org> Date: Sat, 09 Aug 2025 22:53:56 +0000 retitle 48298 Invalid time specification: encode-time((0 30 11 1 1 0 nil -1= nil)) reassign 48298 emacs submitter 48298 =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1= =85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2 severity 48298 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat May 08 16:58:06 2021 Received: (at submit) by debbugs.gnu.org; 8 May 2021 20:58:06 +0000 Received: from localhost ([127.0.0.1]:52269 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfU1V-0005SK-CN for submit@debbugs.gnu.org; Sat, 08 May 2021 16:58:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:35092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfQEi-0003BG-H5 for submit@debbugs.gnu.org; Sat, 08 May 2021 12:55:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39766) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfQEh-0002G4-Vn for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 12:55:28 -0400 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:40881) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfQEe-0000X9-9R for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 12:55:27 -0400 Received: by mail-lj1-x235.google.com with SMTP id c15so995155ljr.7 for ; Sat, 08 May 2021 09:55:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=7afW0VnoneDMlqTvgRZ5BzaK+iHgEXU4RP6BE9XGVGA=; b=pNHZiY/kHpSW24C0YpJZ8UvjuFwHzGxkA0NLRAc3NZuBKhA05mnrK0uQMgt7jz4iIp Ko43SZLyYFLXMmXim7k4lVpc5g04ZhiX6GchssaeQenThNvCwuc5C+xF5ARI4c2gL8fS ffUHSEPFLsxeJvN7mZpLC5QEnzyJCxsMUIeZR8GhV0DZ3mgp+3OGEYE2m+l38NXYeyOy obVQvbutA2pS+n5w8fdBe2rRXdasGC3Eivc0D7sX6WCdRN7z70tZH/IODmPvpIAvpQTC qSckylBtvIZNAGD384PuXC4iZPHizrVgvIPBrRv8CV/aXHCx5pNFYp6/zf7EJW8YnCqr kXJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7afW0VnoneDMlqTvgRZ5BzaK+iHgEXU4RP6BE9XGVGA=; b=jhaTnoIVCvFGmgI8WwMWk5L7IjbbGDScalDnDfppsZoyPLk4VZVEpsTQhvs5v7qm/g mjGDn8rD88Y4hbq2WIgo2t8bzu3zx2sgF95FpeSQdEWHsvHvjow0R7m8x0OoV2lsvgww iHDTMMqs4grYSn685wtqDLlsiu2D0MBL98n8822b1PSUJL6Ftv6Pyj1Dttp9w2QPN5S8 8dD/UTzr2lhSvhY814yzGaR2XXkkRXS3FwW4h/B8jmVJdGS7q9vMmbvDJQzxv+XuuxwP J0RxUX+/5wYRwbcvCU8M3GP+4Xo9WIrmzi8LNr0evmKeE5AMSkeMmrV5kFwToRTtZYvo S1pw== X-Gm-Message-State: AOAM533rzL/oBbPSb/zFuTnnoSYS4/UQLqbgy4ZRudBw/fjLZ/QKZhrD whmVx3tboKj4W5Qbn3gfrkAQxhaH0etJbY7VwGJOy5P2PGyLKA== X-Google-Smtp-Source: ABdhPJxHtVbbOtdCCT/zveQtlBREuav0VTXEnTCbmkmLk/3Y8yB86KZahCj0DXPusZlRefj/n+Q7AqnQn3kHhZ/OQwQ= X-Received: by 2002:a2e:988b:: with SMTP id b11mr12725865ljj.87.1620492921604; Sat, 08 May 2021 09:55:21 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= Date: Sat, 8 May 2021 19:55:10 +0300 Message-ID: Subject: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) To: bug-gnu-emacs@gnu.org Content-Type: multipart/alternative; boundary="000000000000f40f0d05c1d46843" Received-SPF: pass client-ip=2a00:1450:4864:20::235; envelope-from=lewwadoo@gmail.com; helo=mail-lj1-x235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 08 May 2021 16:58:04 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --000000000000f40f0d05c1d46843 Content-Type: text/plain; charset="UTF-8" (my-mins-between "11:30" "12:04") (defun my-mins-between (time1 time2) "Return the minutes between HH:mm strings TIME1 and TIME2." (let ((diff (apply #'time-subtract (mapcar (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time)))) (list time1 time2))))) (/ (float-time diff) 60))) Debugger entered--Lisp error: (error "Invalid time specification") encode-time((0 30 11 1 1 0 nil -1 nil)) (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time))))("11:30") mapcar((lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time)))) ("11:30" "12:04")) In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32) of 2021-03-26 built on CIRROCUMULUS Repository revision: deef5efafb70f4b171265b896505b92b6eef24e6 Repository branch: HEAD Windowing system distributor 'Microsoft Corp.', version 10.0.19041 System Description: Microsoft Windows 10 Home (v10.0.2004.19041.928) Recent messages: Quit Mark set Entering debugger... Back to top level my-mins-between Entering debugger... Back to top level user-error: Beginning of history; no preceding item user-error: End of history; no default available scroll-up-command: End of buffer command-execute: Command attempted to use minibuffer while in minibuffer Configured using: 'configure --without-dbus --host=x86_64-w64-mingw32 --without-compress-install 'CFLAGS=-O2 -static'' Configured features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP Important settings: value of $LANG: RUS locale-coding-system: cp1251 Major mode: Emacs-Lisp Minor modes in effect: global-company-mode: t company-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: c:/Users/pc/.emacs.d/elpa/flymake-1.1.1/flymake hides c:/Program Files/Emacs/x86_64/share/emacs/27.2/lisp/progmodes/flymake c:/Users/pc/.emacs.d/elpa/eldoc-1.11.0/eldoc hides c:/Program Files/Emacs/x86_64/share/emacs/27.2/lisp/emacs-lisp/eldoc Features: (shadow sort mail-extr emacsbug sendmail help-fns radix-tree cl-print debug backtrace bookmark pp gnutls network-stream url-http url-gw nsm url-cache url-auth org-habitica vc-git diff-mode cl-extra help-mode org-element avl-tree ol-eww eww mm-url url-queue ol-rmail ol-mhe ol-irc ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-expand url-methods url-history mailcap shr url-cookie url-domsuf url-util svg xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmail mail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message rmc puny rfc822 mml mml-sec epa derived epg epg-config mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus nnheader gnus-util rmail rmail-loaddefs rfc2047 rfc2045 ietf-drums text-property-search mail-utils mm-util mail-prsvr wid-edit ol-docview doc-view jka-compr image-mode exif dired dired-loaddefs ol-bibtex bibtex ol-bbdb ol-w3m face-remap org-agenda org-refile org ob ob-tangle ob-ref ob-lob ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete pcomplete org-list org-faces org-entities time-date noutline outline easy-mmode org-version ob-emacs-lisp ob-core ob-eval org-table org-keys org-loaddefs find-func cal-menu calendar cal-loaddefs ol org-compat advice org-macs format-spec company-oddmuse company-keywords company-etags etags fileloop generator xref project company-gtags company-dabbrev-code company-dabbrev company-files company-clang company-capf company-cmake company-semantic company-template company-bbdb company zerodark-theme let-alist pcase org-capture-complex report 1cfresh process-1cbases process-docs flymake-proc flymake compile comint ansi-color ring warnings thingatpt string-inflection helm-easymenu edmacro kmacro rx info package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 367719 37867) (symbols 48 24682 1) (strings 32 86256 2807) (string-bytes 1 3071501) (vectors 16 43765) (vector-slots 8 1238429 232140) (floats 8 271 108) (intervals 56 3530 533) (buffers 1000 33)) --000000000000f40f0d05c1d46843 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
(my-mins-between "11:30" "12:04")=

(defun my-mins-between (time1 time2)
=C2=A0 "Return t= he minutes between HH:mm strings TIME1 and TIME2."
=C2=A0 (let ((di= ff (apply #'time-subtract
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(mapcar (lambda (time)
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0(encode-time (decoded-time-set-defaults
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0(parse-time-string time))))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0(list tim= e1 time2)))))
=C2=A0 =C2=A0 (/ (float-time diff) 60)))

Debugger e= ntered--Lisp error: (error "Invalid time specification")
=C2= =A0 encode-time((0 30 11 1 1 0 nil -1 nil))
=C2=A0 (lambda (time) (encod= e-time (decoded-time-set-defaults (parse-time-string time))))("11:30&q= uot;)
=C2=A0 mapcar((lambda (time) (encode-time (decoded-time-set-defaul= ts (parse-time-string time)))) ("11:30" "12:04"))

=C2=A0 In GNU Emacs 27.2 (build 1, x86_64-w64-mingw32= )
=C2=A0of 2021-03-26 built on CIRROCUMULUS
Repository revision: deef= 5efafb70f4b171265b896505b92b6eef24e6
Repository branch: HEAD
Windowin= g system distributor 'Microsoft Corp.', version 10.0.19041
Syste= m Description: Microsoft Windows 10 Home (v10.0.2004.19041.928)

Rece= nt messages:
Quit
Mark set
Entering debugger...
Back to top lev= el
my-mins-between
Entering debugger...
Back to top level
user-= error: Beginning of history; no preceding item
user-error: End of histor= y; no default available
scroll-up-command: End of buffer
command-exec= ute: Command attempted to use minibuffer while in minibuffer
Configured = using:
=C2=A0'configure --without-dbus --host=3Dx86_64-w64-mingw32=C2=A0--without-compress-install 'CFLAGS=3D-O2 -static''
<= br>Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIF= Y ACL GNUTLS LIBXML2
HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS J= SON PDUMPER LCMS2 GMP

Important settings:
=C2=A0 value of $LANG: = RUS
=C2=A0 locale-coding-system: cp1251

Major mode: Emacs-Lisp
Minor modes in effect:
=C2=A0 global-company-mode: t
=C2=A0 comp= any-mode: t
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-mode: t
=C2= =A0 eldoc-mode: t
=C2=A0 electric-indent-mode: t
=C2=A0 mouse-wheel-m= ode: t
=C2=A0 tool-bar-mode: t
=C2=A0 menu-bar-mode: t
=C2=A0 file= -name-shadow-mode: t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock= -mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryption-mode:= t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode: t
=C2= =A0 transient-mark-mode: t

Load-path shadows:
c:/Users/pc/.emacs.= d/elpa/flymake-1.1.1/flymake hides c:/Program Files/Emacs/x86_64/share/emac= s/27.2/lisp/progmodes/flymake
c:/Users/pc/.emacs.d/elpa/eldoc-1.11.0/eld= oc hides c:/Program Files/Emacs/x86_64/share/emacs/27.2/lisp/emacs-lisp/eld= oc

Features:
(shadow sort mail-extr emacsbug sendmail help-fns ra= dix-tree cl-print
debug backtrace bookmark pp gnutls network-stream url-= http url-gw nsm
url-cache url-auth org-habitica vc-git diff-mode cl-extr= a help-mode
org-element avl-tree ol-eww eww mm-url url-queue ol-rmail ol= -mhe ol-irc
ol-info ol-gnus nnir gnus-sum url url-proxy url-privacy url-= expand
url-methods url-history mailcap shr url-cookie url-domsuf url-uti= l svg
xml dom gnus-group gnus-undo gnus-start gnus-cloud nnimap nnmailmail-source utf7 netrc nnoo parse-time iso8601 gnus-spec gnus-int
gnus= -range message rmc puny rfc822 mml mml-sec epa derived epg
epg-config mm= -decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mail= header gnus-win gnus nnheader gnus-util rmail
rmail-loaddefs rfc2047 rfc= 2045 ietf-drums text-property-search
mail-utils mm-util mail-prsvr wid-e= dit ol-docview doc-view jka-compr
image-mode exif dired dired-loaddefs o= l-bibtex bibtex ol-bbdb ol-w3m
face-remap org-agenda org-refile org ob o= b-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-footnote org-src ob= -comint org-pcomplete pcomplete
org-list org-faces org-entities time-dat= e noutline outline easy-mmode
org-version ob-emacs-lisp ob-core ob-eval = org-table org-keys
org-loaddefs find-func cal-menu calendar cal-loaddefs= ol org-compat
advice org-macs format-spec company-oddmuse company-keywo= rds
company-etags etags fileloop generator xref project company-gtagscompany-dabbrev-code company-dabbrev company-files company-clang
compan= y-capf company-cmake company-semantic company-template
company-bbdb comp= any zerodark-theme let-alist pcase org-capture-complex
report 1cfresh pr= ocess-1cbases process-docs flymake-proc flymake compile
comint ansi-colo= r ring warnings thingatpt string-inflection
helm-easymenu edmacro kmacro= rx info package easymenu browse-url
url-handlers url-parse auth-source = cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json subr-= x map url-vars seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs c= l-lib tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-typ= e mwheel dos-w32 ls-lisp
disp-table term/w32-win w32-win w32-vars term/c= ommon-win tool-bar dnd
fontset image regexp-opt fringe tabulated-list re= place newcomment
text-mode elisp-mode lisp-mode prog-mode register page = tab-bar menu-bar
rfn-eshadow isearch timer select scroll-bar mouse jit-l= ock font-lock
syntax facemenu font-core term/tty-colors frame minibuffer= cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai t= ai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slova= k czech
european ethiopic indian cyrillic chinese composite charscript c= harprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray
= cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-= properties overlay sha1 md5 base64 format env code-pages mule
custom wid= get hashtable-print-readable backquote threads w32notify w32
lcms2 multi= -tty make-network-process emacs)

Memory information:
((conses 16 = 367719 37867)
=C2=A0(symbols 48 24682 1)
=C2=A0(strings 32 86256 2807= )
=C2=A0(string-bytes 1 3071501)
=C2=A0(vectors 16 43765)
=C2=A0(v= ector-slots 8 1238429 232140)
=C2=A0(floats 8 271 108)
=C2=A0(interva= ls 56 3530 533)
=C2=A0(buffers 1000 33))=C2=A0=C2=A0
--000000000000f40f0d05c1d46843-- From debbugs-submit-bounces@debbugs.gnu.org Sat May 08 18:37:54 2021 Received: (at 48298) by debbugs.gnu.org; 8 May 2021 22:37:54 +0000 Received: from localhost ([127.0.0.1]:52700 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfVa5-0008Uw-V5 for submit@debbugs.gnu.org; Sat, 08 May 2021 18:37:54 -0400 Received: from mail-wr1-f52.google.com ([209.85.221.52]:46593) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfVa3-0008Uj-0o for 48298@debbugs.gnu.org; Sat, 08 May 2021 18:37:51 -0400 Received: by mail-wr1-f52.google.com with SMTP id x5so12747803wrv.13 for <48298@debbugs.gnu.org>; Sat, 08 May 2021 15:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Vnxtlg/HTnzB6UCVLVjKs2T1bDTlrj/CZDbuQfzMyaM=; b=IZ3C0RhH3qcv7nRK2u4Z1uE4MKGwkFWTwovnxRa9Neur/7Mwifph9yjVkho58v+poc 0kMYGxymodVBnal0UpRxNhZNqwC9iNCMcGyTx6NAAeFlFsOGXfvBiL/WgIwO5SnaWxD0 QaBo1ua6MOIjS6FPw+/MIy+NEXW8sFOoIkviDKt4McjXfdov01A9m6BQpZFMEf22ZcfM qiXAgRq1VhnbyODJOruNNxM+Y4ZjiDGgKXlV9lIzXVi8MYrbOHAOaZ9l7HIgVq+ggZ0v ciOAihrrt1EU+/la2RBJlhxong1aY+LlwSxDsTXBbnyb7fmq3bwGtOolpFJTgXJ2FFAV Qw9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Vnxtlg/HTnzB6UCVLVjKs2T1bDTlrj/CZDbuQfzMyaM=; b=GcUjKG7KE6mxhckDvbJdzrMHLUER3sb7SO6dtHJU954y0PaWuUYzBDIpWqCsdOQuXF dC79E3tmXXH0xBZ2t7ACzIlC+uKSSKEoaFo2LtBUGNAvNsxzKfHkcl7dW5TSDqrNlsXd u/M5RgFs1hrDJiEvu0oNEbui/Sq3ba1YuBL4tpc4c4ntazmQv50Hyhyo25SWAJCCKaw6 rdR9FDGlGNEXDD5whBQA8XJotO8QVQA436fGJ1eLymPUBY8vVGcNq6w0AvsaZclfXuD+ FqvCJ/qc9QuG8d1pWtl355amXZdlh72X9QXZw3klTlmWqCH3DKxgkN3GpN5qfdFPPZqb UV0g== X-Gm-Message-State: AOAM5311wEckdothcOuvnk4KCwkfBC+Y5xCTBSsnFLHtv1XoBZ3ejryE 3LusEtRxqG3q/sqbQQUcX6rCSw== X-Google-Smtp-Source: ABdhPJwlGsXPEwSdc3f5Adtgld9Q4zJ1udicsC94lAm2kRX5dEPjKQfvdKQc/HEmLagkAaAvs/faqQ== X-Received: by 2002:a5d:5008:: with SMTP id e8mr20948711wrt.386.1620513465076; Sat, 08 May 2021 15:37:45 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id p10sm15172158wrr.58.2021.05.08.15.37.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 08 May 2021 15:37:44 -0700 (PDT) From: "Basil L. Contovounesios" To: =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: Date: Sat, 08 May 2021 23:37:43 +0100 In-Reply-To: (=?utf-8?B?ItCV0LLQs9C10L3QuNC5INCc0LjRhdCw0LnQu9C+0LIiJ3M=?= message of "Sat, 8 May 2021 19:55:10 +0300") Message-ID: <87eeeg26o8.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: 48298@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 48290 48298 quit =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0=B0=D0=B9= =D0=BB=D0=BE=D0=B2 writes: > (my-mins-between "11:30" "12:04") > > (defun my-mins-between (time1 time2) > "Return the minutes between HH:mm strings TIME1 and TIME2." > (let ((diff (apply #'time-subtract > (mapcar (lambda (time) > (encode-time (decoded-time-set-defaults > (parse-time-string time)))) > (list time1 time2))))) > (/ (float-time diff) 60))) > > Debugger entered--Lisp error: (error "Invalid time specification") > encode-time((0 30 11 1 1 0 nil -1 nil)) > (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-stri= ng time))))("11:30") > mapcar((lambda (time) (encode-time (decoded-time-set-defaults (parse-ti= me-string time)))) ("11:30" "12:04")) I'm not sure what happened that resulted in two bug reports being submitted, but this looks like the missing description from https://bugs.gnu.org/48290, so I'm merging the two reports. Thanks, --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 02:47:04 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 06:47:04 +0000 Received: from localhost ([127.0.0.1]:54559 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfdDU-0007Un-Mr for submit@debbugs.gnu.org; Sun, 09 May 2021 02:47:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47660) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfdDT-0007UQ-9i for 48298@debbugs.gnu.org; Sun, 09 May 2021 02:47:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54490) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfdDO-0003bd-1P; Sun, 09 May 2021 02:46:58 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4952 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfdDN-0005Cw-I7; Sun, 09 May 2021 02:46:57 -0400 Date: Sun, 09 May 2021 09:46:56 +0300 Message-Id: <83tunc8kv3.fsf@gnu.org> From: Eli Zaretskii To: =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= In-Reply-To: (lewwadoo@gmail.com) Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48298 Cc: 48298@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Евгений Михайлов > > Date: Sat, 8 May 2021 19:55:10 +0300 > > (my-mins-between "11:30" "12:04") > > (defun my-mins-between (time1 time2) > "Return the minutes between HH:mm strings TIME1 and TIME2." > (let ((diff (apply #'time-subtract > (mapcar (lambda (time) > (encode-time (decoded-time-set-defaults > (parse-time-string time)))) > (list time1 time2))))) > (/ (float-time diff) 60))) > > Debugger entered--Lisp error: (error "Invalid time specification") > encode-time((0 30 11 1 1 0 nil -1 nil)) > (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time))))("11:30") > mapcar((lambda (time) (encode-time (decoded-time-set-defaults (parse-time-string time)))) ("11:30" > "12:04")) I guess the problem is in decoded-time-set-defaults, if anywhere. However, I'm not sure I understand the idea behind your my-mins-between: how did you expect Emacs to guess the year you had in mind? From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 03:07:17 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 07:07:17 +0000 Received: from localhost ([127.0.0.1]:54657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfdX3-0007gJ-Fd for submit@debbugs.gnu.org; Sun, 09 May 2021 03:07:17 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfdX1-0007gB-Ui for 48298@debbugs.gnu.org; Sun, 09 May 2021 03:07:16 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:54782) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfdWv-0001Yh-6Y; Sun, 09 May 2021 03:07:09 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2530 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfdWu-0001wL-Mq; Sun, 09 May 2021 03:07:09 -0400 Date: Sun, 09 May 2021 10:07:08 +0300 Message-Id: <83pmy08jxf.fsf@gnu.org> From: Eli Zaretskii To: "Basil L. Contovounesios" In-Reply-To: <87eeeg26o8.fsf@tcd.ie> (contovob@tcd.ie) Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <87eeeg26o8.fsf@tcd.ie> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48298 Cc: 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: "Basil L. Contovounesios" > Date: Sat, 08 May 2021 23:37:43 +0100 > Cc: 48298@debbugs.gnu.org > > I'm not sure what happened that resulted in two bug reports being > submitted, but this looks like the missing description from > https://bugs.gnu.org/48290, so I'm merging the two reports. Thanks. Bug reports without a single word of explanation are indeed hard to process. From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 03:30:28 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 07:30:28 +0000 Received: from localhost ([127.0.0.1]:54766 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfdtU-0007ud-IJ for submit@debbugs.gnu.org; Sun, 09 May 2021 03:30:28 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:47860) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfdtS-0007uX-Qe for 48298@debbugs.gnu.org; Sun, 09 May 2021 03:30:27 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4FdG754nKPz1rynf; Sun, 9 May 2021 09:30:25 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4FdG752Vrsz1qvyP; Sun, 9 May 2021 09:30:25 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id AUbM7VnlBOca; Sun, 9 May 2021 09:30:24 +0200 (CEST) X-Auth-Info: Kh+yM1dZ7tq97Nn6w6p0f0IS8OoY/bcMRK1FB+JsqvDCKUc6LvdHF+nNAhcF9+Kp Received: from hase.home (ppp-46-244-168-47.dynamic.mnet-online.de [46.244.168.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sun, 9 May 2021 09:30:24 +0200 (CEST) Received: by hase.home (Postfix, from userid 1000) id 98B081027E2; Sun, 9 May 2021 09:30:23 +0200 (CEST) From: Andreas Schwab To: =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: X-Yow: Do you think the ``Monkees'' should get gas on odd or even days? Date: Sun, 09 May 2021 09:30:23 +0200 In-Reply-To: (=?utf-8?B?ItCV0LLQs9C10L3QuNC5INCc0LjRhdCw0LnQu9C+0LIiJ3M=?= message of "Sat, 8 May 2021 19:55:10 +0300") Message-ID: <871rag2wkw.fsf@linux-m68k.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.4 (/) X-Debbugs-Envelope-To: 48298 Cc: 48298@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.4 (-) On Mai 08 2021, Евгений Михайлов wrote: > (my-mins-between "11:30" "12:04") > > (defun my-mins-between (time1 time2) > "Return the minutes between HH:mm strings TIME1 and TIME2." This isn't well defined: there may be a DST switchover between the two timestamps. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different." From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 04:19:58 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 08:19:58 +0000 Received: from localhost ([127.0.0.1]:54986 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfefN-00023u-8t for submit@debbugs.gnu.org; Sun, 09 May 2021 04:19:58 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:50770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfefL-00023i-97 for 48298@debbugs.gnu.org; Sun, 09 May 2021 04:19:56 -0400 Received: by mail-wm1-f54.google.com with SMTP id n84so7490392wma.0 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 01:19:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=Wn+hW/vcdsfB/J9do2S35tcBlH6Jbg3co4RolXPXOxc=; b=aLT7K/UWoDeRzWNpfuBoeQd+HzNyXj5wcYf5j8wxSR+9At8jRb4cgt+lf8SPOqhwXx 6C/kz9L1g4cwSPm0fqN3y6zK6sKEZXP6on9IYw4RvaTnFi+sHR/VnkJUx+bxSmnzNguy s/9BKdNoEEXTzIgawEiarFdMEeQDJgiOjVrq+Wczn2C6IVcUMheVy6O9Oq9FupTZ+nKZ uPgx5GWvLlF7xE2dVANbJVehhEvtJDTetqmNvfJQLI7A95bE8pdn0m6FhPHxpKvufD3c bq3Jc28+7Sqa88h8klC7RVABHUWZsvgvnJD3inDy5VlV2o/M9EUuKQ7R4SjFL4uHC7an +dtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=Wn+hW/vcdsfB/J9do2S35tcBlH6Jbg3co4RolXPXOxc=; b=dva7Nl//P5DFVmewWUtTN+eP5tgAwcZ3CA8CZXHmHRrebndKYS7OTT819Su2C+F9On qD+9hJgIK8V4ErncrNnWd4D5sKhAt07GpCGqj6mg1h14VrzbVXSyAI7P7FYt8k760EH+ es5pUsLBVt4iHuwyEaKxzYEPZHn9Vfk0Df3tAau1Rvd4UoTCD2szYK+1c1zkAlD+Cdzr q9kdSr0vHZUypgilq7jH2K1J+xY8KQqM+sItBZx7iM0VQEGkXF/cG2DAKeKPJ0mT+LfK B7IYu0VUxnXCCjJaOJb0GhUiItBRlLD9QE8X4Pw4aCpPHF68nu3Kye1D6q/FGR8KBjvG D/Zw== X-Gm-Message-State: AOAM532PknOnLaVFBM8J8ZzAWCMui0/kSodJac1df4Mp8OSsm+ObJd/l st5F9IKc94ZZsiA9ck1DXq4Adw== X-Google-Smtp-Source: ABdhPJwBvY2Wl1QRVjctbAJ0rpAi+0ZGCQ5+HSMSrIdnyAFU4HHaw7VpozgCfoXvtD+5it1arhIq5w== X-Received: by 2002:a1c:14c:: with SMTP id 73mr15152610wmb.152.1620548389427; Sun, 09 May 2021 01:19:49 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id a15sm16728548wrr.53.2021.05.09.01.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 01:19:48 -0700 (PDT) From: "Basil L. Contovounesios" To: Eli Zaretskii , Lars Ingebrigtsen Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> Date: Sun, 09 May 2021 09:19:47 +0100 In-Reply-To: <83tunc8kv3.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 May 2021 09:46:56 +0300") Message-ID: <87fsyw5nfg.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: 48298@debbugs.gnu.org, =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0= =B0=D0=B9=D0=BB=D0=BE=D0=B2 >> >> Date: Sat, 8 May 2021 19:55:10 +0300 >>=20 >> (my-mins-between "11:30" "12:04") >>=20 >> (defun my-mins-between (time1 time2) >> "Return the minutes between HH:mm strings TIME1 and TIME2." >> (let ((diff (apply #'time-subtract >> (mapcar (lambda (time) >> (encode-time (decoded-time-set-defaults >> (parse-time-string time)))) >> (list time1 time2))))) >> (/ (float-time diff) 60))) >>=20 >> Debugger entered--Lisp error: (error "Invalid time specification") >> encode-time((0 30 11 1 1 0 nil -1 nil)) >> (lambda (time) (encode-time (decoded-time-set-defaults (parse-time-str= ing time))))("11:30") >> mapcar((lambda (time) (encode-time (decoded-time-set-defaults (parse-t= ime-string time)))) ("11:30" >> "12:04")) > > I guess the problem is in decoded-time-set-defaults, if anywhere. Lars? FWIW there is a similar pattern in the function iso8601--encode-time. BTW I just noticed that decoded-time-set-defaults was mistakenly announced in NEWS as encoded-time-set-defaults - should that be fixed on emacs-27 or master? > However, I'm not sure I understand the idea behind your > my-mins-between: how did you expect Emacs to guess the year you had in > mind? The year doesn't matter, since my-mins-between cares only about the relative difference between strings of the form "HH:mm", i.e. the hours and minutes fields. The other decoded time fields resulting from parsing don't matter, as long as they are equivalent for both strings. Thanks, --=20 Basil From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 04:27:39 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 08:27:39 +0000 Received: from localhost ([127.0.0.1]:55021 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfemo-00029A-UD for submit@debbugs.gnu.org; Sun, 09 May 2021 04:27:39 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34438) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfemm-000294-9C for 48298@debbugs.gnu.org; Sun, 09 May 2021 04:27:37 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56264) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfemg-00008l-FT; Sun, 09 May 2021 04:27:30 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3516 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfemg-00038r-0U; Sun, 09 May 2021 04:27:30 -0400 Date: Sun, 09 May 2021 11:27:32 +0300 Message-Id: <83fsyw8g7f.fsf@gnu.org> From: Eli Zaretskii To: "Basil L. Contovounesios" In-Reply-To: <87fsyw5nfg.fsf@tcd.ie> (contovob@tcd.ie) Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48298 Cc: larsi@gnus.org, 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: "Basil L. Contovounesios" > Cc: Евгений Михайлов > , 48298@debbugs.gnu.org > Date: Sun, 09 May 2021 09:19:47 +0100 > > > I guess the problem is in decoded-time-set-defaults, if anywhere. > > Lars? As the minimum fix, perhaps instead of using zero as the missing year we should use 1970, as zero could not be representable on some systems. > BTW I just noticed that decoded-time-set-defaults was mistakenly > announced in NEWS as encoded-time-set-defaults - should that be fixed on > emacs-27 or master? Master, I guess. > > However, I'm not sure I understand the idea behind your > > my-mins-between: how did you expect Emacs to guess the year you had in > > mind? > > The year doesn't matter, since my-mins-between cares only about the > relative difference between strings of the form "HH:mm", i.e. the hours > and minutes fields. Yes, it does matter: see the comment by Andreas. From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 04:54:46 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 08:54:46 +0000 Received: from localhost ([127.0.0.1]:55141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lffD1-0002Rr-0V for submit@debbugs.gnu.org; Sun, 09 May 2021 04:54:46 -0400 Received: from mail-wm1-f46.google.com ([209.85.128.46]:33602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lffCz-0002Ri-97 for 48298@debbugs.gnu.org; Sun, 09 May 2021 04:54:41 -0400 Received: by mail-wm1-f46.google.com with SMTP id o26-20020a1c4d1a0000b0290146e1feccdaso8285480wmh.0 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 01:54:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=oq9HlQBCYHv3HCyN/ojHv5zMU04o48526xeOGixu8vM=; b=ayZJdrEXmEYPjXQlUdYVhfiWfwKeYHqzH5ZPQOJz/bCAeEhpUnsW2U9xApJfUTEajd qiVWERMVgpvTRCnBrvFNC9Mb4WnWfSRvqWNUYluY5mHY6rmzOXIkZkiElMBw1j9nh5RV Zs4hSDjw2QZnoNaeafxQtgdY8EKxyxQxDFeHxQHXHcMVfhzRDoq6VPwgIgxJ2dHl+4d1 orZko8IoPRmmHoHbN970lYh1H1Cah7URhORfg9DVbiixyB76pM92XNIA8XzfhVSxt1Zl gqKIOSQtML0mb2lRscFfPIRE86JdS9/l534nszD4iceIxnx6xm0hVHAlcsWe8TPHivaj 3Pmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=oq9HlQBCYHv3HCyN/ojHv5zMU04o48526xeOGixu8vM=; b=lgE/wLFPf2mVrwU/b5zAhz6IT01u64kZ+o7UH81ktXM8gC2+xoVuFt01n3jjAmfF86 TUPIvdcYQY0XfTgVbbpOpA4rafVwjg8e9j7aCDezK/2XnZBXKgNmuBQ76rW56ANwPq/B Tz1rB6gzFvLdexopuY/6yYzy8bMQbokCbKXJaR+Mo86PfeXGK03ai1qhfIIHpTzDnbXO cA/oWfT7wVs9DAKI1nsk+T4vHycYIe0LUqXjn+o//brwQekjH59xBhTU3Zud42h+VaMZ xHdnevW7MpEYtJ0xEtVQZGFvx5RBqhCtpMzVX+RR2I2B0z9S1d03CzlJugzbqcMpBBLH NOig== X-Gm-Message-State: AOAM533HKw2h9+H9CwD2vKX6YFVrrBHnq8lv9Ls1kJbnhoFv46GKkvsF XyUHBTvF7xJ42FIqL8Kg4cYOCQ== X-Google-Smtp-Source: ABdhPJxXItVTiYmFz1kdnG+FoltaXeK50SoCcQAZaExftE7gi4DPjboP3E1KeuPjN3yIJkTVY3uxqw== X-Received: by 2002:a05:600c:b54:: with SMTP id k20mr20405498wmr.189.1620550475426; Sun, 09 May 2021 01:54:35 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id z6sm14467442wmf.9.2021.05.09.01.54.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 01:54:34 -0700 (PDT) From: "Basil L. Contovounesios" To: Eli Zaretskii Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> Date: Sun, 09 May 2021 09:54:32 +0100 In-Reply-To: <83fsyw8g7f.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 May 2021 11:27:32 +0300") Message-ID: <87tunc4793.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: larsi@gnus.org, 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Cc: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0=B0= =D0=B9=D0=BB=D0=BE=D0=B2 >> , 48298@debbugs.gnu.org >> Date: Sun, 09 May 2021 09:19:47 +0100 >>=20 >> > I guess the problem is in decoded-time-set-defaults, if anywhere. >>=20 >> Lars? > > As the minimum fix, perhaps instead of using zero as the missing year > we should use 1970, as zero could not be representable on some > systems. Also 1970 is implied by the function's docstring and announcement. All tests seem to pass with this: --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Default-to-1970-in-decoded-time-set-defaults.patch >From 3bb0de4f76265d3be28c0b38046f1a08d93259b9 Mon Sep 17 00:00:00 2001 From: "Basil L. Contovounesios" Date: Sun, 9 May 2021 09:50:00 +0100 Subject: [PATCH] Default to 1970 in decoded-time-set-defaults * lisp/calendar/time-date.el (decoded-time-set-defaults): Set an unspecified year field to 1970, as promised in the docstring, and to ensure it's representable on all systems (bug#48298). --- lisp/calendar/time-date.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/calendar/time-date.el b/lisp/calendar/time-date.el index 2df57a3c33..e93a74810d 100644 --- a/lisp/calendar/time-date.el +++ b/lisp/calendar/time-date.el @@ -539,7 +539,7 @@ decoded-time-set-defaults (unless (decoded-time-month time) (setf (decoded-time-month time) 1)) (unless (decoded-time-year time) - (setf (decoded-time-year time) 0)) + (setf (decoded-time-year time) 1970)) ;; When we don't have a time zone, default to DEFAULT-ZONE without ;; DST if DEFAULT-ZONE if given, and to unknown DST otherwise. -- 2.30.2 --=-=-= Content-Type: text/plain Evgeny, does that fix the error that you see? >> BTW I just noticed that decoded-time-set-defaults was mistakenly >> announced in NEWS as encoded-time-set-defaults - should that be fixed on >> emacs-27 or master? > > Master, I guess. Done in 3d276324ed. >> > However, I'm not sure I understand the idea behind your >> > my-mins-between: how did you expect Emacs to guess the year you had in >> > mind? >> >> The year doesn't matter, since my-mins-between cares only about the >> relative difference between strings of the form "HH:mm", i.e. the hours >> and minutes fields. > > Yes, it does matter: see the comment by Andreas. In general, sure, but perhaps not in Evgeny's specific use case as described in https://bugs.gnu.org/48290#11. Thanks, -- Basil --=-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 05:52:16 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 09:52:16 +0000 Received: from localhost ([127.0.0.1]:55207 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfg6i-0005IR-G4 for submit@debbugs.gnu.org; Sun, 09 May 2021 05:52:16 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfg6h-0005IJ-5I for 48298@debbugs.gnu.org; Sun, 09 May 2021 05:52:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=2pR5zv2eVK+YJ7hM1G8zf5u2KYoTiNuU0mCbZ/z2XXM=; b=iYvvC+kzSq2592qmTlHFJTwRAI d4JlozhZAXDufM1yOcLmxoeQXmD33MJT0IA7lwXE80G1NwNu6thEfNqLu/Aq4gks3NhDGHasM5bGD szB0se+saXUaJt2srBX/6yZZaXea3u0GchkH3sA8Lnt2yPoOSVoS61D6U/CSRMDexsSk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfg6Y-0007w9-QK; Sun, 09 May 2021 11:52:09 +0200 From: Lars Ingebrigtsen To: "Basil L. Contovounesios" Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEVeJR1kV0nu59mz jGy9PikjGBf///9hKlCnAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UFCBMTHZuAt2wAAAGUSURBVDjL bZTdboMwDIUdLbnHRXmAZdr9gul9JLJ7UOf3f5XZ+aGUYqkS+Os5xnYAQMOEEH4gH6PkYVKQ34C7 hQuwAjxCiN7ACTC4KXhmM+T0CtZN82zkxr4Avt0lv47zfLJaI1dAJ7CJEQqgMzDMj0/m7U0hcfsW rywgncDomK0COIESFuAaqNslkCu4BNnJ2GxpnpZZhug6SDYnQV2h/Uk4znmZf9Pu1oEo8ly2I8ml gHsDcpcsHBQd8J+W2IvAFvcOs+tg0dXS3l49GV3B1J7XJuiRlyUBj/tEniCTgIfvJQ4SuWaOu6Jo xgFxViveWt66AnAwGEcAnUb5taeVgyxoGAQYVtydAD4wIirY/ArOyZmwtimwAfT6fxnjoRUxQUb0 fbMHgpFX1aIrZ+FJiDwbHGnydUjpCbRBEfm679zBF0WtAMbZPtcaIRA6eSip0byaWwhfEXUY7vna pAqUDHVDcHDTF1bqDPvqbJOEGkT9A3ACxy/DXLyqExEN76ApWnqRE61e74DyFZCjdgDTC6gt/gNM Q9/CTYz7bQAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0wNS0wOFQxOToxOToyOSswMDowMKaRTf0A AAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMDhUMTk6MTk6MjkrMDA6MDDXzPVBAAAAAElFTkSu QmCC X-Now-Playing: Rodney Stepp's _Space Funk_: "Break-Out" Date: Sun, 09 May 2021 11:52:06 +0200 In-Reply-To: <87tunc4793.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 09 May 2021 09:54:32 +0100") Message-ID: <87zgx4nsjd.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Basil L. Contovounesios" writes: > (unless (decoded-time-year time) > - (setf (decoded-time-year time) 0)) > + (setf (decoded-time-year time) 1970)) Sure; that makes as much sense as anything, but the doc string should perhaps mention it. (All the other defaults are as zero-ish as possible, and 1970 is used here only because of technical limitatio [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: Eli Zaretskii , 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Basil L. Contovounesios" writes: > (unless (decoded-time-year time) > - (setf (decoded-time-year time) 0)) > + (setf (decoded-time-year time) 1970)) Sure; that makes as much sense as anything, but the doc string should perhaps mention it. (All the other defaults are as zero-ish as possible, and 1970 is used here only because of technical limitations.) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 06:04:09 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 10:04:09 +0000 Received: from localhost ([127.0.0.1]:55231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfgIC-0007ag-UW for submit@debbugs.gnu.org; Sun, 09 May 2021 06:04:09 -0400 Received: from mail-wr1-f43.google.com ([209.85.221.43]:44787) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfgIB-0007aI-6u for 48298@debbugs.gnu.org; Sun, 09 May 2021 06:04:07 -0400 Received: by mail-wr1-f43.google.com with SMTP id l13so13535491wru.11 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 03:04:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=IN9rDylicn272Y7lme1tk1B2YAydIw6jSTMUDpODKfM=; b=UubOnDg+CTSKUTy6w2bqnHntFlCWdvgUU2dHrUdPuiLlIy00Ot7UQz6FvjUCA4RC7D ThGu0u+zsZtLuyfOGLp+YNFxVGANPURh0aQCfIE9U1LAhh2sniyEruoOwmu8kRkDxZ3b UuR/nBB/ETo+2jf5vqLeufONF3VS74kifEgyH6a/yT1zv+Wk5mDmrXNR640t+YaH+Du5 Le95E1iCaarmf788qrUG56TQz0sfZhrWTf/jdKaHBqwzflpJnp9VTZWYKB0+FIsBdQiM k3Ui1U1fIt1gpXB6bp4MbF3IATFza4dLHhdPQrL5hFMiJGCIvtKT1LeUyvV7f9atfkb5 pe6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=IN9rDylicn272Y7lme1tk1B2YAydIw6jSTMUDpODKfM=; b=pETRnTJMV1SniqlnnOIm13Zx5SoEimHaCM+DAFZWJEjjyV+DUHiQOtW1Or3QyYeuVt mM/PZpbAunJGs1/fgexYDC8DCQHcqJtvyNzKidVu+v7koXXLOWxSE+hBBAQdJoa/DhE6 TjfN5SMx8O0aGdlF6h2d7GMHfaDGu7w5+a/+Lb5r7cFEb6/2MU5dv2ntxtlO1xfNHefN x7HgAJeAqsBwpDjERYUhuadYksMqFYFIOaCak42U/JJXtFkcw59Kk1tCp3Aoq2i57hTD YS8VbCEUB0T/jWX5Mzb+1FMklwRNxjQgN7rlyUfanmAunjGpSV6XmTb658MJ5QcX8O+Q lwCA== X-Gm-Message-State: AOAM531ry5qJef0aeMB7lnng7YKOPrYOD1uAgIstu0zVcgZsEFhQcsM+ bJlF0yyEjvrSFjXA7mwcqZvdfA== X-Google-Smtp-Source: ABdhPJyJ9AweM24g9TO4fGZJWQR/VA/4NabnAYXrFOuEQH3gedyf4aCzFHdb8l/JbuzV2F9ZrcPnVw== X-Received: by 2002:adf:fd81:: with SMTP id d1mr24175916wrr.37.1620554641410; Sun, 09 May 2021 03:04:01 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id g19sm14377018wme.48.2021.05.09.03.04.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 03:04:01 -0700 (PDT) From: "Basil L. Contovounesios" To: Lars Ingebrigtsen Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <87zgx4nsjd.fsf@gnus.org> Date: Sun, 09 May 2021 11:03:59 +0100 In-Reply-To: <87zgx4nsjd.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 May 2021 11:52:06 +0200") Message-ID: <87k0o8441c.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: Eli Zaretskii , 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> (unless (decoded-time-year time) >> - (setf (decoded-time-year time) 0)) >> + (setf (decoded-time-year time) 1970)) > > Sure; that makes as much sense as anything, but the doc string should > perhaps mention it. It already does: The default value is based on January 1st, 1970 at midnight. Can it be clarified further? > (All the other defaults are as zero-ish as possible, and 1970 is used > here only because of technical limitations.) Is it worth mentioning in the docstring that 1970 is chosen to guarantee portability, similar to the note in encode-time's docstring? Thanks, -- Basil From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 06:09:52 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 10:09:52 +0000 Received: from localhost ([127.0.0.1]:55243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfgNk-0007du-82 for submit@debbugs.gnu.org; Sun, 09 May 2021 06:09:52 -0400 Received: from quimby.gnus.org ([95.216.78.240]:52466) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfgNh-0007dm-Sx for 48298@debbugs.gnu.org; Sun, 09 May 2021 06:09:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FBFDbZ8WDllhJQ43OmCnpXvpiEqmcLFGznDUxpSOKYk=; b=HK6Z4BwtfWsR3kCBA8J3n4QjRZ ugrw3JkFLkhqoQnSNMeeT1yh/KOh1YE2QSatWUPZSWIZ1vsofbVPH0F6aNvPnVDmUrKgzXpO+v3/Y TzSOwOrgDtzRRsTv+E0wKxvxdggrXUgf2gRjx+f45t+Ly1jm7neVq22Oq7AXoHWp2tno=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfgNZ-000861-Ij; Sun, 09 May 2021 12:09:43 +0200 From: Lars Ingebrigtsen To: "Basil L. Contovounesios" Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <87zgx4nsjd.fsf@gnus.org> <87k0o8441c.fsf@tcd.ie> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEX9/P3T0tOdm5ts aGhPTEuBfX0/PDv////akPEOAAAAAWJLR0QHFmGI6wAAAAd0SU1FB+UFCQk0IccnOE0AAAGpSURB VDjLtZRLcsIwDIZJZtgnBfY00H2LzAGIhNeUTE9Q1/c/QvXLdh6Ubc3w0me9paxW/3La9pm0eiGh 8+tf+cAi5MKpebDiJJ1wbZb3VRajoX5ONmQgQEU+ZmAg56MBvCeVmsiJB/BRX5cRHAimVKQaXnwo KnUGAQA/3ovCQOzMb7AI4k8Gdp8tVh80aB+b4ppLfonGm4E1Iah8ojm65OzOE1BTXkKffLM5gRtk qJkENuC4KHhkiIAtk2oCErQyuOD3DyDmDMUAywh8qnDKvWb+ItySXHpXgPBAU3JQ92KAGHJYY8is nrelhkE4NICoErBPALJwV07OWZSwfn03uSSOkga+1G5MYEtjVCi/3orXVF31kQmsaXdiP85IBogI l1I/qrexJMmUSJ6G3ZS5swA4z896aqDTbIWvZaTJp6HKafI4vVt0QVutHTKlcXhrNNWa7lGSfpr2 ow4aOht81IruZ4uDeuvoaAuZ5vux2rk8JIHvyyU8Bt2doAmeHrf24DQq5tnWlq1vOz34U7UtHgXV /d4tlTfDZ9c1eFBknapYbdvnD490fgFY+rbxDBEtFgAAACV0RVh0ZGF0ZTpjcmVhdGUAMjAyMS0w NS0wOVQwOTo1MjozMiswMDowMBNi4QsAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjEtMDUtMDlUMDk6 NTI6MzIrMDA6MDBiP1m3AAAAAElFTkSuQmCC X-Now-Playing: Zonal's _Wrecked_: "Medulla" Date: Sun, 09 May 2021 12:09:41 +0200 In-Reply-To: <87k0o8441c.fsf@tcd.ie> (Basil L. Contovounesios's message of "Sun, 09 May 2021 11:03:59 +0100") Message-ID: <87czu0nrq2.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: "Basil L. Contovounesios" writes: > It already does: > > The default value is based on January 1st, 1970 at midnight. > > Can it be clarified further? Oh, so it was just a bug... Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: Eli Zaretskii , 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) "Basil L. Contovounesios" writes: > It already does: > > The default value is based on January 1st, 1970 at midnight. > > Can it be clarified further? Oh, so it was just a bug... >> (All the other defaults are as zero-ish as possible, and 1970 is used >> here only because of technical limitations.) > > Is it worth mentioning in the docstring that 1970 is chosen to guarantee > portability, similar to the note in encode-time's docstring? Sure; makes sense. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 06:35:24 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 10:35:24 +0000 Received: from localhost ([127.0.0.1]:55279 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfgmS-0001mW-5g for submit@debbugs.gnu.org; Sun, 09 May 2021 06:35:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52608) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfgmP-0001mO-S7 for 48298@debbugs.gnu.org; Sun, 09 May 2021 06:35:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58156) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfgmK-0004KV-5Z; Sun, 09 May 2021 06:35:16 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3555 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfgmJ-0005gw-N8; Sun, 09 May 2021 06:35:16 -0400 Date: Sun, 09 May 2021 13:35:15 +0300 Message-Id: <838s4o8aak.fsf@gnu.org> From: Eli Zaretskii To: "Basil L. Contovounesios" In-Reply-To: <87tunc4793.fsf@tcd.ie> (contovob@tcd.ie) Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48298 Cc: larsi@gnus.org, 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: "Basil L. Contovounesios" > Cc: larsi@gnus.org, lewwadoo@gmail.com, 48298@debbugs.gnu.org > Date: Sun, 09 May 2021 09:54:32 +0100 > > >> BTW I just noticed that decoded-time-set-defaults was mistakenly > >> announced in NEWS as encoded-time-set-defaults - should that be fixed on > >> emacs-27 or master? > > > > Master, I guess. > > Done in 3d276324ed. You've changed NEWS.27, it seems? That's not what I meant, it will just create merge conflicts when NEWS from emacs-27 are merged. I thought you were talking about NEWS on master, not NEWS.27. From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 06:59:14 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 10:59:14 +0000 Received: from localhost ([127.0.0.1]:55322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfh9W-00020t-21 for submit@debbugs.gnu.org; Sun, 09 May 2021 06:59:14 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:50719) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfh9U-00020j-KV for 48298@debbugs.gnu.org; Sun, 09 May 2021 06:59:13 -0400 Received: by mail-wm1-f51.google.com with SMTP id n84so7607722wma.0 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 03:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=6O6bt6SMZ71TFSbfxIIvngS/JGQZfOzuiIoQWjZWqIM=; b=PVMXzCPFv2D5/dUohihoQJoo14OA12P/my/leblG4zcWeAMOwOO2G/2KrQWbr8LqH5 t1U6RKPDHeJt6eT7aRR26Xb7xJEw/MgzQrh0xlN85QDcnnlkdjjSjOxaLLAUEdywG2qJ PZgUvzkgdzOQgixqyYIE6AswLgqtPvptA6N/4A21kZjfTfzJL4bRpdeFkAcsQcRPfY0P ArFrwQJTw/ExsyLtXzkV3McDrbYi417NOCnYR1Tgkwg/GcV6IXQjUzXruc2VpYuH//WR ngsJKmrI1fKioDFm/LvLnXo4zVbkyzs+MCsy74E0Bbz4FgGpl5cJw8UCD3geZa6GjXZS bFwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=6O6bt6SMZ71TFSbfxIIvngS/JGQZfOzuiIoQWjZWqIM=; b=BNBbbwyEn+qKwIdonFROHM/62iKKvUdniwdBN7QnFtGjkHtavBqGn7SlSI0aZWelio 0hmJ0kOr49aXGUNbCpupgRBPLwSm6l4dLiYEdI0KRInkKvuMzlY04DwW+XV1k+dylkpy BxQERHTVcHlPgFhFZS0vyY7UNITvLZkdx3CFptVpqNtfA7N9sbub9Qi3D8DvMd/f8BbE i32bxR8/05rOEUplN9ditKka0DeXJN+EbWo4dNX6tTWJ3SZHGKwtev1fROlDy3w0uriM kN1XN/OHw9aO5tlPOR4sww4ZEmjhCGJnnSaIYj4urNxRi49Uluath9JoUv2RCV0y2Wx3 seIQ== X-Gm-Message-State: AOAM530imHU5wa8NbD83J0ckClf7FRAXEgYzXN/yHpcXsMIilIKm8ZQG bw+mXI66vA1BSnlxHs3xdtHfkg== X-Google-Smtp-Source: ABdhPJwx4g7DohQhiaQr3KduoOGRA9uHAAeI/R4qm6uojBu9EgAXvfaC8z4MD2y8Fh7W33oCRbisvg== X-Received: by 2002:a7b:c0cf:: with SMTP id s15mr31636199wmh.110.1620557946717; Sun, 09 May 2021 03:59:06 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id y15sm17781493wrh.8.2021.05.09.03.59.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 03:59:06 -0700 (PDT) From: "Basil L. Contovounesios" To: Eli Zaretskii Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <838s4o8aak.fsf@gnu.org> Date: Sun, 09 May 2021 11:59:04 +0100 In-Reply-To: <838s4o8aak.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 May 2021 13:35:15 +0300") Message-ID: <87a6p441hj.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: larsi@gnus.org, 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Cc: larsi@gnus.org, lewwadoo@gmail.com, 48298@debbugs.gnu.org >> Date: Sun, 09 May 2021 09:54:32 +0100 >> >> >> BTW I just noticed that decoded-time-set-defaults was mistakenly >> >> announced in NEWS as encoded-time-set-defaults - should that be fixed on >> >> emacs-27 or master? >> > >> > Master, I guess. >> >> Done in 3d276324ed. > > You've changed NEWS.27, it seems? That's not what I meant, it will > just create merge conflicts when NEWS from emacs-27 are merged. I > thought you were talking about NEWS on master, not NEWS.27. Sorry. Should I revert that commit on master and make the change in etc/NEWS on emacs-27 instead? -- Basil From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 07:02:16 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 11:02:16 +0000 Received: from localhost ([127.0.0.1]:55334 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfhCS-00024V-9l for submit@debbugs.gnu.org; Sun, 09 May 2021 07:02:16 -0400 Received: from mail-wm1-f45.google.com ([209.85.128.45]:43977) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfhCQ-00024N-Cn for 48298@debbugs.gnu.org; Sun, 09 May 2021 07:02:14 -0400 Received: by mail-wm1-f45.google.com with SMTP id b19-20020a05600c06d3b029014258a636e8so7261015wmn.2 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 04:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=13VF0OHKQgoSuwNxPjhSbgkQiUZWP9Ny/MTB4b/BuqE=; b=aB0PLilZHvF8zDhZD/pae1vOtSPc9/78KOrb5L2etrkVqoBw/oqTUFT4Z0BNMQErRh x0po6DWieM64MrpD4dq6FQeE1cHS/+fQ3ovudTyO1YjzR43OzfliBjNbwSRPUL2Zh/ee RKgrqCWI88TUXx4Y3rkYkN+2sDCzXidpX6f3O1nFIlykWP6f7UZIZxWjGDVXCTxuxXB3 a4leCrsUYKD+ZzNt8RQax95zpwvQntwGGKJsus07kWainW+r2iFhCRaOAPYjTb3KJoAT ToWTyyJdf+qcsm9F2YAoIlz8Bso9k486uBS2UJu8d8Dm4L7WfalKd5u6NcLzKar4IiAY cHvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=13VF0OHKQgoSuwNxPjhSbgkQiUZWP9Ny/MTB4b/BuqE=; b=RAq6jVcUMfmxUBJ6ibXiv6PXRCJMssZCUksHOsiKmVydBDxGunyTeN6BRjaqYQIh+3 EQYXB+eJZ2FYAW2PVhBWI3xxQqCFU/joqUZ2W7dG+F/cBIb1uT1PV6xw+GRUUH91FFsa jBwCgk3ZvXx7/bcWySbWW73g6J2kKHOXtniXO20dzn/vDGiM8gD9SlPSGyb6n0CVd3/r sbX3KyHqPyFMlPVd+M4JQDq17Oxk9x/9fVlragVnIHPYQ+LQIIH4jhlb9zvVrYg/mERA A9NVIykyH/XC9L4MBF6LUvlE4zbKl7i6zm0IcZTlLPtmymea91QHdUWYtvXJIbnZaS+b zU5g== X-Gm-Message-State: AOAM532kZnxxNIy3CTae6RPKWzRwdYkEa5J0mN9YNxS/KEpkITL47Pvp yp3Nl0KacYi75kESjp4Bz1we1g== X-Google-Smtp-Source: ABdhPJyFYEpW1laTu6tTSU/RT85jrQYQoC13HoL0/dHdna7p00UYwSNmdW4ReFVHJcb8YRTN4Dtoww== X-Received: by 2002:a7b:c344:: with SMTP id l4mr31505462wmj.120.1620558128825; Sun, 09 May 2021 04:02:08 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id v21sm21227312wml.5.2021.05.09.04.02.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 04:02:08 -0700 (PDT) From: "Basil L. Contovounesios" To: Lars Ingebrigtsen Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <87zgx4nsjd.fsf@gnus.org> <87k0o8441c.fsf@tcd.ie> <87czu0nrq2.fsf@gnus.org> Date: Sun, 09 May 2021 12:02:06 +0100 In-Reply-To: <87czu0nrq2.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 09 May 2021 12:09:41 +0200") Message-ID: <874kfc41ch.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: Eli Zaretskii , 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Lars Ingebrigtsen writes: > "Basil L. Contovounesios" writes: > >> It already does: >> >> The default value is based on January 1st, 1970 at midnight. >> >> Can it be clarified further? > > Oh, so it was just a bug... > >>> (All the other defaults are as zero-ish as possible, and 1970 is used >>> here only because of technical limitations.) >> >> Is it worth mentioning in the docstring that 1970 is chosen to guarantee >> portability, similar to the note in encode-time's docstring? > > Sure; makes sense. Done: Default to 1970 in decoded-time-set-defaults b376ed7220 2021-05-09 11:52:20 +0100 https://git.sv.gnu.org/cgit/emacs.git/commit/?id=b376ed72204193eba652666fa2540f412f456490 Evgeny, does that solve your issue? Thanks, -- Basil From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 07:49:59 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 11:49:59 +0000 Received: from localhost ([127.0.0.1]:55374 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfhwc-0004iU-RE for submit@debbugs.gnu.org; Sun, 09 May 2021 07:49:59 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32876) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfhwY-0004iN-2t for 48298@debbugs.gnu.org; Sun, 09 May 2021 07:49:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:59424) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfhwS-0005wO-4T; Sun, 09 May 2021 07:49:48 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4130 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfhwR-0002Cc-N0; Sun, 09 May 2021 07:49:48 -0400 Date: Sun, 09 May 2021 14:49:46 +0300 Message-Id: <837dk886ud.fsf@gnu.org> From: Eli Zaretskii To: "Basil L. Contovounesios" In-Reply-To: <87a6p441hj.fsf@tcd.ie> (contovob@tcd.ie) Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <838s4o8aak.fsf@gnu.org> <87a6p441hj.fsf@tcd.ie> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48298 Cc: larsi@gnus.org, 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: "Basil L. Contovounesios" > Cc: larsi@gnus.org, lewwadoo@gmail.com, 48298@debbugs.gnu.org > Date: Sun, 09 May 2021 11:59:04 +0100 > > >> > Master, I guess. > >> > >> Done in 3d276324ed. > > > > You've changed NEWS.27, it seems? That's not what I meant, it will > > just create merge conflicts when NEWS from emacs-27 are merged. I > > thought you were talking about NEWS on master, not NEWS.27. > > Sorry. Should I revert that commit on master and make the change in > etc/NEWS on emacs-27 instead? Yes, please. (I thought you asked about the branch because this could also be called out in Emacs 28's NEWS in some way. Sorry for my misunderstanding.) From debbugs-submit-bounces@debbugs.gnu.org Sun May 09 09:58:10 2021 Received: (at 48298) by debbugs.gnu.org; 9 May 2021 13:58:10 +0000 Received: from localhost ([127.0.0.1]:55451 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfjwf-00064W-MC for submit@debbugs.gnu.org; Sun, 09 May 2021 09:58:09 -0400 Received: from mail-wm1-f54.google.com ([209.85.128.54]:39503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lfjwc-00063z-Fy for 48298@debbugs.gnu.org; Sun, 09 May 2021 09:58:07 -0400 Received: by mail-wm1-f54.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso9665652wmh.4 for <48298@debbugs.gnu.org>; Sun, 09 May 2021 06:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=nCO0UAtYKZoac+WDgTa2ZhARD/GGnVA524ZCibqurM8=; b=WVN+l7yjPhj3L8rkuRItS4MGKtouicnLRAmXRstGgAv/oNM2dLuY9Zz82rShVgujna C/93F7lonIXdNeQfu3XWuvVr8zaz/g7TxU22fRb9aBSHm+WnB89YyLarxDEvyh4R71JM nrXPAM4VSz4/9kM7l3vzkydc1/6dF9TlL520UrNIkv7TqtWYEPcuylpVLnmodpIYfGH2 WEkWq+P6v4AA2Hq/5sa/tPxUo/TOB/whbVVf/BR5WEXCRkdoDDtGYzH9eHGEQloht0a6 tuNWs/2ftZJeHzYkY5ZCDjJJv3iwFbE/URuHkM0iyJpzTRQmK5bxI4jcLpj2uvlOLa96 d5kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=nCO0UAtYKZoac+WDgTa2ZhARD/GGnVA524ZCibqurM8=; b=SlVn/6frUyWUi7KTOnTk7CFC6C/8m5BgNFI+uggO7sXZLf7ZXij4sA/lAkFGAeDTwL QP5cMT/8nWX3GL+oXrNAJMZAbOJVoukDqwPGCItRojWp3wjwQ5RnlBN9n9xjkmbSq2Fi IRegQelOF7fMwiXh0KNzFyRaoTpvazbUzU3vkXEmj9FXHLDefHF6sgvFlsProhaZXXjk CdRWOYrXRBAQEtrRN5VOxLthb5boWjkjvJiaIfiDGqGmK+yHnXqaLSSb2ItKEDQnBHh1 M60PMIvLsZuw1xMhC1/V8Q+WERQUQdmcYDXt4QyG2oFiI6y+Doet8E5BCyE37Mxgw99w 3Zbg== X-Gm-Message-State: AOAM533l7yd/MyV5R/ZFAIWvVECmQYapdM6USIJ820rOVr6yEq/bF/nv ClliqtvIa8SDwr2S0h85ctuPOw== X-Google-Smtp-Source: ABdhPJwxIa9r9E+S4ZGbAUe66WPFAa2NmO6DsVlcaaVENV8/dFVxlLtYb3hyWPP7vqzyKTo5gJBhAQ== X-Received: by 2002:a05:600c:4f8b:: with SMTP id n11mr20966884wmq.11.1620568680508; Sun, 09 May 2021 06:58:00 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:f410:82e8:3a21:eedf]) by smtp.gmail.com with ESMTPSA id p187sm12127365wmp.8.2021.05.09.06.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 06:58:00 -0700 (PDT) From: "Basil L. Contovounesios" To: Eli Zaretskii Subject: Re: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) References: <83tunc8kv3.fsf@gnu.org> <87fsyw5nfg.fsf@tcd.ie> <83fsyw8g7f.fsf@gnu.org> <87tunc4793.fsf@tcd.ie> <838s4o8aak.fsf@gnu.org> <87a6p441hj.fsf@tcd.ie> <837dk886ud.fsf@gnu.org> Date: Sun, 09 May 2021 14:57:58 +0100 In-Reply-To: <837dk886ud.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 09 May 2021 14:49:46 +0300") Message-ID: <87v97sypp5.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 48298 Cc: larsi@gnus.org, 48298@debbugs.gnu.org, lewwadoo@gmail.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Eli Zaretskii writes: >> From: "Basil L. Contovounesios" >> Cc: larsi@gnus.org, lewwadoo@gmail.com, 48298@debbugs.gnu.org >> Date: Sun, 09 May 2021 11:59:04 +0100 >> >> >> > Master, I guess. >> >> >> >> Done in 3d276324ed. >> > >> > You've changed NEWS.27, it seems? That's not what I meant, it will >> > just create merge conflicts when NEWS from emacs-27 are merged. I >> > thought you were talking about NEWS on master, not NEWS.27. >> >> Sorry. Should I revert that commit on master and make the change in >> etc/NEWS on emacs-27 instead? > > Yes, please. Done: ; * etc/NEWS.27: Revert last change. 3d2c892114 2021-05-09 14:49:23 +0100 https://git.sv.gnu.org/cgit/emacs.git/commit/?id=3d2c892114ebd35cb10928bb87f991316a0ca55c ; * etc/NEWS: Fix decoded-time-set-defaults typo. c233f4eccd 2021-05-09 14:46:27 +0100 https://git.sv.gnu.org/cgit/emacs.git/commit/?id=c233f4eccddf09e41441b2a292491b469fd61792 > (I thought you asked about the branch because this could also be > called out in Emacs 28's NEWS in some way. Sorry for my > misunderstanding.) No, it's my fault for not making that clear. Sorry for any issues it causes. Thanks, -- Basil From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 09:29:48 2021 Received: (at control) by debbugs.gnu.org; 11 May 2021 13:29:48 +0000 Received: from localhost ([127.0.0.1]:35397 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSSK-0006be-Lf for submit@debbugs.gnu.org; Tue, 11 May 2021 09:29:48 -0400 Received: from quimby.gnus.org ([95.216.78.240]:46796) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgSSJ-0006bR-7I for control@debbugs.gnu.org; Tue, 11 May 2021 09:29:47 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=4VP2al3i25QTUwAyO6NFRaUapnLt+RvHODMNVldG1IU=; b=P9UaBvPLvPfZ73woXwbPBJxGgY IZ/A8JUjROveboAoYhqq7zz+XXbtlSdL+1u6Fc37VFTE1x+L/ywK/hnXvWA/LDWNEVRYIladquGK+ slI7AfnYznCWRK3KDaXxr2CZdmwT+Oy9XMeMEQ3kZ8erZYk/rI5LZ8yKffwLnX+kYkDk=; Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lgSSB-0005Rv-GD for control@debbugs.gnu.org; Tue, 11 May 2021 15:29:41 +0200 Date: Tue, 11 May 2021 15:29:39 +0200 Message-Id: <87cztxo0u4.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #48290 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 48290 + moreinfo quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 48290 + moreinfo quit From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 16:57:09 2021 Received: (at 48298) by debbugs.gnu.org; 11 May 2021 20:57:09 +0000 Received: from localhost ([127.0.0.1]:37635 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZRF-0003rb-Dy for submit@debbugs.gnu.org; Tue, 11 May 2021 16:57:09 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:45901) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lgZRD-0003r9-BM for 48298@debbugs.gnu.org; Tue, 11 May 2021 16:57:07 -0400 Received: by mail-lj1-f179.google.com with SMTP id v5so26847932ljg.12 for <48298@debbugs.gnu.org>; Tue, 11 May 2021 13:57:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=8p+ILx1GJgR3ibl4fr/6Lha+Gz5Z9p58O2bGUThvspE=; b=RF24R0xTHD3/oaZPEVjiBdRL4yB5t8g7V6s8UYBrzbWv+o6t/y6rP3jRqN04rrtjFP k+yAHL7tJ9UXaJI83/215MXkw7ri9qLgiD/OS1UR8DawXdTMFQ57N/QY4GDV4kAT9QOQ 06R99wL/mlUG6kj55XXCsRUICkrgu6ZBPzpCGqptB1XrRZNc0LoJuvCObz7nCJ4A7SzR +klXrW4nyvL3QCFrPVeedwuy+NZXFmNkr2/LM9Pxq8ys4NvtH66dmBM+ZZfQV+Blcp7/ c5wh0mNgPirpNZ7bYLZs7wBLFI0c3TJ6rxn3q9OusSZNHkEI5cX8fe8J4Ze3r1kfSujh khKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=8p+ILx1GJgR3ibl4fr/6Lha+Gz5Z9p58O2bGUThvspE=; b=lEtbciFsLzXTzrwpPsg3MYq4ksTIJSLhnN7RQWAtfoS7ydqEZteCk51vIxuLrDVeA9 ItdlYhLZiirGwIMOqjAzxkkjM7qxthyryEOuUvg0GnadQA7v6jxvWZ0l1ZkxAOUr2Cp9 Ak3+HhsP8rGgY6o/BCJJeb3sIMJTMhYSWofEYH2DFeu27FM3K/nFOFj3HOy3WXqDMIyV erEl9l9G1cLlOckj7+1NRenIQNX5Ai5Y57Lb/Rg12KTZgV6XNQX3xML32OBi11j7QQ33 rAlGHrS8JRrkf3QpDq8gVhAmPXM58CJJhXis+BgFXFypwMCfz2oGDCJo4cM6GqwmtDwq 3igQ== X-Gm-Message-State: AOAM533H7zKv7Dn7VaFn3EI42I9YMnyDfisPNDbLkPT2x/zosZoPAn9X VMBpvp3mgEq+yYwYxGYG9PiPO2Bam+UW2Cltr9Qsonffs2DZtQ== X-Google-Smtp-Source: ABdhPJwbdVwTdYg6pU/l+R7UTkzsLM1dUhMjw2creYwJCyjNkbOHi0aY26xDM6HSXZcAyMnUu8Qmho76qgX866r5NJg= X-Received: by 2002:a2e:8796:: with SMTP id n22mr18768236lji.257.1620766620657; Tue, 11 May 2021 13:57:00 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= Date: Tue, 11 May 2021 23:56:49 +0300 Message-ID: Subject: To: 48298@debbugs.gnu.org Content-Type: multipart/alternative; boundary="000000000000b02d8705c214225d" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: вс, 9 мая 2021 г. в 11:54, Basil L. Contovounesios : > Eli Zaretskii writes: > > >> From: "Basil L. Contovounesios" > >> Cc: Евгений Михайлов > >> , 48298@debbugs.gnu.org > >> Date: Sun, 09 May 2021 09:19:47 +0100 > >> > >> > I guess [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (lewwadoo[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.208.179 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.208.179 listed in wl.mailspike.net] 0.0 HTML_MESSAGE BODY: HTML included in message 2.0 BLANK_SUBJECT Subject is present but empty X-Debbugs-Envelope-To: 48298 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) --000000000000b02d8705c214225d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable =D0=B2=D1=81, 9 =D0=BC=D0=B0=D1=8F 2021 =D0=B3. =D0=B2 11:54, Basil L. Cont= ovounesios : > Eli Zaretskii writes: > > >> From: "Basil L. Contovounesios" > >> Cc: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0= =B0=D0=B9=D0=BB=D0=BE=D0=B2 > >> , 48298@debbugs.gnu.org > >> Date: Sun, 09 May 2021 09:19:47 +0100 > >> > >> > I guess the problem is in decoded-time-set-defaults, if anywhere. > >> > >> Lars? > > > > As the minimum fix, perhaps instead of using zero as the missing year > > we should use 1970, as zero could not be representable on some > > systems. > > Also 1970 is implied by the function's docstring and announcement. > > All tests seem to pass with this: > > > Evgeny, does that fix the error that you see? > It does! (encode-time '(0 30 11 1 1 1970 nil -1 nil)) yielded (0 30600). Thank you guys for your help! --000000000000b02d8705c214225d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
=D0=B2=D1=81, 9 =D0=BC=D0=B0=D1=8F 2021 = =D0=B3. =D0=B2 11:54, Basil L. Contovounesios <contovob@tcd.ie>:
Eli Zaretskii <eliz@gnu.org> writes:

>= ;> From: "Basil L. Contovounesios" <contovob@tcd.ie>
>> Cc: =D0= =95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0= =BB=D0=BE=D0=B2
>>=C2=A0 <lewwadoo@gmail.com>,=C2=A0=C2=A048298@debbugs.gnu.org
>= > Date: Sun, 09 May 2021 09:19:47 +0100
>>
>> > I g= uess the problem is in decoded-time-set-defaults, if anywhere.
>><= br>>> Lars?
>
> As the minimum fix, perhaps instead of us= ing zero as the missing year
> we should use 1970, as zero could not = be representable on some
> systems.

Also 1970 is implied by th= e function's docstring and announcement.

All tests seem to pass = with this:


Evgeny, does that fix the error that you see?

It does! (encode-time '(0 30 11 1 1= 1970 nil -1 nil)) yielded (0 30600). Thank you guys for your help!
--000000000000b02d8705c214225d-- From debbugs-submit-bounces@debbugs.gnu.org Tue May 11 17:37:58 2021 Received: (at control) by debbugs.gnu.org; 11 May 2021 21:37:58 +0000 Received: from localhost ([127.0.0.1]:37679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lga4k-00072F-I8 for submit@debbugs.gnu.org; Tue, 11 May 2021 17:37:58 -0400 Received: from mail-wm1-f51.google.com ([209.85.128.51]:39734) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lga4i-00071w-OJ for control@debbugs.gnu.org; Tue, 11 May 2021 17:37:57 -0400 Received: by mail-wm1-f51.google.com with SMTP id l18-20020a1ced120000b029014c1adff1edso338969wmh.4 for ; Tue, 11 May 2021 14:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd.ie; s=google21; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=F3XrNtnLJHuhBOjqUZPh3CvZeEEqv/Yauayn0e7qR7o=; b=fNW5XipEbxv6goil88mlTwQ2BoFVyCMisjnhWCQdKct0h0Ivf3aQsZWyZQD3WMUMHF gR66yW0QHg1yT9c3jKvqvkLfbJH+3a1TkzMKuWD0Kt3GX/MyekmEUzPBoTHeOrJpko8s 33OFz5uffRqZKgIpRKJ/vSr+MMCU7fsKTlz4QaXo/brB96RPumfZvZN/QccOiq7ebKxc UP6/53uAt2uM88ErNZ4jOkexh94LwhsdG1QYAicFqHoR9CLAFIeVzdHWNc3lPvrWl2Xs cxUdgw1yLzdaNXxnjlk+YBrXYKpRjvZreh1qJvznPVoGbDeIpwxRHvHeq2esRtkHURwW XxBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=F3XrNtnLJHuhBOjqUZPh3CvZeEEqv/Yauayn0e7qR7o=; b=PSMpNaaFTYrj7goU3K9hyaebc7GH4NjrPuR0v7JFz+Hyxtt93ybXmoflGP/1H2gbMD 01X51vERC2LENZyf6CvrrWVAGIv+nhLf7/iVZV2WH/APc42rdken947Unh32xkUnrMz9 HQTqv47XEpt3JG/rqvc8A2sWaMbCVjn0nWLgcfFmrp8AVFxfSLrx1/QuS77X2OD9HbqY qzgCZHFjskjnBHsDFjSB+RgjKOdfgfZlTx2Eyc2wHTL97ViaN9stBdMkhWZDJtyIaZoI 1JYzr2va+Ic/EOFke1O5jbdt78ZjAhVMsBT/zg/Z2hre5MSTS2X37VuIep8mD2U21lQj LFxg== X-Gm-Message-State: AOAM530Blv8sUUFWeYtevdvQ1itlwPZQ81G1isnJYylaPX2Qz0vFbjQj BZ9tSfjwVH9z5PauoadG2uhJXw== X-Google-Smtp-Source: ABdhPJx2u20unLCJmu2kQ81OxbrsIG2Ewc+8CXNQ2ztlLDx50ZYPFuUk9KWoAfQaUoj92YW/sN1I1Q== X-Received: by 2002:a1c:7e93:: with SMTP id z141mr3564345wmc.59.1620769070844; Tue, 11 May 2021 14:37:50 -0700 (PDT) Received: from localhost ([2a02:8084:20e2:c380:d15:339e:aa10:60f1]) by smtp.gmail.com with ESMTPSA id s5sm25298114wmh.37.2021.05.11.14.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 May 2021 14:37:50 -0700 (PDT) From: "Basil L. Contovounesios" To: =?utf-8?B?0JXQstCz0LXQvdC40Lkg0JzQuNGF0LDQudC70L7Qsg==?= Subject: Re: bug#48298: References: Date: Tue, 11 May 2021 22:37:48 +0100 In-Reply-To: (=?utf-8?B?ItCV0LLQs9C10L3QuNC5INCc0LjRhdCw0LnQu9C+0LIiJ3M=?= message of "Tue, 11 May 2021 23:56:49 +0300") Message-ID: <87fsytt0ib.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: control Cc: 48298-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 48298 - moreinfo found 48298 27.1 close 48298 28.1 quit =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0=B0=D0=B9= =D0=BB=D0=BE=D0=B2 writes: > =D0=B2=D1=81, 9 =D0=BC=D0=B0=D1=8F 2021 =D0=B3. =D0=B2 11:54, Basil L. Co= ntovounesios : > > Eli Zaretskii writes: > > >> From: "Basil L. Contovounesios" > >> Cc: =D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9 =D0=9C=D0=B8=D1=85=D0= =B0=D0=B9=D0=BB=D0=BE=D0=B2 > >> , 48298@debbugs.gnu.org > >> Date: Sun, 09 May 2021 09:19:47 +0100 > >> > >> > I guess the problem is in decoded-time-set-defaults, if anywhere. > >> > >> Lars? > > > > As the minimum fix, perhaps instead of using zero as the missing year > > we should use 1970, as zero could not be representable on some > > systems. > > Also 1970 is implied by the function's docstring and announcement. > > All tests seem to pass with this: > > Evgeny, does that fix the error that you see? > > It does! (encode-time '(0 30 11 1 1 1970 nil -1 nil)) yielded (0 30600). = Thank you guys for your help! Thanks for confirming. I'm therefore closing this report. --=20 Basil From unknown Sat Aug 09 15:53:56 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 09 Jun 2021 11:24:09 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator