emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* More problems with Mobile Org agenda writing
@ 2010-07-29 14:18 Robert Goldman
  2010-07-29 22:45 ` Robert Goldman
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Goldman @ 2010-07-29 14:18 UTC (permalink / raw)
  To: Org Mode

I posted an email yesterday about a problem I was having writing agendas
for MobileOrg, where org-mode seemed to think it should be writing my
agendas as postscript.

I thought perhaps this was a problem with the old version of Aquamacs
that I have been using, so I finally got myself to upgrade to Aquamacs
2.0 (Emacs 23.2).

Now I get a /different/ error, but it's still an error where org-mode
seems to believe the agenda should be written as postscript.  I can't
see why this should be happening.  Here's the backtrace:

Debugger entered--Lisp error: (error "Autoloading failed to define
function ps-mule-begin-page")
  (ps-mule-begin-page)
  ps-begin-page()
  (progn (set-buffer ps-spool-buffer) (set-buffer-multibyte nil) (setq
safe-marker (make-marker)) (set-marker safe-marker (point-max))
(goto-char (point-min)) (or (looking-at ...) (setq needs-begin-file t))
(set-buffer ps-source-buffer) (save-excursion (let ... ... ... ... ...))
(ps-begin-page) (funcall genfunc from to) (ps-end-page) (ps-end-job
needs-begin-file) (setq completed-safely t))
  (unwind-protect (progn (set-buffer ps-spool-buffer)
(set-buffer-multibyte nil) (setq safe-marker ...) (set-marker
safe-marker ...) (goto-char ...) (or ... ...) (set-buffer
ps-source-buffer) (save-excursion ...) (ps-begin-page) (funcall genfunc
from to) (ps-end-page) (ps-end-job needs-begin-file) (setq
completed-safely t)) (and (markerp safe-marker) (not completed-safely)
(progn ... ...)))
  (let (safe-marker completed-safely needs-begin-file) (unwind-protect
(progn ... ... ... ... ... ... ... ... ... ... ... ... ...) (and ... ...
...)))
  (save-restriction (narrow-to-region from to) (and ps-razzle-dazzle
(message "Formatting...%3d%%" ...)) (setq ps-source-buffer buffer
ps-spool-buffer (get-buffer-create ps-spool-buffer-name))
(ps-init-output-queue) (let (safe-marker completed-safely
needs-begin-file) (unwind-protect ... ...)) (and ps-razzle-dazzle
(message "Formatting...done")))
  (let ((from ...) (to ...) (inhibit-read-only t)) (save-restriction
(narrow-to-region from to) (and ps-razzle-dazzle ...) (setq
ps-source-buffer buffer ps-spool-buffer ...) (ps-init-output-queue) (let
... ...) (and ps-razzle-dazzle ...)))
  (save-excursion (let (... ... ...) (save-restriction ... ... ... ...
... ...)))
  ps-generate(#<buffer *SUMO*> 1 15300 ps-generate-postscript-with-faces)
  ps-spool-with-faces(1 15300 nil)
  ps-print-with-faces(1 15300 "/Volumes/rpgoldman/org/agendas.org")
  ps-print-buffer-with-faces("/Volumes/rpgoldman/org/agendas.org")
  org-write-agenda("/Volumes/rpgoldman/org/agendas.org" nil t)
  (let ((org-agenda-compact-blocks nil)) (org-write-agenda
"/Volumes/rpgoldman/org/agendas.org" nil t))
  eval((let ((org-agenda-compact-blocks nil)) (org-write-agenda
"/Volumes/rpgoldman/org/agendas.org" nil t)))
  byte-code("\b\205z

As far as I can tell, org-mode should only do this if it finds \.ps or
\.pdf in the filename, but that clearly isn't the case for "agendas.org".

Any suggestions?

thanks!

r

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: More problems with Mobile Org agenda writing
  2010-07-29 14:18 More problems with Mobile Org agenda writing Robert Goldman
@ 2010-07-29 22:45 ` Robert Goldman
  0 siblings, 0 replies; 2+ messages in thread
From: Robert Goldman @ 2010-07-29 22:45 UTC (permalink / raw)
  To: Org Mode

On 7/29/10 Jul 29 -9:18 AM, Robert Goldman wrote:
> I posted an email yesterday about a problem I was having writing agendas
> for MobileOrg, where org-mode seemed to think it should be writing my
> agendas as postscript.
> 
> I thought perhaps this was a problem with the old version of Aquamacs
> that I have been using, so I finally got myself to upgrade to Aquamacs
> 2.0 (Emacs 23.2).
> 
> Now I get a /different/ error, but it's still an error where org-mode
> seems to believe the agenda should be written as postscript.  I can't
> see why this should be happening.  Here's the backtrace:

I was discussing this with a colleague of mine, and he had a hypothesis
that might be correct.

The code in org-write-agenda looks like it has been rewritten to make
FLET be expanded at compile time, so it needn't be present at run-time.

However, I wonder if this was done properly, or whether the backquote
expansion is causing the /body/ of the flet to be evaluated at run-time
(instead of having it be macroexpanded once at compile time).

This would account for the symptoms I'm seeing:  I tried putting a DEBUG
statement before the call to ps-print-buffer-with-faces, and that debug
statement was never executed, further, when I examine the value of the
FILE local variable in the debugger, it clearly isn't a value that would
trigger a call to ps-print-buffer-with-faces.

I believe what's wanted here is macroexpansion and not evaluation, yes?

More as I discover more,

R

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-07-29 22:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-29 14:18 More problems with Mobile Org agenda writing Robert Goldman
2010-07-29 22:45 ` Robert Goldman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).