unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Uwe Brauer <oub@mat.ucm.es>
To: help-gnu-emacs@gnu.org
Subject: Re: calwf
Date: Thu, 14 Jan 2016 08:54:58 +0000	[thread overview]
Message-ID: <87bn8omtgd.fsf@mat.ucm.es> (raw)
In-Reply-To: jwva8oazxfb.fsf-monnier+gmane.emacs.help@gnu.org

>>> "Stefan" == Stefan Monnier <monnier@iro.umontreal.ca> writes:

   > In both cases (calwf and weekly-view), I expect that the issue is
   > IOW, these should all be fairly easy to debug by single-stepping
   > through the code and comparing where the execution diverges between the
   > two different emacsen.

The function is question is this one:

(defun week-graph-view-diary-entries ()
  "Prepare and display a buffer with diary entries of the current week.
See `view-diary-entries' for more."
  (interactive)
  (save-excursion
    (calendar-cursor-to-nearest-date)
    (let ((diary-display-hook 'fancy-diary-display-week-graph)
	  (day (calendar-day-of-week (calendar-cursor-to-date))))
      (unless (= day calendar-week-start-day)
	(calendar-beginning-of-week 1))
      (view-diary-entries 7))))

I edebugged it and GNU emacs and Xemacs behave exactly the same, till 

      (view-diary-entries 7))))
                            ^(same)

      (view-diary-entries 7))))
                              ^(different)

Most of the work is done by the function
fancy-diary-display-week-graph
which is in the diary-display-hook.

However I cannot debug fancy-diary-display-week-graph, in the sense that
the debugger never starts for this function (most likely because it is
in that hook)





  parent reply	other threads:[~2016-01-14  8:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-11 16:51 calwf Uwe Brauer
2016-01-12 14:29 ` calwf Stefan Monnier
2016-01-13 17:42   ` calwf Uwe Brauer
2016-01-13 19:55     ` calwf tomas
2016-01-14 14:09     ` calwf Stefan Monnier
2016-01-14  8:54   ` Uwe Brauer [this message]
2016-01-14 14:13     ` calwf Stefan Monnier
2016-01-14 17:00       ` calwf Uwe Brauer
2016-01-14 19:34         ` calwf Stefan Monnier
2016-01-15  9:05           ` [missing diary-display-hook] (was: calwf) Uwe Brauer
2016-01-15 13:56             ` [missing diary-display-hook] Stefan Monnier
2016-01-15 17:38               ` Uwe Brauer
2016-01-15 16:52             ` Glenn Morris
2016-01-15 17:42               ` Uwe Brauer
2016-01-15  9:06           ` calwf Uwe Brauer
2016-01-14 14:15     ` calwf Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bn8omtgd.fsf@mat.ucm.es \
    --to=oub@mat.ucm.es \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).