From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= Newsgroups: gmane.emacs.bugs Subject: bug#48298: Invalid time specification: encode-time((0 30 11 1 1 0 nil -1 nil)) Date: Sat, 8 May 2021 19:55:10 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000f40f0d05c1d46843" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12734"; mail-complaints-to="usenet@ciao.gmane.io" To: 48298@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 08 22:59:48 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lfU39-0003Ck-Eo for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 22:59:47 +0200 Original-Received: from localhost ([::1]:48684 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lfU38-0007ro-I6 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 08 May 2021 16:59:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47080) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lfU2Q-0006sr-BT for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 16:59:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40726) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lfU2Q-0001J2-3w for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 16:59:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lfU2Q-0005Sx-1D for bug-gnu-emacs@gnu.org; Sat, 08 May 2021 16:59:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=D0=95=D0=B2=D0=B3=D0=B5=D0=BD=D0=B8=D0=B9_?= =?UTF-8?Q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 May 2021 20:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48298 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162050748620980 (code B ref -1); Sat, 08 May 2021 20:59:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 8 May 2021 20:58:06 +0000 Original-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 Original-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 Original-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 Original-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 Original-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) 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-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 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206031 Archived-At: --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--