GNU bug report logs -
#30455
27.0.50; problem in diary-remind
Previous Next
Reported by: John <jpff <at> codemist.co.uk>
Date: Wed, 14 Feb 2018 15:09:01 UTC
Severity: normal
Found in version 27.0.50
Fixed in version 27.1
Done: Glenn Morris <rgm <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 30455 in the body.
You can then email your comments to 30455 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30455
; Package
emacs
.
(Wed, 14 Feb 2018 15:09:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
John <jpff <at> codemist.co.uk>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Wed, 14 Feb 2018 15:09:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Today I got a warning from my diary when I started emacs, my .emacs
file having lisp to display my diary on start-up.
Error (diary): Bad diary sexp at line 19 in /home/jpff/diary:
(diary-remind '(diary-date 3 1 2018) '(20 15 12 10 9 8 7 6 5 4 3 2 1 0))
Error: (void-variable days)
This has been apparently working until now, but I do notice today is 15
days before 1March. Could not find out what the void-variable meant.
In GNU Emacs 27.0.50 (build 133, x86_64-pc-linux-gnu, GTK+ Version 2.24.31)
of 2018-02-14 built on xenakis
Repository revision: 95620e69395b6581eef65e422cac5fbf2b0c9ebf
Windowing system distributor 'The X.Org Foundation', version 11.0.11803000
System Description: openSUSE Leap 42.3
Recent messages:
Error setting my-trailing-space-face: (invalid-function (((class color)) (:background Gold)))
Preparing diary...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...
Loading dired-add...done
Deleting...done
Type "q" in help window to restore its previous buffer, C-M-v to scroll help.
Auto-saving...done
Mark set [2 times]
Configured using:
'configure --with-gnutls=no'
Configured features:
XPM JPEG TIFF GIF PNG SOUND GSETTINGS NOTIFY LIBXML2 FREETYPE XFT ZLIB
TOOLKIT_SCROLL_BARS GTK2 X11 THREADS
Important settings:
value of $LANG: en_US.UTF-8
value of $XMODIFIERS: @im=local
locale-coding-system: utf-8-unix
Major mode: Special
Minor modes in effect:
auto-image-file-mode: t
show-paren-mode: t
display-time-mode: t
tooltip-mode: t
global-eldoc-mode: t
electric-indent-mode: t
mouse-wheel-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
buffer-read-only: t
line-number-mode: t
transient-mark-mode: t
Load-path shadows:
None found.
Features:
(shadow flyspell mailalias mailcrypt mail-extr comint ansi-color ring
ispell emacsbug message rmc puny format-spec rfc822 mml mml-sec
password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils cl-extra help-fns radix-tree help-mode
map seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib
dired dired-loaddefs elec-pair cal-julian delsel cus-start cus-load
image-file crypt crypt++ crypt+pgp-pub paren view cal-china cal-bahai
cal-islam cal-hebrew lunar solar cal-dst warnings appt diary-lib
diary-loaddefs holidays hol-loaddefs cal-menu easymenu calendar
cal-loaddefs time time-date mule-util tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame 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 minibuffer 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 inotify dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)
Memory information:
((conses 16 140729 8517)
(symbols 48 23722 1)
(miscs 40 203 418)
(strings 32 39928 3007)
(string-bytes 1 1125118)
(vectors 16 19041)
(vector-slots 8 576671 7210)
(floats 8 602 749)
(intervals 56 1799 0)
(buffers 992 16)
(heap 1024 44849 1420))
==John ffitch
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30455
; Package
emacs
.
(Wed, 14 Feb 2018 17:53:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 30455 <at> debbugs.gnu.org (full text, mbox):
Hi Stefan,
I imagine this is lexical-binding fallout. Please could you take a look?
Thanks.
Minimal example diary-file contents:
%%(diary-remind '(diary-date 3 1 2018) -20 t)
John wrote:
> Today I got a warning from my diary when I started emacs, my .emacs
> file having lisp to display my diary on start-up.
>
> Error (diary): Bad diary sexp at line 19 in /home/jpff/diary:
> (diary-remind '(diary-date 3 1 2018) '(20 15 12 10 9 8 7 6 5 4 3 2 1 0))
> Error: (void-variable days)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30455
; Package
emacs
.
(Wed, 14 Feb 2018 20:26:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 30455 <at> debbugs.gnu.org (full text, mbox):
> I imagine this is lexical-binding fallout.
Sure looks like it, yes.
> Please could you take a look?
Sure,
Stefan
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30455
; Package
emacs
.
(Thu, 15 Feb 2018 05:44:01 GMT)
Full text and
rfc822 format available.
Message #14 received at 30455 <at> debbugs.gnu.org (full text, mbox):
> I imagine this is lexical-binding fallout. Please could you take a look?
> Thanks.
>
> Minimal example diary-file contents:
>
> %%(diary-remind '(diary-date 3 1 2018) -20 t)
I wasn't able to reproduce the problem, but looking at the code, I think
I figured the problem and installed the patch below which might fix it.
Could you or John confirm that it fixes the original problem?
Stefan
diff --git a/lisp/calendar/diary-lib.el b/lisp/calendar/diary-lib.el
index 181b1172fa..acf4b20d77 100644
--- a/lisp/calendar/diary-lib.el
+++ b/lisp/calendar/diary-lib.el
@@ -2049,7 +2049,8 @@ diary-remind
(when (setq diary-entry (eval sexp))
;; Discard any mark portion from diary-anniversary, etc.
(if (consp diary-entry) (setq diary-entry (cdr diary-entry)))
- (mapconcat #'eval diary-remind-message ""))))
+ (calendar-dlet* ((days days))
+ (mapconcat #'eval diary-remind-message "")))))
;; Diary entry may apply to one of a list of days before date.
((and (listp days) days)
(or (diary-remind sexp (car days) marking)
bug marked as fixed in version 27.1, send any further explanations to
30455 <at> debbugs.gnu.org and John <jpff <at> codemist.co.uk>
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Thu, 15 Feb 2018 07:28:02 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#30455
; Package
emacs
.
(Thu, 15 Feb 2018 07:30:01 GMT)
Full text and
rfc822 format available.
Message #19 received at 30455 <at> debbugs.gnu.org (full text, mbox):
Yes, thanks.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 15 Mar 2018 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 158 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.