Re: [O] [OT]: Search for missing :END:
My guess is that it's the 18720th byte of the file. To get there, go to the start of your buffer and type M-x goto-char 18720 On Mon, Nov 21, 2011 at 11:27 PM, Markus Heller helle...@gmail.com wrote: Nick Dokos nicholas.do...@hp.com writes: Markus Heller helle...@gmail.com wrote: Hello all, I have an OT request that can hopefully be answered by emacs gurus in less than a minute: I'm looking for an emacs search expression that finds :PROPERTIES: *without* a matching :END: ... If you mean a regexp, you are wasting your time[fn:1]. Regexps are powerful, but their range of applicability is limited to regular languages and even then, you have to worry about their efficiency. The above *is* a regular language: if P stands for :PROPERTIES: and E stands for :END:, then the regexp is ([^EP]*P[^EP]*E)* In words, the stuff inside the parens says: 0 or more other things (non-P and non-E), followed by a P, followed by 0 or more other things, followed by an E. You can then have 0 or more of the parenthesized things. This will succeed on well formed sentences and fail on others. But it might have to backtrack over the inner [^EP]* matches and then the outer matches, and rescan arbitrarily long stretches, which in the worst case, can turn your search into an exponentially slow descent into the abyss. You might be able to write non-greedy regexps that might behave better in this case. In most cases, you'd end up with a horrendous-looking regexp: good luck trying to understand it next week. That's my biggest problem with complicated regexps. However, a change of tool will simplify the problem enormously. E.g. here's a simple algorithm that can be used for this kind of problem: start a nesting depth at 0 - when you see a P, increment the nesting depth by 1; when you see an E, decrement it by 1. If the nesting depth ever becomes something other than 0 or 1, you got a problem - also, if at EOF, the nesting depth is not 0, you got a problem. Easy variations of this will check well-formedness even when nesting *is* allowed. You can easily write such a program in any language you are familiar with (it does not have to be elisp, although you *can* write it in elisp - personally, I'd use awk). But assuming that you are getting some error from org, you don't know where the problem is and you are trying to find it, it will be simpler to just use egrep: grep -E -n ':PROPERTIES:|:END:' foo.org will filter out the relevant lines, so all you have to do is scan the output by eye and spot any irregularity (consecutive :PROPERTIES: or consecutive :END: lines). Even if you have hundreds of them, that's *easy* for humans to do.[fn:2] Or, if you prefer, you can write trivial validation programs to operate on the output, e.g.: grep -E -n ':PROPERTIES:|:END:' foo.org | tee foo.out | grep PROP | wc -l grep END foo.out | wc -l (the counts 'd better be the same). or grep -E -n ':PROPERTIES:|:END:' foo.org | foo.awk where foo.awk implements the nesting depth algorithm above - something like this: #! /bin/bash awk ' BEGIN { d = 0;} /:PROPERTIES:/ { d++; if (d 1) { print $1, $d; exit; }} /:END:/ { d--; if (d 0) { print $1, $d; exit; }} END { if (d != 0) { print $1, $d; }}' Even on Windoze, you can probably do all this stuff with cygwin. Hi Nick, thanks for this informative reply. Unfortunately, I cannot install cygwin on my work computer. I'll have to figure something else out ... AS for an example, I'm in one of my org files and I do C-TAB and get the following error: OVERVIEW CONTENTS...done SHOW ALL if: :END: line missing at position 18720 Quit Mark set Where is position 18720? I apologize if this is a stupid question, but I can't seem to figure this out ... Thanks again Markus
[O] [PATCH] Bug: org-ageda-bulk-mark-regexp bugs [7.7]
Emacs : GNU Emacs 23.1.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-03-04 on allspice, modified by Debian Package: Org-mode version 7.7 I found a couple of bugs with org-agenda-bulk-mark-regexp: - it didn't work at all :) - once I fixed that, it didn't work for the empty regex (or, I guess, for other expressions that match the emptiness at the end of the buffer). The first problem was solved by initializing entries-marked as 0. The latter, by making sure there is text to match on before proceeding down the while loop. This patch is relative to HEAD as of 2011-10-17T13:46:48+ diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 60e561c..bf03b68 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -8144,16 +8144,15 @@ This is a command that has to be installed in `calendar-mode-map'. (defun org-agenda-bulk-mark-regexp (regexp) Mark entries match REGEXP. (interactive sMark entries matching regexp: ) - (let ((entries-marked 0)) + (let (entries-marked) (save-excursion (goto-char (point-min)) (goto-char (next-single-property-change (point) 'txt)) - (while (and (re-search-forward regexp nil t) - (get-text-property (point) 'txt)) + (while (re-search-forward regexp nil t) (when (string-match regexp (get-text-property (point) 'txt)) (setq entries-marked (+ entries-marked 1)) (call-interactively 'org-agenda-bulk-mark -(if (zerop entries-marked) +(if (not entries-marked) (message No entry matching this regexp. (defun org-agenda-bulk-unmark ()
Re: [Orgmode] Creating ditaa diagrams
I do most of the work in artist mode, with the line-drawing feature: I love that it's C-c C-c to switch back to the native org-mode. To add arrows and make lines dashed, I switch to picture-mode or just use overwrite. On Sat, Feb 27, 2010 at 8:20 AM, Nathan Neff nathan.n...@gmail.com wrote: While researching org-babel (wow, wish I'd looked @ it earlier) I found the cool ditaa functionality. I experimented for a couple of hours with Emacs' picture mode and artist mode, and wanted to get advice/feedback from everyone on how they draw their ascii diagrams. Any advice? Thanks, --Nate ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Org-mode as QDA-Software?
2009/12/18 Sven Bretfeld sven.bretf...@gmx.ch: Hi all, especially you org developers out there Org mode would be a nice base for bringing a good QDA-Software to the world of free software, isn't it? QDAS is a special type of software for qualitative data analysis[¹], mostly used in Sociology and related fields of Science. Existing programs like Atlas.ti[²] and MaxQDA[³] are what I deem the essence of proprietary stuff: very expensive, elitist and utterly unfree (but widely used by research groups who have enough money at their disposal). AFAIK, there is only one piece of QDA software available for Linux, gTAMS Analyzer, which is quite awkward in my opinion. I often advocate QDAS to students and PhD students for managing Discourse Analysis projects, and its always embarrassing to push them to expensive programs. But I think org-mode is just one step away from being a powerful QDAS, especially with org-babel, I think. This lack in the world of free software might be only a small addon-package away. It would be the first cross-platform solution, and group functionalities could be implemented via git, CVS or SVN. To my regret, I'm just a devoted user, in no way a developer. Is any developer out there who deems this a worthwhile project? Students all over the world would be grateful (if we manage to make it known via Google and Wikipedia). Greetings Sven [¹] http://en.wikipedia.org/wiki/Qualitative_research. [²] http://www.atlasti.com/en/. [³] http://www.maxqda.com/. Without a clearer understanding of what features you want, I don't think anyone's going to be able to answer you to your or their satisfaction. From skimming the first section of http://www.maxqda.com/products/functionstab (Data management) it looks like orgmode already supports most of these requirements. The latter two, related to weighting paragraphs of text (presumably to mark up relevance?) are not trivially supported unless you wanted to make them subsections and assign them Properties. I've never used this software but the list of features seems very much a grab-bag of stuff all glommed together into one big product with little attention paid to the core requirements: maybe some clear thinking about what the fundamentals of qualitative data analysis tools are will prove useful. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Tagging a region of text without creating a branch
So, about inline tasks... what are they for? I've read the code and know what they do, how to use them etc. But I don't know in what context people use them. Why were they created and where are they used? On Oct 8, 2009 9:28 PM, Bernt Hansen be...@norang.ca wrote: Matt Lundin m...@imapmail.org writes: bar tomas barto...@gmail.com writes: Is it possible... Tags go with headlines. The only way to do what you want is with inline tasks like this: ,[ .emacs ] | (require 'org-inlinetask) ` ,[ test.org ] | | * item1 | this is about item 1 | *** subitem1 :urgent: | bla bla | *** not urgent | more about item1 ` HTH -Bernt ___ Emacs-orgmode mailing list Remember: use `Reply Al... ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] clearing the state of an org-mode subtree
org-mode files are plain text. M-% to do a replacement: once you've entered your search term and its replacement, hit ! to replace all without question. 2009/10/9 Robert Goldman rpgold...@sift.info: I'm at about my one year anniversary using Org-mode, and I have a bit of an odd question. Last year, I made a subtree that was a project for getting ready for winter (I live in Minnesota, which has harsh winters). I worked my way through that list, and now I'd like to do the whole thing over again. So I'd like to copy the subtree (this I believe I can easily do), and then clear it. That is, I'd like to reset all the TODOs from DONE to TODO, and clear all the check boxes. This seems like a really odd thing to do, so there probably isn't automation for it, but before I go groveling over it by hand, I thought I'd ask. thanks! R ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Export to ascii simpler
I export to ascii with C-c C-e a, then can Apple-v the exported text into whatever I choose. 2009/9/29 andrea Crotti andrea.crott...@gmail.com: Is there a very quick way to copy some text from an emacs buffer taking away the indentation? org-export-as-ascii creates a new file, I only need in the ring (and in osx buffer) the text copied. I can copy to another buffer than do a *kill-rectangle* on it but it's quite a long procedure.. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Org-mode version 6.30trans; HTML exporting problem
Emacs : GNU Emacs 23.0.60.1 (x86_64-pc-linux-gnu, GTK+ Version 2.12.9) of 2008-03-19 on yellow, modified by Debian Package: Org-mode version 6.30trans (git pulled this afternoon) I have the following file: == #+BEGIN_SRC conf CONF=/etc/passwd EXTRAFLAGS=--snark #+END_SRC == When I try to export it to HTML, I get an error, Invalid face. Here's the backtrace: Debugger entered--Lisp error: (error Invalid face) internal-get-lisp-face-attribute(nil :height nil) face-attribute(nil :height) htmlize-face-size(default) htmlize-face-to-fstruct(default) htmlize-make-face-map((default font-lock-string-face font-lock-variable-name-face)) htmlize-buffer-1() htmlize-region(1 22) org-export-htmlize-region-for-paste(1 22) org-export-format-source-code-or-example(html #(conf 0 4 (fontified t font-lock-fontified t)) #(EXTRAFLAGS=\--snark\\n 0 14 (fontified t font-lock-fontified t) 14 15 (fontified t font-lock-fontified t) 15 16 (fontified t font-lock-fontified t) 16 17 (fontified t font-lock-fontified t) 17 18 (fontified t font-lock-fontified t) 18 19 (fontified t font-lock-fontified t) 19 20 (fontified t font-lock-fontified t) 20 21 (fontified t font-lock-fontified t)) 0) org-export-replace-src-segments-and-examples(html) org-export-preprocess-string(#(#+BEGIN_SRC conf\nCONF=/etc/passwd\nEXTRAFLAGS=\--snark\\n#+END_SRC\n 0 16 (fontified t font-lock-fontified t auto-composed t face org-meta-line font-lock-multiline t) 16 17 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-meta-line) 17 23 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 23 24 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 24 25 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 25 26 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 26 27 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 27 28 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 28 29 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 29 30 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 30 31 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 31 32 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 32 33 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 33 34 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block :org-license-to-kill t) 34 48 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 48 49 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 49 50 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 50 51 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 51 52 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 52 53 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 53 54 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-block) 54 55 (fontified t font-lock-fontified t auto-composed t font-lock-multiline t face org-meta-line) 55 64 (fontified t font-lock-fontified t auto-composed t face org-meta-line font-lock-multiline t) 64 65 (fontified t auto-composed t)) :emph-multiline t :for-html t :skip-before-1st-heading nil :drawers nil :todo-keywords t :tags not-in-toc :priority nil :footnotes t :timestamps t :archived-trees headline :select-tags (export) :exclude-tags (noexport) :add-text nil :LaTeX-fragments nil) org-export-as-html(nil nil (:buffer-will-be-killed t :base-directory ~/org/ :base-extension org :publishing-directory ~/public_html/org/ :style-include-default nil :style link rel=stylesheet href=\org.css\ type=\text/css\) nil nil /home/stribb/www/org/) org-publish-org-to(html (:base-directory ~/org/ :base-extension org :publishing-directory ~/public_html/org/ :style-include-default nil :style link rel=stylesheet href=\org.css\ type=\text/css\) /home/stribb/org/bug.org /home/stribb/www/org/) org-publish-org-to-html((:base-directory ~/org/ :base-extension org :publishing-directory ~/public_html/org/ :style-include-default nil :style link rel=stylesheet href=\org.css\ type=\text/css\) /home/stribb/org/bug.org /home/stribb/www/org/) org-publish-file(/home/stribb/org/bug.org)
Re: [Orgmode] Re: Org-mode version 6.30trans; HTML exporting problem
Good call. Works now, thanks. (Well, there's the oddity that the h1 is CONF=/etc/passwd, but I think we can forgive that.) 2009/9/21 Benjamin Andresen bandre...@gmail.com: Andrew Stribblehill a...@wompom.org writes: [snip] do you have org-mode/contrib/lisp at the beginning of your load-path? The error you're seeing seems to be from using an old version of htmlize (Maybe from a different source?). The one in contrib should work. HTH, benny ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Emacs 21.4.1 support
2009/9/14 Tassilo Horn tass...@member.fsf.org: Jing Su @ Gmail jing.su...@gmail.com writes: Hi Jing, I fully understand that Emacs 21 is way out of date. However, since RHEL is one of the mainstream commercial distros, and is common on servers, it would be great if org-mode can be consistent with such ``industrial standard'' (which is always way out of date :S ). Emacs 21.4 is nearly 4 years old! Org-mode uses quite a bunch of more or less recent emacs features, so getting it fully working would be quite a hassle with a lot of compatibility code. Maybe an older org-mode version supports emacs 21.4 and has all features you need. But I cannot find a downloads page for old versions... Or get the git version and use the revision before the commit 31858e5c39404cf2bc745fe05f59c7ce6816db74. , | commit 31858e5c39404cf2bc745fe05f59c7ce6816db74 | Author: Carsten Dominik carsten.domi...@gmail.com | Date: Tue Apr 21 14:00:24 2009 +0200 | | End of Emacs 21 support. ` System administrators will take risk to install unofficial org-mode, but most of them won't risk the whole server, i.e., risk their necks, for a newer but unofficial (according to RH) Emacs version. You could compile and install emacs in your $HOME. The INSTALL file coming with it tells how to do that. I agree. In fact, when I was a real sysadmin, I used to maintain a local build of Emacs for my users. However, I tried compiling the latest org-mode with Emacs 21.4 and basic functionality works: tab, shift-tab, TODO, the day/week view of the agenda -- and these are the only things I've tried. See for yourself how well an org-mode build works and it may turn out not to be an issue. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] patch for git: org-ascii.el
Are you sure you need this? Try make clean; make, without it? 2009/9/8 Wes Hardaker wjhns...@hardakers.net: org-ascii uses org-float-time which is in org-compat: diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el index 4fd5675..e6ad8d1 100644 --- a/lisp/org-ascii.el +++ b/lisp/org-ascii.el @@ -27,6 +27,7 @@ ;;; Commentary: (require 'org-exp) +(require 'org-compat) (defgroup org-export-ascii nil Options specific for ASCII export of Org-mode files. -- \ Wes Hardaker http://pontifications.hardakers.net / \_ In the bathtub of history the truth is harder to hold than / \___ the soap, and much more difficult to find. ___/ \_ -- Terry Pratchett __/ \__/ ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Footnote references don't belong in the table of contents
Verified, thanks. 2009/9/3 Carsten Dominik carsten.domi...@gmail.com: Hi Andrew, I think this is fixed now, please verify. Thanks! - Carsten On Sep 2, 2009, at 3:01 PM, Andrew Stribblehill wrote: Emacs : GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-05-02 on king, modified by Ubuntu Package: Org-mode version 6.30 current state: == (setq org-clock-in-switch-to-state DOING org-todo-keyword-faces '((BLOCKING . org-agenda-dimmed-todo-face) (DOING . stribb/org-agenda-doing)) org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :effort t) org-agenda-custom-commands '((S snippet view agenda ((org-agenda-show-log t) (org-agenda-log-mode-items (quote (state))) (org-agenda-archives-mode t) (org-agenda-include-inactive-timestamps t) (org-agenda-clockreport-mode t)) ) ) org-agenda-files '(~/org/feedback-template.org ~/org/kill-all-gateways.org ~/org/notes.org ~/org/objectives.org ~/org/perms.org ~/org/proj-sanitised.org ~/org/tax.org ~/org/todo.org ~/org/whisky.org) org-after-todo-state-change-hook '(org-clock-out-if-current) org-clock-history-length 35 org-clock-in-prepare-hook '(stribb/org-mode-ask-effort) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO(t) DOING(w!) | DONE(d!) CANCELLED(c@)) (sequence BLOCKING(b@/!))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-agenda-start-with-follow-mode t org-default-notes-file ~/org/refile.org org-directory ~/org/ org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-project-alist '((org :base-directory ~/org/ :base-extension org :publishing-directory ~/public_html/org/ :style-include-default nil :style link rel=stylesheet href=\org.css\ type=\text/css\) ) org-refile-target-verify-function '(lambda nil (not (member ARCHIVE (org-get-tags org-mode-hook '((lambda nil (auto-fill-mode 1)) #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-clock-out-remove-zero-time-clocks t org-refile-targets '((org-agenda-files :maxlevel . 2)) org-confirm-elisp-link-function 'yes-or-no-p org-refile-use-outline-path 'file org-log-into-drawer t org-occur-hook '(org-first-headline-recenter) org-remember-templates '((refile 114 * %?\n :PROPERTIES:\n :Filed: %U\n :END:\n %i\n %a) ) org-link-abbrev-alist '((b . http://b/;) (tick . http://tick/;) (cl . http://cl/;) (googler . http://who/;) (p4 . http://s/file=;) (wiki . http://wiki/Main/;) (google3 . file:///Depot/google3/)) ) I have a file: 8- * Foo * Bar [fn:1] [fn:1] this explains bar 8- When I export it to HTML, I see Bar[1] in the ToC. The number there isn't clickable but I don't think it should be there at all. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Footnote references don't belong in the table of contents
Emacs : GNU Emacs 22.1.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2008-05-02 on king, modified by Ubuntu Package: Org-mode version 6.30 current state: == (setq org-clock-in-switch-to-state DOING org-todo-keyword-faces '((BLOCKING . org-agenda-dimmed-todo-face) (DOING . stribb/org-agenda-doing)) org-agenda-clockreport-parameter-plist '(:link t :maxlevel 2 :effort t) org-agenda-custom-commands '((S snippet view agenda ((org-agenda-show-log t) (org-agenda-log-mode-items (quote (state))) (org-agenda-archives-mode t) (org-agenda-include-inactive-timestamps t) (org-agenda-clockreport-mode t)) ) ) org-agenda-files '(~/org/feedback-template.org ~/org/kill-all-gateways.org ~/org/notes.org ~/org/objectives.org ~/org/perms.org ~/org/proj-sanitised.org ~/org/tax.org ~/org/todo.org ~/org/whisky.org) org-after-todo-state-change-hook '(org-clock-out-if-current) org-clock-history-length 35 org-clock-in-prepare-hook '(stribb/org-mode-ask-effort) org-export-preprocess-hook '(org-export-blocks-preprocess) org-tab-first-hook '(org-hide-block-toggle-maybe) org-src-mode-hook '(org-src-mode-configure-edit-buffer) org-confirm-shell-link-function 'yes-or-no-p org-todo-keywords '((sequence TODO(t) DOING(w!) | DONE(d!) CANCELLED(c@)) (sequence BLOCKING(b@/!))) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-agenda-start-with-follow-mode t org-default-notes-file ~/org/refile.org org-directory ~/org/ org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-publish-project-alist '((org :base-directory ~/org/ :base-extension org :publishing-directory ~/public_html/org/ :style-include-default nil :style link rel=stylesheet href=\org.css\ type=\text/css\) ) org-refile-target-verify-function '(lambda nil (not (member ARCHIVE (org-get-tags org-mode-hook '((lambda nil (auto-fill-mode 1)) #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] ) org-clock-out-remove-zero-time-clocks t org-refile-targets '((org-agenda-files :maxlevel . 2)) org-confirm-elisp-link-function 'yes-or-no-p org-refile-use-outline-path 'file org-log-into-drawer t org-occur-hook '(org-first-headline-recenter) org-remember-templates '((refile 114 * %?\n :PROPERTIES:\n :Filed: %U\n :END:\n %i\n %a) ) org-link-abbrev-alist '((b . http://b/;) (tick . http://tick/;) (cl . http://cl/;) (googler . http://who/;) (p4 . http://s/file=;) (wiki . http://wiki/Main/;) (google3 . file:///Depot/google3/)) ) I have a file: 8- * Foo * Bar [fn:1] [fn:1] this explains bar 8- When I export it to HTML, I see Bar[1] in the ToC. The number there isn't clickable but I don't think it should be there at all. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Preventing (or mitigating) accidental deletion in org-mode
2009/8/23 Leo sdl@gmail.com: On 2009-08-23 11:58 +0100, Nick Bell wrote: Org-mode is great and I'd like to commit to it. However, I'm held back by the apparent fragility of data stored in org-files. For example, it's easy to delete entire folded trees of data with just a couple of keystrokes or a mouse click. This should not be a problem as long as you know how the undo in Emacs works. You can even use browse-kill-ring¹ to see what you have deleted in Emacs. ...Provided you know that you killed something you didn't intend to. However, it's easy to kill a tree without noticing it had content. Maybe we could augment org-kill-line with some optional facility that checks that it doesn't encompass a collapsed section -- or less intrusively, emits a message saying it's killed a collapsed section. I'm having a hard time seeing how to code it though. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Wishlist: see what I did last week in agenda view
I can almost get there; it's quite frustrating... I am trying to concoct an agenda view in which every item that has a clock entry or timestamp for the past week shows up -- and preferably those for the forthcoming week. This is so I can make a weekly report of what I've done. The timeline view seems like it should be perfect for this but it's only able to show the timeline for one file at a time. How might I get this? Or if it's not easily possible, does anyone on the list have a recipe for what they do for their weekly work log? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Wishlist: see what I did last week in agenda view
2009/8/17 Matt Lundin m...@imapmail.org: Andrew Stribblehill a...@wompom.org writes: I am trying to concoct an agenda view in which every item that has a clock entry or timestamp for the past week shows up -- and preferably those for the forthcoming week. This is so I can make a weekly report of what I've done. ... How might I get this? Or if it's not easily possible, does anyone on the list have a recipe for what they do for their weekly work log? Have you tried the agenda log view yet? Simply type l in the agenda. To see an entire week of logged items, you can type w and then navigate through the weeks with the arrow keys. You can control what types of items are visible in the log with the variable org-agenda-log-mode-items. That's great, thanks. It's especially useful with the clock-report addition. Now to make a custom agenda view that sets everything up just so... :) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Is this a good feature to have?
I simply file with the default template and remove extraneous stuff when refiling. On Aug 17, 2009 12:27 AM, Leo sdl@gmail.com wrote: Hi all, Remember is a convenient tool for collecting tasks. However I always feel it can be more flexible in someway since I started using it quite a while ago. So I have the following proposal. 1. Add a key C-c i char for each %char in the *Remember* buffer. For example, `C-c i a' shall toggle the insertion of the annotation. 2. Add a new syntax to %char as a placeholder for the corresponding C-c i char. For example, %a can be used in a template to indicate the place to insert annotation when pressing `C-c i a'. if no placeholder is indicated in the template, then `C-c i a' insert the annotation in current place. This proposal is to eliminate the need to define multiple similar templates. For example, one with annotation and another without, or one with clipboard and another without. What do people think of this? Best, Leo -- Emacs uptime: 6 days, 8 hours, 48 minutes, 55 seconds ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Fast way to jump to another specific heading?
Have you tried the org-refile interface? C-u C-c C-w lets you jump to a heading using the same interface you get when refiling, so you can customise it easily. My org-refile config is: (setq org-refile-targets '((org-agenda-files :maxlevel . 2)) org-refile-use-outline-path 'file org-refile-target-verify-function (lambda () (not (member ARCHIVE (org-get-tags) This lets me go to whichever file I choose out of the list of agenda files then up to two deep into the hierarchy, filtering out archived sections. If you're sticking to one file, perhaps see if (setq org-refile-use-outline-path t) is to your taste. 2009/8/13 Jan Böcker lists@jboecker.de: Hello, at the moment I use one org-mode file per project and use ido.el's fuzzy search to quickly open the appropriate project file. However, this tends to clutter up my buffer list when I forget to kill buffers after using them. I'd like to use only one file to store all my active projects and use ido.el to quickly jump to another project node (project nodes being defined as, say, all direct descendants of a particular top-level node). Ideally, after jumping to the node, the outline would automatically be narrowed down to the target node. Are there similar facilities already present in org-mode that I missed? If not, I'd like to propose a new feature: take the results of a custom agenda view (as those allow us to define powerful searches), then feed the results to ido-mode or the standard emacs autocompletion for the user to select one to jump to. Unfortunately, my elisp-fu (and knowledge of org-mode internals) is way too insufficient to implement something like that myself. Jan ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] $LR syntax in tables
I'm afraid I can't quite wrap my head around this puzzle. I have a little table: | Budget | 640 | 640 | | Some expense | -165 | 475 | #+TBLFM: $3=$LR3+$2 So col C is supposed to add the previous line's col C to the current line's col B. However, it seems that $LR3 is referring to the _subsequent_ line not the previous one. Is there a bug or just my misunderstanding? Thanks. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Remove some blank leading blank lines from ASCII export.
With the following org file: -- Foo In which foos are described. #+OPTIONS: num:nil author:nil creator:nil timestamp:nil d:nil toc:nil skip:t #+TITLE: * The construction of a foo ** Armaments -- I found exporting to ASCII gave five leading blank lines. The following patch reduces that to one. (I'd love some help in tracking down that final one.) --- lisp/ChangeLog|5 + lisp/org-ascii.el | 11 +++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index dd00a9a..2c477d7 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2009-08-09 Andrew Stribblehill a...@wompom.org + + * org-ascii.el (org-export-as-ascii): Remove some leading blank + lines from output when skipping preamble. + 2009-08-08 Bastien Guerry b...@altern.org * org.el (org-iswitchb): Fix bug when aborting the `org-iswitchb' diff --git a/lisp/org-ascii.el b/lisp/org-ascii.el index ede4ccc..846be8a 100644 --- a/lisp/org-ascii.el +++ b/lisp/org-ascii.el @@ -266,11 +266,13 @@ publishing directory. ;; File header (unless body-only - (if title (org-insert-centered title ?=)) - (insert \n) + (when (and title (not (string= title))) + (org-insert-centered title ?=) + (insert \n)) + (if (and (or author email) org-export-author-info) - (insert (concat (nth 1 lang-words) : (or author ) + (insert(concat (nth 1 lang-words) : (or author ) (if email (concat email ) ) \n))) @@ -283,7 +285,8 @@ publishing directory. (if (and date org-export-time-stamp-file) (insert (concat (nth 2 lang-words) : date\n))) - (insert \n\n)) + (unless (= (point) (point-min)) + (insert \n\n))) (if (and org-export-with-toc (not body-only)) (progn -- 1.6.3.GIT ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] suggestion: native orgmode XML export (and import?)
[re-adding the mailing list] No, EXPERIMENTAL/org-export.el. Here's what I did after M-x load-file /path/to/org-export.el: (defun org-export-sexp (arg) (interactive p) (let ((bufstr (org-export-parse arg))) (save-excursion (switch-to-buffer (get-buffer-create *Org export*)) (erase-buffer) (insert (format %s bufstr) An org file such as: Objectives * Q3 2009 :PROPERTIES: :SCORE:0.77 :END: ** Operations *** [#0] Oncall. Keep the site up *** [#1] Keep the tubes clear. ** Projects comes out as: ((:level 1 :heading Q3 2009 :properties ((SCORE . 0.77) (CATEGORY . proj-sanitised)) :content :subtree ((:level 2 :heading Operations :properties ((CATEGORY . proj-sanitised)) :content :subtree ((:level 3 :heading Oncall. Keep the site up :properties ((PRIORITY . 0) (CATEGORY . proj-sanitised)) :content :subtree nil) (:level 3 :heading Keep the tubes clear. :properties ((PRIORITY . 1) (CATEGORY . proj-sanitised)) :content :subtree nil))) (:level 2 :heading Projects :properties ((CATEGORY . proj-sanitised)) :content :subtree nil 2009/8/7 Ilya Shlyakhter ilya_...@alum.mit.edu: Thanks for the pointer. Did you mean org-exp.el? How exactly do I get the internal representation? thanks, ilya On Thu, Aug 6, 2009 at 11:58 PM, Andrew Stribblehilla...@wompom.org wrote: I notice the experimental org-export.el contains an internal representation. It would probably be very easy for your python to parse the lisp s-expression it uses, if it were exported. On Aug 6, 2009 3:55 PM, Ilya Shlyakhter ilya_...@alum.mit.edu wrote: I'm not an emacs-lisp programmer, but I'd like to write scripts (ideally in Python) to generate custom reports from my .org files. What would help a lot, is if there was a command to export an .org file to a native XML format that would mirror the org file's structure and all its logical elements (tags, properties, drawers, dates etc). I know about the DocBook exporter, but it maps orgmode's concepts onto DocBook concepts such as articles. I'm a longtime orgmode user and it would be much simpler to write a program in terms of the familiar org concepts (hierarchical entries, tags, properties etc). It would also be great if there was a way to import such an XML file back into org. Then one could e.g. take Toodledo.com tasks and transform them into an orgmode file. There is an orgmode Python reader at http://www.members.optusnet.com.au/~charles57/GTD/orgnode.html and I plan to use that for now. But it doesn't support all orgmode features, and more importantly it does its own parsing of orgfiles (so may not keep up with any future changes). Using orgmode's own parser, and then exporting the results as XML, would be much more reliable. ilya ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode