GNU bug report logs -
#7536
24.0.50; sexp diary entry on last line is truncated
Previous Next
Reported by: Stephen Berman <stephen.berman <at> gmx.net>
Date: Thu, 2 Dec 2010 23:05:01 UTC
Severity: minor
Found in version 24.0.50
Fixed in version 23.3
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 7536 in the body.
You can then email your comments to 7536 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org
:
bug#7536
; Package
emacs
.
(Thu, 02 Dec 2010 23:05:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 02 Dec 2010 23:05:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
1. Let there be no file ~/diary.
2. emacs -Q
3. M-x calendar
4. In the Calendar buffer type `C-SPC i b', then in the popped to diary
buffer type `test' as the entry after the diary-block sexp and then
`C-x C-s' to save the diary file.
5. M-x diary
=> The fancy diary display shows the above diary entry as `tes'.
AFAICT the reason is that diary-list-sexp-entries assumes there is a
newline after a sexp diary entry. Here is a fix:
*** /data/steve/bzr/emacs/trunk/lisp/calendar/diary-lib.el 2010-11-26 20:52:25.000000000 +0100
--- /data/steve/bzr/emacs/quickfixes/lisp/calendar/diary-lib.el 2010-12-02 23:49:25.000000000 +0100
***************
*** 1764,1770 ****
(forward-line 1)
(while (looking-at "[ \t]")
(forward-line 1))
! (backward-char 1)
(setq entry (buffer-substring-no-properties entry-start (point))))
(setq diary-entry (diary-sexp-entry sexp entry date)
literal entry ; before evaluation
--- 1764,1770 ----
(forward-line 1)
(while (looking-at "[ \t]")
(forward-line 1))
! (when (bolp) (backward-char 1))
(setq entry (buffer-substring-no-properties entry-start (point))))
(setq diary-entry (diary-sexp-entry sexp entry date)
literal entry ; before evaluation
In GNU Emacs 24.0.50.19 (i686-pc-linux-gnu, GTK+ Version 2.18.6)
of 2010-11-26 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10605000
configured using `configure '--without-toolkit-scroll-bars''
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Thu, 09 Dec 2010 01:45:03 GMT)
Full text and
rfc822 format available.
Notification sent
to
Stephen Berman <stephen.berman <at> gmx.net>
:
bug acknowledged by developer.
(Thu, 09 Dec 2010 01:45:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 7536-done <at> debbugs.gnu.org (full text, mbox):
Version: 23.3
Thanks; applied.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Jan 2011 12:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 14 years and 246 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.