From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Printing Multiple Lines For Agenda Export Date: Sat, 21 Aug 2010 18:31:50 -0400 Message-ID: <32231.1282429910@gamaville.dokosmarshall.org> References: <740C5AE9-424D-4B62-AD60-51A832B20190@gmail.com> <3EC76D3D-794F-4A16-96A8-916BB50D2C40@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=60612 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Omwbh-0000My-Nd for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:32:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Omwbg-0000f9-8B for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:32:09 -0400 Received: from vms173005pub.verizon.net ([206.46.173.5]:52689) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Omwbg-0000f0-1W for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 18:32:08 -0400 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0L7I007N1X92LXC0@vms173005.mailsrvcs.net> for emacs-orgmode@gnu.org; Sat, 21 Aug 2010 17:31:51 -0500 (CDT) In-reply-to: Message from Andre Powell of "Sat, 21 Aug 2010 18:16:08 EDT." <3EC76D3D-794F-4A16-96A8-916BB50D2C40@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Andre Powell Cc: emacs-orgmode@gnu.org, nicholas.dokos@hp.com, Carsten Dominik Andre Powell wrote: > Is it fixed in 7.x versions? > Andre Powell > No, it is fixed in commit 96bacc020bef95861543b34985c2cc1190fb918c (which had a typo that was fixed in commit a7660225af1737cc887fc57a2d2fa87ba8975206) - both of those commits were done early this morning: ,---- | commit a7660225af1737cc887fc57a2d2fa87ba8975206 | Author: Carsten Dominik | Date: Sat Aug 21 08:37:11 2010 +0200 | | Fix code typo | | commit 96bacc020bef95861543b34985c2cc1190fb918c | Author: Carsten Dominik | Date: Sat Aug 21 07:09:20 2010 +0200 | | Fix adding context lines in agenda | | * lisp/org-agenda.el (org-agenda-add-entry-text): Make sure we move | forward even if there is no text to be added. | | Adding entry text with org-agenda-add-entry-text-maxlines greater than | 0 could result in an infinite loop. `---- Do git show with each of those SHA1 strings to see whether you have the commit in your repository. Otherwise, you'll need to pull to get them. Nick > > On Aug 21, 2010, at 12:25 PM, Manish wrote: > > > Yes, it works now. Sweet. > > > > Thanks a lot. > > > > Regards > > -- Manish > > > > On Sat, Aug 21, 2010 at 12:07 PM, Carsten Dominik > > wrote: > >> > >> On Aug 21, 2010, at 8:09 AM, Manish wrote: > >> > >>> On Sat, Aug 21, 2010 at 10:39 AM, Carsten Dominik wrote: > >>>> > >>>> Hi, > >>>> > >>>> this is now fixed. > >>>> > >>>> Thanks for the report. > >>>> > >>> > >>> Debug on error gives this dump: > >> > >> Not anymore. Thanks. > >> > >> - Carsten > >> > >>> ,---- > >>> | Debugger entered--Lisp error: (wrong-number-of-arguments eobp 1) > >>> | (eobp (forward-char 1)) > >>> | (or (eobp (forward-char 1))) > >>> | (if (string-match "\\S-" txt) (insert "\n" txt) (or (eobp ...))) > >>> | (if (not (setq m ...)) (beginning-of-line 2) (setq txt > >>> (org-agenda-get-some-entry-text m org-agenda-add-entry-text-maxlines " > >>>> > >>>> ")) (end-of-line 1) (if (string-match "\\S-" txt) (insert "\n" > >>> > >>> txt) (or ...))) > >>> | (while (not (eobp)) (if (not ...) (beginning-of-line 2) (setq txt > >>> ...) (end-of-line 1) (if ... ... ...))) > >>> | (let (m txt) (goto-char (point-min)) (while (not ...) (if ... ... > >>> ... ... ...))) > >>> | (progn (let (m txt) (goto-char ...) (while ... ...))) > >>> | (if (and (> org-agenda-add-entry-text-maxlines 0) (not ...)) > >>> (progn (let ... ... ...))) > >>> | (when (and (> org-agenda-add-entry-text-maxlines 0) (not ...)) > >>> (let (m txt) (goto-char ...) (while ... ...))) > >>> | org-agenda-add-entry-text() > >>> | run-hooks(org-agenda-before-write-hook) > >>> | (progn (rename-buffer "Agenda View" t) (set-buffer-modified-p nil) > >>> (insert bs) (org-agenda-remove-marked-text (quote org-filtered)) > >>> (while (setq beg ...) (delete-region beg ...)) (run-hooks (quote > >>> org-agenda-before-write-hook)) (cond (... ...) (... ... ... ... ... > >>> ... ...) (... ... ... ...) (... ... ... ... ... ...) (... ... ...) (t > >>> ...))) > >>> | (unwind-protect (progn (rename-buffer "Agenda View" t) > >>> (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text > >>> ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...)) > >>> (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) > >>> | (save-current-buffer (set-buffer temp-buffer) (unwind-protect > >>> (progn ... ... ... ... ... ... ...) (and ... ...))) > >>> | (with-current-buffer temp-buffer (unwind-protect (progn ... ... > >>> ... ... ... ... ...) (and ... ...))) > >>> | (let ((temp-buffer ...)) (with-current-buffer temp-buffer > >>> (unwind-protect ... ...))) > >>> | (with-temp-buffer (rename-buffer "Agenda View" t) > >>> (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text > >>> (quote org-filtered)) (while (setq beg ...) (delete-region beg ...)) > >>> (run-hooks (quote org-agenda-before-write-hook)) (cond (... ...) (... > >>> ... ... ... ... ... ...) (... ... ... ...) (... ... ... ... ... ...) > >>> (... ... ...) (t ...))) > >>> | (let ((bs ...) beg) (org-agenda-unmark-filtered-text) > >>> (with-temp-buffer (rename-buffer "Agenda View" t) > >>> (set-buffer-modified-p nil) (insert bs) (org-agenda-remove-marked-text > >>> ...) (while ... ...) (run-hooks ...) (cond ... ... ... ... ... ...))) > >>> | (save-window-excursion (org-agenda-mark-filtered-text) (let (... > >>> beg) (org-agenda-unmark-filtered-text) (with-temp-buffer ... ... ... > >>> ... ... ... ...))) > >>> | (save-excursion (save-window-excursion > >>> (org-agenda-mark-filtered-text) (let ... ... ...))) > >>> | (let ((ps-number-of-columns 1) (ps-landscape-mode t) > >>> (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion > >>> (save-window-excursion ... ...)) #) > >>> | eval((let ((ps-number-of-columns 1) (ps-landscape-mode t) > >>> (htmlize-output-type ...) (ps-print-color-p ...)) (save-excursion > >>> (save-window-excursion ... ...)) #)) > >>> | org-let(((ps-number-of-columns 1) (ps-landscape-mode t) > >>> (htmlize-output-type (quote css)) (ps-print-color-p (quote > >>> black-white))) (save-excursion (save-window-excursion > >>> (org-agenda-mark-filtered-text) (let ... ... ...))) # >>> Agenda*>) > >>> | org-write-agenda("d:/home/zms/zrepo.hg/org/2010-08-21.txt" nil) > >>> | call-interactively(org-write-agenda nil nil) > >>> `---- > >>> > >>> Could my setup be messed up somehow? > >>> > >>> Thanks > >>> -- Manish > >> > >> - Carsten > >> > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode >