[Orgmode] (require 'cl) seems not to be compiled
Hello, some time ago I had a problem with agenda pdf export due to flet macro not found, which could be worked around by putting (require 'cl) in .emacs. http://comments.gmane.org/gmane.emacs.orgmode/21837 Carsten Dominik pointed out this is unnecessary because of (eval-when-compile (require 'cl)) in the sources. But I still can't get it to work on several different systems with Ubuntu. It doesn't seem to be compiled in. - I think I can rule out version conflicts, never installed system wide anymore and on a new installation of Ubuntu 10.04 32bit with Emacs 23.1.1 (i486) from the repositories. -- That means: unzipping org-6.36c.zip and doing a simple make in the resulting directory, didn't change the makefile. - no errors or significant warnings during the make process - tried to remove all .el files from the lisp subdirectory to make sure that only .elc files are loaded. Do I have to edit the makefile for installing org as normal user in my home directory, so that the compiler finds cl.el or something? Everything else seems to work, though, but there might be performance issues or other instabilities when something is not compiled correctly, and, of course, orgmode is all about perfectonism ;) So, again, the steps until the error occurs are -load org file with C-x C-f -display agenda with C-c a a -try to export: C-x C-w agenda.pdf --> Symbol's function definition is void: flet The test org file contains * Item 1 ** Item 1.1 <2010-06-12 Sa> * Item 2 ** TODO Item 2.1 SCHEDULED: <2010-06-10 Do> My .emacs: (setq load-path (cons "~/app/org-6.36c/lisp" load-path)) (setq load-path (cons "~/app/org-6.36c/contrib/lisp" load-path)) (require 'org-install) ;;(require 'cl) (setq org-directory "~/orgfiles/") ;;(global-font-lock-mode 1) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(inhibit-startup-screen t) '(initial-buffer-choice nil) '(org-agenda-files (quote ("~/orgfiles/test.org"))) '(scroll-bar-mode (quote right))) (setq visible-bell t) (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (global-set-key "\C-c1" 'org-store-link) (global-set-key "\C-ca" 'org-agenda) (global-set-key "\C-cb" 'org-iswitchb) (org-remember-insinuate) (setq org-default-notes-file (concat org-directory "/notes.org")) (define-key global-map "\C-cr" 'org-remember) ;; htmlize from contrib ;;(add-to-list 'load-path "~/app/org-6.36c/contrib/lisp") ;;(require 'htmlize) ; Enable habit tracking (setq org-modules (quote (org-habit))) ; global STYLE property values for completion (setq org-global-properties (quote (("STYLE_ALL" . "habit" ; position the habit graph on the agenda to the right of the default (setq org-habit-graph-column 50) ; TODO state logging (setq org-log-done 'time) ; save clock history across Emacs sessions (setq org-clock-persist 'history) (org-clock-persistence-insinuate) ;;(setq org-agenda-exporter-settings ;; '((ps-number-of-columns 2) ;; (ps-landscape-mode t) ;; (org-agenda-add-entry-text-maxlines 5) ;; (htmlize-output-type 'css))) ___ 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
Re: [Orgmode] Re: Hang after agenda export [6.34c]
>>>>> "Symbol's function definition is void: flet" >>>> >>>> You need >>>> >>>> cl.el --- Common Lisp extensions for Emacs >>> >>> >> >> When I do a C-u M-x org-reload beforehand there is no error message >> and >> the pdf export succeeds. > > That sounds like there still is a loading conflict - most likely you > are doing something to load org-mode (like setting up appt with org, > or visiting an Org file or constructing an agenda view) before adding > the org directories to the load path. > > - Carsten > Ok, thanks. I'm inexperienced with emacs and lisp and probably can't be of much help to decide if this is a bug or not. (require 'cl) in .emacs is a workaround for me. So just for the record, I have the load-path lines as first two lines in my .emacs file and (require 'org-install) as third one. Commenting out the first two lines makes emacs load my older system-wide installation of org under /usr/local/share/emacs/... which doesn't seem to know "flet" either. Looking at ~/org-6.34c/lisp/, every *.el file has a *.elc equivalent, so I have no idea... Maybe it's because of the ppa.launchpad emacs built I have. I'm going to install Ubuntu karmic on another system and test the emacs version that comes with it (and if it hangs with the mentioned exporter-settings). Regards manonfire ___ 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
Re: [Orgmode] Re: Hang after agenda export [6.34c]
> > On Feb 1, 2010, at 9:10 AM, Noorul Islam K M wrote: > >> manonf...@lavabit.com writes: >> >>> The problem could be solved by removing the example code snippet >>> suggested >>> in the manual (Page 104 for 6.34c) from .emacs which is >>> >>> (setq org-agenda-exporter-setting) >>>'((ps-number-of-columns 2) >>> (ps-landscape-mode t) >>> (org-agenda-add-entry-text-maxlines 5))) >>> >>> >>> Export to txt and html works now. But for pdf I get an error message: >>> >>> "Symbol's function definition is void: flet" >> >> You need >> >> cl.el --- Common Lisp extensions for Emacs > > > All parts of Org that use the flet macro also have > > (eval-when-compile >(require 'cl)) > > so this should not be an issue in Org. > > What Emacs version is this? > > - Carsten > It's 23.1.1 When I do a C-u M-x org-reload beforehand there is no error message and the pdf export succeeds. I'm using 6.34c from my home directory (installed with make only, not "make install") and renamed the emacs folder under /usr/local/share to make sure that the older version isn't loaded. (BTW what's the right way to uninstall a system wide installation of org?) M-x org-version shows the right number. ___ 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
[Orgmode] Re: Hang after agenda export [6.34c]
The problem could be solved by removing the example code snippet suggested in the manual (Page 104 for 6.34c) from .emacs which is (setq org-agenda-exporter-setting) '((ps-number-of-columns 2) (ps-landscape-mode t) (org-agenda-add-entry-text-maxlines 5))) Export to txt and html works now. But for pdf I get an error message: "Symbol's function definition is void: flet" >When trying to export the agenda with C-x C-w filename, emacs hangs and >causes high cpu load with all file types (txt,html,pdf). No file is >created. >This also happened with 6.33f. >The org-file is very simple, one heading with two scheduled items. Manonfire ___ 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
[Orgmode] Hang after agenda export [6.34c]
Hello, this org-mode is fantastic but I experienced a little problem. When trying to export the agenda with C-x C-w filename, emacs hangs and causes high cpu load with all file types (txt,html,pdf). No file is created. This also happened with 6.33f. The org-file is very simple, one heading with two scheduled items. A backtrace after exporting to 'agenda.txt' and a few seconds later hitting C-g: Debugger entered--Lisp error: (quit) org-agenda-get-some-entry-text(# 5 "> ") org-agenda-add-entry-text() run-hooks(org-agenda-before-write-hook) (progn (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 (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 (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 (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 2) (ps-landscape-mode t) (org-agenda-add-entry-text-maxlines 5)) (save-excursion (save-window-excursion ... ...)) #) eval((let ((ps-number-of-columns 2) (ps-landscape-mode t) (org-agenda-add-entry-text-maxlines 5)) (save-excursion (save-window-excursion ... ...)) #)) org-let(((ps-number-of-columns 2) (ps-landscape-mode t) (org-agenda-add-entry-text-maxlines 5)) (save-excursion (save-window-excursion (org-agenda-mark-filtered-text) (let ... ... ...))) #) org-write-agenda("~/orgfiles/agenda.txt" nil) call-interactively(org-write-agenda nil nil) ___ 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