Re: [O] Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)]
Eric Schulte schulte.e...@gmail.com writes: Hi Eric, Aha. I've used source blocks only for the markup especially when exporting until now. And the manual states that inline code blocks are not different to normal code blocks, just being inline. So that's at least unexpected behavior, and the manual should be updated accordingly. They are treated just like code blocks, however they have different default header arguments. ,[org-babel-default-inline-header-args] | org-babel-default-inline-header-args is a variable defined in `ob-core.el'. | Its value is ((:session . none) | (:results . replace) | (:exports . results)) | | | Documentation: | Default arguments to use when evaluating an inline source block. ` Ah, thanks. If you'd like to propose a patch to the manual which makes this clear, I'm happy to apply it. First, I have to understand this a bit better. Now I've set (setq org-babel-default-inline-header-args '((:session . none) (:results . replace) (:exports . code))) in order to export the code. But the result is that in the exported html (org-reveal) document I get --8---cut here---start-8--- #+BEGINsubSRC/sub clojure (+ 1 2 3) ;=gt; 6 #+ENDsubSRC/sub --8---cut here---end---8--- And the corresponding export function which would do the intended thing still isn't called. --8---cut here---start-8--- (org-export-define-derived-backend 'reveal 'html ;... :translate-alist '(;... (inline-src-block . org-reveal-inline-src-block) ;...) :export-block REVEAL ) (defun org-reveal-inline-src-block (inline-src-block contents info) Transcode an INLINE-SRC-BLOCK element from Org to HTML. CONTENTS holds the contents of the item. INFO is a plist holding contextual information. (let* ((org-lang (org-element-property :language inline-src-block)) (code (org-element-property :value inline-src-block))) (format code class=\src src-%s\%s/code org-lang code))) --8---cut here---end---8--- where `code' becomes the inline code with its markup. Bye, Tassilo
[O] Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Hi all, lately, I've used ox-reveal.el to create a presentation. Thereby, I found out that inline source code blocks are ignored, i.e., the text is simply not there in the HTML5 output. Here's a test heading: --8---cut here---start-8--- * Test Heading - Here's some inline code: src_clojure{(+ 1 2 3)} - Here's some more inline code: src_clojure{(- 1 2 3)} --8---cut here---end---8--- ox-reveal.el derives the export from ox-html. That defines (inline-src-block . org-html-inline-src-block) with --8---cut here---start-8--- (defun org-html-inline-src-block (inline-src-block contents info) Transcode an INLINE-SRC-BLOCK element from Org to HTML. CONTENTS holds the contents of the item. INFO is a plist holding contextual information. (let* ((org-lang (org-element-property :language inline-src-block)) (code (org-element-property :value inline-src-block))) (error Cannot export inline src block))) --8---cut here---end---8--- and ox-reveal doesn't (yet) override that. So in theory, exporting the entry above should signal an error, but it doesn't I also tried the plain html export. Still, there's no error. The function is simply not called at all. So there seems to be a bug in the exporter which doesn't seem to recognize inline source code. That said, I've never used inline source blocks before, so maybe I'm doing something wrong. On the one hand, the manual is pretty clear on their syntax. But on the other hand, they aren't highlighted in the org buffer... Bye, Tassilo Emacs : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.2) of 2013-06-12 on thinkpad Package: Org-mode version 8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(th-outline-minor-mode-init) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-gnus-prefer-web-links t org-special-ctrl-k t org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-complete-tags-always-offer-all-agenda-tags t org-id-link-to-org-use-id t org-columns-default-format %50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE org-export-date-timestamp-format %Y-%m-%d org-agenda-restore-windows-after-quit t org-special-ctrl-a/e 'reversed org-agenda-custom-commands '((n Next 21 days agenda ((org-agenda-span 21))) (^ Calfw Month Calendar th-calfw-open-calendar)) org-return-follows-link t org-latex-format-headline-function 'org-latex-format-headline-default-function org-agenda-time-leading-zero t org-capture-templates '((n NORMAL entry (file /home/horn/Repos/org/remember.org) * %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (t TODO entry (file /home/horn/Repos/org/remember.org) * TODO %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (i IDEA entry (file /home/horn/Repos/org/remember.org) * IDEA %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) ) org-after-todo-state-change-hook '(org-clock-out-if-current) org-icalendar-include-body 100 org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-export-copy-to-kill-ring t org-mode-hook '(th-org-mode-init #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((org-agenda-files :maxlevel . 5)) org-attach-method 'mv org-export-with-tags 'not-in-toc org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path 'file org-reveal-title-slide-template h2%t/h2\nbr
Re: [O] Bug: Exporter omits inline code blocks [8.0.3 (release_8.0.3-238-g172061 @ /home/horn/Repos/el/org-mode/lisp/)]
Nicolas Goaziou n.goaz...@gmail.com writes: There's no bug. Babel simply removes all inline source blocks when executing source blocks. Hence, they cannot be parsed (and therefore exported). This function is just a placeholder for now. Aha. I've used source blocks only for the markup especially when exporting until now. And the manual states that inline code blocks are not different to normal code blocks, just being inline. So that's at least unexpected behavior, and the manual should be updated accordingly. Bye, Tassilo
Re: [O] A simple way to search only headlines
Xebar Saram zelt...@gmail.com writes: i was wondering if anyone knew of a way to search for text only in headlines and not the whole document? if not is it something one can put a feature request for? Use regular expression search or isearch. The latter would be: C-u C-s \*+.*your-search-prase Bye, Tassilo
Re: [O] Problem with Google Calendar Synchronization
Guido Van Hoecke gui...@gmail.com writes: Hu Giudo, When executing the awk script written by Eric S. Fraga at http://orgmode.org/worg/org-tutorials/org-google-sync.html I get following error: /usr/bin/awk: calling undefined function gensub source line number 82 This is on an iMac with 'awk version 20070501'. Is this outdated or so? gensub is a GNU awk extension. So either you are running a different flavor of awk, or you are running it in compatibility mode (Option -c or --traditional). Given the version string, I guess it's another flavor. --8---cut here---start-8--- % awk -V GNU Awk 4.0.2 Copyright (C) 1989, 1991-2012 Free Software Foundation. --8---cut here---end---8--- Bye, Tassilo
Re: [O] New maintainer
Jambunathan K kjambunat...@gmail.com writes: How do you interpret the following block extracted from my assignment , | 2. Developer will report occasionally, on Developer’s initiative | and whenever requested by FSF, the changes and/ or enhancements | which are covered by this contract, and (to the extent known to | Developer) any outstanding rights, or claims of rights, of any | person, that might be adverse to the rights of Developer or FSF | or to the purpose of this contract. ` Well, the FSF's intention here is to make sure that contributors report back when they change employers, and the new employer doesn't want that his employees contribute to some GNU project (maybe because that project is in the same business as the company). So I think of that more of a safety measure in order not to run into long-running, painful lawsuits. FSF clearly side-steps the important question - when is a work actually assigned. Assignment is not a process but an event tied to specific time and date. As far as I understand it (just after reading one of my FSF CAs), the changes you apply to a program where you've assigned past future changes are assigned as soon as they are written. They don't need to be published, distributed, placed in a special repository location, etc. Bye, Tassilo
Re: [O] How to know in elisp if I am in the agenda ..
Thorsten Jolitz tjol...@gmail.com writes: Please help. Where could I find information/docs for something like How to determine when I am in agenda view? , | M-: (string-equal *Org Agenda* (buffer-name)) ` gives t when called from inside the agenda. Better (string-equal org-agenda-buffer-name (buffer-name)) or even better (eq major-mode 'org-agenda-mode) Bye, Tassilo
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Hi Bastien, Ok, the testfile looks like * The folded top-level headline ** TODO Some test todo headline 0 - also some contents ** TODO Some test todo headline 1 - also some contents and has 2000 such subheadlines. File size is 127K. `org-startup-folded' is t. That's not a very good test file, because you just need to unfold the main headline to get all headlines visible. I tested with a test.org file using this structure: * Test ** TODO Test *** Test repeated 10k times. Then run emacs -Q -l ~/test.el with the attached test.el file, I get sensible results here. Indeed, with this test file, `org-agenda-inhibit-startup' does have a major performance implication. PS: I will revert `org-agenda-inhibit-startup' to nil as a default and will explain why in another mail. I'm keen to hear the explanation. Bye, Tassilo
Re: [O] Bug: Lisp error: (wrong-type-argument listp t) at startup [7.9.3f (release_7.9.3f-10-g2b13d0 @ /home/horn/Repos/el/org-mode/lisp/)]
Bastien b...@altern.org writes: Hi Basien, since I've updated my org git clone today, I get the following error on emacs startup. Fixed, thanks. Confirmed, thanks. Bye, Tassilo
[O] Bug: Lisp error: (wrong-type-argument listp t) at startup [7.9.3f (release_7.9.3f-10-g2b13d0 @ /home/horn/Repos/el/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Hi all, since I've updated my org git clone today, I get the following error on emacs startup. --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument listp t) delq(nil t) org-show-context(bookmark-jump) org-bookmark-jump-unhide() ad-Advice-save-place-find-file-hook(#[nil \204.\306 \210\307 \n\\211.\205..\f\204..Ab\210\310\211.)\207 [save-place-loaded buffer-file-name save-place-alist cell revert-buffer-in-progress-p save-place load-save-place-alist-from-file assoc t] 4]) apply(ad-Advice-save-place-find-file-hook #[nil \204.\306 \210\307 \n\\211.\205..\f\204..Ab\210\310\211.)\207 [save-place-loaded buffer-file-name save-place-alist cell revert-buffer-in-progress-p save-place load-save-place-alist-from-file assoc t] 4] nil) save-place-find-file-hook() run-hooks(find-file-hook) after-find-file(nil t) find-file-noselect-1(#buffer contacts.org ~/Repos/org/contacts.org nil nil ~/Repos/org/contacts.org (9437614 2051)) find-file-noselect(/home/horn/Repos/org/contacts.org) org-get-agenda-file-buffer(/home/horn/Repos/org/contacts.org) byte-code(\306!\203\f.q\210\202..\307!\210\310!q\210~\210\311 \210\312 \313\\210\312\314\315\\210\316\n\.\316\f.\.\316\..\316\..\316.. \.\317 .!\320\211.\.#\320.$\321\211.%.\321.'\322\216\212\323ed.(#\210.)\203\212.eb\210\324.*\321\320#\203\212.\325\320!\203n.\326\327 \330\320!.+#\210\202n.eb\210\331.,.-\..\324..\321\320#\203\253.\326\332\224\330\320!./#\210\202\225.. \321\207 [file org-effort-property org-todo-keywords-for-agenda org-todo-keywords-1 org-done-keywords-for-agenda org-done-keywords bufferp org-check-agenda-file org-get-agenda-file-buffer org-refresh-category-properties org-refresh-properties org-effort APPT_WARNTIME org-appt-warntime append buffer-modified-p t nil ((byte-code \204.\301\302!\210\302\207 [modified restore-buffer-modified-p nil] 2)) remove-text-properties re-search-forward org-at-heading-p add-text-properties point-at-bol org-end-of-subtree format 0 org-todo-keyword-alist-for-agenda org-todo-key-alist org-drawers-for-agenda org-drawers org-tag-alist-for-agenda org-tag-alist modified buffer-undo-list inhibit-read-only inhibit-modification-hooks deactivate-mark buffer-file-name buffer-file-truename pall org-agenda-skip-archived-trees rea pa org-heading-keyword-regexp-format org-comment-string re pc] 5) org-agenda-prepare-buffers((/home/horn/Repos/org/contacts.org /home/horn/Repos/org/diss.org /home/horn/Repos/org/from-org-mobile.org /home/horn/Repos/org/gnu.org /home/horn/Repos/org/hints.org /home/horn/Repos/org/private.org /home/horn/Repos/org/remember.org /home/horn/Repos/org/uni.org)) org-agenda-to-appt(t) th-org-agenda-to-appt() eval-buffer(#buffer *load* nil /home/horn/.emacs nil t) ; Reading at buffer position 46461 load-with-code-conversion(/home/horn/.emacs /home/horn/.emacs t t) load(~/.emacs t t) #[0 \205\262. \306=\203..\307\310Q\202;. \311=\204..\307\312Q\202;.\313\307\314\315#\203*.\316\202;.\313\307\314\317#\203:.\320\nB.\321\202;.\316\322.\323.\322\211#\210\322=\203a.\324\325\326\307\327Q!\\323.\322\211#\210\322=\203`...\210\203\243.\330!\331\232\203\243.\332!\211\333P\334.!\203}.\211\202\210.\334.!\203\207..\202\210.\314\262..\203\241.\335.\\203\237.\336\337.#\210\340\341!\210..\266.\f?\205\260.\314.\323\342\322\211#)\262.\207 [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos ~ /_emacs windows-nt /.emacs directory-files nil ^\\.emacs\\(\\.elc?\\)?$ ~/.emacs ^_emacs\\(\\.elc?\\)?$ (initialization `_emacs' init file is deprecated, please use `.emacs') ~/_emacs t load expand-file-name init file-name-as-directory /.emacs.d file-name-extension elc file-name-sans-extension .el file-exists-p file-newer-than-file-p message Warning: %s is newer than %s sit-for 1 default] 7 \n\n(fn)]() command-line() normal-top-level() --8---cut here---end---8--- I've done a bisection, and the commit introducing this problem is this: --8---cut here---start-8--- 41882a99d3cf14e4c9ad45559bc3fc9e8b21b581 is the first bad commit commit 41882a99d3cf14e4c9ad45559bc3fc9e8b21b581 Author: Bastien Guerry b...@altern.org Date: Tue Feb 26 22:45:04 2013 +0100 Fix a longstanding issue with ellispsis on top of the window * org.el (org-show-context): Remove useless catch. Make sure the top of the window is a visible headline. * org.el (org-activate-plain-links): Remove unused catch. *
[O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Since recently, after starting up emacs and bringing up an org agenda which loads all my agenda files into buffers as a side-effect, all entries in all files are fully expanded, although org-startup-folded is set to t. I've tried adding a #+STARTUP: fold or a #+STARTUP: overview header to the top of my agenda files, but that doesn't change anything. Everything is completely expanded after the initial startup. If needed, I could try a bisection. Emacs : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.3) of 2013-02-12 on thinkpad Package: Org-mode version 7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/) current state: == (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(th-outline-minor-mode-init) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-gnus-prefer-web-links t org-special-ctrl-k t org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-complete-tags-always-offer-all-agenda-tags t org-id-link-to-org-use-id t org-finalize-agenda-hook '(th-org-agenda-to-appt) org-columns-default-format %50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE org-agenda-restore-windows-after-quit t org-special-ctrl-a/e 'reversed org-agenda-custom-commands '((n Next 21 days agenda ((org-agenda-span 21))) (^ Calfw Month Calendar th-calfw-open-calendar)) org-return-follows-link t org-agenda-time-leading-zero t org-capture-templates '((n NORMAL entry (file /home/horn/Repos/org/remember.org) * %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (t TODO entry (file /home/horn/Repos/org/remember.org) * TODO %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (i IDEA entry (file /home/horn/Repos/org/remember.org) * IDEA %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) ) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(th-org-mode-init #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((org-agenda-files :maxlevel . 5)) org-attach-method 'mv org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path 'file org-directory /home/horn/Repos/org org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-agenda-finalize-hook '(th-org-agenda-to-appt) org-attach-directory /home/horn/Repos/org/attachments org-archive-default-command 'org-archive-set-tag org-refile-allow-creating-parent-nodes 'confirm org-todo-keywords '((sequence TODO(t) STARTED(s) DELEGATED(g) IDEA(i) | DONE(d) CANCELLED(c)) ) org-modules '(org-icalendar org-attach org-protocol org-id org-bibtex org-docview org-gnus org-info org-irc org-capture org-mobile) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer LOGBOOK org-icalendar-store-UID t org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-mobile-directory ~/Dropbox/MobileOrg org-agenda-mode-hook '(th-org-agenda-mode-init) org-agenda-files '(/home/horn/Repos/org) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-link-frame-setup '((vm . vm-visit-folder) (gnus . org-gnus-no-new-news) (file . find-file-other-window)) org-mobile-inbox-for-pull ~/Repos/org/from-org-mobile.org org-src-fontify-natively t )
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Everything is completely expanded after the initial startup. It's an optimization done by Bastien. There is a variable to inhibit it. Ah, ok. I'm not a big fan of optimizations that break correctness, and the current behavior is simply wrong wrt. the docs of `org-startup-folded' and the #+STARTUP property. That subject has been discussed here a couple of days ago. Search for agenda and performance in Bastien's emails. Sorry, not time to do it, but I wanted to avoid you loosing more time searching after this feature. Thanks a lot, I'll look it up myself. I already searched for folded, collapsed, and expanded before writing the bug report, but those searches didn't find any recent messages. Bye, Tassilo
Re: [O] How to improve Org startup time?
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: But then org-agenda-to-appt will be called each time your generate a new agenda... not sure you really want this right. Why not simply calling it interactively when you need it? I can't count on myself to do it at a regular enough interval (at least daily). Then, this is the only (?) solution found so that the appt-list is still quite up-to-date. I call it once at emacs startup and then only when I save an agenda file. --8---cut here---start-8--- (defun th-org-agenda-to-appt () (org-agenda-to-appt t) (appt-activate 1)) (defun th-org-mode-init () ;; ... (when (and (org-agenda-file-p) (not (string= (file-name-nondirectory (buffer-file-name)) org-mobile-capture-file)) (not (string= (buffer-file-name) org-mobile-inbox-for-pull))) (add-hook 'after-save-hook 'th-org-agenda-to-appt t t))) (add-hook 'org-mode-hook 'th-org-mode-init) --8---cut here---end---8--- Bye, Tassilo
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Tassilo Horn th...@fastmail.fm writes: Since recently, after starting up emacs and bringing up an org agenda which loads all my agenda files into buffers as a side-effect, all entries in all files are fully expanded, although org-startup-folded is set to t. I've tried adding a #+STARTUP: fold or a #+STARTUP: overview header to the top of my agenda files, but that doesn't change anything. Everything is completely expanded after the initial startup. Just a short addon: When I do M-x revert-buffer RET in some agenda file (currently being completely expanded), it's displayed folded (with the exception of the entry containing point). That's the correct behavior. If I invoke `org-agenda-list' again to generate a new agenda, the reverted agenda files stay in their folded state, too. Now if I kill the buffer of some agenda file and invoke `org-agenda-list' which will reopen the file, it's completely expanded again. So the problem seems to be that only if an agenda file is opened during execution of `org-agenda-list', it's expanded completely. Else, `org-startup-folded' works correctly. Bye, Tassilo
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Bastien b...@altern.org writes: Hi Bastien, Ah, ok. I'm not a big fan of optimizations that break correctness, and the current behavior is simply wrong wrt. the docs of `org-startup-folded' and the #+STARTUP property. I just updated the docstring of org-startup-folded and mentioned `org-agenda-inhibit-startup' in the manual (maint branch.) Thanks. I'm not convinced nil would be better as a default for `org-agenda-inhibit-startup' -- even when users use only one big .org file as their agenda, if they call (org-agenda nil a) in their .emacs.el then the optimization is also worth it. I have seven agenda files, all not too big (~10K on average), and I use an averagely performant computer (5 years old dual core laptop). For me, the difference between `org-agenda-inhibit-startup' set to t or nil is not noticable at all. In both cases, it's less than a second, and that's a time I can easily live with. So if one asked me, I'd say the default should be nil. Probably, it would be a good idea to list and explain all such performance optimization options and their implications in one central place in the manual (Speeding up org on slower computers), so that people having performance issues can easily find these knobs. Bye, Tassilo
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Bastien b...@altern.org writes: Hi Bastien, So the problem seems to be that only if an agenda file is opened during execution of `org-agenda-list', it's expanded completely. Else, `org-startup-folded' works correctly. Exactly -- hence this commit: http://orgmode.org/cgit.cgi/org-mode.git/commit/?id=981c6d I hope it's clear enough, let me know otherwise. Yes, now the docs are clear again. But still the change itself seems like a premature optimization to me. It might make a difference when you have megabyte large agenda files or a very slow computer, but is that the norm among users justifying such a change? Well, anyway. I've set `org-agenda-inhibit-startup' to nil, and now I'm satisfied again. BTW, that reminds me of http://xkcd.com/1172/. ;-) Bye, Tassilo
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Bastien b...@altern.org writes: I have seven agenda files, all not too big (~10K on average), and I use an averagely performant computer (5 years old dual core laptop). For me, the difference between `org-agenda-inhibit-startup' set to t or nil is not noticable at all. In both cases, it's less than a second, and that's a time I can easily live with. It really depends on what your agenda views are. The real test is this: create a 50K file with folded one headline and many second level TODO entries. Ok, the testfile looks like --8---cut here---start-8--- * The folded top-level headline ** TODO Some test todo headline 0 - also some contents ** TODO Some test todo headline 1 - also some contents --8---cut here---end---8--- and has 2000 such subheadlines. File size is 127K. `org-startup-folded' is t. Then have an agenda view search for those TODO items. Do you get the same difference in this case? It takes approximately 9-10 seconds to build a TODO agenda (C-c o a t), no matter if `org-agenda-inhibit-startup' is t or nil. The week agenda takes less than a second with both settings. Before each agenda invocation, I've deleted all org buffers of course. I must admit I didn't really profile but just counted in my mind. But I did it several times, so it's super-scientific and you should trust me. ;-) So now I've increased the number of subentries to 8000 resulting in a file size of 492K, and I've used a stop-watch for measuring. | org-agenda-inhibit-startup | time TODO agenda | time week agenda | |+--+--| | nil| 2min1sec | 1sec / 9sec | | t | 2min18sec| 1sec / 29sec | I've performed these tests several times. The times with respect to TODO agenda creation were pretty much consistent. However, the times with respect to week agenda creation were usually around 1 second, but there were some strange outliers I have no explanation for (the 9 and the 29 seconds one). But in any case, if there was a noticable difference, the org-agenda-inhibit-startup set to nil-version was even faster than the optimized version. Bye, Tassilo
Re: [O] Bug: #+STARTUP: overview and org-startup-folded have no effect [7.9.3e (7.9.3e-1032-g791a8d @ /home/horn/Repos/el/org-mode/lisp/)]
Bastien b...@altern.org writes: Hi Bastien, It's an optimization done by Bastien. I think it's fine to have this by default, the time spared is worth it IMHO. But I understand many people may want to turn this off. There is a variable to inhibit it. (setq org-agenda-inhibit-startup nil) If you don't want the optimization. I've done the performance measurements you've requested in Message-ID: 87ehgjgmiv@thinkpad.tsdh.de. For me, the optimized version is by no means faster than the `org-agenda-inhibit-startup' set to nil. If you reproduce the measurements on your machine and it turns out that you get results inverse to mine, I'm happy to help debugging where the differences come from. In general, it's worth sticking to the default behavior if you have many agenda files. If you have only a few, the setting above may be preferable. My measurements were performed with my 7 normal agenda files + one synthetically constructed. 1 top-level headline with 8000 child TODO items, and then triggering the TODO agenda (and also the week agenda). That's what you've requested in 87vc9vdwx7@bzg.ath.cx. Bye, Tassilo
Re: [O] Bug: Tag inheritance broken in agenda/timeline buffers [7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/)]
Tassilo Horn th...@fastmail.fm writes: I have (all default values) org-use-tag-inheritance t org-agenda-use-tag-inheritance '(todo search timeline agenda) org-agenda-show-inherited-tags t but there are no inherited tags shown in the agenda or an org-buffer's timeline. When I press `T' on a agenda entry, the inherited tags are properly messaged in the echo area, though. I'm sure it used to work, but I'm not sure when it stopped working. When I find some time, I can try bisecting. I've done the bisecting: 7684fbd6a227f0ad182661fd7eb17a9e13dc4695 is the first bad commit commit 7684fbd6a227f0ad182661fd7eb17a9e13dc4695 Author: Nicolas Goaziou n.goaz...@gmail.com Date: Tue Jan 8 10:34:40 2013 +0100 Ignore `auto-fill-inhibit-regexp' * lisp/org.el (org-setup-filling): Ignore `auto-fill-inhibit-regexp'. The idea behind this is that `org-adaptive-fill-function' already determines which lines should be filled. :04 04 a3246c36c59e412bd43df6afa0088d2499268265 7e69342d3b487a61a2cb6bba62b3262896fcdaab M lisp Now don't ask me how that change affects tag inheritance?! Bye, Tassilo
Re: [O] Bug: Tag inheritance broken in agenda/timeline buffers [7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/)]
Tassilo Horn t...@gnu.org writes: When I press `T' on a agenda entry, the inherited tags are properly messaged in the echo area, though. I'm sure it used to work, but I'm not sure when it stopped working. When I find some time, I can try bisecting. I've done the bisecting: 7684fbd6a227f0ad182661fd7eb17a9e13dc4695 is the first bad commit commit 7684fbd6a227f0ad182661fd7eb17a9e13dc4695 Author: Nicolas Goaziou n.goaz...@gmail.com Date: Tue Jan 8 10:34:40 2013 +0100 Ignore `auto-fill-inhibit-regexp' Sorry for the noise, but I must have done something wrong during bisect. The previous commit is also bad, so Nicolas isn't the one to blame here. I'll bisect again... Bye, Tassilo
Re: [O] Bug: Tag inheritance broken in agenda/timeline buffers [7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/)]
Tassilo Horn t...@gnu.org writes: I've done the bisecting: 7684fbd6a227f0ad182661fd7eb17a9e13dc4695 is the first bad commit commit 7684fbd6a227f0ad182661fd7eb17a9e13dc4695 Author: Nicolas Goaziou n.goaz...@gmail.com Date: Tue Jan 8 10:34:40 2013 +0100 Ignore `auto-fill-inhibit-regexp' Sorry for the noise, but I must have done something wrong during bisect. The previous commit is also bad, so Nicolas isn't the one to blame here. I'll bisect again... Ok, here's the new bisecting result, and that seems reasonable: c8bfd50223d1a75d12d7f74571c24951592c56ec is the first bad commit commit c8bfd50223d1a75d12d7f74571c24951592c56ec Author: Bastien Guerry b...@altern.org Date: Mon Jan 7 16:12:52 2013 +0100 org-agenda.el: New option `org-agenda-use-tag-inheritance' * org-agenda.el (org-search-view, org-agenda-get-todos) (org-agenda-get-timestamps, org-agenda-get-sexps) (org-agenda-get-progress, org-agenda-get-deadlines) (org-agenda-get-scheduled, org-agenda-get-blocks) (org-agenda-change-all-lines): Get local tags only. (org-agenda-use-tag-inheritance): New option. (org-agenda-finalize): When `org-agenda-use-tag-inheritance' is non-nil, possibly reset tags in the agenda buffer. (org-agenda-check-type): Enhance docstring. See the docstring of the new option for details. :04 04 78b4635191f9aadf4fb1e4aaf4fce5c503e24ef6 cfc6f54ff9328ec0f338f2050b913ae7dfbb399b M lisp In the diff of that commit, I see a lot of changes like - (setq tags (org-get-tags-at)) + (setq tags (org-get-tags-at nil t)) i.e., it used to show all tags (local and inherited), and now it's explicitly said to display only local tags. I've validated the result: with c8bfd50223d1a75d12d7f74571c24951592c56ec tag inheritance is broken, with its predecessor babba02 it does work again. Bye, Tassilo
[O] Bug: Tag inheritance broken in agenda/timeline buffers [7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I have (all default values) org-use-tag-inheritance t org-agenda-use-tag-inheritance '(todo search timeline agenda) org-agenda-show-inherited-tags t but there are no inherited tags shown in the agenda or an org-buffer's timeline. When I press `T' on a agenda entry, the inherited tags are properly messaged in the echo area, though. I'm sure it used to work, but I'm not sure when it stopped working. When I find some time, I can try bisecting. BTW: What's the difference between `org-agenda-use-tag-inheritance' and `org-agenda-show-inherited-tags'? Is there a difference between using and showing tag inheritance? Emacs : GNU Emacs 24.3.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.6.2) of 2013-01-01 on thinkpad Package: Org-mode version 7.9.3a (release_7.9.3a-803-gf8f548 @ /home/horn/Repos/el/org-mode/lisp/) current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(th-outline-minor-mode-init) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-gnus-prefer-web-links t org-special-ctrl-k t org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-complete-tags-always-offer-all-agenda-tags t org-id-link-to-org-use-id t org-finalize-agenda-hook '(th-org-agenda-to-appt) org-columns-default-format %50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-agenda-restore-windows-after-quit t org-special-ctrl-a/e 'reversed org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-custom-commands '((n Next 21 days agenda ((org-agenda-span 21))) (^ Calfw Month Calendar th-calfw-open-calendar)) org-return-follows-link t org-agenda-time-leading-zero t org-capture-templates '((n NORMAL entry (file /home/horn/Repos/org/remember.org) * %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (t TODO entry (file /home/horn/Repos/org/remember.org) * TODO %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (i IDEA entry (file /home/horn/Repos/org/remember.org) * IDEA %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) ) org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(th-org-mode-init #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((org-agenda-files :maxlevel . 5)) org-attach-method 'mv org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path 'file org-directory /home/horn/Repos/org org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-first-hook '(org-beamer-initialize-open-trackers) org-agenda-finalize-hook '(th-org-agenda-to-appt) outline-regexp \\*+ org-attach-directory /home/horn/Repos/org/attachments org-archive-default-command 'org-archive-set-tag org-refile-allow-creating-parent-nodes 'confirm org-todo-keywords '((sequence TODO(t) STARTED(s) DELEGATED(g) IDEA(i) | DONE(d) CANCELLED(c)) ) org-modules '(org-icalendar org-attach org-protocol org-id org-bibtex org-docview
[O] Bug: M-x org-agenda RET a RET = Lisp error: (wrong-type-argument number-or-marker-p nil) [7.9.1 (release_7.9.1-321-g9ebf47-git @ mixed installation! /usr/share/emacs/24.2.50/lisp/org/ and /home/h
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. With org from git (commit 9ebf47afbf2b60a496a1a5393aaa7734adc4d352), I get the error from the subject when I want to open the org agenda. You don't need any configs to trigger the error. Here's a minimal recipe: 1. emacs -Q 2. Add this to *scratch* and evaluate it: (progn ;; adapt the path as needed (add-to-list 'load-path ~/Repos/el/org-mode/lisp/) (require 'org)) 3. M-x org-agenda RET a RET With debug-on-error, I get the following backtrace (from uncompiled sources for clarity, you get the same error if org is compiled): --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument number-or-marker-p nil) 1-(nil) (let ((--dotimes-limit-- (1- ndays)) (n 0)) (while ( n --dotimes-limit--) (setq day-numbers (cons (1+ (car day-numbers)) day-numbers)) (setq n (1+ n (progn (let ((--dotimes-limit-- (1- ndays)) (n 0)) (while ( n --dotimes-limit--) (setq day-numbers (cons (1+ (car day-numbers)) day-numbers)) (setq n (1+ n) (let* ((span (org-agenda-ndays-to-span (or span org-agenda-ndays org-agenda-span))) (today (org-today)) (sd (or start-day today)) (ndays (org-agenda-span-to-ndays span sd)) (org-agenda-start-on-weekday (if (eq ndays 7) org-agenda-start-on-weekday)) (thefiles (org-agenda-files nil (quote ifmode))) (files thefiles) (start (if (or (null org-agenda-start-on-weekday) ( ndays 7)) sd (let* ((nt (calendar-day-of-week ...)) (n1 org-agenda-start-on-weekday) (d (- nt n1))) (- sd (+ (if ... 7 0) d) (day-numbers (list start)) (day-cnt 0) (inhibit-redisplay (not debug-on-error)) (org-agenda-show-log-scoped org-agenda-show-log) s e rtn rtnall file date d start-pos end-pos todayp clocktable-start clocktable-end filter) (setq org-agenda-redo-command (list (quote org-agenda-list) (list (quote quote) arg) start-day (list (quote quote) span))) (progn (let ((--dotimes-limit-- (1- ndays)) (n 0)) (while ( n --dotimes-limit--) (setq day-numbers (cons (1+ (car day-numbers)) day-numbers)) (setq n (1+ n) (setq day-numbers (nreverse day-numbers)) (setq clocktable-start (car day-numbers) clocktable-end (1+ (or (org-last day-numbers) 0))) (org-set-local (quote org-starting-day) (car day-numbers)) (org-set-local (quote org-arg-loc) arg) (org-set-local (quote org-agenda-current-span) (org-agenda-ndays-to-span span)) (if org-agenda-compact-blocks nil (let* ((d1 (car day-numbers)) (d2 (org-last day-numbers)) (w1 (org-days-to-iso-week d1)) (w2 (org-days-to-iso-week d2))) (setq s (point)) (if org-agenda-overriding-header (insert (org-add-props (copy-sequence org-agenda-overriding-header) nil (quote face) (quote org-agenda-structure)) \n) (insert (org-agenda-span-name span) -agenda (if ( (- d2 d1) 350) (if (= w1 w2) (format (W%02d) w1) (format (W%02d-W%02d) w1 w2)) ) :\n))) (add-text-properties s (1- (point)) (list (quote face) (quote org-agenda-structure) (quote org-date-line) t)) (org-agenda-mark-header-line s)) (while (setq d (car (prog1 day-numbers (setq day-numbers (cdr day-numbers) (setq date (calendar-gregorian-from-absolute d) s (point)) (if (or (setq todayp (= d today)) (and (not start-pos) (= d sd))) (setq start-pos (point)) (if (and start-pos (not end-pos)) (setq end-pos (point (setq files thefiles rtnall nil) (while (setq file (car (prog1 files (setq files (cdr files) (catch (quote nextfile) (org-check-agenda-file file) (let ((org-agenda-entry-types org-agenda-entry-types)) (if org-agenda-include-deadlines nil (setq org-agenda-entry-types (delq :deadline org-agenda-entry-types))) (cond ((memq org-agenda-show-log-scoped ...) (setq rtn ...)) (org-agenda-show-log-scoped (setq rtn ...)) (t (setq rtn ... (setq rtnall (append rtnall rtn (if org-agenda-include-diary (let ((org-agenda-search-headline-for-time t)) (require (quote diary-lib)) (setq rtn (org-get-entries-from-diary date)) (setq rtnall (append rtnall rtn (if (or rtnall org-agenda-show-all-dates) (progn (setq day-cnt (1+ day-cnt)) (insert (if (stringp org-agenda-format-date) (format-time-string org-agenda-format-date (org-time-from-absolute date)) (funcall org-agenda-format-date date)) \n) (put-text-property s (1- (point)) (quote face) (org-agenda-get-day-face date)) (put-text-property s (1- (point)) (quote org-date-line) t) (put-text-property s (1- (point)) (quote org-agenda-date-header) t) (put-text-property s (1- (point)) (quote org-day-cnt) day-cnt) (if todayp (progn (put-text-property s (1- ...) (quote org-today) t))) (setq rtnall (org-agenda-add-time-grid-maybe rtnall ndays todayp)) (if rtnall (insert (org-agenda-finalize-entries rtnall)
Re: [O] Bug: M-x org-agenda RET a RET = Lisp error: (wrong-type-argument number-or-marker-p nil) [7.9.1 (release_7.9.1-321-g9ebf47-git @ mixed installation! /usr/share/emacs/24.2.50/lisp/org/ and /ho
Bastien b...@altern.org writes: Hi Bastien, With org from git (commit 9ebf47afbf2b60a496a1a5393aaa7734adc4d352), I get the error from the subject when I want to open the org agenda. Should be fixed now, thanks! Yes, works again. Thanks a lot, Tassilo
Re: [O] capture template question
Bastien b...@gnu.org writes: Rather than trying to add various ways of citing links, perhaps it would be nice to have a format code for the literal link to the thing under point at time of capture? What I mean is, something like %l so I could do this: * EMAIL Respond to [[%l][%:fromname]]%? Good idea. You can now use %l to insert this literal link. Oh, why I didn't come up with something like that is because the docs state that %:fromname is not supported by Gnus. ,[ C-h v org-capture-templates RET ] | org-capture-templates is a variable defined in `org-capture.el'. | [...] | Link type | Available information | +-- | bbdb| %:type %:name %:company | vm, wl, mh, mew, rmail | %:type %:subject %:message-id | | %:from %:fromname %:fromaddress | | %:to %:toname %:toaddress | | %:fromto (either to NAME or from NAME) | | %:date | | %:date-timestamp (as active timestamp) | | %:date-timestamp-inactive (as inactive timestamp) | gnus| %:group, for messages also all email fields | w3, w3m | %:type %:url | info| %:type %:file %:node | calendar| %:type %:date ` Should gnus also by in the list of vm, wl, mh, mew, and rmail? Bye, Tassilo
Re: [O] git repo version clarificaiton
Nick Dokos nicholas.do...@hp.com writes: Hi Nick, As stated by the variable org-version, the git repo version is 7.8.03. The stable release is 7.8.11. Is the version number for the repo not meaningful? You probably have an out-of-date org-version.el[c]. You need to ``make autoloads'' after pulling. That will remake org-version.el and org-install.el to reflect reality. I think, it's still wrong. I can see that in commit 60587ea91cb42ae8618666c7dae5b029f751b913 Basien bumped the defconst org-version to 7.8.11, but that doesn't exist anymore. And making clean and recompiling everything still says Org-mode version 7.8.10 (release_7.8.10-701-g054f99 @ /home/horn/Repos/el/org-mode/lisp/) instead of 7.8.11. Bye, Tassilo
Re: [O] git repo version clarificaiton
Nick Dokos nicholas.do...@hp.com writes: Hi Nick, Is this master or maint? master Org-mode version 7.8.10 (release_7.8.10-701-g054f99 @ /home/horn/Repos/el/org-mode/lisp/) instead of 7.8.11. Oh, and as Achim pointed out, you probably need to do git fetch --tags origin Oh, yes, that does the trick. So the org version is constructed from the latest tag in git? Bye, Tassilo
Re: [O] N/A; icalendar export doesn't guarantee unique UIDs
Tassilo Horn th...@fastmail.fm writes: For example, I have entries like *** Meeting with Max :PROPERTIES: :ID: e1c32cb4-bd1f-4302-8067-1723d1958a88 :END: 2012-03-13 Tue 12:00-13:00 2012-03-21 Wed 15:00-16:00 2012-03-29 Thu 10:00-11:00 2012-04-10 Tue 12:00-13:00 2012-04-18 Wed 11:00-11:30 2012-04-25 Wed 10:00-11:00 2012-05-10 Thu 12:00-13:00 They should show up at any date/time listed there. That's true for the org agenda with `org-agenda-skip-additional-timestamps-same-entry' set to nil. The icalendar export also creates multiple VEVENTS for the above org entry, *but they all have the same UID* (which is strictly VERBOTEN by the icalendar spec). The result is that the google calendar only shows one appointment, and that seems to be arbitrary. In the example above, it shows the meeting on 2012-04-18. Another very related topic: Even when ignoring entries with multiple timestamps, every icalendar item (VTODO, VEVENT, VJOURNAL) must have a SEQUENCE number that has to be incremented when an entry changes significantly (start, end, due, ..., see RFC 2445: 4.8.7.4). I've read in the google calendar help group, that the google calendar won't refresh items for which the UID is already known and the SEQUENCE number didn't increase... Bye, Tassilo
[O] N/A; icalendar export doesn't guarantee unique UIDs
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. I use the icalendar export to feed my schedule into the google calendar (only one-way: Org - Google). Basically that works fine (except for google not understanding Umlauts...), but there's a big problem with entries that contain more than one timestamp. For example, I have entries like *** Meeting with Max :PROPERTIES: :ID: e1c32cb4-bd1f-4302-8067-1723d1958a88 :END: 2012-03-13 Tue 12:00-13:00 2012-03-21 Wed 15:00-16:00 2012-03-29 Thu 10:00-11:00 2012-04-10 Tue 12:00-13:00 2012-04-18 Wed 11:00-11:30 2012-04-25 Wed 10:00-11:00 2012-05-10 Thu 12:00-13:00 They should show up at any date/time listed there. That's true for the org agenda with `org-agenda-skip-additional-timestamps-same-entry' set to nil. The icalendar export also creates multiple VEVENTS for the above org entry, *but they all have the same UID* (which is strictly VERBOTEN by the icalendar spec). The result is that the google calendar only shows one appointment, and that seems to be arbitrary. In the example above, it shows the meeting on 2012-04-18. Bye, Tassilo Emacs : GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu) of 2012-05-07 on thinkpad Package: N/A current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) outline-minor-mode-hook '(th-outline-minor-mode-init) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-gnus-prefer-web-links t org-special-ctrl-k t org-occur-hook '(org-first-headline-recenter) org-src-tab-acts-natively t org-metaup-hook '(org-babel-load-in-session-maybe) org-icalendar-include-todo t org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-log-done 'time org-confirm-shell-link-function 'yes-or-no-p org-complete-tags-always-offer-all-agenda-tags t org-finalize-agenda-hook '(th-org-agenda-to-appt) org-columns-default-format %50ITEM %TODO %ALLTAGS %SCHEDULED %DEADLINE org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-agenda-restore-windows-after-quit t org-special-ctrl-a/e 'reversed org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-agenda-custom-commands '((n Next 21 days agenda ((org-agenda-span 21))) (^ Calfw Month Calendar th-calfw-open-calendar) ) org-return-follows-link t org-agenda-time-leading-zero t org-capture-templates '((n NORMAL entry (file /home/horn/Repos/org/remember.org) * %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (t TODO entry (file /home/horn/Repos/org/remember.org) * TODO %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) (i IDEA entry (file /home/horn/Repos/org/remember.org) * IDEA %?\n :PROPERTIES:\n :created: %U\n :link: %a\n :END:\n %i) ) org-after-todo-state-change-hook '(org-clock-out-if-current) org-icalendar-include-body t org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(th-org-mode-init #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((org-agenda-files :maxlevel . 5)) org-attach-method 'mv org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path 'file org-directory /home/horn/Repos/org org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees
Re: [O] mail integration, advice?
Carson Chittom car...@wistly.net writes: - fast search and easy-to-manage virtual folders of some kind -- I see mu and notmuch are very strong on both these fronts I'm looking to set up mairix, which Gnus supports, but I haven't yet. Mairix itself though just needs mail in Maildir or mbox formats, from what I understand. If you talk to an IMAP or Gmane nntp server (remote or a local dovecot), you can simply hit `G G' on a group to search it without having to configure anything (in recent Gnus versions). Almost all IMAP servers index at least to/from/subject for fast searches, and some also have fulltext search plugins (e.g., dovecot has one). Bye, Tassilo
Re: [O] mail integration, advice?
Rasmus ras...@gmx.us writes: (if possible, this should allow me to archive a message and still be able to find it when I follow an org message link) You can capture gnus mails through org-capture. I don't know how robust the links are. The links are saved by combining the group and Message-Id of the mail. So if Matt means move a message to some archive group with archiving a message, the links will be broken. But there's `gnus-summary-article-move-hook' that could be used to track article movements and update links. Bye, Tassilo
Re: [O] Sticky agenda branch merged
Max Mikhanosha m...@openchat.com writes: Hi Max, I had pushed a fix, which should fix `org-agenda-to-appt' Yes, it seems to work again. Thanks a lot, Tassilo
Re: [O] Sticky agenda branch merged
Max Mikhanosha m...@openchat.com writes: Hi Max, I had just pushed a merge of max-sticky-agenda branch to master, let me know if there are any problems,... since the merge, I get an error on emacs startup. The error is caused by invoking `org-agenda-to-appt' on emacs startup. Here's a backtrace: --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) org-agenda-new-marker(9228) byte-code(\306 ... VBV)\311\207 [s txt pos save-match-data-internal todo-state org-agenda-repeating-timestamp-show-all org-agenda-skip match-string 1 nil match-data ((byte-code \301\302\\207 [save-match-data-internal set-match-data evaporate] 3)) org-get-todo-state t org-time-string-to-absolute past 0 abs functionp org-is-habit-p org-get-category get-text-property org-category-position re-search-backward ^\\*+[ ]+ throw :skip assoc org-get-tags-at buffer-substring-no-properties ^\n string-match \\([012]?[0-9]:[0-9][0-9]\\) time org-agenda-format-item format org-scheduled-previously org-scheduled-today org-scheduled org-habit-parse-todo org-add-props undone-face face org-agenda-done org-marker org-agenda-new-marker org-hd-marker type past-scheduled ...] 26) org-agenda-get-scheduled(nil) org-agenda-get-day-entries(/home/horn/Repos/org/remember.org (4 16 2012) :deadline :scheduled :timestamp) apply(org-agenda-get-day-entries /home/horn/Repos/org/remember.org (4 16 2012) (:deadline :scheduled :timestamp)) org-agenda-to-appt(t) th-org-agenda-to-appt() eval-buffer(#buffer *load* nil /home/horn/.emacs nil t) ; Reading at buffer position 50862 load-with-code-conversion(/home/horn/.emacs /home/horn/.emacs t t) load(~/.emacs t t) #[0 \205 ... \211#)\262\207 [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos ~ /_emacs windows-nt /.emacs directory-files nil ^\\.emacs\\(\\.elc?\\)?$ ~/.emacs ^_emacs\\(\\.elc?\\)?$ (initialization `_emacs' init file is deprecated, please use `.emacs') ~/_emacs t load expand-file-name init file-name-as-directory /.emacs.d file-name-extension elc file-name-sans-extension .el file-exists-p file-newer-than-file-p message Warning: %s is newer than %s sit-for 1 default] 7 \n\n(fn)]() command-line() normal-top-level() --8---cut here---end---8--- Please let me know if you need any further details. Bye, Tassilo
Re: [O] Preformatted text
Dashamir Hoxha dashoho...@gmail.com writes: Hi Dashamir, I have no idea about how easy or difficult would be to implement it, but I think that it would be nice to have some markup like these: --8-- --8-- instead of #+BEGIN_EXAMPLE #+END_EXAMPLE You could prefix your snippets with :, e.g., this is also a preformatted snippet. : /dev/sda1 /boot ext2noauto,noatime 1 2 : /dev/sda3 / ext4noatime,user_xattr 0 1 : /dev/sda2 noneswapsw 0 0 : /dev/cdrom/mnt/cdrom autonoauto,ro 0 0 : debugfs /sys/kernel/debugdebugfsdefaults0 0 Bye, Tassilo
Re: [O] ELPA syncing cronjob stopped running
Chong Yidong c...@gnu.org writes: on irc some user reported that the current org-mode version listed in `M-x package-list-packages' cannot be downloaded anymore. It seems that this is caused by some cronjob that stopped running on February, 14th. Looks like some kind of firewall snafu when the machine moved to the new location last month. On it. Great, thank you. Bye, Tassilo
[O] org ELPA package 20120216 cannot be downloaded
Hi all, on IRC someone just reported that org 20120216 as it is listed in the GNU ELPA archive won't download. When trying to install, all you get is this error: package-handle-response: Error during download request: Not Found Probably a dead link or something alike... Bye, Tassilo
[O] ELPA syncing cronjob stopped running
Hi all, on irc some user reported that the current org-mode version listed in `M-x package-list-packages' cannot be downloaded anymore. It seems that this is caused by some cronjob that stopped running on February, 14th. Christopher Schmidt christop...@ch.ristopher.com writes: I think this is a GNU ELPA problem. The cronjob that mirrors the content of the ELPA branch to the actual files that can be accessed via elpa.gnu.org/packages is no run any more. It looks like the 14th of February was the last time it ran. BTW. the script I am referring to[1] is responsible for grabbing org daily and pushing it to GNU ELPA. Christopher [1] http://bzr.savannah.gnu.org/lh/emacs/elpa/annotate/head:/admin/package-update.sh#L80 Bye, Tassilo
[O] [PATCH] Add missing word to org-contacts y-or-n-p question.
From 6254305becaaa712f6f0936263a09d9ed974e51b Mon Sep 17 00:00:00 2001 User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.0.94 (gnu/linux) Cancel-Lock: sha1:/pUqi5NalGwuBic1R2H+VziOGlM= Before it was Do you want to this address to %s? now it is Do you want add to this address to %s? --- contrib/lisp/org-contacts.el |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index f238483..bdd9996 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -388,7 +388,7 @@ This function should be called from `gnus-article-prepare-hook'. (let ((mails (org-entry-get (point) org-contacts-email-property))) (unless (member mail (split-string mails)) (when (yes-or-no-p - (format Do you want to this address to %s? (org-get-heading t))) + (format Do you want to add this address to %s? (org-get-heading t))) (org-set-property org-contacts-email-property (concat mails mail)) (defun org-contacts-gnus-check-mail-address () -- 1.7.8.5
[O] MobileOrg 0.8.1 for Android
Hi all, as other's have mentioned, this release is a major improvement. Thanks a lot. One thing that doesn't work for me however is the OrgMobile Tasks widget. It's always empty (Nexus S, Android 4). I know in some older version, it used to show all TODOs I have... But I think a global all-TODO widget is of no great use anyway (there are simply too many). I'd very much like to have a Today widget that shows every item of today (normal timestamps, SCHEDULED, and DEADLINE). And one usability consideration: IMO, simply touching the widget to starting the capture activity is a bit too easy to happen accidentally. I think, a small button on the widget would be better. Anyway, thanks again for all the great work. Bye, Tassilo
Re: [O] MobileOrg 0.8.1 for Android
Tom Regner t...@goochesa.de writes: With the Calendar integration I use the Calendar Widget to that purpose; I export ics files from real org in an after-save-hook, and a cron job uploads them to some URLs, and finally those are imported into my google calendar. That works pretty well, except that if I'd capture a new item on my phone, it won't hit the calendar before it hit my normal org... I'll give the calendar integration a try when I have some time. How does it work? Create real entries is some ICS file? If so, does it also modify/delete items when I change them in MobileOrg (or org)? So while the widget redesign is in the making, you could do that as well; with the momentum mobileorg-android hasr at the momement, you probably will not wait /that/ long :-) Good to hear. :-) Bye, Tassilo
Re: [O] Summary of syntax?
Alan Schmitt alan.schm...@polytechnique.org writes: Hi Alan, I was just reading a document in org mode that had some code written like this: : make : make install I wanted to know more about this syntax (colon at the start of the line), so I went to the manual and searched for it. Here it is. ,[ (info (org)Literal examples) ] | For simplicity when using small examples, you can also start | the example lines with a colon followed by a space. There may also be | additional whitespace before the colon: | | Here is an example | : Some example from a text file. ` Unfortunately I could not find it, nor could I find a summary of the syntax for org files. Is there a syntax reference card somewhere? Not that I know of... Bye, Tassilo
Re: [O] Minor org mode for achieve code folding effects
Leo Alekseyev dnqu...@gmail.com writes: I've done a little bit of digging into how Tassilo's code works, and realized that it's somewhat broken in the following way: if a mode provides its own outline-level function, chances are, his code will break (this is why c-mode doesn't work). Even if default outline-level is used, it will determine the level incorrectly since it just counts characters in the current outline regex. Yes, I was satisfied with having different colors. But thanks a lot for the improved version! Bye, Tassilo
Re: [O] Simple reference card browser by Anything.el
Bastien b...@altern.org writes: First of all, in the mean time it's mostly Thierry Volpiatto and Rubikitch doing all the work on anything.el. Oops -- sorry I forgot to mention this, thanks for clarifying! No problem, I'm still capable of accepting patches. ;-) Bye, Tassilo
Re: [O] Simple reference card browser by Anything.el
SAKURAI Masashi m.saku...@kiwanami.net writes: Hi Masashi, Thank you for your comment. If I can contribute this program, I'll be glad. First of all, in the mean time it's mostly Thierry Volpiatto and Rubikitch doing all the work on anything.el. How should I do, Tassilo? Get an account at repo.or.cz. The project site is this: http://repo.or.cz/w/anything-config.git Then you can do your changes and send a git patch to one of us. I think, you could also fork the project so that we could pull and push back and forth, but I'm not sure how well that works for repo.or.cz. It's quite similar to github but older and not that featureful. Bye, Tassilo
Re: [O] calendar view
sergio mail...@sergio.spb.ru writes: Hi! Am I right, that orgmode doesn't have a calendar view Only the agenda. I mean, that agenda can't display month as calendar. If a month calendar is a a big square containing a line for each week which in turn contains little square for the days, then the answer is no. However, you can display a usual agenda for one month (or the next X days) using `org-agenda-custom-commands'. For the nice visual overview, just go with calfw. Bye, Tassilo
Re: [O] calendar view
sergio mail...@sergio.spb.ru writes: Hi Sergio, Am I right, that orgmode doesn't have a calendar view Only the agenda. and emacs-calfw is better for this? Yes, emacs-calfw is an excellent UI frontend, and org-mode is an excellent storage engine feeding it. Bye, Tassilo
Re: [O] Elisp programming style
Thorsten quintf...@googlemail.com writes: Too bad you didn't give any concrete examples. The problem can be described easily: problem-specific helper-funcions (some redundancy avoided) ,--- | (defun main-function (args) | (let ((var (assoc :key1 args))) ; extracting var once | ... | (helper-function1 ...) ; inside let using var | (helper-function2 ...) ; inside let using var | )) | | (defun helper-function1 () | ... | ) | | (defun helper-function2 () | ... | ) `--- vs standalone helper-functions (but redundancy) ,- | (defun main-function (args) | (let ((value (assoc :key1 args)) ; extracting var 1st time | ... | ) | (helper-function1 ...) ; outside let | (helper-function2 ...) ; outside let | ) | | (defun helper-function1 (args) | (let ((var (assoc :key1 args))) ; extracting var 2nd time | ... | )) | | (defun helper-function2 (args) | (let ((var (assoc :key1 args))) ; extracting var 3rd time | ... | )) `- That's still very vague. If `args' is some structure that has some meaning and its parts belong together, say, an org entry, then it makes sense to have the helper functions defined on that structure in order to provide a consistent interface throughout the library. And I wouldn't tell multiple similar let-bindings duplicate code. But again, that's only my very abstract point of view. Given a concrete example, my opinion might be completely upside-down. ;-) Bye, Tassilo
Re: [O] Suddenly, my timestamps get localized!
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Sebastien, Just to confirm: (setq system-time-locale (getenv en_US.utf8)) in my .emacs is not working for me: I get French timestamps (I mean: weekday abbreviations) in Org (on `C-c .', for example). Well, that line above tries to get the value of the environment variable en_US.utf8. There is no such variable, so `getenv' returns nil leaving you with the default setting of `system-time-locale'. Setting it back, on-the-fly (with `C-x C-e') to C works: I get English timestamps. Though, setting it back once again to en_US.utf8 works as well: I now still get English timestamps!? See. ;-) Bye, Tassilo
[O] Suddenly, my timestamps get localized!
Hi all, when I insert a new timestame, I now get 2011-10-25 Di while it used to be 2011-10-25 Tue until very recently. (Di is Dienstag which is German for Tuesday). I've briefly grepped the org source code, but I cannot see any localization there. What's going on? I even have no glue how org/emacs (correctly) guesses that I'm German. My locale is en_US.UTF-8... Bye, Tassilo
Re: [O] Suddenly, my timestamps get localized!
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Sebastien, What's going on? I even have no glue how org/emacs (correctly) guesses that I'm German. My locale is en_US.UTF-8... Found in my .emacs: #+begin_src emacs-lisp ;; system locale to use for formatting time values (e.g., timestamps in ;; Org mode files) (setq system-time-locale C) ;; en_US.utf8 did not work for the weekday in the agenda! #+end_src Ok, that does the trick. It was nil before. And (setq system-time-locale (getenv LANG)) resulting in en_US.utf8 seems to work as well. What did not work for you in the agenda? Now, the question is: why did it change on your machine? New Emacs, new Cygwin (if on Windows)? I'm on GNU/Linux and update my emacs bzr and org git checkouts about thrice a week. All I can say is that a week ago, timestamps where English (or at least I didn't notice). Bye, Tassilo
Re: [O] Suddenly, my timestamps get localized!
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: And (setq system-time-locale (getenv LANG)) resulting in en_US.utf8 seems to work as well. What did not work for you in the agenda? When I wrote (months ago) did not work, I meant: I got French weekdays in my agenda (Lun. for Monday, Mar., Mer., etc. -- even on 4 characters). With system-time-locale nil, I got Mo, Di, Mi,... only in the timestamps while the agenda was still Monday, Tuesday, Wednesday... Bye, Tassilo
Re: [O] notify, when something to do
pmli...@free.fr (Peter Münster) writes: Hi Peter, I would like to be notified[1], when a todo item enters the warning period, scheduled time, or deadline. I export my org entries as appt alarms, so that I get system notifications 15 minutes before meetings (every 1 minute until I discard them). Here's the code: --8---cut here---start-8--- (defvar th-notify-title-to-id-map (make-hash-table :test 'string=) Maps TITLE values of notifications to the last notification ID. If ID is -1, then any further notifications with that body will be skipped.) (defun th-notify (rest args) Create a notification popup. For ARGS, see `notifications-notify'. There's some new default behavior over the function above: - Notifications with same :body replace each other. :body, because my notifications are usually something like :title \Meeting with Hugo\ :body \In 15 Minutes\ where each minute a similar notification with decreasing minutes in the :body is triggered. - If a notification was dismissed, then don't show any notifications with that :title anymore (the next 15 minutes). - Use unlimited timeout. (require 'notifications) (let* ((title (plist-get args :body)) (body (plist-get args :body)) (replaces-id (or (plist-get args :replaces-id) (gethash title th-notify-title-to-id-map))) (on-close (or (plist-get args :on-close) `(lambda (id reason) (when (eq reason 'dismissed) ;; Mark as don't show again! (puthash ,title -1 th-notify-title-to-id-map) ;; But clear that dont-show-mark after 15 minutes (run-with-timer (* 15 60) nil (lambda () (remhash ,title th-notify-title-to-id-map))) ;; 0 means, it should not expire at all (timeout (or (plist-get args :timeout) 0))) (unless (eql replaces-id -1) (puthash title (apply 'notifications-notify (th-plist-put-many args :timeout timeout :replaces-id replaces-id :on-close on-close)) th-notify-title-to-id-map (defun th-appt-alarm (mins time text) Show a notification popup (or update the current one) for the appt with TEXT in MINS minutes (a string). (let ((body (substring-no-properties text))) (th-notify :title text :body (concat Appointment (if (string= mins 0) NOW: (concat in mins minutes:)) (setq appt-display-format 'window appt-disp-window-function 'th-appt-alarm appt-display-interval 1 appt-display-duration 60) (defun th-org-agenda-to-appt () (require 'org-agenda) (org-agenda-to-appt t) (appt-activate 1)) (th-org-agenda-to-appt) (add-hook 'org-finalize-agenda-hook 'th-org-agenda-to-appt) --8---cut here---end---8--- Bye, Tassilo
Re: [O] notify, when something to do
Tassilo Horn tass...@member.fsf.org writes: (defvar th-notify-title-to-id-map (make-hash-table :test 'string=) Maps TITLE values of notifications to the last notification ID. If ID is -1, then any further notifications with that body will be skipped.) (defun th-notify (rest args) Create a notification popup. For ARGS, see `notifications-notify'. There's some new default behavior over the function above: - Notifications with same :body replace each other. :body, because my notifications are usually something like :title \Meeting with Hugo\ :body \In 15 Minutes\ where each minute a similar notification with decreasing minutes in the :body is triggered. This comment is obviously outdated. The notifications with equal :title now replace each other. Bye, Tassilo
Re: [O] notify, when something to do
pmli...@free.fr (Peter Münster) writes: Hi Peter, First, I took a look at the lines (org-agenda-to-appt t) (appt-activate 1) This is already a good starting point, just 3 remarks: - I think, I'll need a filter for org-agenda-to-appt, because I only want TODO items. Should be no problem. Yep. - How to distinguish between SCHEDULED and DEADLINE? I'll investigate... - Perhaps the main problem: appt does not know about warning periods. There are items with -3d, other with -5M[1]. There is only one universal appt-message-warning-time. Would it be possible, to have a individual warning-time for each todo-item, directly computed from the warning time in the org-timestamp? Not sure about the last two. But maybe one could change `org-agenda-to-appt' to accept also a function as filter. Bye, Tassilo
Re: [O] notify, when something to do
Bastien b...@altern.org wrote: Hi Tassilo, Tassilo Horn tass...@member.fsf.org writes: But maybe one could change `org-agenda-to-appt' to accept also a function as filter. Done. You can now use a fonction as a filter. It will filter through entries. the only mandatory argument for this function will be an entry, i.e. something similar to what `org-agenda-get-day-entries' outputs. Thanks for this idea! -- Bastien Hey Bastien, This is awesome. Thanks a lot. Tassilo
Re: [O] Recurring events with exceptions
Skip Collins skip.coll...@gmail.com writes: Hi Skip, [a slightly off-topic rant] You might find some luck with applications that follow the iCalendar standard. There, a re-occuring event may have an end date. And when you move (this week's meeting is 30 minutes later) or delete some occurence (no meeting on christmas), it will add that as an exception to the re-occuring event definition and clone that as a new once-only event in case of a move (probably keeping some connection with it). [But I think there's no concept of re-occuring exceptions, like there will never be any meetings at Christmas...] That said, this is pretty complex and the apps I've used before org-mode (KOrganizer, Evolution) managed to mess things up in certain cases without even being visible to me at first. I just noticed some time later that some appointments were simply wrong or totally missing. I've learned my lessons: now I accept infinitely repeating entries or switch to sexp entries if really needed. But at least I know that nothing I do will somehow corrupt my calendar, because *I* am the master of timestamps, not some GUI that DTRT only in 90% of the cases. Bye, Tassilo
Re: [O] Ways to make org feasible for huge files
Marcelo de Moraes Serpa celose...@gmail.com writes: Hi Marcelo, 4328, exactly the same amount of lines I have in the file. Didn't you say that you have 4000 *k* lines? Anyway, as Scott mentiones, in emacs 24 the linum packages seems to be more clever and only creates overlays for the visible area of a buffer. For example, when opening a file with 1000 lines and enabling linum-mode, I only have 35 overlays, because only 35 lines are visible at a time. Bye, Tassilo On Thu, Oct 13, 2011 at 2:07 AM, Tassilo Horn tass...@member.fsf.orgwrote: Marcelo de Moraes Serpa celose...@gmail.com writes: Wow.. this worked Torsten. Thank you. I wonder why this happens... linum-mode works with overlays to embed the numbers at the beginnig of lines. Overlays are very flexible but not too efficient, you don't want to have too many of them. Looking at linum.el, it seems it already does pooling of overlays in order not to create one overlay for any line, but I'm not sure. Could you please do M-: (length linum-overlays) RET in that large org file with linum-mode enabled and say what it returns to satisfy my curiosity? Bye, Tassilo
Re: [O] Ways to make org feasible for huge files
Marcelo de Moraes Serpa celose...@gmail.com writes: Wow.. this worked Torsten. Thank you. I wonder why this happens... linum-mode works with overlays to embed the numbers at the beginnig of lines. Overlays are very flexible but not too efficient, you don't want to have too many of them. Looking at linum.el, it seems it already does pooling of overlays in order not to create one overlay for any line, but I'm not sure. Could you please do M-: (length linum-overlays) RET in that large org file with linum-mode enabled and say what it returns to satisfy my curiosity? Bye, Tassilo
Re: [O] bug#9695: allowed date range
Ivan Kanis ivan.ka...@googlemail.com writes: Hi! After investigating further 2011-10-17 --2011-10-30 works but not 2011-10-17--2011-10-30. The regexp for a timestamp is defined in org-ts-regexp : \\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\}[^\r\n]*?\\) Shouldn't the trailing space be optional? In your regex, there is no trailing whitespace, but are right that it is in the original definition. ,[ C-h v org-ts-regexp RET ] | org-ts-regexp is a variable defined in `org.el'. | Its value is | \\([0-9]\\{4\\}-[0-9]\\{2\\}-[0-9]\\{2\\} [^\r\n]*?\\) |^ ` Strangely, that timestamp regex didn't change for 3 years... Oh, now I see what's wrong. All time stamps consist of the date and then the day's name abbreviation, which is missing with your example. Correct would be 2011-10-17 Mon--2011-10-30 Sun Bye, Tassilo
Re: [O] bug#9695: allowed date range
Eric S Fraga e.fr...@ucl.ac.uk writes: Hi Eric, Oh, now I see what's wrong. All time stamps consist of the date and then the day's name abbreviation, which is missing with your example. Correct would be 2011-10-17 Mon--2011-10-30 Sun Although the day is optional according to the regexp. I would definitely like to have the regexp with the space optional as well as there are cases where I want to type the date in directly (not in org mode for whatever reason). In those cases, it is easy to type 2011-01-01 or whatever but it's not necessarily trivial to determine the day of the week... Yes, I agree, although you can use org-time-stamp everywhere (in emacs). And you can actually insert timestamps simply by writing 2011-10-13 with the whitespace to make it a valid timestamp. That will be shown as day entry in the agenda, and you might have typed it in using some non-emacs text editor on you phone. Now, back in org-mode, simply S-up and S-down on any number, and et voila, the missing day name abbrev is added automatically. Actually, interesting thought experiment: does org actually do any consistency checks, comparing the date and the day of the week? No, I don't think so. Manipulating and creating timestamps using the provided commands ensures their correctness, but for actual calculation the day names are ignored. It's just for humans. Bye, Tassilo
Re: [O] bug#9695: allowed date range
Eric S Fraga e.fr...@ucl.ac.uk writes: I am attaching a patch which will make time stamps without a day name like 2011-10-12 work correctly. Furthermore, pressing C-c C-c on a time stamp will fill in or fix the day name. However, I am not sure if this patch is complete, or if it has side effects. So it would be good if a few people could apply it and test it during their daily work for a few weeks, and then report problems in this thread. Excellent. Thanks. I've applied the patch and will let you know if anything strange happens! Silence should be taken as indicating no problems encountered :-) Ditto. Bye, Tassilo
[O] [PATCH] Fix org-contacts completion at point (was: org-contacts completion stopped working)
julien Barnier jul...@nozav.org writes: Hi Julien, I use a very recent emacs 24 bzr checkout and org master from git. Not sure who's the culprit. Same problem here. After a quick look it seems that there has been a recent change in the arguments taken by the completion-table-case-fold function in minibuffer.el : http://bzr.savannah.gnu.org/lh/emacs/trunk/revision/105991 Thanks for the pointer! But I don't think I could be able to find a fix by myself. But I was able, so good teamwork, mate. :-) --8---cut here---start-8--- From d89ca3ce39cd7436e5205744adcf468d9619180f Mon Sep 17 00:00:00 2001 From: Tassilo Horn tass...@member.fsf.org Date: Thu, 13 Oct 2011 17:02:07 +0200 Subject: [PATCH 2/2] Fix org-contacts completion at point. --- contrib/lisp/org-contacts.el | 11 +-- 1 files changed, 5 insertions(+), 6 deletions(-) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index 167caa0..74d68dc 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -169,9 +169,10 @@ If both match values are nil, return all contacts. (when (not (fboundp 'completion-table-case-fold)) ;; That function is new in Emacs 24... - (defun completion-table-case-fold (table string pred action) -(let ((completion-ignore-case t)) - (complete-with-action action table string pred + (defun completion-table-case-fold (table optional dont-fold) +(lambda (string pred action) + (let ((completion-ignore-case (not dont-fold))) + (complete-with-action action table string pred) (defun org-contacts-complete-name (optional start) Complete text at START with a user name and email. @@ -226,9 +227,7 @@ If both match values are nil, return all contacts. ;; If the user has an email address, append USER EMAIL. if email collect (org-contacts-format-email contact-name email)) , ) -(list start end (if org-contacts-completion-ignore-case - (apply-partially #'completion-table-case-fold completion-list) - completion-list +(list start end (completion-table-case-fold completion-list (not org-contacts-completion-ignore-case) (defun org-contacts-message-complete-function () Function used in `completion-at-point-functions' in `message-mode'. -- 1.7.7 --8---cut here---end---8---
Re: [O] org-contacts completion stopped working
Julien Cubizolles j.cubizol...@free.fr writes: Hi Julien, As of a few days ago, completion doesn't work anymore. I get the message (wrong-number-of-arguments (1 . 2) 4) Any ideas ? No, but you are not alone. :-) I use a very recent emacs 24 bzr checkout and org master from git. Not sure who's the culprit. Bye, Tassilo
Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p
Carsten Dominik carsten.domi...@gmail.com writes: Hi Carsten, BTW: I'm not sure if there is any reasonable benefit for `org-mode-p', anyway. Checking the rest of the emacs source tree, then the convention is to either use (eq major-mode 'foo-mode) or (derived-mode-p 'foo-mode) depending on what's needed. I don't see why (org-mode-p) or even (org-mode-p 'derived) is clearer... I agree, it is not clearer, only a bit more compact. I don't think we should have a new function here. Just make a patch that used derived-mode-p in places where this is needed. I would accept such a patch. Ups, I've slightly misread your suggestion. Currently, there is only one place in org-src.el that check for being a mode derived from org-mode or org-mode itself. The second is useless, because (derived-mode-p 'org-mode) is true for org-mode, too. But as I've said, I've misread your suggestion and made a patch that completely erases org-mode-p and all its calls. Feel free to apply or discard it. :-) Bye, Tassilo From 92e83b95aead15a4346e671de6ba211c6ca95a43 Mon Sep 17 00:00:00 2001 From: Tassilo Horn tass...@member.fsf.org Date: Tue, 11 Oct 2011 09:07:27 +0200 Subject: [PATCH] Replace org-mode-p with usual (eq major-mode 'org-mode) check Additionally, replace one (or (org-mode-p) (derived-mode-p 'org-mode)) with (derived-mode-p 'org-mode) cause that is reflexive anyway (returns true, if the current mode is org-mode). Delete one check testing for org-mode or org derived mode --- BUGFIXING/org-log.el |4 +- contrib/lisp/org-annotate-file.el |2 +- contrib/lisp/org-contacts.el |4 +- contrib/lisp/org-expiry.el|4 +- contrib/lisp/org-lparse.el|2 +- contrib/lisp/org-registry.el |2 +- contrib/lisp/org-toc.el |2 +- lisp/org-agenda.el| 26 +++--- lisp/org-archive.el |2 +- lisp/org-ascii.el |2 +- lisp/org-capture.el | 16 lisp/org-colview-xemacs.el|6 ++-- lisp/org-colview.el |6 ++-- lisp/org-ctags.el |2 +- lisp/org-docbook.el |2 +- lisp/org-footnote.el | 14 lisp/org-html.el |2 +- lisp/org-id.el|4 +- lisp/org-indent.el|2 +- lisp/org-latex.el |2 +- lisp/org-macs.el |6 +--- lisp/org-mouse.el |4 +- lisp/org-remember.el |4 +- lisp/org-src.el |8 ++-- lisp/org-table.el |4 +- lisp/org-timer.el |2 +- lisp/org.el | 68 ++-- testing/org-test.el |2 +- 28 files changed, 100 insertions(+), 104 deletions(-) diff --git a/BUGFIXING/org-log.el b/BUGFIXING/org-log.el index 8ebedfe..1fb82e6 100644 --- a/BUGFIXING/org-log.el +++ b/BUGFIXING/org-log.el @@ -21,7 +21,7 @@ (and delete-other-windows (delete-other-windows)) (widen) (goto-char pos) -(when (org-mode-p) +(when (eq major-mode 'org-mode) (org-show-context 'agenda) (save-excursion (and (outline-next-heading) @@ -54,7 +54,7 @@ (switch-to-buffer-other-window buffer) (widen) (goto-char pos) -(when (org-mode-p) +(when (eq major-mode 'org-mode) (org-show-context 'agenda) (save-excursion (and (outline-next-heading) diff --git a/contrib/lisp/org-annotate-file.el b/contrib/lisp/org-annotate-file.el index 265b55f..eb53ab1 100644 --- a/contrib/lisp/org-annotate-file.el +++ b/contrib/lisp/org-annotate-file.el @@ -99,7 +99,7 @@ show the relevant section (concat file: filename :: line) (org-annotate-file-elipsify-desc line (with-current-buffer (find-file org-annotate-file-storage-file) - (unless (org-mode-p) + (unless (eq major-mode 'org-mode) (org-mode)) (goto-char (point-min)) (widen) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index f4d9cd7..167caa0 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -157,7 +157,7 @@ If both match values are nil, return all contacts. (dolist (file (org-contacts-files)) (org-check-agenda-file file) (with-current-buffer (org-get-agenda-file-buffer file) -(unless (org-mode-p) +(unless (eq major-mode 'org-mode) (error File %s is no in `org-mode' file)) (org-scan-tags '(add-to-list 'markers (set-marker (make-marker) (point))) @@ -263,7 +263,7 @@ If both match values are nil, return all contacts. (when marker (switch-to-buffer-other-window (marker-buffer marker)) (goto-char marker) - (when (org-mode-p) + (when (eq major-mode 'org-mode) (org-show-context 'agenda
[O] [PATCH] Fix renumbering for footnotes at BOL.
Hi all, org-footnote-renumber-fn:N invalidates footnotes that appear as the first thing on a line. Here's a test file including the recipe. --8---cut here---start-8--- * Bla This is a line in which the following footnote that is inserted exactly [fn:1] is the first thing in that line. And now invoke org-footnote-renumber-fn:N and see it breaking. * Footnotes [fn:1] Test --8---cut here---end---8--- Note, that in larger org files, it's likely that you don't even notice that the footnotes break. Once I added a patch on patchwork that fixed this issue, and that's shown as accepted. http://patchwork.newartisans.com/patch/705/ I think, I've marked it as deferred or so myself because I've thought the issue was fixed in the meantime, but that doesn't seem to be true. Here's an updated patch. --- lisp/org-footnote.el | 11 --- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/lisp/org-footnote.el b/lisp/org-footnote.el index cce0921..931f7dd 100644 --- a/lisp/org-footnote.el +++ b/lisp/org-footnote.el @@ -893,16 +893,13 @@ If LABEL is non-nil, delete that footnote instead. (goto-char (point-min)) (while (re-search-forward \\[fn:\\([0-9]+\\)[]:] nil t) (setq i (string-to-number (match-string 1))) - (when (and (string-match \\S- (buffer-substring - (point-at-bol) (match-beginning 0))) -(not (assq i map))) + (when (not (assq i map)) (push (cons i (number-to-string (incf n))) map))) (goto-char (point-min)) (while (re-search-forward \\(\\[fn:\\)\\([0-9]+\\)\\([]:]\\) nil t) - (replace-match (concat \\1 -(cdr (assq (string-to-number (match-string 2)) - map)) -\\3))) + (setq i (cdr (assq (string-to-number (match-string 2)) map))) + (assert (progn i) t Footnote has no number. Better undo renumbering!) + (replace-match (concat \\1 i \\3))) (defun org-footnote-auto-adjust-maybe () Renumber and/or sort footnotes according to user settings. -- 1.7.6.1
Re: [O] [PATCH] Fix renumbering for footnotes at BOL.
Nicolas Goaziou n.goaz...@gmail.com writes: It looks like the original function isn't right in more than one way (it doesn't even make sure the matched string is really a footnote). But that's another topic. Yes, indeed. About your patch, I have but one question: I don't get a situation in which the assert would be triggered, may you give me such an example? I don't either, and that's a good thing. I added that just as some extra paranoia so that you get an error if a footnote gets broken. Bye, Tassilo
Re: [O] [PATCH] Fix renumbering for footnotes at BOL.
Nicolas Goaziou n.goaz...@gmail.com writes: Hi! I don't either, and that's a good thing. I added that just as some extra paranoia so that you get an error if a footnote gets broken. Well, provided the first part of the function doesn't modify the buffer, I still don't see how the assert could fail, even with a broken footnote. Now, I may also be less paranoid than you are in that case. You are right. And the regex doesn't even match broken footnotes, that is, footnotes with missing numbers. Do you still think that assert should be a stayer? Nope, feel free to remove that line. Bye, Tassilo
[O] Beamer export: Are handout notes possible?
Hi all, I'm a big fan of the LaTeX beamer export. However, now I've hit a problem that I don't know how to solve. In plain LaTeX beamer, every text I write between \begin{frame} ... \end{frame} is of course not in a frame but will be there if I compile the tex file in beamer's handout mode. That's very convenient for putting notes there that you want to mention only in the audio track of a presentation. Because the frames are written as org outlines, there's no explicit \end{frame}, but everything up to the next outline is put into a frame. Is there still some way to what I want? Bye, Tassilo
Re: [O] Beamer export: Are handout notes possible?
Hi Carsten Eric, I thought using a subtree with a B_note or a B_noteNH property would do this, in a way? Yes, I've thought this was true, but it is not, or at least I don't understand how to use it correctly. Something like ** Notes just for me:B_note: - bla bla is correctly exported as \note{Notes just for me...}, but that creates a real slide in the presentation. I don't know how to tell beamer not to include note slides in the presentation. Ideally, I want to export a handout version just for me using beamer's article mode, which is more compact than just printing the slides as-is. And here the beamer docs are clear: Notes are not supported in article mode! :-( Bye, Tassilo
Re: [O] Beamer export: Are handout notes possible?
Carsten Dominik carsten.domi...@gmail.com writes: Hi! I thought using a subtree with a B_note or a B_noteNH property would do this, in a way? Yes, I've thought this was true, but it is not, or at least I don't understand how to use it correctly. Something like ** Notes just for me:B_note: - bla bla is correctly exported as \note{Notes just for me...}, but that creates a real slide in the presentation. I don't know how to tell beamer not to include note slides in the presentation. Three alternatives: \setbeameroptions{show notes} \setbeameroptions{show only notes} \setbeameroptions{hide notes} Great, thanks. Should this information be in the docs somewhere? Since the docs explicitly use :B_note:, I'd say that would be very helpful. Bye, Tassilo
Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p
Stefan Reichör ste...@xsteve.at writes: Hi Stefan, +(defun org-mode-or-derived-mode-p () + Check if the current buffer is in Org-mode or a derived mode. + (if (derived-mode-p 'org-mode) t nil)) The if is superfluous. And instead of a new function, I'd rather add an optional `derived' parameter to `org-mode-p'. (derived-mode-p 'org-mode) returns either 'org-mode or nil The reason for the if is, that (org-mode-p) returns either t or nil Yes, but from an elisp perspective, 'org-mode is as true as t. BTW: I'm not sure if there is any reasonable benefit for `org-mode-p', anyway. Checking the rest of the emacs source tree, then the convention is to either use (eq major-mode 'foo-mode) or (derived-mode-p 'foo-mode) depending on what's needed. I don't see why (org-mode-p) or even (org-mode-p 'derived) is clearer... Bye, Tassilo
Re: [O] [PATCH]: New Add defun org-mode-or-derived-mode-p
Stefan Reichör ste...@xsteve.at writes: +(defun org-mode-or-derived-mode-p () + Check if the current buffer is in Org-mode or a derived mode. + (if (derived-mode-p 'org-mode) t nil)) The if is superfluous. And instead of a new function, I'd rather add an optional `derived' parameter to `org-mode-p'. Bye, Tassilo
Re: [O] Org errors while building agenda: (void-function org-hh:mm-string-to-minutes)
Bastien b...@altern.org writes: Hi Bastien, commit 8c3ecbe39a0c99e3724246d1eb460495a53721b6 Author: Bastien Guerry b...@altern.org Date: Wed Aug 17 16:08:02 2011 +0200 Move three functions and add appropriate require/declarations. * org-clock.el (org-duration-string-to-minutes) (org-minutes-to-hh:mm-string, org-hh:mm-string-to-minutes): Move from org.el. has broken my agenda. I've reverted this commit. I first thought `org-duration-string-to-minutes' and associated variables and functions would better fit into org-clock.el, but I now see they are of more general purpose. Thanks a lot! Tassilo
[O] Org errors while building agenda: (void-function org-hh:mm-string-to-minutes)
Hi, it seems commit commit 8c3ecbe39a0c99e3724246d1eb460495a53721b6 Author: Bastien Guerry b...@altern.org Date: Wed Aug 17 16:08:02 2011 +0200 Move three functions and add appropriate require/declarations. * org-clock.el (org-duration-string-to-minutes) (org-minutes-to-hh:mm-string, org-hh:mm-string-to-minutes): Move from org.el. has broken my agenda. I get Debugger entered--Lisp error: (void-function org-hh:mm-string-to-minutes) org-hh:mm-string-to-minutes(16:30) org-format-agenda-item(...) because that function has been moved to org-clock.el, which I don't use. If I require that, the agenda works again. org-agenda.el contains `declare-function' statements for the three moved functions to silence the byte compiler, but it does not require org-clock in `org-format-agenda-item' nor do the three functions have autoload cookies. BTW: What's the original intention of the move? I don't see why those functions are specific to org-clock... Bye, Tassilo
Re: [O] Odd behavior with first org file opened
Rafael rvf0...@gmail.com writes: Hi Rafael, If I run: emacs -Q -L ~/Dropbox/emacs/site-lisp/org-mode/lisp/ (that's where I put org-mode), and then open any org file (I have tried with a very simple one, with only one heading), such file is not syntactically colored. However, if I open any second org file, then it is colored without problem. Or if I say M-x revert-file with the first. I think you need to require org-install to initialize an external org version. So basically emacs -Q -L ~/Dropbox/emacs/site-lisp/org-mode/lisp/ \ -e (require 'org-install) should do the trick. Bye, Tassilo
Re: [O] Any work on Java ME?
Bastien b...@altern.org writes: Java ME seems more widely supported, has anyone worked on that? Also, it's painful to input text on iOS devices, and text is all of Org mode. I don't understand. Can you be more explicit? That was my first question, too. :-) And quoting Wikipedia: ,[ http://en.wikipedia.org/wiki/Java_Platform,_Micro_Edition ] | There are more than 2.1 billion Java ME enabled mobile phones and | PDAs, but it is becoming old technology as it is not used on any of | today's newest mobile platforms (e.g. iPhone, Android, Windows Phone | 7, MeeGo, BlackBerry's new QNX). ` Bye, Tassilo
Re: [O] Any work on Java ME?
XeCycle xecy...@gmail.com writes: Hi! Java ME seems more widely supported, has anyone worked on that? Also, it's painful to input text on iOS devices, and text is all of Org mode. I don't understand. Can you be more explicit? Sorry. I mean to port Org mobile to Java ME platform --- has anyone worked on that? Now Org mobile is on iOS platform, and we need Apple devices to run it. I don't have one, but my phone supports Java ME. Also Android supports Java ME. To my best knowledge, Andoid does not support Java ME. It uses a flavour of Java, but not ME. From wikipedia: Android === The Android open-source software stack consists of Java applications running on a Java-based, object-oriented application framework on top of Java core libraries running on a Dalvik virtual machine featuring JIT compilation. Java Platform, Micro Edition There are more than 2.1 billion Java ME enabled mobile phones and PDAs,[2] but it is becoming old technology as it is not used on any of today's newest mobile platforms (e.g. iPhone, Android, Windows Phone 7, MeeGo, BlackBerry's new QNX). And there is already MobileOrg for Android: https://github.com/matburt/mobileorg-android/wiki/ Bye, Tassilo
Re: [O] Bug: inconsistent docstring of org-agenda-prefix-format [7.6 (release_7.6.143.g98b7c)]
Bastien b...@altern.org writes: Hi Bastien, The docstring of `org-agenda-prefix-format' is heavily broken. I just pushed a fix, I tried to improve the docstring. Let me know if this is clearer and less buggy. Yes, it's much better now. :-) Bye, Tassilo
[O] Bug: inconsistent docstring of org-agenda-prefix-format [7.6 (release_7.6.143.g98b7c)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. The docstring of `org-agenda-prefix-format' is heavily broken. First it says An alist with four entries, for the different agenda types. and then it goes on enumerating *five* keys: The keys to the sublists are `agenda', `timeline', `todo', `search' and `tags'. And finally, it presents an example where the value is not an alist but a simple string. As another example, if you don't want the time-of-day of entries in the prefix, you could use: (setq org-agenda-prefix-format %-11:c% s) Emacs : GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 3.0.11) of 2011-07-18 on thinkpad Package: Org-mode version 7.6 (release_7.6.143.g98b7c)
Re: [O] iCalendar export
Gustav Wikström gustav.e...@gmail.com writes: Hi Gustav, So my question to this newsgroup is; If you use the iCalendar export function, what software do you use to view this information? Yeah, I convert to ical files on save, and there's some cron job that copies these files to some webpage. From there, I import into Google Calendar. But that doesn't show todos of imported ical files and has major encoding issues with german umlauts and so on. And have anyone got this information to their mobile devices? Android? Well, I have it there using the Google Calendar app. It's ok to see my appointments in some graphical read-only view, but nothing more... Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
Sebastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Sebastien, - I was hoping `r' to redraw the grid, after I've changed Emacs frame size. It does not seem to be the case. Could that be foreseen? I've seen you already all the available space, when drawing the grid for the first time. I've implemented that in my fork. http://github.com/tsdh/emacs-calfw Masashi, feel free to pull if you think it's ok. Bye, Tassilo
Re: [O] Using MobileOrg without sync?
Steinar Bang s...@dod.no writes: Hi Steinar, I installed MobileOrg on an HTC desire. The idea was to just use it to take notes, no sync to an emacs with org-mode would be needed. Isn't it possible to use MobileOrg without sync? Not sure, but MobileOrg (at least on Android) is not very sophisticated for note taking. For sure, it's not a stand-alone org-mode for Android as you might have expected. For example, there's no widget (activity in andro-speak) to input timestamps and stuff like that. I use it, but mainly for viewing my agendas pushed from org-mode and for capturing quick and ugly notes, which I format correctly, timestamp, tag, and refile after pulling them to my emacs. So I see no reason to use MobileOrg if you don't want to interact with org-mode. Probably, you'd be better off with a plain text editor (Jota Text Editor is quite good and free software). Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
Marcus Klemm marcus.kl...@googlemail.com writes: Hi Marcus, I've also made the characters used for table rendering customizable, so that you can use nice unicode glyphs. This is awesome! Could it somehow incorporated into orgmode to draw the tables there? I don't think that would be a good idea, cause in org you partly draw the tables on your own, that is, you write |TAB for another row etc.. You don't want to have to insert unicode characters there. Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
Russell Adams rlad...@adamsinfoserv.com writes: Hi Russell, This is *beautiful*. I concur completely! This has filled a gap I've had for quite a while, needing to visualize org tasks across a calendar. Two minor FRs (I hope you continue to monitor the list): - 'q' key to close the calendar buffer, like org-agenda does In my github fork, I've already bound `q' to `bury-buffer' which does what you want. Masashi is reviewing my changes and hopefully pull. I've also made the characters used for table rendering customizable, so that you can use nice unicode glyphs. http://dl.dropbox.com/u/30611246/img/calfw-unicode.png Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
SAKURAI Masashi m.saku...@kiwanami.net writes: Hi! For me, creating a custom org agenda with the next 21 days takes not much less than building an calfw calendar buffer with 42 days. It's about one second for the former and 2 seconds for the latter, so it seems calfw does the right thing. Thank you for your confirming. I implemented calfw-org with consultation of the code of org-agenda-list. I think it is difficult to make the speed faster with a simple way, the re-design of the whole org-agenda-list algorithm seems to be needed, because the key function org-agenda-get-day-entries requires only one date and the subsequent dependent functions also are designed by the API. I think it's pretty fast, so I'd vote for keeping the good and simple design of the org schedule import in contrast to reimplement the wheel for a slight speedup. One thing which I'm currently missing is that the calfw entries gathered from org are missing the times (if that's specified using the 'time text property) and are sorted in an order I can't understand. For example, : Yes. The current implementation, calfw sorts the items by alphabet, i.e. string-less, in one date cell. This is intent to sort the items which has time header like 10:00 meeting 13:00 go to airport 16:00 meeting. Yeah, that would work. However, org times are usually ranges like 10:00-12:00 which is 11 characters wide. You don't want to prefix the displayed items with that, because then you wouldn't see anything from the item's description text. So I'd prepend the times so that I can see them when hoovering with the mouse on that item. Of course, then `string-less' won't sort according to date. It is not so difficult to add a customize of the sort criteria. And you can try your custom summary format, modifying cfw:org-summary-format. In the function, you can get the time value from the text property. Right. Maybe a good idea was allowing a custom sort function that sorts the `contents' for one day in `cfw:org-schedule-period-to-calendar'. There, you still have the 'time text property that you can use for sorting. Bye, Tassilo
Re: [O] Problem loading org-odt [Re: Release 7.6]
Pere Quintana Seguí pquint...@obsebre.es writes: Hi! 5. Then I loaded an org file and tried to export: C-c C-e o, and I got the following message: =Cannot open load file: org-odt= I'm sure I'm missing something very simple. org-odt.el is in $org/contrib/lisp/, so you must add that to load-path as well. Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
Bastien b...@altern.org writes: Then, I use the function org-agenda-get-day-entries to get schedule items of the org-agenda-files. The function can receive some arguments to limit the tasks, but I didn't understand exactly. See the attached patch -- org-agenda-get-day-entries can take more arguments like :scheduled :deadline to help reduce the size of listed entries. See the docstring of org-diary, which understands the same list of arguments. I think it's a good idea to add that variable to let users decide if they want deadlines or scheduled (in org terms) items in their calfw view. +(defvar cfw:org-agenda-schedule-args '(:scheduled) + Default arguments for collecting agenda entries.) I'd go with a default value of `nil' meaning put every org entry with a timestamp into the calfw view. Only getting SCHEDULED org tasks there is a somewhat peculiar default. Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
Christopher Allan Webber cweb...@dustycloud.org writes: Hi Christopher, Also, cfw:open-org-calendar works, but things seem really slow... it looks like you're recalculating the entire orgmode agenda for every day. I wonder if things could be sped up if the orgmode agenda was calculated for the entire period all at once and then broke that up into days? For me, creating a custom org agenda with the next 21 days takes not much less than building an calfw calendar buffer with 42 days. It's about one second for the former and 2 seconds for the latter, so it seems calfw does the right thing. One thing which I'm currently missing is that the calfw entries gathered from org are missing the times (if that's specified using the 'time text property) and are sorted in an order I can't understand. For example, my org agenda for yesterday was uni:08:30-10:00 Übung GST SS 2011 (B 013) :agebert:teaching:: uni:14:30-16:30 AG Ebert-Treffen:agebert:: uni:Deadline: DONE CoffeeList-Blatt 25 mal drucken :agebert:teaching:: which is shown as +---+ | 5 (3) | |AG Ebert-Tre...| |DONE CoffeeL...| |Übung GST SS...| | | | | | | | | +---+ I think it would be good if the sorting was by time (items with no time at the bottom) and the time was visible somehow, for example in the tooltips. Another thing: If you have several split windows and calfw selects a window very narrow in height (or there are simply too many items for some day), then not all items are shown. That would be ok if there was some indication that some items are missing. Bye, Tassilo
Re: [O] Calendar-like view of the org-agenda
Manuel Hermenegildo he...@fi.upm.es writes: Hi! Or, perhaps even simpler, calfw could simply read the org-agenda buffer (colors and all) instead of reading the org files. This would have the enormous advantage that it would always generate the tasks with the same order, priorities, filters, customizations, etc. as the org agenda. What do you think? I don't think that would be simpler. The way it operates now requires only picking several text properties (like 'date which it does, and 'time or 'priority which it currently doesn't). Parsing agenda buffers would require building 42 org day agenda buffers and heavy transformation on strings, like cutting the time grid and moving the times around (you don't want to have a long string 08:00-10:00 in front of timed entries in calfw, because then you won't see anything from the headline/description), and other stuff. Bye, Tassilo
[O] Bug: OrgMobile errors on push with custom functions in the agenda dispatcher [7.5 (release_7.5.580.g301b34)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Org allows for adding custom functions into the agenda dispatcher. For example, to be able to fire up a calfw calendar from the agenda dispatcher, I use this: --8---cut here---start-8--- (setq org-agenda-custom-commands '((n Next 21 days agenda ((org-agenda-span 21))) (^ Calfw Month Calendar (lambda (rest ignore) (cfw:open-org-calendar) --8---cut here---end---8--- That works, but when invoking M-x org-mobile-push RET, I get this error: --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument listp lambda) org-mobile-sumo-agenda-command() org-mobile-create-sumo-agenda() org-mobile-push() call-interactively(org-mobile-push t nil) execute-extended-command(nil) call-interactively(execute-extended-command nil nil) --8---cut here---end---8--- Here's a patch that fixes the issue. --8---cut here---start-8--- From 16b1025d13fa490c576ed12a391cfd365af63e8d Mon Sep 17 00:00:00 2001 From: Tassilo Horn tass...@member.fsf.org Date: Wed, 6 Jul 2011 12:10:16 +0200 Subject: [PATCH] Fix org-mobile-push with custom functions. --- lisp/org-mobile.el |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org-mobile.el b/lisp/org-mobile.el index 7b1bcbe..7654475 100644 --- a/lisp/org-mobile.el +++ b/lisp/org-mobile.el @@ -575,8 +575,9 @@ The table of checksums is written to the file mobile-checksums. match /after)) settings)) (push (list type match settings) new)) - ((symbolp (nth 2 e)) - ;; A user-defined function, not sure how to handle that yet + ((or (functionp (nth 2 e)) (symbolp (nth 2 e))) + ;; A user-defined function, which can do anything, so simply + ;; ignore it. ) (t ;; a block agenda -- 1.7.6 --8---cut here---end---8--- Bye, Tassilo Emacs : GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-07-05 on thinkpad Package: Org-mode version 7.5 (release_7.5.580.g301b34)
[O] MobileOrg: Push more than the current week?
Hi all, is there a way to push more than the current week using M-x org-mobile-push RET? For example, it would be handy to be able to push the current plus the next week (or maybe push the next 7 days starting with today), so that you can push the next week on this week's Sunday. Right now, it seems you always have to push on Monday to have the current week's agenda available. Bye, Tassilo
Re: [O] MobileOrg: Push more than the current week?
Tassilo Horn tass...@member.fsf.org writes: Hi again, is there a way to push more than the current week using M-x org-mobile-push RET? After reading the docs more carefully, I managed to answer my question. The trick is to define a custom agenda view. --8---cut here---start-8--- (setq org-agenda-custom-commands '((n Next 21 days agenda ((org-agenda-span 21) --8---cut here---end---8--- So now I have three agendas on my phone: the default week agenda, all todos, and this new custom 21 next days overview. Bye, Tassilo
Re: [O] org-mobile setup: org-mobile-push not copying my org files?
Vinh Nguyen vinhdi...@gmail.com writes: Hi Vinh, I'm having trouble setting up org-mobile in emacs for use with MobileOrg on Android. I have the following in my init file: ;; org-mode OrgMobile (setq org-directory ~/Documents/Org) ;; my folder is empty Why is that folder empty? (setq org-mobile-directory ~/Dropbox/MobileOrg) (setq org-mobile-inbox-for-pull ~/Documents/Org/notes.org) In ~/Documents/Org, I have a file notes.org that contain my notes. I think it's preferrable to use an org file you don't use otherwise as inbox. When pulling from MobileOrg, all notes you caputed on your phone will go there so that you can refile them. When I call org-mobile-push, only 4 files get created in ~/Dropbox/MobileOrg: agendas.org, checksum.dat, index.org, and mobileorg.org. The latter is where MobileOrg puts its changes in. Based on my understanding, ~/Documents/Org/notes.org should be copied to ~/Dropbox/MobileOrg/, and a link to notes.org should be created in index.org. However, this does not happen. Am I not configuring things correctly or am I misunderstanding how to use org-mobile? I also tried setting: (setq org-mobile-files (quote notes.org)) but this does not work either. The default value is (org-agenda-files), so it should push all your org files to `org-mobile-directory'. What does C-x C-e after the closing paren above return? My settings are (setq org-mobile-directory ~/Desktop/Dropbox/MobileOrg) (setq org-mobile-inbox-for-pull ~/repos/org/from-org-mobile.org) which work pretty well. Bye, Tassilo
Re: [O] MobileOrg Android
Nathan Neff nathan.n...@gmail.com writes: Hi Nate, I just joined the 21st century and got a smart phone. Me, too. :-) I downloaded the MobileOrg for Android application, and have some questions, most of them are probably dumb, because I have only played with the phone for a bit. 1) Is there documentation regarding the various setups/syncing modes? Read (info (org)MobileOrg). First, I also thought that I simply put my original org files on the phone and that's it. Well, not true. ;-) Bye, Tassilo BTW: I can recommend k-9 mail as a pretty good (and free as in freedom) email app.
Re: [O] HTML5 presentations
Christian Moe m...@christianmoe.com writes: Cool! I tested it on a much-too-long slideshow, and noticed one problem, though: each new slide appeared a little further to the left. It also works fine with complex LaTeX math. :-) The only thing that it doesn't do now and stops me from using it directly is the missing support for image scaling. I tried using #+ATTR_HTML: title=Beer! width=90% [[file:~/Desktop/Pictures/beer-bunny.jpg]] but the image is shown in original size which is much larger than the slide. Oh, and numbered lists show up as plain item lists. Bye, Tassilo
Re: [O] HTML5 presentations
Rainer M Krug r.m.k...@gmail.com writes: Hi Rainer, The only thing that it doesn't do now and stops me from using it directly is the missing support for image scaling. I tried using #+ATTR_HTML: title=Beer! width=90% [[file:~/Desktop/Pictures/beer-bunny.jpg]] but the image is shown in original size which is much larger than the slide. Works for me - although my image is actually smaller, but I can change it's size. And you are really sure that you are using M-x org-export-as-html5presentation RET ? If so, you must be using a different version. There's at least the gist.github version (I use), but there are at least two forks at github, too... Bye, Tassilo
Re: [O] HTML5 presentations
Rainer M Krug r.m.k...@gmail.com writes: The only thing that it doesn't do now and stops me from using it directly is the missing support for image scaling. I tried using #+ATTR_HTML: title=Beer! width=90% [[file:~/Desktop/Pictures/beer-bunny.jpg]] but the image is shown in original size which is much larger than the slide. Works for me - although my image is actually smaller, but I can change it's size. I am using the one from: https://gist.github.com/509761 Ditto. Org-mode version 7.5 also tried with Org-mode version 7.5 (release_7.5.358.g5194) I also use the latter. GNU Emacs 23.3.1 (i686-pc-linux-gnu, GTK+ Version 2.22.0) Ok, I use the bzr trunk from yesterday. So that's a difference. I've just edebugged `org-export-html5presentation-format-image' and in the let... (let* ((caption (org-find-text-property-in-string 'org-caption src)) (attr (org-find-text-property-in-string 'org-attributes src)) ; HERE! (label (org-find-text-property-in-string 'org-label src))) ... I guess there should be something set. But the call returns nil. The same applies to #+CAPTION: This is the caption #+LABEL: img1 #+ATTR_HTML: title=Beer width=50% [[file:~/Desktop/Pictures/beer-bunny.jpg]] where neither caption, label, nor attr are set. When I set point on the link in the org-file and do M-x describe-text-properties RET I get , | Text content at position 690: | | There is an overlay here: | From 686 to 731 | face hl-line | window nil | | There are text properties here: | face org-link | font-lock-multiline t | fontifiedt | help-echoLINK: file:~/Desktop/Pictures/beer-bunny.jpg | keymap [Show] | mouse-face highlight | org-no-flyspell t ` Bye, Tassilo
[O] Timezone/Encoding issues when exporting as ics and importing to Google Calendar
Hi all, I export all my org-files as icalendar files, push them to some webserver from which google calendar imports them. Basically, that works pretty good except for two things: 1. Encoding: All Umlauts and other non-ASCII chars show up as boxes in google calendar. When visiting some exported ics file and doing M-x describe-coding-system, I get utf-8-unix for those files. Doesn't google calendar support UTF-8? And if so, is there a way to export as latin1 if that is supported by google? 2. Timezone: I live in Germany and thus all my timestamps are CEST. The exported ics file properly declare X-WR-TIMEZONE:CEST. However, since we also have DST, in summer all appointments show up 2 hours late, and in winter my appointments show up 1 hour late. Is there anything I can do about it? The google calendar settings have CEST as timezone... Thanks for any hints! Tassilo
Re: [O] Timezone/Encoding issues when exporting as ics and importing to Google Calendar
Nick Dokos nicholas.do...@hp.com writes: Hi Nick, 2. Timezone: I live in Germany and thus all my timestamps are CEST. The exported ics file properly declare X-WR-TIMEZONE:CEST. However, since we also have DST, in summer all appointments show up 2 hours late, and in winter my appointments show up 1 hour late. Is there anything I can do about it? The google calendar settings have CEST as timezone... I don't know if this is the problem you are running into, but icalendar--convert-tz-offset is buggy as-is: it looks as if additional work was planned for it, but it never got done. In particular, it assumes there is an RRULE in the icalendar file and does not translate timezones otherwise. I don't know the iCalendar spec so I don't know what an RRULE is. But as far as I can see, `icalendar--convert-tz-offset' is used while converting an ics file to the diary format. Reading your mail again, I guess you are having problems in the other direction, Right. ;-) but IME, if there is a bug somewhere, there is at least one more going the other way :-) Probably. Looking at the ical spec, this X-WR-TIMEZONE property is an optional extension nobody has to obey. Org exports the times like DTSTART:20110317T091500 which means local time. So probably the google server has UTC as local time, my preferences say I want to use Berlin-time, so all events get two hours added in summer. Now I've tried to explicitly set the timezone information using org-icalendar-timezone Europe/Berlin org-icalendar-date-time-format ;TZID=%Z:%Y%m%dT%H%M%S and now the events are like DTSTART;TZID=EUROPE/BERLIN:20110322T14 DTEND;TZID=EUROPE/BERLIN:20110322T16 However, that doesn't change anything in google calendar... Finally, I've set GMT+0 as my current timezone in google calendar, and now my appointments are shown correctly. Ok, that's not really a solution but only a workaround... Oh, there's another possibility; setting org-icalendar-date-time-format :%Y%m%dT%H%M%SZ which then seems to correctly recalculate the local times in my org files to GMT. So for an entry that starts at 14:30 and ends an 16:30, that's what exported. DTSTART:20100518T123000Z DTEND:20100518T143000Z Looks good, I'd say. But when importing that to google calendar, it shows that entry starting at 16:30 and ending at 18:30 Berlin-time. Now what's that?!? Oh, it seems to be some caching issue. Although the new ics file is on the server now, it seems that a reload of google calendar doesn't reimport all imported calendars. So I'll wait a bit and report back what methods work (explicit TZIDs and/or export as UTC). Bye, Tassilo
Re: [O] HTML5 presentations
Vinh Nguyen vinhdi...@gmail.com writes: After the recent org-mode to S5 discussion, I stumbled onto [these](https://gist.github.com/509761) code. It offers a way to export org files to HTML5 presentations. I think it looks quite nice. I see it being better than S5 in that no ui folder is required. What do you all think? Is it worthy of being incorporated into org-mode? Just tried it, and it's pretty cool! Easy to use and nicely looking. Bye, Tassilo