From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 09 11:54:10 2018 Received: (at submit) by debbugs.gnu.org; 9 Jul 2018 15:54:10 +0000 Received: from localhost ([127.0.0.1]:52693 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcYUM-0005NV-3o for submit@debbugs.gnu.org; Mon, 09 Jul 2018 11:54:10 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57278) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcYUI-0005Mz-SW for submit@debbugs.gnu.org; Mon, 09 Jul 2018 11:54:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcYUC-000148-Lg for submit@debbugs.gnu.org; Mon, 09 Jul 2018 11:54:01 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=BAYES_20,FREEMAIL_FROM autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:46982) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fcYUC-000141-HT for submit@debbugs.gnu.org; Mon, 09 Jul 2018 11:54:00 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fcYUB-0007rt-5j for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 11:54:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fcYUA-00013G-4A for bug-gnu-emacs@gnu.org; Mon, 09 Jul 2018 11:53:59 -0400 Received: from mout.gmx.net ([212.227.17.20]:56439) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fcYU6-00011O-6B; Mon, 09 Jul 2018 11:53:54 -0400 Received: from E15-2016.optimum.net ([108.6.168.221]) by mail.gmx.com (mrgmx103 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MD9uq-1ft6tL3otw-00GbNV; Mon, 09 Jul 2018 17:53:48 +0200 Date: Mon, 9 Jul 2018 11:53:44 -0400 From: Boruch Baum To: Emacs Bug Reporting Subject: 25.2; calendar-read-date should default to today [PATCH INCLUDED] Message-ID: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="seavrebpxjibhl45" Content-Disposition: inline User-Agent: NeoMutt/20180512 X-Provags-ID: V03:K1:nLsFmISwt1avRsRKsn27Ff9e6bOXEEONtafFts//l1PtIfnARH3 azFeWUHIbYmCAB9Pq38tnP4p/qMlSlf+SQk2vhElSu4dbR9CrMtStt0OUKKLgCJzpk+mdH1 1ICb6gAi0EGQ6VIsf16QMuU/HEnIPEvPklQmKNYQYmuQrTVZYWVLj1R0o1MriWwdXN2bz1u AF8+E1MVKXdGpe/Z2MWBw== X-UI-Out-Filterresults: notjunk:1;V01:K0:gDiZDz0TvPM=:slKVja9NR51HGqeixYEYci 1YKlHZbSX4wJMPcQw15Qlw3jWBKN4zu2w27jTdSHZ7TI0ZSk0clIwS9yVEVR4PAI5B673KOTt Pcr1/4Ce1LbZRWtNJ8ubBh7iewqWvMCkl8cQYihFfjqLM6DRvtNdRun/d4226As4TsMLk/HHW creDyjDp4FkBv+gOnjs7n2GPx780dMxxThy0dubvzT6lqTfTBH+z7qQlXQPO6C0+3P7bYmsll RhSShEeM/CNxSdwoiw7hiqGT/1ZD0ZWL2erFDrs3Q/CpvM6pxUC+jXWpUgXtw+ocUKFea4yZc rMOuyWeQV78cN+VLZY7ih6Fc06Po9wqAZB69Vmlm1+COOsBa0Zh2i/s99L4bcuyfXB7hBUm7B RZTlKL3Ig6CyDJhGEMWbTYiF7e+zaNBdWBMzQctsCwOs5t7gyHPMsU51WprejN+X8ms9L4xLJ yNOzV/r8O8SEF4AdHOHV4UXBRMVii7PwBuhQAUx5FabVkS11cHaPRv885iBuWBlRrjVvnAKT8 mn4TzM4w1LmMDtBN6Q8RW4gXQH8uVYni37ahWIFmKW6eB14TwO4OhqNrlCrjCJg464/7oTqBP lVyncFc2vxpYQEMFVjza47Z9vD5EnkxkWbE9yMhTaCpD5zhH6jqpSefaugU7/upeSalAFEwv3 lQw0Se+we985IX9PK9NEzLyx+BqnpB79QKwwb9XGQuptEi+ZAbG1EnIe0JY7PuC8JgLBwaiTt 2woOqfEhOKAl06lysANuoe8EUeb5HoZqbp2WkPHM4+Eo43ZjaIsgyIUZXmM= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit Cc: Glenn Morris , "Edward M. Reingold" 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: -5.1 (-----) --seavrebpxjibhl45 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline The behavior of function `calendar-read-date' is inconsistent in that its default is provide the current year, but not the current month or day of the month. Patch attached. In GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-07, modified by Debian built on binet System Description: Devuan GNU/Linux 2.0.0 (ascii) Configured using: 'configure --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --build x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --enable-locallisppath=/etc/emacs25:/etc/emacs:/usr/local/share/emacs/25.2/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/25.2/site-lisp:/usr/share/emacs/site-lisp --with-sound=alsa --without-gconf --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs25-NE1ko4/emacs25-25.2+1=. -fstack-protector-strong -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' LDFLAGS=-Wl,-z,relro' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix -- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 --seavrebpxjibhl45 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="calendar-read-date.patch" --- a.el 2018-07-09 11:50:31.882699070 -0400 +++ b.el 2018-07-09 11:51:07.636744090 -0400 @@ -2243,18 +2243,19 @@ If optional NODAY is t, does not ask for day, but just returns \(month 1 year); if NODAY is any other non-nil value the value returned is \(month year)" - (let* ((year (calendar-read + (let* ((today (calendar-current-date)) + (year (calendar-read "Year (>0): " (lambda (x) (> x 0)) - (number-to-string (calendar-extract-year - (calendar-current-date))))) + (number-to-string (calendar-extract-year today)))) (month-array calendar-month-name-array) (completion-ignore-case t) (month (cdr (assoc-string (completing-read "Month name: " (mapcar 'list (append month-array nil)) - nil t) + nil t nil nil + (aref month-array (1- (calendar-extract-month today)))) (calendar-make-alist month-array 1) t))) (last (calendar-last-day-of-month month year))) (if noday @@ -2263,7 +2264,8 @@ (list month year)) (list month (calendar-read (format "Day (1-%d): " last) - (lambda (x) (and (< 0 x) (<= x last)))) + (lambda (x) (and (< 0 x) (<= x last))) + (number-to-string (calendar-extract-day today))) year)))) (defun calendar-interval (mon1 yr1 mon2 yr2) --seavrebpxjibhl45-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 11:24:41 2019 Received: (at 32105) by debbugs.gnu.org; 24 Jun 2019 15:24:41 +0000 Received: from localhost ([127.0.0.1]:57604 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfQpk-0006pm-Qt for submit@debbugs.gnu.org; Mon, 24 Jun 2019 11:24:41 -0400 Received: from quimby.gnus.org ([80.91.231.51]:60070) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfQpj-0006pd-5M for 32105@debbugs.gnu.org; Mon, 24 Jun 2019 11:24:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfQpa-0004k0-BZ; Mon, 24 Jun 2019 17:24:32 +0200 From: Lars Ingebrigtsen To: Boruch Baum Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> Date: Mon, 24 Jun 2019 17:24:30 +0200 In-Reply-To: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> (Boruch Baum's message of "Mon, 9 Jul 2018 11:53:44 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Boruch Baum writes: > The behavior of function `calendar-read-date' is inconsistent in that > its default is provide the current year, but not the current month or > day of the month. 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: 32105 Cc: Glenn Morris , 32105@debbugs.gnu.org, "Edward M. Reingold" 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 (-) Boruch Baum writes: > The behavior of function `calendar-read-date' is inconsistent in that > its default is provide the current year, but not the current month or > day of the month. I agree; if we get a default year, then everything should get defaults. However: The Emacs standard for prompting these days is to put the default into `M-n', isn't it? The current `calendar-read-date' requires you to delete the default "2019" if you want another year... So perhaps that should also be changed, and today's date for all three questions should be in `M-n'? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 12:53:17 2019 Received: (at 32105) by debbugs.gnu.org; 24 Jun 2019 16:53:17 +0000 Received: from localhost ([127.0.0.1]:57831 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfSDV-00015P-AY for submit@debbugs.gnu.org; Mon, 24 Jun 2019 12:53:17 -0400 Received: from mout.gmx.net ([212.227.17.20]:52175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfSDT-00015B-3A for 32105@debbugs.gnu.org; Mon, 24 Jun 2019 12:53:16 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1561395184; bh=2Gc+2IeppigoeCDFyNqZDcfNp7Vr38yT/VEYBB5vMp4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=IddyN2zJnY0FTNVixqIPKLq77JTLkd/fVdVRS5yU+R71dgeOPZJVBdblbMhh5odk7 zhmoCSOV1/2dk1FVKjc8hlw6xd8eizBtzZQw4dZuSMz1fCSpxokOiQaKVgPp5eghWE VNLijxEjMWXAqPYgwEG3u3eKuA4UXAh2MD7ylwhk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from E15-2016.optimum.net ([72.80.59.205]) by mail.gmx.com (mrgmx102 [212.227.17.174]) with ESMTPSA (Nemesis) id 0M0bo2-1iZsWU1J2E-00urQd; Mon, 24 Jun 2019 18:53:04 +0200 Date: Mon, 24 Jun 2019 12:52:57 -0400 From: Boruch Baum To: Lars Ingebrigtsen Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] Message-ID: <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:SsStZarzP0+SQv/4DITSi6zw5l95Of44QavcegePYPu3s0CIsNy qG0KT3Fn5fRFI40hAkqjfuD1m/Vy/KEepzCVUGdfz745UrwjGmQfyC4IhvseZyfaOAxR8/I 21uhKLS49nDt7+sEMoC1wAr6gypiXTAZHUm0niU7jayHJN5SOpabxx2Zb9aZEjSGtCSb3RI 9VMK2CT20k0HF3xsXthRQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Er5T91h5VzU=:vZdPeSjUfPLrxh8C45UHSe sVZvwQ943CqRHhI91PMdWuY0QPjUhCa1AeziFTgLIkJPRyJ/iE+FBI0uzyf9hACJC2TerlR8q PKxezkiHu8KluL9ufkJOYrN0Smipy9+bJs6bYxGliWs3ivzGrGw5LzJI5SxrVrWXrHfjelG/C QLd+ZN3TABQ+e1pukbcnbsskM9QK+MPv8aB8P47WVjk6/kbRzTPj7pavOFyhNWeMpBJ2EsI54 34KvPbv7+LDOzEjCs9pVvWx8NRRLvIqyK/erNSb87UBuFe37TLdlRFms51ne2dGvfXQH4eKpy 8KLYf8bx3hPJq7U0r88macZkVHvN3/kY4OIOcQ9agq4s8H4cKWv+5JHz4KpLf2OJ4t574AHvV EKdM+rO+UG5Ew5N7x80Oc6yq3CpcfYhWvaJd82LxnozMk5Q6RQCiQ4r69JrFIrhzzcW9mQNKU AE3OUaCTQeDstQNiUy+YrkeNRiskRbH4hKnr0OXMXhTzYFH+ZWtjTBOy/aTJX7FH1yCxYFq4d MVV0efsy+Ilo2vaGvzWYwIRJ+Ei64G91hnTqNnfwjOjNvCyIUclyrx/evRtpDpyqNc7N9ReID nomNMmoxI42TeL/Nm0gf7CTosVNfW+P9rf1Flrlq+sVlhYNVmptQINZK73kURjbv25K/bpGTR x22fISOtZzJRRgK2SeoYqUrh5hK4563dl4a6OYuh1L6qij8GCnclhTTv4y++fZtwFnveeeOyB 2HVEWFzh183xDcf3W9B/4sda0UtNdeHa5OruFh00QoGFWH8UuEI498Z6UmaP7fRyJPssARtGS h0mkL3aSoGOEeO3yQxul2M9+7jBYm7RspAQPP68lTxaYsvxKddf2pP8ZnxGCQCeHCVXDhGGXZ GxMhYh8P3viKSJKCrG3CVTcL6MYSilTF2ixUsvIi5IxMAAHJmw+0LfpXmXiX9679Z0vcC+KhG cs1qrRx3ankSlZ0s7kcNob3jFqUQB9Cd9sI0Ttn2COKAAuAVDVkAMci1O305RWbpkXGIdIaMb IRbV+PMQ13v7EwjSKmDZ5eFGm2CB2mRLeSNgsNj/ky3BuubnANjLACytn5W+qHX1rBfTwHbPK NCZvbeEWvjgTsU= Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 32105 Cc: Glenn Morris , 32105@debbugs.gnu.org, "Edward M. Reingold" 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.7 (-) On 2019-06-24 17:24, Lars Ingebrigtsen wrote: > Boruch Baum writes: > > > The behavior of function `calendar-read-date' is inconsistent in that > > its default is provide the current year, but not the current month or > > day of the month. > > I agree; if we get a default year, then everything should get defaults. > > However: The Emacs standard for prompting these days is to put the > default into `M-n', isn't it? The current `calendar-read-date' > requires you to delete the default "2019" if you want another year... Yes, that's an inconvenience. > So perhaps that should also be changed, and today's date for all three > questions should be in `M-n'? Agreed. The function is inconsistent in that it uses function `calendar-read' for the year and day values, but `completing-read' for the month value. Should `calendar-read' behave like `completing-read'? Maybe it should have additional optional arguments for everything required by `completing-read', and then just call `completing-read'? Or just not use `calendar-read' at all, and deprecate it? If you `completing-read' -type behavior for entry of the year field, how many history entries are you going to give the user? You could use `history-length', like so: (let* ((n-year (calendar-extract-year (calendar-current-date))) (a-year (- n-year (/ history-length 2))) (z-year (+ n-year (/ history-length 2)))) (number-sequence a-year z-year)) This has a disadvantage that for certain use-cases future years might not make sense. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 16:42:41 2019 Received: (at 32105) by debbugs.gnu.org; 24 Jun 2019 20:42:41 +0000 Received: from localhost ([127.0.0.1]:58138 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfVnU-00042f-MB for submit@debbugs.gnu.org; Mon, 24 Jun 2019 16:42:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:36310) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfVnT-00042W-3O for 32105@debbugs.gnu.org; Mon, 24 Jun 2019 16:42:39 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hfVnL-0007Y8-PC; Mon, 24 Jun 2019 22:42:34 +0200 From: Lars Ingebrigtsen To: Boruch Baum Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEVVdZEXHjVZ0OYpMUpl j6xBUWsL3gelAAACPklEQVQ4jVWUsXbrIAyGVQJ7CTc7lc0erLLn+JCdgnn/V6mEHTdXnqJP0i8J CKTORqmX3lLp/MvAAx46w09q0VnXNygmG216K1qboiH1RmRvveAS0KPptMGjc1brLVpLdA/L19rR GCr62TpA782y3fw9qGISEbEc9S6l2O/83UC5WEeWGtMEcB8Jmv0Q2R9pWNdAxL9VATCSyMAdILpo NzDQ7OhBLIkEUELg8Mh+F0c0NZ4XIFX0RD92FHJWNKSpB9B6RQWTgDgyxo5KhhQqInqOPyT6AeLE flSW4qtTHrBDBhsErLvsDriZzMAPYCm1MwM0r91BfYE2xKUUCHiqHfCO2rsGeZxZnGeQgaVbKFxs aARQwBlOJmiizQtlgMEXI6Fj2WY0JRpWYSjm2faBJRg0+2ewCzZHF/aCKTBGyI+cEex1drRHi7FP bGXAti+OS4z4rDlBQF02bZIZmzgSdrB8hxA4gTeR8xtwVxPmKiInWXFk/Jvmuj2HvD79Am6TWia/ y+9gZFB0fjG+Gun3PYP3ydd53UKHA8x/IPn6nF8Zw70DdcHNK7P75xP0VqfV4Lfnyf8SBPQl1KAM vksLSKl6/oLy+jX1AHw+31j4q/P/QC4l8hPj72j3DxBecFJnrVVuxwGmGhZf5T08Xkn8vqxdv65+ 1DvBPA9QwydGruaPM8/jzNmuM+EHV0P5w4DzaBmgxWlBwud+02XIARb8qSxyUf5Y5Ev8hh9Xjg/1 bRTI/C4dfn1iYwn0g8i6fgEmpsN4L1MvjgAAAABJRU5ErkJggg== Date: Mon, 24 Jun 2019 22:42:31 +0200 In-Reply-To: <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> (Boruch Baum's message of "Mon, 24 Jun 2019 12:52:57 -0400") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.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: Boruch Baum writes: > The function is inconsistent in that it uses function `calendar-read' > for the year and day values, but `completing-read' for the month value. > Should `calendar-read' behave like `completing-read' [...] 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: 32105 Cc: Glenn Morris , 32105@debbugs.gnu.org, "Edward M. Reingold" 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 (-) Boruch Baum writes: > The function is inconsistent in that it uses function `calendar-read' > for the year and day values, but `completing-read' for the month value. > Should `calendar-read' behave like `completing-read'? Maybe it should > have additional optional arguments for everything required by > `completing-read', and then just call `completing-read'? Or just not use > `calendar-read' at all, and deprecate it? Hm... well, calendar-read seems nice, since it validates the numbers... > If you `completing-read' -type behavior for entry of the year field, how > many history entries are you going to give the user? You could use > `history-length', like so: > > (let* ((n-year (calendar-extract-year (calendar-current-date))) > (a-year (- n-year (/ history-length 2))) > (z-year (+ n-year (/ history-length 2)))) > (number-sequence a-year z-year)) > > This has a disadvantage that for certain use-cases future years might > not make sense. I think just putting the current year in M-n is fine -- we don't have to mess with the history at all. That is, something conceptually like: (read-from-minibuffer "Year: " nil nil t nil "2019") Then 2019 is in M-n and can be edited, and just hitting RET will also return 2019. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 24 21:23:17 2019 Received: (at 32105) by debbugs.gnu.org; 25 Jun 2019 01:23:17 +0000 Received: from localhost ([127.0.0.1]:58423 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfaB2-00058s-QX for submit@debbugs.gnu.org; Mon, 24 Jun 2019 21:23:17 -0400 Received: from mout.gmx.net ([212.227.15.15]:41247) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hfaB0-00058e-2n for 32105@debbugs.gnu.org; Mon, 24 Jun 2019 21:23:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1561425779; bh=4IiYMXNxCLqbWMOc6WUp7hJ4KYZfvCU4nyvuttfH7J0=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=W2gK7Hd7vrOEGaCJZIgDhvKQHQBRnn2YbhbbSKS+pluRv+Zzn48fiJrPDLJVJ1INM jZ4lTEsNpFc+sNCUthWJrxcx1rDnBhNkTGfAMsZHGlubfFKZwU0RFAS57wU/3rLBI2 8+J65MjUvDJEqbs2tL/1WV/7nVnxsFa5B8WyaUuI= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from E15-2016.optimum.net ([72.80.59.205]) by mail.gmx.com (mrgmx001 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MX16a-1i2YWl1qdw-00W1zD; Tue, 25 Jun 2019 03:22:59 +0200 Date: Mon, 24 Jun 2019 21:22:53 -0400 From: Boruch Baum To: Lars Ingebrigtsen Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] Message-ID: <20190625012253.3a7hbj7nhjeuhpvu@E15-2016.optimum.net> References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:A+iUORwCs25Ru7pnFHXc+q0pyzOTPaC+s0maiFV0FsMNrM99/zx qCQIIB3d9ljn6G/AiORXeGJISRQatXMj6cTOvnXgtixjKJ5DdD430a2NfICskshL7YCH+k6 6VKfMAEtEhhotZJH+aj9zKLmMfyAMouQhMaVy4Y/8N0uTYq55JYOpXqIcZ9xQk+73Z3/HNH YpupL4Y4qAG+edoMmHN0g== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:9mwxoNETRAs=:8To/b/eykE3B2M7Kn5el+Z U3yoH2CrZttuMPKKP6HTUOr/18X8IEpp6Mr2OTOIgBeQ+NtSPYJvhsaRPyavfVRCGpEFSAkK/ w29YQL5UvdXAX0sY8M4QYn7sQGhg7wqk1+r8XxCuCvQgx8y/0xKrzBgknnzDf91d1W49uaH1Q 5VFl61UUHxi73Nr76fwfZmFh5MgIARuFfQRlaUaYqmpxSdxt4as/suf8YC3nkIbzfNc2dRbJM us3Re7b7yRYQ/R+b02Qf1vnSAWiKxG5kKKoI1fbThmQzhKsQmQGMSk/BEpAqVWXhj/2eZ1rH/ YAZjwTtU6ulz3IVINV6TxrxwzrThXOIXtiODxBGNB7hCFFgmgr5ug6QmBxwbUo5i35QJtipcG H0/mt43J/hgFqRqLywUwpcQPJv1r+sPSfim5TU5v9mnhriK9UxVq62NM1JosNSotgWBzshvvQ OpkwWMW7wObvbx1rKdqIVj3Q//f7Zi3hCnQAAFG50CImoVLTT+AoOe8uVG4DGty+ltVA2nvjt M8aTQ8S0+gtMoRBSbgNbi6W8QGE2wMGmqnZEZmEi53QGtykORdnNJd9d016AjKs9u7EZmrnxV KqBYtS5DKZvgPYQD0KedR/eBRpwEwxag+PzuYb3B9Nu2zabCg0ZeM+0WNXRWQpFQhMS5qcFcU Ghl5KEB9Zv/b7gTBbJjeS/lVPr3Cm2dCd2XMPzMdj5K8D02Xzx6nzEp9Rw+dEh+o/8/7eNLS6 7kcRLSJdYPandqllclDXTbATIiviPLoxNAmulhwNONtQ7pWZ4tTVfq67Av24kavmJDy9A64HY SbYH2Y2mlqp3wKezl7jHDySg+YkVR1xTQNyhssA38w7x1m+GxOcwwY4ZF4afERFTWV7tCAxAR 7rlcnBDyf/rfsblEqmfag/XEZ0K+jvnNBYeJM1SaKz3rZ6P/+kdXo8H0C58p8ycH9nvXLqsbp vZpTKTZQCtVq93ArAeCmEzcp+GgE5NkQ= Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32105 Cc: Glenn Morris , 32105@debbugs.gnu.org, "Edward M. Reingold" 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 (-) On 2019-06-24 22:42, Lars Ingebrigtsen wrote: > Hm... well, calendar-read seems nice, since it validates the numbers... OK > I think just putting the current year in M-n is fine -- we don't have to > mess with the history at all. > > That is, something conceptually like: > > (read-from-minibuffer "Year: " nil nil t nil "2019") > > Then 2019 is in M-n and can be edited, and just hitting RET will also > return 2019. Reasonable. =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 14:50:33 2020 Received: (at 32105) by debbugs.gnu.org; 20 Jan 2020 19:50:33 +0000 Received: from localhost ([127.0.0.1]:46108 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itd4C-0001bb-RU for submit@debbugs.gnu.org; Mon, 20 Jan 2020 14:50:33 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:40888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itd4B-0001bM-8E for 32105@debbugs.gnu.org; Mon, 20 Jan 2020 14:50:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To: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=H/BW3CNymQvUcNZJDLOa4EfktD/8WHYE5HKJds7I0pA=; b=ayF/c1PQdvcAmlhFK+EfyZQrir gGqN8d8rrlSwcUZnMXM5lgHv0skM0VR8AzmUleXep+gl6YM0qh2ftTsPeEZFMUTJZ5+H5bfcJ3Ma+ BuWfp+f7uZ1Tw5HJ+B//NtZDfhu5W5vnpa+ZgcO0iEgH+9OBrrY3pu8B36nskRO4HuTxN/s9Ksv/H cOu7qLvCZGv807YDK/7EM5ZkqbB2xj8dRfYckjnLDWxlzZOmiKsCi4lA4w9n4kljr0BIAAEXRn1CJ x2tzUDWqUg8pxATVBQc31qx47NVBuMcW4F3g0h5xRFKzv0DiKYzBwO+PLFP2sBjOsPZK2ew0h66RL 4IikwE6A==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:39774 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1itd44-0005Q4-FA; Mon, 20 Jan 2020 14:50:24 -0500 From: Stefan Kangas To: Boruch Baum Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] In-Reply-To: <20190625012253.3a7hbj7nhjeuhpvu@E15-2016.optimum.net> (Boruch Baum's message of "Mon, 24 Jun 2019 21:22:53 -0400") References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> <20190625012253.3a7hbj7nhjeuhpvu@E15-2016.optimum.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Mon, 20 Jan 2020 20:50:22 +0100 Message-ID: <87zhehrjpd.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32105 Cc: Glenn Morris , Lars Ingebrigtsen , "Edward M. Reingold" , 32105@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 (-) Boruch Baum writes: > On 2019-06-24 22:42, Lars Ingebrigtsen wrote: >> Hm... well, calendar-read seems nice, since it validates the numbers... > > OK > >> I think just putting the current year in M-n is fine -- we don't have to >> mess with the history at all. >> >> That is, something conceptually like: >> >> (read-from-minibuffer "Year: " nil nil t nil "2019") >> >> Then 2019 is in M-n and can be edited, and just hitting RET will also >> return 2019. > > Reasonable. Just to follow up on this, since it was 7 months ago. Did you find the time to finish up this patch according to the comments by Lars? It sounds like a good addition to me. Best regards, Stefan Kangas From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 20 23:19:57 2020 Received: (at 32105) by debbugs.gnu.org; 21 Jan 2020 04:19:57 +0000 Received: from localhost ([127.0.0.1]:46375 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itl1B-0002wA-EO for submit@debbugs.gnu.org; Mon, 20 Jan 2020 23:19:57 -0500 Received: from mout.gmx.net ([212.227.15.19]:40481) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itl19-0002vw-NN for 32105@debbugs.gnu.org; Mon, 20 Jan 2020 23:19:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1579580385; bh=6OoljJnHdeUEBPO6SzX0m43Kx3S87qGAFMdkeqY9jXQ=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:References:In-Reply-To; b=OrBpsmwNNoskhMxDfgdabdLJj5khhMgcvIsXtX/n+7b1uA6NP2opbitBrREtfSA6T CL50kt97NJq8zH+S7OGbwGlHbf1vmIYcEbbLFBsK0dlBtyH/44GrUlLhksWlH9cHnk /bSEn7n5wTZ7i3+Fi+iWTozNJwUJwKOklwbI/hsA= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from E15-2016.optimum.net ([100.38.240.57]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M9o1v-1ixJn204Or-005nhz; Tue, 21 Jan 2020 05:19:45 +0100 Date: Mon, 20 Jan 2020 23:19:40 -0500 From: Boruch Baum To: Stefan Kangas Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] Message-ID: <20200121041940.d2nk5kojso5zgmdg@E15-2016.optimum.net> References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> <20190625012253.3a7hbj7nhjeuhpvu@E15-2016.optimum.net> <87zhehrjpd.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87zhehrjpd.fsf@marxist.se> User-Agent: NeoMutt/20180716 X-Provags-ID: V03:K1:3As+j4srN8HZgr33T9RFqXr4OwkuVQ9z04g+S7f+xhHtpd5fUue 1HMRQIP++LMm3J322gC1s2+7cHfln8x7bArU9S8jNvU9E/RycV95KjTF1fNQbRZ1VFubmrL TDiKxLKon++kJv6W9AnRVjQYDwgwHTZtteePTQ/+/IQ3WljkNrOo6C19p5k1s/NaGIlYzLU TlM4AL7/ijeGpJ4AZtvKA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:tUhvZ8ivi/8=:sOk7XUDFuUvQQGa6wPDbps 6naavmzS0B3Xhb2OP6ssgiQQwmJkZO7qI0MHqqxNxzhpoLX1pncQoWsM+mpMV1H4DmWWlfBgD Aezx3uesshX+n3lr5NnxQ87OcTw6vaMj3Msv/uy1J7iqhj/N85VI1FqcT++T95HrJR+kjCrFs fVnGQwBDg3QEEhZkEBcqRRZPPQnXFnY1A2lsgOoXIREIHJwz3kdFk8FkmUT64YUa6Mpqw+MBf Ymh7hD2Oo1optQYA7bBO41NkQRcaw/eFI4lpRLWOpY5cqjrZJ3lKsTcp6t5XKVyl2BdR2qxoS 5+tZHicFzK6IOB+uONweqh0NpPZYc+C22doB84JfyjkQRk7aDqiO+62g7EDycT/y1EWOmhB/s CJZnNliqOyLdUYfrstrcOCiqtu+sjFuyt1u/rvhNLYzCTpl8poJ01q1no31a4EYogKaOhAw+7 NKzS/rYijvCBNmSaSOadKqm+GJ4RIjfuaSFLz9fx4SO8TaQ3WyYXVbFtJ8k8UFBUEfxFeYrPo VyekfvQQFEceXvfWF7VzMhYH+xULfoAYZFfGfq8wBK5Ztmn5RujLoJo2m9KTV4cC48WZF6ABa PAUzTo20uxGxcwbBUA3TeJ3vagDOF4+PrzL4eXSuFfBFyGMyMVZKZsfDBKIdKKnlSdqDmY9Un uhahjWy9XubMfKC3QhoOKaTzfM96tMOC98Rz845qdf7mZPHa7vft55uedEFrsKhVAHE0zf6FP 5CjctYH8tO3IeGAUixXOQd95b+jnKc0eHnk/wz382X2QSN/TNdx/p+yn6mBE+oJu7k1LmJPRS qYhTiJ9BrSQdn03YoHvyYawmtz5W8vi+GW0JbYh4omblhzErDpN3SfuqXifPA3mofFcrvxad7 xnMZ8feQ/889MZ+tU2fqXlZbEtuwFsmqnliE+jHUyqMVRilCqCz/2Va9t6pPV21ZSQZ8gJp9u W5k2BB94gqwXItpzQW4A3Q5zh5CSFvP9FPCTpEI8B4hypbE9WutlMV7d3s7FAlKp2AiznaU7A 3jdn7YmlSVSa5MAxgkZdxDl8K6mzQNJ5dNQ1vau+/lJhobqICh9YubP05Ce89DKNoEHbWwGmh dyoq7/66rpiCleOvN+X83DUItl196y/8DXMgAqcDuwp8+KIp+l0di+njAInbWBoY8bfmkcSQn clV/SgI2rr+VVwPUoJyq5f6fe5+HFRwyCHtnb6Xsjysat/5CyaZUWCcGtaFQHE6vC++9rWgzx Cxe4vIqV+dgDGhz6CPqbKO9t8UXHCEHSLEICrNQrlgKlOIOQ9NlNg2njt4lA= Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32105 Cc: Glenn Morris , Lars Ingebrigtsen , "Edward M. Reingold" , 32105@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 (-) On 2020-01-20 20:50, Stefan Kangas wrote: > Boruch Baum writes: > > On 2019-06-24 22:42, Lars Ingebrigtsen wrote: > >> I think just putting the current year in M-n is fine -- we don't have= to > >> mess with the history at all. > >> > >> That is, something conceptually like: > >> > >> (read-from-minibuffer "Year: " nil nil t nil "2019") > >> > >> Then 2019 is in M-n and can be edited, and just hitting RET will also > >> return 2019. > > > > Reasonable. > > Just to follow up on this, since it was 7 months ago. Did you find > the time to finish up this patch according to the comments by Lars? > It sounds like a good addition to me. I guess this is an example of how mis-communication retards progress. I expressed approval with Lars' suggestion, but never said that I would be the one to code it. Do you want to? =2D- hkp://keys.gnupg.net CA45 09B5 5351 7C11 A9D1 7286 0036 9E45 1595 8BC0 From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 00:11:44 2020 Received: (at 32105) by debbugs.gnu.org; 21 Jan 2020 05:11:44 +0000 Received: from localhost ([127.0.0.1]:46390 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itlpI-0004C3-2c for submit@debbugs.gnu.org; Tue, 21 Jan 2020 00:11:44 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:55106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itlpF-0004Bk-2U; Tue, 21 Jan 2020 00:11:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To: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=LI9KKucdAD/IP+GRfKSgJgskpPf6VIfK/tVQVu2XBBU=; b=TCCR9eXJ33e1Nxes6zAC5mM5YL y5SjSmSXy+uRZNZWxtoySLwg3JTQUnnLGw8xE5mTUKfuq/BuEIno0C5iMZAjJw4PN2x+NGV5ENSX9 YgqjPXkipV1/4lBlbiFTCHtJsx3I9wR1r+f1RsEmfjDNRHoYgUxNuG/jgogwTQ9BpFcmYPkAku79S Dst4ulpSk0GalFryqkT49fZRtDw4Vn1aSgTS03JebrdCbipBLy5r86QHxH6KOnc2DMRpp98+1+dp/ o+/UWq+erINNsl9nmSuyei8C8vpitFUGNpxXUNRtd/XQGLqYuU1jwjrb0AQOe2ZWRHM/KCMk1PkWv GpizLUGA==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:39240 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1itlp5-0002Ml-Vh; Tue, 21 Jan 2020 00:11:32 -0500 From: Stefan Kangas To: Boruch Baum Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] In-Reply-To: <20200121041940.d2nk5kojso5zgmdg@E15-2016.optimum.net> (Boruch Baum's message of "Mon, 20 Jan 2020 23:19:40 -0500") References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> <20190625012253.3a7hbj7nhjeuhpvu@E15-2016.optimum.net> <87zhehrjpd.fsf@marxist.se> <20200121041940.d2nk5kojso5zgmdg@E15-2016.optimum.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Date: Tue, 21 Jan 2020 06:11:28 +0100 Message-ID: <87k15lmm0v.fsf@marxist.se> MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 32105 Cc: Glenn Morris , Lars Ingebrigtsen , "Edward M. Reingold" , 32105@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 32105 - patch thanks Boruch Baum writes: > I guess this is an example of how mis-communication retards progress. I > expressed approval with Lars' suggestion, but never said that I would be > the one to code it. Do you want to? As I said, I'm just following up on the status. I assumed you would be interested in doing it since you submitted the patch and expressed approval for the improvement ideas. Of course, if you will not be working on it, that is also useful information. In any case, I'm removing the patch tag, since it seems like more work is needed here.[1] Best regards, Stefan Kangas Footnotes: [1] https://debbugs.gnu.org/Developer.html#tags says: "If there's a patch, but it doesn't resolve the bug adequately or causes some other problems, this tag should not be used." From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 21 05:23:34 2020 Received: (at control) by debbugs.gnu.org; 21 Jan 2020 10:23:34 +0000 Received: from localhost ([127.0.0.1]:46514 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itqh4-0005Mm-7C for submit@debbugs.gnu.org; Tue, 21 Jan 2020 05:23:34 -0500 Received: from ted.gofardesign.uk ([67.225.143.91]:50564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itqh1-0005MX-GK for control@debbugs.gnu.org; Tue, 21 Jan 2020 05:23:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=marxist.se; s=default; h=Subject:From:To:Date:Sender:Reply-To:Message-ID: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=8Rl7LQ901dXo0mYO5eNReamiJ+mNff0psa2QKBfKUz4=; b=e4T/h0uefQ/BEUVienz8j5ymNO goyuiTtPhF7MrtFn5Zo35A3MKEAZfXUFOfy6EW+SravVHf0QkqJQiQrDbKZTwHzVtxraDlCrpPS+Y TDEwhkHnqkaTr95qqqNfaSzOJPymgxpKjlsN9ISYbTQhSbFPZKGjVeMeSIR//lpSbXBPeu59x6gKm b76taMOlwWvR0C+ccfJ2TqGMwwdGCKxf7ngSU3Q1Lln8E2Z3SXfA96uf6OG4NZBlSNPnximkugZjf dayyurobZjp+CKsOnoLxIhpR5u5YgWltujjpZC0RcN2Ryev8Xf9xUy7uFezTIWSXi1osfuWHxIC8I 9+YbDmEQ==; Received: from h-70-69.a785.priv.bahnhof.se ([155.4.70.69]:58598 helo=localhost) by ted.gofardesign.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1itqgv-0018HP-AO for control@debbugs.gnu.org; Tue, 21 Jan 2020 05:23:25 -0500 Date: Tue, 21 Jan 2020 11:23:23 +0100 To: control@debbugs.gnu.org From: Stefan Kangas Subject: control message for bug #32105 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ted.gofardesign.uk X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - marxist.se X-Get-Message-Sender-Via: ted.gofardesign.uk: authenticated_id: stefan@marxist.se X-Authenticated-Sender: ted.gofardesign.uk: stefan@marxist.se X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: 0.1 (/) 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" Message-Id: X-Spam-Score: -1.0 (-) retitle 32105 25.2; calendar-read-date should default to today quit From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 21 00:42:07 2021 Received: (at 32105-done) by debbugs.gnu.org; 21 Jan 2021 05:42:07 +0000 Received: from localhost ([127.0.0.1]:56653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2SjO-0005wD-VL for submit@debbugs.gnu.org; Thu, 21 Jan 2021 00:42:07 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:28400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l2SjN-0005vk-NE for 32105-done@debbugs.gnu.org; Thu, 21 Jan 2021 00:42:06 -0500 Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 4AB334401A0; Thu, 21 Jan 2021 00:42:00 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id CBF8344013F; Thu, 21 Jan 2021 00:41:58 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1611207718; bh=ivp1Tm4/Uk4vISL0BS6EnH+BgQ/38tai0FW8yZzpSDM=; h=From:To:Cc:Subject:References:Date:From; b=EA62jVdutRfY/Mou81g4F6Cj3A27rna60P+iANo2SDhV06KnxDfR72CRTzSdCOSVZ wzhJUSbrgRy/dnukkq5b905APNSI4NX/yOdQoLWpy2dAuaNCCL15gWkOLxSNBwQsyT JRi9UJWNNoyPnlhQTBDsLaiIn6mCcCAmKys6Xnm8ohdVjyEjKs8Y8FZR/HfmEhCQKc 7Qh9HkwV/0Eo0pmdP0WFJirg5qB+8qBs4BXMopdJgaAhfVywKNMnYKQKQA1s+9LHfS SiUuJneUPWt61qQqJIbcYJ6MCi15Pc43Ewhwyc/w7d+jrkS280dB2N9+Z0xi8wZGcW AByyFBuxe9WZg== Received: from alfajor (unknown [45.72.224.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8F94912023F; Thu, 21 Jan 2021 00:41:58 -0500 (EST) From: Stefan Monnier To: Lars Ingebrigtsen Subject: Re: bug#32105: 25.2; calendar-read-date should default to today [PATCH INCLUDED] Message-ID: References: <20180709155344.cnpbkeb6dcryld44@E15-2016.optimum.net> <20190624165257.eyivujzaoxebbl2w@E15-2016.optimum.net> Date: Thu, 21 Jan 2021 00:41:57 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP AWL -0.039 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 32105-done Cc: Glenn Morris , 32105-done@debbugs.gnu.org, "Edward M. Reingold" , Boruch Baum 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 (---) I just pushed a patch which makes `calendar-read-date` default to today for both the month and day of month, and it makes it use the `M-n` instead of a non--empty minibuffer for the year as well. Stefan Lars Ingebrigtsen [2019-06-24 22:42:31] wrote: > Boruch Baum writes: > >> The function is inconsistent in that it uses function `calendar-read' >> for the year and day values, but `completing-read' for the month value. >> Should `calendar-read' behave like `completing-read'? Maybe it should >> have additional optional arguments for everything required by >> `completing-read', and then just call `completing-read'? Or just not use >> `calendar-read' at all, and deprecate it? > > Hm... well, calendar-read seems nice, since it validates the numbers... > >> If you `completing-read' -type behavior for entry of the year field, how >> many history entries are you going to give the user? You could use >> `history-length', like so: >> >> (let* ((n-year (calendar-extract-year (calendar-current-date))) >> (a-year (- n-year (/ history-length 2))) >> (z-year (+ n-year (/ history-length 2)))) >> (number-sequence a-year z-year)) >> >> This has a disadvantage that for certain use-cases future years might >> not make sense. > > I think just putting the current year in M-n is fine -- we don't have to > mess with the history at all. > > That is, something conceptually like: > > (read-from-minibuffer "Year: " nil nil t nil "2019") > > Then 2019 is in M-n and can be edited, and just hitting RET will also > return 2019. From unknown Mon Jun 23 11:28:07 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 18 Feb 2021 12:24:05 +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