Re: [Orgmode] Re: org-insert-heading and inline tasks
Noorul Islam K M noo...@noorul.com wrote: Matt Lundin m...@imapmail.org writes: Hi Carsten, The following commit changes the behavior of org-insert-heading within the context of inline tasks: 19d695ef8fd27ac1b1ef1b675c3960b9b7d6abdc But this is what I get * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above I go this one when I hit M-RET at the beginning of line TODO Look up synonyms for blah I go this one when I hit M-RET at the end of line I have Org-mode version 7.01trans (release_7.01h.661.g6803) GNU Emacs 23.1.1 (i686-pc-linux-gnu, GTK+ Version 2.12.12) of 2010-01-30 on noorul You probably don't have the relevant commit in your version - haven't counted exactly but it's probably around Org-mode version 7.01trans (release_7.01h.682.) or so, about 20 commits after yours. Try git show 19d695ef8fd27ac1b1ef1b675c3960b9b7d6abdc If it gives you no output, you don't have it, so you wouldn't see the problem anyway. OTOH, I tried it with Org-mode version 7.01trans (release_7.01h.700.gd32c) and I get the behavior described by Noorul, not the behavior described by Matt. But I am sufficiently toasted by now that I wouldn't trust anything I say :-) I'll try again afresh tomorrow. Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-hide-entry
Andreas Röhler andreas.roeh...@easy-emacs.de writes: Hi. as org-mode knows a command `org-show-entry' looked for `org-hide-entry', but couldn't get it. So here it is. Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components diff --git a/lisp/org.el b/lisp/org.el index a80286f..df9ae99 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19391,6 +19391,24 @@ Stop at the first and last subheadings of a superior heading. (org-end-of-subtree t t)) nil)) +(defun org-hide-entry () + Hide the body directly following this heading. + (interactive) + (save-excursion +(condition-case nil + (progn + (org-back-to-heading t) + (outline-flag-region +(max (point-min) (1- (point))) +(save-excursion + (if (re-search-forward + (concat [\r\n]\\( outline-regexp \\)) nil t) + (1- (match-beginning 1)) +(point-max))) +t) + (org-cycle-hide-drawers 'children)) + (error nil + (defun org-show-entry () Show the body directly following this heading. Show the heading too, if it is currently invisible. Are you going to use it in org-mode code base in future? Thanks and Regards Noorul ___ 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-insert-heading and inline tasks
On Oct 14, 2010, at 8:11 PM, Matt Lundin wrote: Hi Carsten, The following commit changes the behavior of org-insert-heading within the context of inline tasks: 19d695ef8fd27ac1b1ef1b675c3960b9b7d6abdc I find that new headlines are no longer inserted at the same depth as inline tasks. A quick skim of the diff suggests that this is the intended behavior. While I understand that one would not normally want a new headline to derive its depth from an inline task further up in the subtree, I often enter a few inline tasks at the same depth in quick succession, e.g., when creating a mini project-hierarchy from a single inline task. Take the following example: --8---cut here---start-8--- * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above TODO Look up synonyms for blah Blah blah blah blah blah blah blah. --8---cut here---end---8--- If I hit M-RET at the beginning of the second TODO headline, I get the following: --8---cut here---start-8--- * My big writing project Blah blah blah blah blah blah. *** PROJECT Add some variety to the above * TODO Look up synonyms for blah Blah blah blah blah blah blah blah. --8---cut here---end---8--- Would it be possible to respect the depth of an inline task if one calls org-insert-headline directly on the headline? Normally, if I call M- RET from an inline-task headline, I intend to insert another task at the same depth. This is especially true if I'd like to add an END headline to an inline task. Okay, fair anough, it now works like this. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Documentation typo
Applied, thanks. - Carsten On Oct 14, 2010, at 10:32 PM, Thomas S. Dye wrote: Changes from table-export to master Modified doc/org.texi diff --git a/doc/org.texi b/doc/org.texi index 801bf12..03bb4fd 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -11281,7 +11281,7 @@ for information on the syntax of remote code block evaluation). @kindex C-c C-v l Code blocks located in any Org-mode file can be loaded into the ``Library of Babel'' with the @code{org-babel-lob-ingest} function, bound to @kbd{C-c C-v -l}. +i}. @node Languages, Header arguments, Library of Babel, Working With Source Code @section Languages ___ 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] 7.01 Xemacs 21.4.22: decompose-region is not known
Dear Uwe, I'd like to bring you in contact with Michael Sperber (CCed). He has taken up the task to keep Org usable in XEmacs, so maybe you can work together to create the necessary patches. Without Michael, I would have dropped XEmacs support for 7.xx, but this is no longer on the agenda. Only, I do not have myself the time to attend to these compatibility issues. Thanks! - Carsten On Oct 14, 2010, at 3:33 PM, Uwe Brauer wrote: Hello Since I can't submit a bug report I attach the error trace when I try to open a file in org mode: Uwe Brauer org-decompose-region___ 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] 7.01 Xemacs 21.4.22: decompose-region is not known
Dear Uwe, I'd like to bring you in contact with Michael Sperber (CCed). He has taken up the task to keep Org usable in XEmacs, so maybe you can work together to create the necessary patches. Without Michael, I would have dropped XEmacs support for 7.xx, but this is no longer on the agenda. Only, I do not have myself the time to attend to these compatibility issues. Thanks! - Carsten On Oct 14, 2010, at 3:33 PM, Uwe Brauer wrote: Hello Since I can't submit a bug report I attach the error trace when I try to open a file in org mode: Uwe Brauer org-decompose-region___ 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] Re: Lisp error: (wrong-type-argument stringp nil)
Hi Sebastian, I do not know what is happening here. Something. But you do seem to be the only one having this problem, I have not heard about it from anybody else. Unfortunately I do not know how to guide you to better tracing this error at this time. If you can make me a reproducible case with a minimal setup - I will take a look. - Carsten On Oct 14, 2010, at 3:06 PM, Sébastien Vauban wrote: Carsten Dominik, Carsten Dominik wrote: I don't understand the cause of this, moreover as I have the linked file open in my Emacs. Of course, since I've just reinstalled my Emacs, Org, and so on, on a new Windows setup, I have many small differences with before. Someone would have an idea for this? do you have agenda-follow-mode on? Nope. I only use that once in a month, when checking clock times and description of tasks. Not enabled in yesterday's session. Also, can you please hit the bug again in the debugger and then press e m RET and let me know what the debuffer reports? This should retrieve the value of m. One possible reason to get this bug is to kill the buffer one of one of the agenda files and then to revisit it. The marker will then not be nil, but it will point nowhere I killed one of the org-agenda-files, and moved the cursor on it. I could reproduce the same problem as yesterday. Entering debugger... --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (if (markerp m) (set-buffer (marker-buffer m))) (save-excursion (if (markerp m) (set-buffer ...)) (save-excursion (goto-char ...) (org-display-outline-path t))) (org-with-point-at m (org-display-outline-path t)) (if (and m org-agenda-show-outline-path) (org-with-point-at m (org- display-outline-path t))) (let ((m ...)) (if (and org-agenda-follow-mode m) (org-agenda- show)) (if (and m org-agenda-show-outline-path) (org-with-point-at m ...))) org-agenda-do-context-action() org-agenda-next-line() call-interactively(org-agenda-next-line nil nil) --8---cut here---end---8--- =e m RET= displays: #marker in no buffer Though, here and now, pressing =g= resolves the problem. Agenda is refreshed, with the missing file being reloaded, and I can once again move and click on any line of the agenda. Yesterday, there were 2 differences: - =g= did not solve anything - all the agenda lines were bugging... Unluckily, I don't enough context now to be able to reproduce that exact same problem as of yesterday. I said it only occurred a couple of times, over a couple of days. Thanks! Best regards, Seb -- Sébastien Vauban ___ 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] Re: Bug (?) in org-capture
Hi Robert, I cannot reproduce this error. If I set my default notes file to ~/ org//notes.org things seem to work just fine. - Carsten On Oct 14, 2010, at 5:14 PM, Robert Goldman wrote: On 10/14/10 Oct 14 -9:40 AM, Robert Goldman wrote: I was trying to experiment for the first time using org-capture together with w3m today, and I get an error. I invoke org-capture, and was pleased to find that it built me a buffer just fine, and made an org link for the URL of the w3m buffer. So far, so good. Unfortunately, when I try to save the buffer, either with C-c C-c or C-c C-w, I get an error. The error is in org-capture-bookmark-last-stored-position. Here: (defun org-capture-bookmark-last-stored-position () Bookmark the last-captured position. (let* ((where (org-capture-get :position-for-last-stored 'local)) ) WHERE gets bound to NIL, the return of ORG-CAPTURE-GET, causing an error. I'm quite prepared to believe that I have this horribly misconfigured, since I really didn't configure it at all, but it's disappointing that the buffer creation works so well without configuration, but leaves me in this pickle. It's also disappointing that the refile command doesn't work --- any chance of hacking it so that it does something sensible (I was thinking involving interactive selection) when org-capture is not yet configured? AFAICT the direct cause of the error is that org-capture-current- plist is NIL, and the 'local spec in this call means that we consult that instead of org-capture-plist. At this point my ability to understand the code peters out, and I'm afraid I don't have anything useful to say. Sorta never mind --- I figured out what the problem was. Somehow the default file for org-capture was ~/org//notes.org not ~/org/notes.org, so there was really a file not found error here. So this is, in a sense, user error. That said, if it's not too much trouble, maybe reporting a file not found error for this would be more helpful than crashing in this way. On the other hand, this might be tricky to find and handle, so maybe it's not worth the trouble. best, r ___ 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] Re: Lisp error: (wrong-type-argument stringp nil)
Hi Sebastian, I do not know what is happening here. Something. But you do seem to be the only one having this problem, I have not heard about it from anybody else. Unfortunately I do not know how to guide you to better tracing this error at this time. If you can make me a reproducible case with a minimal setup - I will take a look. - Carsten On Oct 14, 2010, at 3:06 PM, Sébastien Vauban wrote: Carsten Dominik, Carsten Dominik wrote: I don't understand the cause of this, moreover as I have the linked file open in my Emacs. Of course, since I've just reinstalled my Emacs, Org, and so on, on a new Windows setup, I have many small differences with before. Someone would have an idea for this? do you have agenda-follow-mode on? Nope. I only use that once in a month, when checking clock times and description of tasks. Not enabled in yesterday's session. Also, can you please hit the bug again in the debugger and then press e m RET and let me know what the debuffer reports? This should retrieve the value of m. One possible reason to get this bug is to kill the buffer one of one of the agenda files and then to revisit it. The marker will then not be nil, but it will point nowhere I killed one of the org-agenda-files, and moved the cursor on it. I could reproduce the same problem as yesterday. Entering debugger... --8---cut here---start-8--- Debugger entered--Lisp error: (wrong-type-argument stringp nil) set-buffer(nil) (if (markerp m) (set-buffer (marker-buffer m))) (save-excursion (if (markerp m) (set-buffer ...)) (save-excursion (goto-char ...) (org-display-outline-path t))) (org-with-point-at m (org-display-outline-path t)) (if (and m org-agenda-show-outline-path) (org-with-point-at m (org- display-outline-path t))) (let ((m ...)) (if (and org-agenda-follow-mode m) (org-agenda-show)) (if (and m org-agenda-show-outline-path) (org-with-point-at m ...))) org-agenda-do-context-action() org-agenda-next-line() call-interactively(org-agenda-next-line nil nil) --8---cut here---end---8--- =e m RET= displays: #marker in no buffer Though, here and now, pressing =g= resolves the problem. Agenda is refreshed, with the missing file being reloaded, and I can once again move and click on any line of the agenda. Yesterday, there were 2 differences: - =g= did not solve anything - all the agenda lines were bugging... Unluckily, I don't enough context now to be able to reproduce that exact same problem as of yesterday. I said it only occurred a couple of times, over a couple of days. Thanks! Best regards, Seb -- Sébastien Vauban ___ 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] Re: [BUG] OrgTbl exports raw ampersands in HTML
On Oct 13, 2010, at 10:52 PM, Nick Dokos wrote: Ivan Vilata i Balaguer i...@selidor.net wrote: Nick Dokos (2010-10-13 21:10:33 +0200) wrote: Yes, thanks. I'll try it out later. FWIW, my mail reader does not see an attachment in your message: all I get is the following attachmen with an external body. Not sure whose fault that is though: maybe mh-e gets hopelessly confused with it. Can you post the HTML file inline? Argh, I made an external attachment, sorry. Here you have the file: 8 html body !-- [CDATA[ #+ORGTBL: SEND test orgtbl-to-html | foobar | ]] -- !-- BEGIN RECEIVE ORGTBL test -- !-- END RECEIVE ORGTBL test -- /body /html 8 The following patch should fix it: --8---cut here---start-8--- diff --git a/lisp/org-html.el b/lisp/org-html.el index 3fd7b72..f7824ce 100644 --- a/lisp/org-html.el +++ b/lisp/org-html.el @@ -1885,7 +1885,7 @@ lang=\%s\ xml:lang=\%s\ ;; ignore this line (throw 'next-line t))) ;; Break the line into fields - (setq fields (org-split-string line [ \t]*|[ \t]*)) + (setq fields (mapcar (function org-html-expand) (org-split-string line [ \t]*|[ \t]*))) (unless fnum (setq fnum (make-vector (length fields) 0) nfields (length fnum))) (setq nline (1+ nline) i -1 --8---cut here---end---8--- Hi Nick, this is the right medicine, in the wrong place. It needs to be done in orgtbl-to-html. The function where you inserted the call to org-html-expand is also used by the general html exporter, and during normal html export, org-html-expand is already called at an earlier stage. Anyway, thanks a lot for doing 90% of the work! - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-freemind.el and rx
- bad news org-freemind does not compile when (require 'rx) is used, error message is attached. I've made some more changes to rx.el for xemacs compatibility. Please try the new version: http://broadinstitute.org/~ilya/rx.el . Also, org-freemind.el uses delete-trailing-whitespace, which is present in Emacs but not in xemacs -- needs to be brought over. ilya ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Last workday of month scheduling
Hello! I have one modest question to ask: Is there a way in Org-mode to schedule a task so it appears the last workday (i.e. not Saturday or Sunday) of the month, each month? Best Regards Gustav Wikström ___ 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] Fwd: Agenda: Hide Sched. Items
2010/9/13 Nathan Neff nathan.n...@gmail.com: (setq org-agenda-custom-commands '(( Timeline ((agenda )) ((org-agenda-ndays 1) (org-agenda-show-log t) (org-agenda-clockreport-mode t) (org-agenda-log-mode-items '(clock)) (org-agenda-entry-types '()) ;; [1] -pass blank list. This is an excellent tip (displays a list of daily clocked items with a clock report summary). It definitely deserves at least a mention in the documentation, since it's very useful and not easy to find for a newcomer. -Antti ___ 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: [babel] [BUG] incorrect indentation when tangling with org-src-preserve-indentation
2010/10/12 Dan Davison davi...@stats.ox.ac.uk: Thanks for the report and patches. I've just pushed a modification of your patch, along the lines of - \n (org-babel-trim body) \n)) + \n (org-babel-trim body (if org-src-preserve-indentation [\f\n\r\v])) \n)) Thus spaces and tabs should no longer be trimmed when `org-src-preserve-indentation' is non-nil. Hopefully this fixes things. Yes, your patch along with Eric's fix seems to do the job. Python code is now tangled correctly. Great! ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support
I am not sure whether this is already forwarded. I am forwarding this thread from emacs-devel mailing list. Hopefully patchworks picks up this patch. Thanks and Regards Noorul ---BeginMessage--- Hi emacs-devel, I would like to suggest the following small change to the org-mode ascii export feature in emacs 23.2. The reason for this is because org-mode export supports embedded LaTeX in a LaTeX sort of fashion where a symbol can be placed inside a word provided it is terminated with '{}'. However in an ascii export the '{}' remains trailing the converted symbol making it very difficult to seamlessly support these inlined symbols across multiple export formats. The manual likewise states: If you need such a symbol inside a word, terminate it like this: ‘\Aacute{}stor’. indicating that this form is (or should be) supported. The fix is quite simple, the regexp for matching LaTeX symbols to be exported needs to allow for the terminating '{}' if existing. I have included the necessary patch below. Thanks alot, ~Arik GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4) of 2010-07-26 on lacuna --- org-ascii.el +++ org-ascii.el @@ -586,7 +586,7 @@ (defun org-ascii-replace-entities () Replace entities with the ASCII representation. (let (e) -(while (re-search-forward \\([a-zA-Z]+[0-9]*\\) nil t) +(while (re-search-forward \\([a-zA-Z]+[0-9]*\\)\\({}\\)? nil t) (org-if-unprotected-at (match-beginning 1) (setq e (org-entity-get-representation (match-string 1) org-export-ascii-entities)) ---End Message--- ___ 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] [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support
Yes, I saw this and just applied tha patch. Thanks. - Carsten On Oct 15, 2010, at 9:29 AM, Noorul Islam K M wrote: I am not sure whether this is already forwarded. I am forwarding this thread from emacs-devel mailing list. Hopefully patchworks picks up this patch. Thanks and Regards Noorul mime-attachment.eml___ 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-hide-entry
On Oct 14, 2010, at 9:04 PM, Andreas Röhler wrote: Hi. as org-mode knows a command `org-show-entry' looked for `org-hide-entry', but couldn't get it. So here it is. This will leave the buffer in a pretty messy state. It will hide a headline and the text below it, but not the subtree. The ellipsis will be on the text belonging to the entry before. For example * test aaa ** sub 1 bbb ** sub2 ccc Call this command on sub one, and you get * test aaa ** sub2 ccc This is not good. So I don't understand what this might be useful for. Maybe there are outline-... commands which do what you really mean? - Carsten - Carsten Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode- components https://code.launchpad.net/s-x-emacs-werkstatt/ org-hide-entry.patch___ 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Adding tags, grouping tags
Noorul Islam K M noo...@noorul.com schrieb: I have something like this shamelessly copied from Bernt's doc. (setq org-tag-alist (quote ((:startgroup) (@errand . ?e) (@office . ?o) (@home . ?h) (:endgroup) (PHONE . ?p) (NEXT . ?n) (WAITING . ?w) (HOME . ?H) (ORG . ?O Thanks for your reply! Correct me if I'm wrong, but doesn't this only effect that if you add the tag @office, than add the tag @home, the first will be deleted automatically? This is not the kind of grouping what I am looking for. For me it should - by the way - be possible to add several tags of the same group. I'd like to use the same selection keys for different tags. For example I have the following groups: Group people: - Key h - Holger - Key o - Otto Group contexts: - Key h - @home - Key o - @office To make this possible I think it is necessary to be able to select the group in the first step, and then the tag you want to assign - as it is possible for agenda groups. Any ideas? ___ 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: Adding tags, grouping tags
On Oct 15, 2010, at 10:29 AM, Karl Maihofer wrote: Noorul Islam K M noo...@noorul.com schrieb: I have something like this shamelessly copied from Bernt's doc. (setq org-tag-alist (quote ((:startgroup) (@errand . ?e) (@office . ?o) (@home . ?h) (:endgroup) (PHONE . ?p) (NEXT . ?n) (WAITING . ?w) (HOME . ?H) (ORG . ?O Thanks for your reply! Correct me if I'm wrong, but doesn't this only effect that if you add the tag @office, than add the tag @home, the first will be deleted automatically? This is not the kind of grouping what I am looking for. For me it should - by the way - be possible to add several tags of the same group. I'd like to use the same selection keys for different tags. For example I have the following groups: Group people: - Key h - Holger - Key o - Otto I use TAB and then completion for people. Otherwise you run into trouble with two people starting with the same name, trusting your system too far - Carsten Group contexts: - Key h - @home - Key o - @office To make this possible I think it is necessary to be able to select the group in the first step, and then the tag you want to assign - as it is possible for agenda groups. Any ideas? ___ 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Adding tags, grouping tags
Hi Carsten! Carsten Dominik carsten.domi...@gmail.com schrieb: Group people: - Key h - Holger - Key o - Otto I use TAB and then completion for people. Otherwise you run into trouble with two people starting with the same name, trusting your system too far Yes, this may be a risk. But the people group was only an example. The main reason for me pre-defining the tags and using selection keys is that I use org to archive documents. I'd like to assign tags to this documents: (1) the names of clients the documents belong to (2) tags describing the contents ot the files. To make sure that I do not use different tags for the same thing, it is important to see a list of the used tags when assigning them. So I have to use pre-defined tags and selections keys. Do you know what I mean? Besides that I have tags in other contexts, e.g. GTD-related tags etc. So it would be very useful to be able to group the tags as it is possible for agenda commands. Thanks! Karl ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Using \ref instead of \hyperref in LaTeX export?
Hello, Is there a way to tweak the LaTeX export so that for a link [[label][desc]] it will produce the standard \ref{label} instead of \hyperref[label]{desc}? I want to be able to use the standard article writing, such as in Section~\ref{sec:bla} Thanks, Guy ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] orgtbl mode puzzle
I'm not sure if I'm understanding orgtbl mode correctly per http://orgmode.org/manual/Tables-in-arbitrary-syntax.html#Tables-in-arbitrary-syntax, but here is my experience (using the latest code from git). 1) Make something.org, cut and paste in the table from the latex example http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example, hit C-c C-c = nothing happens 2) Make something.txt, do M-x orgtbl-mode, cut and paste in the table from the latex example, hit C-c C-c = latex table is inserted. 3) Make something.org, cut and paste a list from the list example http://orgmode.org/manual/Radio-lists.html#Radio-lists, hit C-c C-c = latex list is inserted. 4) Make something.txt, do M-x orgtbl-mode, cut and paste in the list example, hit C-c C-c = wrong type argument: commandp, nil So I get: tables work, but only with minor mode orgtbl-mode and not in org-mode. Lists work, but only in orgmode and not with minor mode orgtbl-mode. Is this as intended? Or, does it even work this way for anyone else? ___ 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] 7.01 Xemacs 21.4.22: decompose-region is not known
Uwe Brauer writes: Hello Since I can't submit a bug report I attach the error trace when I try to open a file in org mode: Hi Uwe I'm also using 21.4.22. To send bug reports just copy org-colview-xemacs.el over org-colview.el To get rid of the (void-function decompose-region) error message I copied the following definition from mule-composite.el from xemacs-21.5-b28: (defun decompose-region (start end) UNIMPLEMENTED. Decompose text in the current region. When called from a program, expects two arguments, positions (integers or markers) specifying the region. (interactive r) (let ((modified-p (buffer-modified-p)) (buffer-read-only nil)) (remove-text-properties start end '(composition nil)) (set-buffer-modified-p modified-p))) Then org-mode started fine for me. But I had to do some other changes in order to execute source blocks with babel and produce html and pdf output. --- ob.el.orig 2010-08-07 09:00:28.0 +0200 +++ ob.el 2010-10-15 12:46:33.28125 +0200 @@ -258,7 +258,7 @@ '((:session . none) (:results . silent) (:exports . results)) Default arguments to use when evaluating an inline source block.) -(defvar org-babel-current-buffer-properties) +(defvar org-babel-current-buffer-properties nil) (make-variable-buffer-local 'org-babel-current-buffer-properties) (defvar org-babel-result-regexp --- org-latex.el.orig 2010-08-07 09:00:28.0 +0200 +++ org-latex.el2010-10-15 12:17:53.328125000 +0200 @@ -849,7 +849,7 @@ (save-match-data (shell-quote-argument file)) t t cmd))) - (shell-command cmd outbuf outbuf))) + (shell-command cmd outbuf))) (message Processing LaTeX file...done) (if (not (file-exists-p pdffile)) (error PDF file was not produced) --- ob-latex.el.orig2010-08-07 09:00:28.0 +0200 +++ ob-latex.el 2010-10-15 12:16:31.53125 +0200 @@ -137,7 +137,7 @@ (save-match-data (shell-quote-argument tex-file)) t t cmd))) -(shell-command cmd outbuf outbuf))) +(shell-command cmd outbuf))) (if (not (file-exists-p pdffile)) (error PDF file was not produced from %s tex-file) (set-window-configuration wconfig) These two patches are needed due to differences in the following function definitions: Emacs: (defvar symbol optional initvalue docstring) XEmacs: (defvar SYMBOL INITVALUE DOCSTRING) Emacs: (shell-command command optional output-buffer error-buffer) XEmacs: (shell-command COMMAND optional OUTPUT-BUFFER) In addition the function number-sequence is not defined in XEmacs. So I copied the definition from the emacs distribution (in subr.el): (defun number-sequence (from optional to inc) Return a sequence of numbers from FROM to TO (both inclusive) as a list. INC is the increment used between numbers in the sequence and defaults to 1. So, the Nth element of the list is \(+ FROM \(* N INC)) where N counts from zero. TO is only included if there is an N for which TO = FROM + N * INC. If TO is nil or numerically equal to FROM, return \(FROM). If INC is positive and TO is less than FROM, or INC is negative and TO is larger than FROM, return nil. If INC is zero and TO is neither nil nor numerically equal to FROM, signal an error. This function is primarily designed for integer arguments. Nevertheless, FROM, TO and INC can be integer or float. However, floating point arithmetic is inexact. For instance, depending on the machine, it may quite well happen that \(number-sequence 0.4 0.6 0.2) returns the one element list \(0.4), whereas \(number-sequence 0.4 0.8 0.2) returns a list with three elements. Thus, if some of the arguments are floats and one wants to make sure that TO is included, one may have to explicitly write TO as \(+ FROM \(* N INC)) or use a variable whose value was computed with this exact expression. Alternatively, you can, of course, also replace TO with a slightly larger value \(or a slightly more negative value if INC is negative). (if (or (not to) (= from to)) (list from) (or inc (setq inc 1)) (when (zerop inc) (error The increment can not be zero)) (let (seq (n 0) (next from)) (if ( inc 0) (while (= next to) (setq seq (cons next seq) n (1+ n) next (+ from (* n inc (while (= next to) (setq seq (cons next seq) n (1+ n) next (+ from (* n inc) (nreverse seq Right now with these changes the latest org-mode works fine for me (at least for my usage pattern). Uwe Brauer Ciao Volker ___ 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: [BUG] OrgTbl exports raw ampersands in HTML
Carsten Dominik carsten.domi...@gmail.com wrote: Hi Nick, this is the right medicine, in the wrong place. It needs to be done in orgtbl-to-html. The function where you inserted the call to org-html-expand is also used by the general html exporter, and during normal html export, org-html-expand is already called at an earlier stage. Ah, OK - sorry about that. Thanks, Nick ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [BUG] OrgTbl exports raw ampersands in HTML
Nick Dokos (2010-10-13 22:52:02 +0200) wrote: The following patch should fix it: Thanks for the patch, Nick! -- Ivan Vilata i Balaguer -- http://ivan.lovesgazpacho.net/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: [Babel] Small problem with tangling
Hi Eric, Eric Schulte wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I understand the need for creating links automatically to sections which host code blocks. However, I don't understand that tangling the *only* code block I have in an entire Org file does add ID in *every* section. Shouldn't it be limited to sections hosting code blocks in general (in particular, IMHO, it should even be limited to the only sections that contain blocks to *tangle*)? I fully agree with your point, I believe I've just pushed up a fix for this issue. This commit includes a short function with a long name `ob-tangle/no-excessive-id-insertion-on-tangle' in test-ob-tangle.el. Perfect. I don't even had any ID created when tangling my source block. I guess it's because I don't ask for back-links to the original Org file. Thanks a lot! Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: 7.01 Xemacs 21.4.22: decompose-region is not known
On Fri, 15 Oct Dr. Volker Zell dr.volker.z...@oracle.com wrote: Hi Volker, [snip] Right now with these changes the latest org-mode works fine for me (at least for my usage pattern). This was extremely useful thanks very much, I will test it as soon as possible. Carsten, couldn't Volkers code(patch) be included maybe wrapped with a (if (featurep 'xemacs) thanks Uwe ___ 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] Last workday of month scheduling
Gustav Wikström gustav.e...@gmail.com writes: Hi Gustav, Is there a way in Org-mode to schedule a task so it appears the last workday (i.e. not Saturday or Sunday) of the month, each month? Yes, with a sexp diary entry ** a task SCHEDULED: %%(diary-float [some-function]) To find how [some-function] could be written, you can be inspired by the one in Emacs manual: 38.15.9 Sexp Entries and the Fancy Diary Display Suppose you get paid on the 21st of the month if it is a weekday, and on the Friday before if the 21st is on a weekend. Here is how to write a sexp diary entry that matches those dates: %%(let ((dayname (calendar-day-of-week date)) (day (cadr date))) (or (and (= day 21) (memq dayname '(1 2 3 4 5))) (and (memq day '(19 20)) (= dayname 5))) ) Pay check deposited Giovanni ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-hide-entry
Am 15.10.2010 08:25, schrieb Noorul Islam K M: Andreas Röhlerandreas.roeh...@easy-emacs.de writes: Hi. as org-mode knows a command `org-show-entry' looked for `org-hide-entry', but couldn't get it. So here it is. Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components diff --git a/lisp/org.el b/lisp/org.el index a80286f..df9ae99 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -19391,6 +19391,24 @@ Stop at the first and last subheadings of a superior heading. (org-end-of-subtree t t)) nil)) +(defun org-hide-entry () + Hide the body directly following this heading. + (interactive) + (save-excursion +(condition-case nil + (progn + (org-back-to-heading t) + (outline-flag-region + (max (point-min) (1- (point))) + (save-excursion +(if (re-search-forward + (concat [\r\n]\\( outline-regexp \\)) nil t) +(1- (match-beginning 1)) + (point-max))) + t) + (org-cycle-hide-drawers 'children)) + (error nil + (defun org-show-entry () Show the body directly following this heading. Show the heading too, if it is currently invisible. Are you going to use it in org-mode code base in future? Thanks and Regards Noorul Hi, telling the future is hard. Concerning the present state, I'd say programm should follow certain rules, meet expectations. Which one is hard to say again. So it's rather my personal view: if a forward- function exists, I expect a backward-. If hide-something exists I expect show-something. And so on. With Emacs in general it's better to expect the uncommon rather than the common, but why not have both? Yours Andreas ___ 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-capture: org-capture-place-item needs search bounds
Carsten Dominik writes: Yes. Thank you for your report and correct analysis. This fix was already in the current development version, I guess you are using 7.01h or something similar? If you prefer to use released versions, expect this change in 7.02. I saw the problem in plain 7.01 and verified that it still existed in 7.01h. But my location at the time didn't allow git:// access, and the last time I had looked at the website I didn't notice the browsable git repo. I'll keep that in mind for next time. Thanks, Derek -- Derek Upham s...@blarg.net ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Adding tags, grouping tags
Karl Maihofer ignoramus at gmx.de writes: Besides that I have tags in other contexts, e.g. GTD-related tags etc. So it would be very useful to be able to group the tags as it is possible for agenda commands. I think that a way to define logical groups of tags (or even a hierarchy of tags -- say with a subtree of tag names?) would be a very useful addition. ilya ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Testing + Babel] Old Org HTML hides Org HTML
#+TITLE: Old-Org-HTML-hides-Org-HTML.txt #+DATE: 2010-10-15 #+LANGUAGE: en_US Hello, Yesterday, still being in the loop of (re-)installations after my laptop crashed end of last week, I've *moved* my Org repository from =~/Downloads/emacs/site-lisp/org-mode= to =~/src/org= and have updated the =load-path=: #+begin_src emacs-lisp (my/add-to-load-path ~/src/org 'with-subdirs 'recursive) #+end_src before #+begin_src emacs-lisp (when (require 'org-install) ...) #+end_src and have restarted Emacs 23. FYI, here is my definition of =my/add-to-load-path=: #+begin_src emacs-lisp (defun my/add-to-load-path (this-directory optional with-subdirs recursive) Add THIS-DIRECTORY at the beginning of the load-path, if it exists. Add all its subdirectories not starting with a '.' if the optional argument WITH-SUBDIRS is not nil. Do it recursively if the third argument is not nil. (when (and this-directory (file-directory-p this-directory)) (let* ((this-directory (expand-file-name this-directory)) (files (directory-files this-directory t ^[^\\.]))) ;; completely canonicalize the directory name (*may not* begin ;; with `~') (while (not (string= this-directory (expand-file-name this-directory))) (setq this-directory (expand-file-name this-directory))) (message Adding `%s' to load-path... this-directory) (add-to-list 'load-path this-directory) (when with-subdirs (while files (setq dir-or-file (car files)) (when (file-directory-p dir-or-file) (if recursive (my/add-to-load-path dir-or-file 'with-subdirs 'recursive) (my/add-to-load-path dir-or-file))) (setq files (cdr files))) #+end_src And could be the cause of problems I now have: #+begin_src emacs-lisp Symbol's value as variable is void: org-html-entities #+end_src In details (here, when replying to an email in Gnus -- but the same happens in different Org situations): #+begin_src emacs-lisp Debugger entered--Lisp error: (void-variable org-html-entities) org-compute-latex-and-specials-regexp() org-set-regexps-and-options() org-mode() org-get-local-variables() orgstruct-setup() orgstruct-mode(1) turn-on-orgstruct() (progn (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++)) (if (locate-library org.el) (progn (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++))) (when (locate-library org.el) (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++)) my/message-mode-hook() run-hooks(text-mode-hook message-mode-hook) apply(run-hooks (text-mode-hook message-mode-hook)) run-mode-hooks(message-mode-hook) message-mode() message-pop-to-buffer(*reply to Kate*) message-reply(nil nil) gnus-summary-reply((4248) nil) gnus-summary-reply-with-original(nil) call-interactively(gnus-summary-reply-with-original nil nil) #+end_src I see; in Version 6.35 (info from =Changes.org=), that: #+begin_src txt The constant =org-html-entities= is obsolete #+end_src But, AFAIK, I don't reference it anywhere -- nowhere in my =.emacs=, neither in my =.gnus=. So, a lot of small things don't work anymore. Am I the responsible of this, or do things have changed? I don't see any mix of versions that I could have caused, but... #+begin_src emacs-lisp :results output (list-load-path-shadows) #+end_src #+results: #+begin_example 90 Emacs Lisp load-path shadowings were found #+end_example Weird... Lines are not outputted... *Bug*? Here a copy/paste of the top 10 lines containing the string =org=: #+begin_src emacs-lisp c:/home/sva/src/org/testing/old/org-html hides c:/home/sva/src/org/lisp/org-html c:/home/sva/src/org/contrib/lisp/org-velocity hides c:/home/sva/Downloads/emacs/site-lisp/org-velocity c:/home/sva/src/org/contrib/lisp/org-invoice hides c:/home/sva/Downloads/emacs/site-lisp/org-invoice c:/home/sva/src/org/contrib/lisp/htmlize hides c:/home/sva/Downloads/emacs/site-lisp/htmlize c:/home/sva/src/org/contrib/lisp/org-panel hides c:/Program Files/Emacs-23/EmacsW32/nxhtml/util/org-panel c:/home/sva/src/org/lisp/org hides c:/Program Files/Emacs-23/emacs/lisp/org/org c:/home/sva/src/org/lisp/org-xoxo hides c:/Program Files/Emacs-23/emacs/lisp/org/org-xoxo c:/home/sva/src/org/lisp/org-wl hides c:/Program Files/Emacs-23/emacs/lisp/org/org-wl c:/home/sva/src/org/lisp/org-w3m hides c:/Program Files/Emacs-23/emacs/lisp/org/org-w3m c:/home/sva/src/org/lisp/org-vm hides c:/Program Files/Emacs-23/emacs/lisp/org/org-vm #+end_src Aaii, =old/org-html= hides =org-html=... Solution in my case: rename =org/testing/old= into =org/testing/.old=, so that it won't be seen by =my/add-to-load-path= (as directories beginning with
[Orgmode] Weird behaviour with org-yank and org-startup-indented
Hi, I'm using org 7.01h with Emacs 24 trunk. When I set org-startup-indented to t, I observe the following: ** TODO Some stuff I select stuff and press M-w. Then I go the the line under and press C-y (org-yank). Now I got: ** TODO Some stuff ** TODO Some instead of: ** TODO Some stuff stuff Note that after M-w, `kill-ring' has a correct first entry of stuff: (#(stuff 0 5 (fontified t face org-level-2)) ...) But on C-y (org-yank) something happens, and it paste the wrong text. I think it's trying to be smart but it's not. I've found that setting org-startup-indented to nil fix that behaviour. What's wrong? -- Julien Danjou // ᐰ jul...@danjou.info http://julien.danjou.info ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Babel] (wrong-type-argument char-or-string-p nil) when shell error
Hi Eric and Dan, * Getting messages from stderr #+begin_src sh ls NoSuchFileOrDirectory.txt #+end_src results in : ls: cannot access NoSuchFileOrDirectory.txt: No such file or directory in *Org-Babel Error Output*, and #+begin_src emacs-lisp Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) insert(nil) (save-current-buffer (set-buffer temp-buffer) (insert results)) (with-current-buffer temp-buffer (insert results)) (prog1 (with-current-buffer temp-buffer (insert results)) (with-current-buffer temp-buffer (write-region nil nil temp-file nil 0))) (unwind-protect (prog1 (with-current-buffer temp-buffer ...) (with-current-buffer temp-buffer ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (let ((temp-file tmp-file) (temp-buffer ...)) (unwind-protect (prog1 ... ...) (and ... ...))) (with-temp-file tmp-file (insert results)) (let ((tmp-file ...)) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file)) (if (or (member scalar result-params) (member output result-params)) results (let (...) (with-temp-file tmp-file ...) (org-babel-import-elisp-from-file tmp-file))) (lambda (results) (if (or ... ...) results (let ... ... ...)))(nil) org-babel-sh-evaluate(nil ls NoSuchFileOrDirectory.txt\n\n\n (replace)) (org-babel-reassemble-table (org-babel-sh-evaluate session full-body result-params) (org-babel-pick-name (nth 4 processed-params) (cdr ...)) (org-babel-pick-name (nth 5 processed-params) (cdr ...))) (let* ((processed-params ...) (session ...) (result-params ...) (full-body ...)) (org-babel-reassemble-table (org-babel-sh-evaluate session full-body result-params) (org-babel-pick-name ... ...) (org-babel-pick-name ... ...))) org-babel-execute:sh(ls NoSuchFileOrDirectory.txt\n ((:cache . no) (:comments . ) (:exports . code) (:hlines . no) (:noweb . no) (:results . replace) (:session . none) (:shebang . ) (:tangle . no))) funcall(org-babel-execute:sh ls NoSuchFileOrDirectory.txt\n ((:cache . no) (:comments . ) (:exports . code) (:hlines . no) (:noweb . no) (:results . replace) (:session . none) (:shebang . ) (:tangle . no))) (setq result (funcall cmd body params)) (if (and (not arg) new-hash (equal new-hash old-hash)) (save-excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq result ...) (message ...) result) (message executing %s code block%s... (capitalize lang) (if ... ... )) (setq result (funcall cmd body params)) (if (eq result-type ...) (setq result ...)) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks (quote org-babel-after-execute-hook)) result) (progn (fset (quote call-process-region) (function* ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (unwind-protect (progn (fset ... ...) (unless ... ...) (if ... ... ... ... ... ... ... result)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...))) (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn ... ... ...) (if --cl-letf-bound-- ... ...))) (letf ((... ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (letf* ((... ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (unwind-protect (flet (...) (unless ... ...) (if ... ... ... ... ... ... ... result)) (setq call-process-region (quote org-babel-call-process-region-original))) (let* ((lang ...) (params ...) (new-hash ...) (old-hash ...) (body ...) (result-params ...) (result-type ...) (cmd ...) (dir ...) (default-directory ...) (org-babel-call-process-region-original ...) (indent ...) result) (unwind-protect (flet ... ... ...) (setq call-process-region ...))) (progn (let* (... ... ... ... ... ... ... ... ... ... ... ... result) (unwind-protect ... ...))) (if (org-babel-confirm-evaluate info)
Re: [Orgmode] [Testing + Babel] Old Org HTML hides Org HTML
Hi Seb, Since this old testing file is obsolete I've just deleted it. Thanks to git it can always be resurrected later as the basis for a modern org-html test suite. Best -- Eric Sébastien Vauban wxhgmqzgw...@spammotel.com writes: #+TITLE: Old-Org-HTML-hides-Org-HTML.txt #+DATE: 2010-10-15 #+LANGUAGE: en_US Hello, Yesterday, still being in the loop of (re-)installations after my laptop crashed end of last week, I've *moved* my Org repository from =~/Downloads/emacs/site-lisp/org-mode= to =~/src/org= and have updated the =load-path=: #+begin_src emacs-lisp (my/add-to-load-path ~/src/org 'with-subdirs 'recursive) #+end_src before #+begin_src emacs-lisp (when (require 'org-install) ...) #+end_src and have restarted Emacs 23. FYI, here is my definition of =my/add-to-load-path=: #+begin_src emacs-lisp (defun my/add-to-load-path (this-directory optional with-subdirs recursive) Add THIS-DIRECTORY at the beginning of the load-path, if it exists. Add all its subdirectories not starting with a '.' if the optional argument WITH-SUBDIRS is not nil. Do it recursively if the third argument is not nil. (when (and this-directory (file-directory-p this-directory)) (let* ((this-directory (expand-file-name this-directory)) (files (directory-files this-directory t ^[^\\.]))) ;; completely canonicalize the directory name (*may not* begin ;; with `~') (while (not (string= this-directory (expand-file-name this-directory))) (setq this-directory (expand-file-name this-directory))) (message Adding `%s' to load-path... this-directory) (add-to-list 'load-path this-directory) (when with-subdirs (while files (setq dir-or-file (car files)) (when (file-directory-p dir-or-file) (if recursive (my/add-to-load-path dir-or-file 'with-subdirs 'recursive) (my/add-to-load-path dir-or-file))) (setq files (cdr files))) #+end_src And could be the cause of problems I now have: #+begin_src emacs-lisp Symbol's value as variable is void: org-html-entities #+end_src In details (here, when replying to an email in Gnus -- but the same happens in different Org situations): #+begin_src emacs-lisp Debugger entered--Lisp error: (void-variable org-html-entities) org-compute-latex-and-specials-regexp() org-set-regexps-and-options() org-mode() org-get-local-variables() orgstruct-setup() orgstruct-mode(1) turn-on-orgstruct() (progn (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++)) (if (locate-library org.el) (progn (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++))) (when (locate-library org.el) (turn-on-orgtbl) (turn-on-orgstruct) (turn-on-orgstruct++)) my/message-mode-hook() run-hooks(text-mode-hook message-mode-hook) apply(run-hooks (text-mode-hook message-mode-hook)) run-mode-hooks(message-mode-hook) message-mode() message-pop-to-buffer(*reply to Kate*) message-reply(nil nil) gnus-summary-reply((4248) nil) gnus-summary-reply-with-original(nil) call-interactively(gnus-summary-reply-with-original nil nil) #+end_src I see; in Version 6.35 (info from =Changes.org=), that: #+begin_src txt The constant =org-html-entities= is obsolete #+end_src But, AFAIK, I don't reference it anywhere -- nowhere in my =.emacs=, neither in my =.gnus=. So, a lot of small things don't work anymore. Am I the responsible of this, or do things have changed? I don't see any mix of versions that I could have caused, but... #+begin_src emacs-lisp :results output (list-load-path-shadows) #+end_src #+results: #+begin_example 90 Emacs Lisp load-path shadowings were found #+end_example Weird... Lines are not outputted... *Bug*? Here a copy/paste of the top 10 lines containing the string =org=: #+begin_src emacs-lisp c:/home/sva/src/org/testing/old/org-html hides c:/home/sva/src/org/lisp/org-html c:/home/sva/src/org/contrib/lisp/org-velocity hides c:/home/sva/Downloads/emacs/site-lisp/org-velocity c:/home/sva/src/org/contrib/lisp/org-invoice hides c:/home/sva/Downloads/emacs/site-lisp/org-invoice c:/home/sva/src/org/contrib/lisp/htmlize hides c:/home/sva/Downloads/emacs/site-lisp/htmlize c:/home/sva/src/org/contrib/lisp/org-panel hides c:/Program Files/Emacs-23/EmacsW32/nxhtml/util/org-panel c:/home/sva/src/org/lisp/org hides c:/Program Files/Emacs-23/emacs/lisp/org/org c:/home/sva/src/org/lisp/org-xoxo hides c:/Program Files/Emacs-23/emacs/lisp/org/org-xoxo c:/home/sva/src/org/lisp/org-wl hides c:/Program Files/Emacs-23/emacs/lisp/org/org-wl
Re: [Orgmode] [Babel] (wrong-type-argument char-or-string-p nil) when shell error
Tested and Fixed. Thanks -- Eric Sébastien Vauban wxhgmqzgw...@spammotel.com writes: Hi Eric and Dan, * Getting messages from stderr #+begin_src sh ls NoSuchFileOrDirectory.txt #+end_src results in : ls: cannot access NoSuchFileOrDirectory.txt: No such file or directory in *Org-Babel Error Output*, and #+begin_src emacs-lisp Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil) insert(nil) (save-current-buffer (set-buffer temp-buffer) (insert results)) (with-current-buffer temp-buffer (insert results)) (prog1 (with-current-buffer temp-buffer (insert results)) (with-current-buffer temp-buffer (write-region nil nil temp-file nil 0))) (unwind-protect (prog1 (with-current-buffer temp-buffer ...) (with-current-buffer temp-buffer ...)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) (let ((temp-file tmp-file) (temp-buffer ...)) (unwind-protect (prog1 ... ...) (and ... ...))) (with-temp-file tmp-file (insert results)) (let ((tmp-file ...)) (with-temp-file tmp-file (insert results)) (org-babel-import-elisp-from-file tmp-file)) (if (or (member scalar result-params) (member output result-params)) results (let (...) (with-temp-file tmp-file ...) (org-babel-import-elisp-from-file tmp-file))) (lambda (results) (if (or ... ...) results (let ... ... ...)))(nil) org-babel-sh-evaluate(nil ls NoSuchFileOrDirectory.txt\n\n\n (replace)) (org-babel-reassemble-table (org-babel-sh-evaluate session full-body result-params) (org-babel-pick-name (nth 4 processed-params) (cdr ...)) (org-babel-pick-name (nth 5 processed-params) (cdr ...))) (let* ((processed-params ...) (session ...) (result-params ...) (full-body ...)) (org-babel-reassemble-table (org-babel-sh-evaluate session full-body result-params) (org-babel-pick-name ... ...) (org-babel-pick-name ... ...))) org-babel-execute:sh(ls NoSuchFileOrDirectory.txt\n ((:cache . no) (:comments . ) (:exports . code) (:hlines . no) (:noweb . no) (:results . replace) (:session . none) (:shebang . ) (:tangle . no))) funcall(org-babel-execute:sh ls NoSuchFileOrDirectory.txt\n ((:cache . no) (:comments . ) (:exports . code) (:hlines . no) (:noweb . no) (:results . replace) (:session . none) (:shebang . ) (:tangle . no))) (setq result (funcall cmd body params)) (if (and (not arg) new-hash (equal new-hash old-hash)) (save-excursion (goto-char ...) (end-of-line 1) (forward-char 1) (setq result ...) (message ...) result) (message executing %s code block%s... (capitalize lang) (if ... ... )) (setq result (funcall cmd body params)) (if (eq result-type ...) (setq result ...)) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks (quote org-babel-after-execute-hook)) result) (progn (fset (quote call-process-region) (function* ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (unwind-protect (progn (fset ... ...) (unless ... ...) (if ... ... ... ... ... ... ... result)) (if --cl-letf-bound-- (fset ... --cl-letf-save--) (fmakunbound ...))) (let* ((--cl-letf-bound-- ...) (--cl-letf-save-- ...)) (unwind-protect (progn ... ... ...) (if --cl-letf-bound-- ... ...))) (letf ((... ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (letf* ((... ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (flet ((call-process-region ... ...)) (unless (fboundp cmd) (error No org-babel-execute function for %s! lang)) (if (and ... new-hash ...) (save-excursion ... ... ... ... ... result) (message executing %s code block%s... ... ...) (setq result ...) (if ... ...) (org-babel-insert-result result result-params info new-hash indent lang) (run-hooks ...) result)) (unwind-protect (flet (...) (unless ... ...) (if ... ... ... ... ... ... ... result)) (setq call-process-region (quote org-babel-call-process-region-original))) (let* ((lang ...) (params ...) (new-hash ...) (old-hash ...) (body ...) (result-params ...) (result-type ...) (cmd ...) (dir ...) (default-directory ...) (org-babel-call-process-region-original ...) (indent ...) result) (unwind-protect (flet ... ... ...) (setq
[Orgmode] [Babel] Marker does not point anywhere (when session buffer needs to be created)
* Marker does not point anywhere Executing the following: #+begin_src sh :session NoSuchSessionYet cd ~ ls *.txt #+end_src outputs this in *Messages*: : executing Sh code block... : think it is Cygwin... : ~ : ansi-color-process-output: Marker does not point anywhere when executed for the *first* time. All subsequent executions don't exhibit this error (currently, they hang, but that's another story). My prompt is colored -- I need it, really! *None* of the =ls= results are colored, though (in this above case: =ls ~/*.txt=). Can we fix this somehow? Test the following, and you'll see you need a colored prompt as well, if not yet convinced: #+begin_src sh :tangle .sva-bashrc #*** Controlling the Prompt # define some colors RED='\e[1;31m' GREEN='\e[1;32m' NO_COLOR='\e[0m' # my format of the prompt function my_prompt_command () { # colorful prompt, based on whether the previous command succeeded or not if [[ $? -eq 0 ]]; then HILIT=${GREEN} else HILIT=${RED} fi # replace the $HOME prefix by ~ in the current directory if [[ $HOME == ${PWD:0:${#HOME}} ]]; then NEWPWD=~${PWD:${#HOME}} else NEWPWD=$PWD fi # how many characters of the $PWD should be kept local pwd_max_length=15 if [[ ${#NEWPWD} -gt $pwd_max_length ]]; then local pwd_offset=$(( ${#NEWPWD} - $pwd_max_length )) NEWPWD=...${NEWPWD:$pwd_offset:$pwd_max_length} fi # prompt character if [[ $(whoami) = root ]]; then local PROMPTCHAR=# else local PROMPTCHAR= fi case $TERM in dumb) # for Tramp? setenv PS1 [...@\h] ${NEWPWD}${PROMPTCHAR} ;; *) setenv PS1 \n\[${hilit}\]...@\h] ${NEWPWD}${PROMPTCHAR}\[${NO_COLOR}\] ;; esac } # shell prompt setenv PROMPT_COMMAND my_prompt_command echo #+end_src Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Enhancing the Org/Gnus experience
Hi, A couple of days ago, I've asked (on the Gnus ML) if it was somehow possible to add new markers for highlighting Babel blocks (among others). This is the (highlighted) answer of Larsi (author of Gnus): --8---cut here---start-8--- Lars Magne Ingebrigtsen wrote: Sébastien Vauban wxhgmqzgw...@spammotel.com writes: I would like to get such Org constructs: #+begin_src emacs-lisp (setq org-latex-to-pdf-process '(sh -v -x texi2dvi -p -b -c -V %f)) #+end_src or #+begin_src sh ls #+end_src to be *highlighted* when viewed (while reading received messages). Doesn't Org mode have hooks into Gnus to do stuff like that? --8---cut here---end---8--- I don't have in mind full fontification like we now have in Org. No: *just the basic yellow background*, so that code blocks are outstanding in any mail, exactly *like it is now* but for the cut here markers (or v+/v-). Though, I don't know where to begin... Can some Org/Gnus expert give a hint? Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Executing sh-code
Hi Eric, * Executing sh code This report is not complete yet (I now really have to go), but comments are already welcome, and can put things in light for further study... ** No session #+begin_src sh echo In $(pwd): ls *.org #+end_src #+results: | In | /cygdrive/c/home/sva/Examples/Org-scraps: | | Agenda-Sorting-Strategy.org | | | Clock-Report.org| | | Ledger-Scorpios.org | | | org-beamer-fpu-rules.org| | | org-hist.org| | ** With session #+begin_src sh :session sva echo In $(pwd): ls *.org #+end_src never terminates, echoing: : executing Sh code block... in the minibuffer. ** Variable comint-prompt-regexp Value of the =comint-prompt-regexp= variable in my shell, used by Org-babel to digest output from the shell: #+begin_src emacs-lisp (switch-to-buffer sva) (describe-variable 'comint-prompt-regexp) #+end_src #+results: #+begin_example comint-prompt-regexp is a variable defined in `comint.el'. Its value is ^[^#$%\n]*[#$%] * Local in buffer sva; global value is ^ Documentation: Regexp to recognize prompts in the inferior process. Defaults to ^, the null string at BOL. This variable is only used if the variable `comint-use-prompt-regexp' is non-nil. Good choices: Canonical Lisp: ^[^ \n]*+:? * (Lucid, franz, kcl, T, cscheme, oaklisp) Lucid Common Lisp: ^\\(\\|\\(-\\)+\\) * franz: ^\\(-\\|[0-9]*:\\) * kcl: ^+ * shell: ^[^#$%\n]*[#$%] * T: ^+ * This is a good thing to set in mode hooks. #+end_example This regexp should match my own prompt as it appears in your *shell* buffers locally (product of my personal =.bashrc=) configuration. ** What about shell-prompt-pattern? Browsing along, it seems there is another interesting value to look at: =shell-prompt-pattern=. #+begin_src emacs-lisp (switch-to-buffer sva) (describe-variable 'shell-prompt-pattern) #+end_src #+results: #+begin_example shell-prompt-pattern is a variable defined in `shell.el'. Its value is ^MEDIACENTER [^ ]+ \\[[0-9]+\\] Documentation: Regexp to match prompts in the inferior shell. Defaults to ^[^#$%\n]*[#$%] *, which works pretty well. This variable is used to initialize `comint-prompt-regexp' in the shell buffer. If `comint-use-prompt-regexp' is nil, then this variable is only used to determine paragraph boundaries. See Info node `Shell Prompts' for how Shell mode treats paragraphs. The pattern should probably not match more than one line. If it does, Shell mode may become confused trying to distinguish prompt from input on lines which don't start with a prompt. This is a fine thing to set in your `.emacs' file. You can customize this variable. #+end_example ** Back to comint's prompt regexp! #+begin_src emacs-lisp (switch-to-buffer sva) (describe-variable 'comint-use-prompt-regexp) #+end_src #+results: #+begin_example comint-use-prompt-regexp is a variable defined in `comint.el'. Its value is nil Documentation: If non-nil, use `comint-prompt-regexp' to recognize prompts. If nil, then program output and user-input are given different `field' properties, which Emacs commands can use to distinguish them (in particular, common movement commands such as `beginning-of-line' respect field boundaries in a natural way). You can customize this variable. #+end_example NIL!? Do you have this as well? Thanks! Best regards, Seb -- Sébastien Vauban ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Babel for blogging
Hi, I'd like to set up a simple blog (with static page only) using emacs. So far, I was able to use emacs-muse based on the following instructions: http://alexott.net/en/writings/EmacsMuseMyPage.html http://www.diale.org/muse-functions.html Now, I'd like to give org-publish a try because it seems to provide nice features (and i'm already using org-mode as an agenda anyway). So far so good I can publish entries, but I can't find a way to produce an index of all the entries sorted by date. With muse, i created a file with a lisp/lisp block to call the function muse-index-as-string-sort-by-date and this call insert the updated index in place. Now I'd like to do something similar using org-mode babel feature, but if i try this: ---8- #+BEGIN_SRC emacs-lisp :results output :exports results (list [[bar][1]] [[foo][2]]) #+END_SRC ---8- The content appears as a code snippet in the html export which is not exactly what I want. How can I do this? Am I misleaded because org-publish already provide this? -- Manuel Giraud ___ 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] Enhancing the Org/Gnus experience
Sébastien Vauban wxhgmqzgw...@spammotel.com writes: [...] I don't have in mind full fontification like we now have in Org. No: *just the basic yellow background*, so that code blocks are outstanding in any mail, exactly *like it is now* but for the cut here markers (or v+/v-). While we're at it, why not go all the way to full fontification code block fontification? Is the current code in org-src portable enough to be applied to this (or maybe be applied whenever org-struct mode is enabled)? Though, I don't know where to begin... Can some Org/Gnus expert give a hint? This strays out of my narrow areas of expertise, but I hereby throw my +1 onto the request. Best regards, Seb ___ 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] Babel for blogging
Hi Manuel, The following works for me, it creates an index of all files in the same directory as the Org-mode file. --8---cut here---start-8--- * index Create an index automatically with an elisp code block. #+begin_src emacs-lisp :exports results :results raw (mapconcat (lambda (file) (unless (file-directory-p file) (format - [[%s][%s]] (file-name-sans-extension file) file))) (directory-files (or default-directory (file-name-directory (buffer-file-name \n) #+end_src --8---cut here---end---8--- Does this solve your requirement? Cheers -- Eric Manuel Giraud manuel.gir...@univ-nantes.fr writes: Hi, I'd like to set up a simple blog (with static page only) using emacs. So far, I was able to use emacs-muse based on the following instructions: http://alexott.net/en/writings/EmacsMuseMyPage.html http://www.diale.org/muse-functions.html Now, I'd like to give org-publish a try because it seems to provide nice features (and i'm already using org-mode as an agenda anyway). So far so good I can publish entries, but I can't find a way to produce an index of all the entries sorted by date. With muse, i created a file with a lisp/lisp block to call the function muse-index-as-string-sort-by-date and this call insert the updated index in place. Now I'd like to do something similar using org-mode babel feature, but if i try this: ---8- #+BEGIN_SRC emacs-lisp :results output :exports results (list [[bar][1]] [[foo][2]]) #+END_SRC ---8- The content appears as a code snippet in the html export which is not exactly what I want. How can I do this? Am I misleaded because org-publish already provide this? ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Fix Typo in README_maintainer
Fix typo * README_maintainer: Fix typo Thanks and Regards Noorul diff --git a/README_maintainer b/README_maintainer index 37d1494..5d1a67a 100644 --- a/README_maintainer +++ b/README_maintainer @@ -28,8 +28,8 @@ release. The release process is a single make command: The release number for minor releases look like this: =7.13.01= Minor releases are small amends to main releases. Usually they fix -bugs discovered in a main release. The only yhe fix to the bug is -bundled into a release, without the main development work going on on +bugs discovered in a main release. Only the fix to the bug is +bundled into a release, without the main development work going on in the master branch. Since the big fix will also be needed in the master branch, usually the fix is made in master and then cherry-picked into maint. When this is done, a release is made from @@ -41,7 +41,7 @@ maint with this command: This is still a significant headache. Some hand work is needed here. -Emacs uses bzr, I cannot bring myself to swith from git to bzr for the +Emacs uses bzr, I cannot bring myself to switch from git to bzr for the development version of Org-mode. So the way I have been doing things is this: @@ -56,7 +56,7 @@ is this: 2. When I have made a release (usually I wait for the minor releases to stabilize), I copy org files into the Emacs repository. Yes, I - do not merge, I copy. This has ben the source of some problems in + do not merge, I copy. This has been the source of some problems in the past - but I have not had the patience to work out a better mechanism. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-insert-heading
Hi, doku of `org-insert-heading' says: , | If point is not at the beginning, do not split the line, | but create the new headline after the current line. ` which sounds wisely. Unfortunately function behaves different, splits line uses it's following part to create the new headline from, an inconvenience, resp. bug IMHO. Also tex-info endorses that: , | When this command is used in | the middle of a line, the line is split and the rest of the line becomes | the new headl...@footnote{if you do not want the line to be split, | customize the variable ` Seems something across anyway. Suggest to restore/enable the behaviour of the doku-string. Could send a patch. Interesting to read the reason for this change/difference anyway, so maybe I change my opinion too... Thanks all Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode-components https://code.launchpad.net/s-x-emacs-werkstatt/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] question: how to refile labeled with origin?
Hi all How can items from different parents be merged into a single parent so that the old context from where these items came from is still available? before org-refile: #+STARTUP: odd * most important tasks * project a *** subject 1 blabla 1 * project b *** subject 2 blabla 2 after org-refile, e. g. by adding `project a: ', `project b ': #+STARTUP: odd * most important tasks *** project a: subject 1 blabla 1 *** project b: subject 2 blabla 2 * project a * project b A use case for this is reading subjects from several RSS/atom news feeds timely sorted with the nice org-sort. Michael ___ 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] Babel for blogging
Thanks for the tip Eric, I'll use it to create a sitemap for my site, which is made using org-mode. Do you know if it would be possible to create an RSS file, using a similar approach? Thanks, Pere Al 15/10/10 19:07, En/na Eric Schulte ha escrit: Hi Manuel, The following works for me, it creates an index of all files in the same directory as the Org-mode file. --8---cut here---start-8--- * index Create an index automatically with an elisp code block. #+begin_src emacs-lisp :exports results :results raw (mapconcat (lambda (file) (unless (file-directory-p file) (format - [[%s][%s]] (file-name-sans-extension file) file))) (directory-files (or default-directory (file-name-directory (buffer-file-name \n) #+end_src --8---cut here---end---8--- Does this solve your requirement? Cheers -- Eric Manuel Giraud manuel.gir...@univ-nantes.fr writes: Hi, I'd like to set up a simple blog (with static page only) using emacs. So far, I was able to use emacs-muse based on the following instructions: http://alexott.net/en/writings/EmacsMuseMyPage.html http://www.diale.org/muse-functions.html Now, I'd like to give org-publish a try because it seems to provide nice features (and i'm already using org-mode as an agenda anyway). So far so good I can publish entries, but I can't find a way to produce an index of all the entries sorted by date. With muse, i created a file with a lisp/lisp block to call the function muse-index-as-string-sort-by-date and this call insert the updated index in place. Now I'd like to do something similar using org-mode babel feature, but if i try this: ---8- #+BEGIN_SRC emacs-lisp :results output :exports results (list [[bar][1]] [[foo][2]]) #+END_SRC ---8- The content appears as a code snippet in the html export which is not exactly what I want. How can I do this? Am I misleaded because org-publish already provide this? ___ 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 -- http://pere.quintanasegui.com signature.asc Description: OpenPGP digital signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] #+CATEGORY missing from main index of online documentation?
I just finished studying John Wiegley's excellent tutorial[1], and now I'm customizing his recommended setup. After changing the list of default tags that follow the #+TAGS setting, I wondered about the other in-buffer settings that he used. So I decided to check out the online documentation's Main Index[2] and noticed the absence of #+CATEGORY between #+BIND and #+CAPTION. However, when I also went to check out #+STARTUP, I noticed #+CATEGORY described in Section 15.5 (Summary of in-buffer settings). If someone has time, can #+CATEGORY be added to the Main Index, please? Also, I wonder at what point will the documentation be updated to 7.01h? Thanks! [1] It's great! http://www.newartisans.com/2007/08/using-org-mode-as-a-day-planner.html [2] http://orgmode.org/manual/Main-Index.html#Main-Index -- Raymond Zeitler r.zeit...@ieee.org ___ 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] Using \ref instead of \hyperref in LaTeX export?
Maybe use a hook like the following.. It's for cref, please modify to your liking: (defun creflink() Change all solitary [[]] links to [[target][\cref]] links (regex-replace \\[\\[\\([^:\[]+?\\)\\]\\] [[\\1][cref{\\1}]]) ) (add-hook 'org-export-preprocess-hook 'creflink) Indraneel On 10/15/2010 04:10 PM, Guy Wiener wrote: Hello, Is there a way to tweak the LaTeX export so that for a link [[label][desc]] it will produce the standard \ref{label} instead of \hyperref[label]{desc}? I want to be able to use the standard article writing, such as in Section~\ref{sec:bla} Thanks, Guy ___ 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] [Arik Mitschang] org-mode ASCII export of in-word LaTeX symbols support
Awesome! Thanks for the quick action. ~Arik Carsten Dominik writes: Yes, I saw this and just applied tha patch. Thanks. - Carsten On Oct 15, 2010, at 9:29 AM, Noorul Islam K M wrote: I am not sure whether this is already forwarded. I am forwarding this thread from emacs-devel mailing list. Hopefully patchworks picks up this patch. Thanks and Regards Noorul mime-attachment.eml___ 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 - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Sort agenda view by date?
After I do a tag-search to create an agenda view, I am presented with all of the tagged items, in the order that they appear in their home files. Is there a way to sort the list in the Agenda view in the order of timestamps? ___ 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: Bug (?) in org-capture
On 10/15/10 Oct 15 -1:48 AM, Carsten Dominik wrote: Hi Robert, I cannot reproduce this error. If I set my default notes file to ~/org//notes.org things seem to work just fine. I will see if I can figure out why this happened for me. I may not be able to do so, though --- it occurred when I had a half-configured org-capture, and now I have org-capture really working. It's not always easy to go back to the buggy state! Thank you very much for org-capture, BTW --- I really like the ability to dispatch on key combinations, in particular, since I find that the more I use org-capture, the more opportunities I see to get more value out of it. best, r ___ 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-capture: file to top level with prepend
At Sun, 3 Oct 2010 06:01:38 +0200, Thomas Fuchs wrote: [1 multipart/alternative (7bit)] [1.1 text/plain; ISO-8859-1 (7bit)] Hi! I'm trying to capture and file an entry as an top-level entry as first entry in an org file without config at the beginning (no #+). This leads to filing the entry as _second_ headline in the org file. The template is: (z test entry (file ~/Data/z.org) * %^{Note} %t :NOTE:\n %? :prepend t) I think this is due to jumping over lines starting with #+ at the beginning of the org file (line 715 in org-capture.el (org-capture-place-entry)). My file has no config header and starts with the first headline. Calling outline-next-heading in this situation leads to jumping to the second headline in the file. The appended patch fixes this problem by checking if we are on a headline and then skips jumping to next headline. Just resending the patch: The patchtracker[1] didn't catch it because it was attached as application/octet-stream. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 6ce9cdd..4143f7b 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -712,7 +712,8 @@ already gone. (setq level 1) (if reversed (progn (goto-char (point-min)) -(outline-next-heading)) +(if (not (org-at-heading-p)) +(outline-next-heading))) (goto-char (point-max)) (or (bolp) (insert \n (t pgp0rMW919uQu.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] mobileorg app can't sync
I've been trying to get MobileOrg set up with Dropbox, and I seem to have done something to make it impossible for MobileOrg to sync. Whenever I try, I get an error message like, Unexpected error: error getting mobileorg.org (paraphrased somewhat) It was syncing fine at one point, but then I decided to move my ~/org directory into the Dropbox directory, and MobileOrg evidently didn't like the change. How do I get the MobileOrg app (on an iPod Touch) to start up again? Thanks, -Rod ___ 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] Babel for blogging
Al 15/10/10 22:32, En/na Eric Schulte ha escrit: this approach might be less appropriate for RSS, mainly because code block output is most easily contained in an Org-mode file, and then exported along with the rest of the file. RSS files require special headers and footers and can not be embedded in a standard html file, you may be better off looking for an external tool to handle the generation of RSS content. Thanks. I think I'll try to create a python script that takes the dates of the html files in a folder and takes the title from the first line of each .org file and then creates the RSS. It might work. -- http://pere.quintanasegui.com signature.asc Description: OpenPGP digital signature ___ 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] mobileorg app can't sync
Rodney Price rodpr...@raytheon.com writes: I've been trying to get MobileOrg set up with Dropbox, and I seem to have done something to make it impossible for MobileOrg to sync. Whenever I try, I get an error message like, Unexpected error: error getting mobileorg.org (paraphrased somewhat) It was syncing fine at one point, but then I decided to move my ~/org directory into the Dropbox directory, and MobileOrg evidently didn't like the change. How do I get the MobileOrg app (on an iPod Touch) to start up again? I have not used dropbox, but the directory with your org files and the place in webdav that is your MobileOrg staging area are conceptually separate. You still have to org-mobile-push even if org-directory is someplace in dav space. To let someone debug this, you'll have to post your entire relevant config, including setting of org-mobile-directory, org-directory, and the URL you put in MobileOrg. (I have mobileorg syncing fine, from two instances (production and beta builds), one where I have a separate DAV dir accessed via the local filesystem, and one which is accessed on a remote server via tramp/ssh) pgpSQziSRIpsZ.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Applying inline styles to a section for exported HTML
I'm aware we can define #+ATTR_HTML: for styling of divs containing images and tables. Is there similar functionality for section divs? Simply adding the required option below or above the section didn't do the trick. Since section divs aren't named semantically[1], I can't simply add a class style to my CSS file. I basically want to turn a section in my org file into a callout/sidebar box. Any ideas? Best, Jeff [1] What I mean is, a section * Word is identified with an id and a class of section-1 or something similar if it is the first section in a document. If it had an id of word, I could simply a style for that id in my style sheet. -- Jeffrey Horn Graduate Lecturer and PhD Student in Economics George Mason University (704) 271-4797 jh...@gmu.edu jrhorn...@gmail.com http://www.failuretorefrain.com/jeff/ ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Babel] Library calls and begin_example
Aloha all, I'm working with Eric Fraga's GANTT chart code, posted here recently. I'd like to move it into the Library of Babel so I can call it from any Org-mode buffer. Here is the (modified) header: #+source: elispgantt #+begin_src emacs-lisp :var table=gantttest :results output latex :exports code When this code is in the Org-mode buffer, the results are wrapped in BEGIN_latex ... END_latex, which is just what I want. When the same code is in the Library of Babel and is called like this: #+lob: elispgantt(table=gantttest) the results are wrapped in begin_example ... end_example, which is not what I want. How can I get the LOB code to perform like its in-buffer sibling and wrap the output in BEGIN_latex ... END_latex? All the best, Tom ___ 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-capture: file to top level with prepend
Applied, thanks. - Carsten On Oct 3, 2010, at 6:01 AM, Thomas Fuchs wrote: Hi! I'm trying to capture and file an entry as an top-level entry as first entry in an org file without config at the beginning (no #+). This leads to filing the entry as _second_ headline in the org file. The template is: (z test entry (file ~/Data/z.org) * %^{Note} %t :NOTE:\n %? :prepend t) I think this is due to jumping over lines starting with #+ at the beginning of the org file (line 715 in org-capture.el (org-capture-place-entry)). My file has no config header and starts with the first headline. Calling outline-next-heading in this situation leads to jumping to the second headline in the file. The appended patch fixes this problem by checking if we are on a headline and then skips jumping to next headline. Regards Thomas patch___ 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-hide-entry
On Oct 15, 2010, at 1:03 PM, Andreas Röhler wrote: Am 15.10.2010 09:47, schrieb Carsten Dominik: On Oct 14, 2010, at 9:04 PM, Andreas Röhler wrote: Hi. as org-mode knows a command `org-show-entry' looked for `org-hide-entry', but couldn't get it. So here it is. This will leave the buffer in a pretty messy state. Indeed, thanks. It's cured already. Please try patch attached. I still think this does something bad to the buffer. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: 7.01 Xemacs 21.4.22: decompose-region is not known
On Oct 15, 2010, at 3:30 PM, Uwe Brauer wrote: On Fri, 15 Oct Dr. Volker Zell dr.volker.z...@oracle.com wrote: Hi Volker, [snip] Right now with these changes the latest org-mode works fine for me (at least for my usage pattern). This was extremely useful thanks very much, I will test it as soon as possible. Carsten, couldn't Volkers code(patch) be included maybe wrapped with a (if (featurep 'xemacs) I'll look into it. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-insert-heading
Hi Andreas, On Oct 15, 2010, at 7:38 PM, Andreas Röhler wrote: Hi, doku of `org-insert-heading' says: , | If point is not at the beginning, do not split the line, | but create the new headline after the current line. ` which sounds wisely. Unfortunately function behaves different, splits line uses it's following part to create the new headline from, an inconvenience, resp. bug IMHO. Also tex-info endorses that: , | When this command is used in | the middle of a line, the line is split and the rest of the line becomes | the new headl...@footnote{if you do not want the line to be split, | customize the variable ` In fact, splitting the line is the intended behavior, and there is a variable to change that. I have updated the docstring of the command. - Carsten Seems something across anyway. Suggest to restore/enable the behaviour of the doku-string. Could send a patch. Interesting to read the reason for this change/difference anyway, so maybe I change my opinion too... Thanks all Andreas -- https://code.launchpad.net/~a-roehler/python-mode/python-mode- components https://code.launchpad.net/s-x-emacs-werkstatt/ ___ 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] A LaTeX class for Org-mode export
Hi Thomas, Dan just made me look again at this thread, which I had not yet studied closely. I think you have created something very useful indeed. I love the compact lists, and I am sure there is a lot more I would use. So I am wondering: What can Org do to support and integrate this class? I can think of a couple of things: - distribute it in contrib - advertise it in the manual - have it as one of the default classes in org-export-latex-classes But maybe you have other ideas? Cheers - Carsten On Sep 14, 2010, at 10:37 PM, Thomas S. Dye wrote: Aloha all, I'd like to draw your attention to a LaTeX class that I put together in response to posts here about configuring the output of the LaTeX exporter. The class supports all of the Org-mode LaTeX default packages. It supports the standard LaTeX article class and the KOMA- script scrartcl class and provides several choices of fonts. In addition, it includes facilities to apply microtypographic adjustments to suitable fonts, set the line spacing of the document to double space, set lists more compactly than the standard LaTeX article.cls, and typeset source code listings, optionally with color. The documentation that should appear shortly in the Babel/Uses section of Worg includes two examples that illustrate use of the class. The first uses the standard LaTeX article class and Times, Helvetica, and Courier fonts with a 12 point base size to typeset the literate program on 8.5 x 11 in. paper, with colored source code listings and microtypographic adjustments. #+LaTeX_CLASS: org-article-subsubsection #+LaTeX_CLASS_OPTIONS: [article,letterpaper,times, 12pt,listings,color,microtype] The second uses the KOMA-script scrartcl class and Utopia, Bera, and Inconsolata fonts with a 10 point base size to typeset the literate program on 5.8 x 8.3 in. paper in landscape mode, also with colored source code listings and microtypographic adjustments. In addition, lists are set tighter than with the standard LaTeX article class. #+LaTeX_CLASS: org-article-subsubsection #+LaTeX_CLASS_OPTIONS: [koma,a5paper,landscape,utopia, 10pt,listings,color,microtype,paralist] The project is hosted at GitHub: http://github.com/tsdye/org-article All the best, Tom ___ 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] Re: Adding tags, grouping tags
On Oct 15, 2010, at 4:43 PM, Ilya Shlyakhter wrote: Karl Maihofer ignoramus at gmx.de writes: Besides that I have tags in other contexts, e.g. GTD-related tags etc. So it would be very useful to be able to group the tags as it is possible for agenda commands. I think that a way to define logical groups of tags (or even a hierarchy of tags -- say with a subtree of tag names?) would be a very useful addition. I can see that this could be useful - but the code is not in any way prepared to do this, so this would be pretty hard to implement. - Carsten ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode