GNU bug report logs - #8920
24.0.50; Calendar raises error with #included diary file

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Wed, 22 Jun 2011 23:04:02 UTC

Severity: normal

Found in version 24.0.50

Done: Stephen Berman <stephen.berman <at> gmx.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stephen Berman <stephen.berman <at> gmx.net>
Subject: bug#8920: closed (Re: bug#8920: 24.0.50; Calendar raises error
 with #included diary file)
Date: Sun, 26 Jun 2011 11:11:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#8920: 24.0.50; Calendar raises error with #included diary file

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 8920 <at> debbugs.gnu.org.

-- 
8920: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8920
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Stephen Berman <stephen.berman <at> gmx.net>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 8920-done <at> debbugs.gnu.org
Subject: Re: bug#8920: 24.0.50; Calendar raises error with #included diary file
Date: Sun, 26 Jun 2011 13:09:51 +0200
On Sat, 25 Jun 2011 21:25:22 -0400 Glenn Morris <rgm <at> gnu.org> wrote:

> OK. Can this be closed?

Done.  (Should've closed it with the previous post, sorry.)

[Message part 3 (message/rfc822, inline)]
From: Stephen Berman <stephen.berman <at> gmx.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.0.50; Calendar raises error with #included diary file
Date: Thu, 23 Jun 2011 01:03:21 +0200
[Message part 4 (text/plain, inline)]
1. Let the file ~/diary consist of the line between start and end:
-----start
#include "~/test"
end------

2. Let ~/test be readable; it's content is irrelevant (can be empty).

3. Let ~/.emacs consist of the lines between start and end:
-----start
(add-hook 'find-file-hook
	  (lambda () (set-window-buffer (selected-window)
					(set-buffer (current-buffer)))))

(custom-set-variables
 '(calendar-mark-diary-entries-flag t)
 '(calendar-today-visible-hook (quote (calendar-mark-today)))
 '(diary-list-entries-hook (quote (diary-include-other-diary-files)))
 '(diary-mark-entries-hook (quote (diary-mark-included-diary-files))))
end------

4. Invoke emacs (without -Q)

5. Type `M-x calendar RET'
=> Wrong type argument: number-or-marker-p, nil
The Calendar is displayed in the lower window, but today's date is not
marked, and the cursor is at the beginning of the buffer.

Here is the backtrace from entering the debugger on error:

[backtrace (application/octet-stream, attachment)]
[Message part 6 (text/plain, inline)]
When I repeat the above recipe through step 4, then instrument the
lambda expression in .emacs for edebugging, then invoke the Calendar and
step through the lambda sexp, the Calendar first appears, then its
window is occupied by the diary buffer, then by the buffer of ~/test,
and finally by the diary again.  No error is raised, and when I switch
to the *Calendar* buffer, today's date is shown marked.


In GNU Emacs 24.0.50.1 (i686-suse-linux-gnu, GTK+ Version 2.20.1)
 of 2011-06-04 on escher
Windowing system distributor `The X.Org Foundation', version 11.0.10800000
configured using `configure  '--without-toolkit-scroll-bars' 'CFLAGS=-g -O2 -fno-optimize-sibling-calls''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

This bug report was last modified 14 years and 31 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.