Re: [O] How do I chain babel blocks with arguments?
Hi Eric, On 2014-04-17 07:42, Eric Schulte schulte.e...@gmail.com writes: Alan Schmitt alan.schm...@polytechnique.org writes: How can I execute block `test1' from block `test2' by passing an argument that is one from test2? #+name: z : bar #+name: test1 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test2 #+begin_src emacs-lisp :var y=test1(x=z) y #+end_src #+RESULTS: test2 : bar Thank you for the suggestion, but I'm afraid it does not do what I want: I cannot pass a different argument 'z' to test2 (called test4 in the following snippet): --8---cut here---start-8--- #+name: z : bar #+name: test3 #+begin_src emacs-lisp :var x=foo x #+end_src #+name:test4 #+begin_src emacs-lisp :var y=test1(x=z) y #+end_src #+results: test4 : bar #+call: test4(z=BAZ) #+results: : bar --8---cut here---end---8--- In this case, org-sbe works great, and I've been able to achieve what I want. I still need to clean it up before describing it to the list. Thanks again, Alan
Re: [O] Request for worg page -- escaping questions
Hi Rustom, On 2014-04-18 05:21, Rustom Mody rustompm...@gmail.com writes: What I would like is a graphic -- an automata-diagram made perhaps by dot. Can that easily/conveniently go up onto worg? I don't know how worg's export is configured, but something like this may work ... --8---cut here---start-8--- # -*- org-confirm-babel-evaluate: nil -*- #+name: mygraph #+begin_src dot :file mygraph.png :exports results digraph { 9 - 4 [label=c]; 9 - 2 [label= n]; 9 - 9 [label= e]; 5 - 3 [label= e]; 2 - 4 [label= k]; 4 - 9 [label= j]; } #+end_src #+results: mygraph --8---cut here---end---8--- You can, if you need, build the contents of the dot block from another babel block. Alan
Re: [O] (OT) How to follow a mailing list with very high activity (like this one here)?
On 2014-04-17 17:30, Eric S Fraga e.fr...@ucl.ac.uk writes: During the last years, I'be become a real org-mode fan and I want to stay current and be active in the great org-mode community. I've subscribed to the orgmode mailinglist about 1,5 years ago and so I have 17.500 mails in my inbox. There's definitely no need to keep all org emails as they are archived on gmane. Streamline your inbox! I also like to have a mail copy of the org list, for offline access and quick search (using notmuch). To keep the flood in check, I filter the mail as it arrives in a its own mailbox. Then to avoid going over my mail server quota, I automatically refile mail that is older than one year to a mailbox that is local to the computer. Alan
Re: [O] is it possible to customise what headline level which-function displays?
On Thursday, 17 Apr 2014 at 16:44, Bastien wrote: [...] `which-function' uses `imenu--index-alist' so you can change the value of `org-imenu-depth' from 2 to 3 to get what you want (not tested.) This seems to work, in that it does look deeper in the hierarchy. Thanks. Makes which-function much more useful for me. However, in playing around, I have found what seems to be a bug, at least for the which-function functionality (not sure about imenu as I don't use that directly). If you have a hierarchy that looks like this: #+begin_src org ,* A ,** A.1 ,* B We have some text here and point is |here. #+end_src then which-function thinks we are in A.1 when point is where indicated. This is the case with the default value of org-imenu-depth. Not a big issue but I thought I'd point it out in case it matters for imenu usage. It could be a which-function issue in any case. Thanks again, eric -- : Eric S Fraga (0xFFFCF67D), Emacs 24.4.50.2, Org release_8.2.5h-898-g11f8ef
Re: [O] is it possible to customise what headline level which-function displays?
Hi Eric, Eric S Fraga e.fr...@ucl.ac.uk writes: then which-function thinks we are in A.1 when point is where indicated. This is the case with the default value of org-imenu-depth. Surely an issue with Emacs, as I can't reproduce the problem here with latest Emacs. -- Bastien
Re: [O] (OT) How to follow a mailing list with very high activity (like this one here)?
M Elwood151 at web.de writes: This is off-topic, but I hope that someone can give me some good advice: During the last years, I'be become a real org-mode fan and I want to stay current and be active in the great org-mode community. I've subscribed to the orgmode mailinglist about 1,5 years ago and so I have 17.500 mails in my inbox. Thanks to everybody for the great and interesting answers and insights! I'll have to check the alternatives. inbox - yes, I really subscribed to the mailing list with my private e-mail adress, which means that I get every single posting as an e-mail. That makes 17.500 in the last 1.5 years... Gnus looks interesting - it would for sure significantly boost my geek-level, I'll see. My current mail client Entourage 2004 will be replaced soon by something else - Apple Mail, Gnus, ...?. If anyone has tips for better applications for following such a list on MacOS X, I'd be grateful to know. I'll let you know how it went on... Kind regards Martin
Re: [O] (OT) How to follow a mailing list with very high activity (like this one here)?
Brady Trainor algeb...@uw.edu writes: On 04/16/2014 12:28 PM, M wrote: This is off-topic, but I hope that someone can give me some good advice: TLDR version: I've decided to go with newsgroup rather than subscribe, and Thunderbird rather than GNUS. have we established the following ? 3 routes: - subscribe to mailing list with your email address - simply view the newsgroup - RSS Some apps: - Gmane website - MS Entourage - Emacs GNUS - Wanderlust - Thunderbird It was right on topic for me, I was thinking about writing a similar question for the last week or so. However, I don't think I'll make it all the way to mailing list sorcerer in one fell swoop. I did finally get Emacs GNUS working yesterday (ugh, in January I decided it wasn't possible with my account), but I couldn't get comfortable in it fast enough. I'm tentative about subscribing, so I tried to learn how to be a GNUS _newsgroup_ sorcerer. But before I made much progress, I found mention that Thunderbird could operate as a newsreader, so I'm now using that, and it's nice enough for me, for now. I'm currently using GNUs for email [2 pop3 accounts and gmail], newsgroup reading, and rss feed reading too. I've moved from using 'Claws-mail' for several years to GNUs, and I've been using it reasonably successfully for about a month now. Yes, it is a steep learning curve, but its well worth it, and other folk are very patient and helpful. Its worth persevering for, and the results are good :) Sharon. I would like to learn to better use GNUS at some point. Brady The extended version: I was using almost exclusively the Gmane website, which was fine as it was easy to encounter during google searches, but it was not great for emailing the list. For one, it seemed to be double spacing my carefully crafted messages. I do like the easy fashion in which I can star messages in Thunderbird, and I can take a gradual approach to the learning curve as far as controlling which messages I can see or exist, while using the beginner-friendly CUA style. But now that I've achieved a vast improvement over using just the Gmane website, I will be reading carefully for set ups that work even better. -- A taste of linux = http://www.sharons.org.uk my git repo = https://bitbucket.org/boudiccas/dots TGmeds = http://www.tgmeds.org.uk Debian testing, Fluxbox 1.3.5, emacs 24.4.50.6 signature.asc Description: PGP signature
Re: [O] Feature Request. org-bibtex-tags-are-keywords inherit tags
I t was indeed easier than I had thought. I tested the modified function on my reading list file and it works as expected under most conditions (It plays well with other variables etc.). The only exception was the previously mentioned issue with nonstandard bibtex types. If I have time this weekend, I will try to look into this problem. (I think it might be time to break down and actually learn lisp.) Attached is the requested diff. In addition to adding the new variable `org-bibtex-tags-inherit' and editing the function `org-bibtex-headline', I modified a couple of customize doc strings to reflect the change. I also edited one doc string that seemed to refer to an old variable that is no longer in use. On 17 April 2014 15:25, Bastien b...@gnu.org wrote: Hi Leonard, Leonard Randall leonard.a.rand...@gmail.com writes: Unfortunately, my knowledge of lisp is particularly rudimentary so I can't offer to do it myself. I think you certainly underestimate yourself and can start hacking :) 1. install Git on your machine 2. ~$ git clone git://orgmode.org/org-mode.git 3. ~$ cd org-mode/ 4. Edit lisp/org-bibtex.el 5. Use C-x C-e at the end of the edited functions and check it works When you're done, simple C-x v = in the edited buffer, C-x o to go to that buffer, then save it and send it to us. Otherwise let's wait someone with a better understanding than mine can hack it together. But I'm sure you can give us something that will be useful enough. Best, -- Bastien diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index ed645e5..848d0e4 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -270,20 +270,31 @@ with underscores, and characters that are not permitted in org tags will be removed. If t, local tags in an org entry will be exported as a -comma-separated string of keywords when exported to bibtex. Tags -defined in `org-bibtex-tags' or `org-bibtex-no-export-tags' will -not be exported. +comma-separated string of keywords when exported to bibtex. If +`org-bibtex-inherit-tags' is t, inherited tags will also be +exported as keywords. Tags defined in `org-bibtex-tags' or +`org-bibtex-no-export-tags' will not be exported. :group 'org-bibtex :version 24.1 :type 'boolean) (defcustom org-bibtex-no-export-tags nil List of tag(s) that should not be converted to keywords. -This variable is relevant only if `org-bibtex-export-tags-as-keywords' is t. +This variable is relevant only if `org-bibtex-tags-are-keywords' is t. :group 'org-bibtex :version 24.1 :type '(repeat :tag Tag (string))) +(defcustom org-bibtex-inherit-tags nil + This variable controlls whether inherited tags are included +when converting org tags to bibtex keywords. It is relevant only +if `org-bibtex-tags-are-keywords' is t. Tag inheritence itself is +controlled by `org-use-tag-inheritence' and +`org-exclude-tags-from-inheritence' + :group 'org-bibtex + :version 24.1 + :type 'boolean) + (defcustom org-bibtex-type-property-name btype Property in which to store bibtex entry type (e.g., article). :group 'org-bibtex @@ -332,7 +343,9 @@ This variable is relevant only if `org-bibtex-export-tags-as-keywords' is t. (append org-bibtex-tags org-bibtex-no-export-tags)) tag)) - (org-get-local-tags-at)) + (if org-bibtex-inherit-tags + (org-get-tags-at) + (org-get-local-tags-at))) (when type (let ((entry (format @%s{%s,\n%s\n}\n type id
[O] CUA copy/paste within code block
Dear orgers, I am a CUA mode user and when I want to copy/paste a line or block of code within a org-babel code block, I always get back to the beginning of the code block after pasting. For example, assume you have the following piece of code echo coucou #+BEGIN_SRC sh for i in {0..10} do echo $i done #+END_SRC and you want to insert the 'echo coucou' line inside the for loop within the code block, by using the CTRL-C/CTRL-V combination keys, the cursor gets back to the beginning of the code block and does not stay where the paste is done. Here it is not a real problem since the code block is pretty small but when I have a long code block, the cursor is pretty far from where I have done the paste. Btw, selecting with the mouse and pasting with the middle click works just fine i.e. the cursor remains at the same position. I do not know if it is a bug or a feature but is it possible to get rid of such behavior. Thanks for your help/advice, Xavier
Re: [O] CUA copy/paste within code block
Hello Xavier, I can't reproduce this with latest Org and Emacs. What version of Emacs/Org are you using? Thanks for letting us know, -- Bastien
Re: [O] Feature Request. org-bibtex-tags-are-keywords inherit tags
Hi Leonard, thanks for starting this! A few stylistic comments inline. Leonard Randall leonard.a.rand...@gmail.com writes: diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index ed645e5..848d0e4 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -270,20 +270,31 @@ with underscores, and characters that are not permitted in org tags will be removed. If t, local tags in an org entry will be exported as a -comma-separated string of keywords when exported to bibtex. Tags -defined in `org-bibtex-tags' or `org-bibtex-no-export-tags' will -not be exported. +comma-separated string of keywords when exported to bibtex. If Make sure to end sentences with two spaces. (defcustom org-bibtex-no-export-tags nil List of tag(s) that should not be converted to keywords. -This variable is relevant only if `org-bibtex-export-tags-as-keywords' is t. +This variable is relevant only if `org-bibtex-tags-are-keywords' is t. :group 'org-bibtex :version 24.1 :type '(repeat :tag Tag (string))) I fixed this docstring from the maint branch, you may need to pull again and rewrite your changes. +(defcustom org-bibtex-inherit-tags nil + This variable controlls whether inherited tags are included The first line of the docstring should be a sentence. +when converting org tags to bibtex keywords. It is relevant only +if `org-bibtex-tags-are-keywords' is t. Tag inheritence itself is +controlled by `org-use-tag-inheritence' and +`org-exclude-tags-from-inheritence' There is a missing fullstop at the end, and missing double-space between sentences. + :group 'org-bibtex + :version 24.1 + :type 'boolean) Use :version 25.1 :package-version '(Org . 8.3) here, so that users will know the option is new in Org 8.3 (the next version that will be released from the master branc) and in Emacs 25.1 (the next Emacs stable version that will contain 8.3.) Otherwise, the patch looks good. Please resubmit it from a fresh pull with the modifications I suggested. Thanks in advance! -- Bastien
Re: [O] sharing my firsts, org babel tangle and init .org file
Brady Trainor algeb...@uw.edu writes: Have you migrated your init files into .org file(s)? What's your setup? I do, and find it very convenient. My setup is here: http://bzg.fr/emacs.html -- Bastien
[O] How do I define `org-agenda-cmp-user-defined'?
Hello, I'm working on a way to schedule reviews of projects, and I would like to have them ordered by age in an agenda view. It seems that I want to write my own `org-agenda-cmp-user-defined' function to do so. Unfortunately I cannot find an example of such a function. More precisely, given this: ,- | (defun org-review-schedule-compare (a b) | Compares the date of scheduled review for the two agenda | entries. Returns +1 if A has been scheduled for longer, nil if | they have been scheduled for the same length of time, and -1 | otherwise. | ()) `- how can I access a property of `a' and `b'? (The documentation tells me they are agenda entries, but it's not clear how I can access their information.) Thanks a lot, Alan
Re: [O] emacs regex work done within literate org-mode?
Hi Lawrence, Lawrence Bottorff borg...@gmail.com writes: But could the results of running literate code then be fed into the next section of literate code? Definitely, see this section of the manual: (info (Org) Noweb reference syntax) HTH, -- Bastien
Re: [O] Archive subtree with parent structure
Hi Florian, Florian Lindner mailingli...@xgm.de writes: is it possible to org-archive-subtree a subtree and keep the entire parent structure? e.g. * A ** AA ** AB ** AC AB will be archived to: * A ** AB No, but each subtree can contain an :ARCHIVE: property that will help you come close to this. For example: * A :PROPERTIES: :ARCHIVE: basement_archive::* A :END ** AA ** AB ** AC then C-c $ on AA AB and AC will archive them under the * A subtree of the basement_archive file. Another question, just out of interest: Why is there org-archive-subtree-default at all? According to documentation and source it just calls the function in org-archive-default-command: (defun org-archive-subtree-default () Archive the current subtree with the default command. This command is set with the variable `org-archive-default-command'. (interactive) (call-interactively org-archive-default-command)) Isn't the emacs way to rather just set org-archive-subtree to another function or rebind the key? The reasoning here is that the user wants to customize `org-archive-default-command' and still use C-c C-x C-a to archive. It would not be practical to force him create new keybindings. HTH, -- Bastien
Re: [O] [bug] Org-verbatim and org-code not converted into HTML tags
Hi Sébastien, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: Though, there are extra diffs in my HTML output, about the style of the org-block delimiter lines: they've lost their under/over-line feature, and colors are not the same anymore. not sure how this would relate to the bug you reported and that Nicolas fixed in this thread. Can you bisect to spot the first bad commit, and tell exactly what's bad here from an emacs -Q point of view? Thanks! -- Bastien
Re: [O] Bug? (was Request for worg page -- escaping questions)
Hi Rustom, Rustom Mody rustompm...@gmail.com writes: However there is still a minor issue: font-locking shows something like ~x | y~ inside a table as code but the other table commands like C-c C-c and export to html treats the '|' as a table marker. Yes, a known bug, we need to decide whether markup should be supported in tables. Try this to see how bad it is: | abc | +3 | |-+| | || I of course checked Bastien's pointer to the FAQ for '|' inside table. As of now neither vert nor \vert{} work. Try \vert -- works here. -- Bastien
Re: [O] Request for worg page -- escaping questions
Rustom Mody rustompm...@gmail.com writes: Trouble is you guys are the hares that make us (me at least) into tortoises -- you add significant functionality faster than I can keep with the 'what' (leave aside how and details). Well, remember that Worg is here to *stay* -- so let's start with basic stuff, not bleeding-edge features. There is a lot of basic stuff we still need to document... and we also need to clean-up stuff... but agreed that's pretty boring :/ Still I'll try my hand. What I would like is a graphic -- an automata-diagram made perhaps by dot. Can that easily/conveniently go up onto worg? Of course! Thanks in advance, -- Bastien
Re: [O] Prepare release 8.2.6
Hi Rainer, Rainer M Krug rai...@krugs.de writes: This has been introduced within the previous week, if I am not mistaken. Can you try to bisect a bit more? Maybe look for a commit that changed property inheritance, as it looks like it's related. Thanks, -- Bastien
Re: [O] CUA copy/paste within code block
Hi Bastien, Le 18/04/2014 13:01, Bastien a écrit : Hello Xavier, I can't reproduce this with latest Org and Emacs. What version of Emacs/Org are you using? I use the latest git version but you are right I can't also reproduce the problem when I am running emacs with minimal setup namely emacs -Q. So I will have a look inside my config what's going wrong and in case of emacs mode incompatibilities, I will report again. Sorry for the annoyance, Xavier
Re: [O] Bug? (was Request for worg page -- escaping questions)
Rustom Mody rustompm...@gmail.com writes: However there is still a minor issue: font-locking shows something like ~x | y~ inside a table as code but the other table commands like C-c C-c and export to html treats the '|' as a table marker. Yes, that's a known bug. I of course checked Bastien's pointer to the FAQ for '|' inside table. As of now neither vert nor \vert{} work. Try \vert -- Bastien
Re: [O] Weaving a budget with Org ledger
Hi, On 2014-02-21 05:59, Erik Hetzner e...@e6h.org writes: Users of ledger and Org may be interested in this tutorial on how I manage an envelope style budget with those two excellent tools. http://orgmode.org/worg/org-tutorials/weaving-a-budget.html Thanks to this nice description, I migrated my finances to ledger since the beginning of March. I've since written a couple extensions to track expenses, what remains in the envelopes (that I call buckets), and to generate monthly budgets. They make extensive use of the babel features of org mode (all the following should be in an orgmode file). First, I wrote a function that does an external call to ledger and returns the last value. It's used to get a balance for a given period. The `bucketp' boolean indicates whether we want information about the bucket (Bucket:Expenses:Foo) or the expenses themselves (Expenses:Foo). --8---cut here---start-8--- #+name: call_ledger #+begin_src emacs-lisp :var lcmd=bal :var bucket=Quotidien :var period=() :var bucketp=() (let* ((name (org-babel-trim bucket)) (bname (concat '^ (when bucketp Bucket:) Expenses: name ')) (ledger ledger -f ~/Documents/Org/mescomptes.ledger) (parg (when period (concat -p ' period '))) (cutcmd tail -1 | cut -d ' ' -f 2) (cmd (concat ledger -J parg lcmd bname | cutcmd)) (res (org-babel-trim (shell-command-to-string cmd (if (equal res ) 0 res)) #+end_src --8---cut here---end---8--- Second, a function to get an average spending since a given date. I compute a monthly average, based on the numbers of days since the starting date. --8---cut here---start-8--- #+name: monthly_average_since #+begin_src emacs-lisp :var start-date=2014-03-01 :var amount=100 (let ((nbdays (- (time-to-days (current-time)) (time-to-days (org-read-date nil t start-date) (calc-eval round($ / (12 * ($$ / 365.25)), 2) nil amount nbdays)) #+end_src #+name: ledger_average #+begin_src emacs-lisp :var b=Quotidien :var sd=2014-03-01 (let ((a (org-sbe call_ledger (bucket (eval b) (org-sbe monthly_average_since (amount (eval a)) (start-date (eval sd #+end_src --8---cut here---end---8--- Using these functions, I can write a table where I input the bucket names and the monthly budget I want (first two columns). The table formula then computes the remaining amount in the buckets, the actual spending for this month, the spending for last month, and the average spending since march 2014 (last four columns). #+name: budget | Bucket | Planned | Remaining | This Month | Last Month | Average | |--+-+---+++-| | Foo |1200 | 18.7 |1196.44 |1196.44 | 1549.64 | | Bar | 85 |254.63 | 0 | 17.4 | 11.27 | |--+-+---+++-| | Total| | ||| | #+TBLFM: @$2..@$6=vsum(@2..@-1)::@2$3..@$3='(org-sbe call_ledger (bucket (concat \ $1 \)) (bucketp (eval t)))::@2$4..@$4='(org-sbe call_ledger (bucket (concat \ $1 \)) (period \this month\))::@2$5..@$5='(org-sbe call_ledger (bucket (concat \ $1 \)) (period \last month\))::@2$6..@$6='(org-sbe ledger_average (b (concat \ $1 \))) Using this, I can track my expenses, see how much I've still to spend, and study the consistency between the actual spending and the budget. I then use the table to create my monthly filling of buckets with the function (the Bucket:Unallocated:EUR is where I put my income, before it's allocated to some bucket): --8---cut here---start-8--- #+name: ledger_budget #+BEGIN_SRC emacs-lisp :results output :var table=budget :var year=2014 :var month=04 (princ (format %d-%02d-01 * Budget %d %02d\n year month year month)) (mapcar (lambda (tuple) (princ (format Bucket:Expenses:%s%d €\n (car tuple) (cadr tuple (butlast (cdr table) 1)) (princ Bucket:Unallocated:EUR\n) #+END_SRC --8---cut here---end---8--- Then I can evaluate the following call line, which generates the budget that I copy and paste to my ledger file. --8---cut here---start-8--- #+call: ledger_budget(year=2014, month=04) :wrap src ledger #+results: #+BEGIN_src ledger 2014-04-01 * Budget 2014 04 Bucket:Expenses:Foo1200 € Bucket:Expenses:Bar85 € Bucket:Unallocated:EUR #+END_src --8---cut here---end---8--- I hope this will be useful to someone, and I want to seize the occasion to thank everyone on the ledger and orgmode list for putting up with the
Re: [O] Trouble with Tables and Python
John Kitchin wrote: I also find you want :results output raw if you are printing a table or printing org. This is something I have never found satisfying, especially for long tables or outputs it is tedious to have to delete the old output by hand before rerunning it. I have not found any other sets of options that do what I want, e.g. changing raw to org results in the section being wrapped in #+begin_org/end_org, which is usually not what I want. I usually do want the raw output. IIUC, that's one good reason to use the :results drawer thing. Best regards, Seb -- Sebastien Vauban
Re: [O] using org-babel-trim in org-sbe?
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: #+TBLFM: $2='(org-sbe spending (c (concat \ $1 \)))::$3='(org-sbe spending (c (concat \ (org-babel-trim $1) \))) You need to swap concat and org-babel-trim like this: #+TBLFM: $2='(org-sbe spending (c (concat \ $1 \)))::$3='(org-sbe spending (c (org-babel-trim (concat \ $1 \ Otherwise `org-babel-trim' act upon something that is not a string. Btw, org-trim is enough here. HTH, -- Bastien
Re: [O] babel and long-running computations
we routinely do this, in the following way. We run jobs that may take up to a week to finish, and they are usually run on a cluster. Our setup relies on the following behavior for a script. 1. you can run the script anytime you want, and it can tell the state of the calculation by some means. If the script has never been run before, it submits the job to a queue and exits. If the job is still in the queue, it exits, and if the job is done, it gives you the result. We manage this in python using exceptions to control the workflow. You can even have the script output an org-task marked TODO so you get an item on your agenda to check it later to see if it is done. Essentially the way it works is: when you run a script there is some code that checks the state, which in our case is looking for certain output files, and flag files. If the output files do not exist, we submit the job to a queue, and create a jobid file containing the output from the queue submission command. Then the script raises a JobSubmitted exception which we can handle if we want to. Later, I run the code block again. A jobid file is found, so the script gets the jobid, and checks if the job is still in the queue. If so a JobQueued exception is raised, which we can handle if we want to. If not, we delete the jobid file, and proceed to analyze the output files. All of that is done behind the scenes. You can see how this is done at https://github.com/jkitchin/jasp/blob/master/jasp/jasp_extensions.py#L416 this is a highly customized approach to a very specific code, but you could adapt the ideas to other codes and computing environments I think. John --- John Kitchin Associate Professor Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 http://kitchingroup.cheme.cmu.edu On Thu, Apr 17, 2014 at 4:45 AM, Christoph Groth christ...@grothesque.orgwrote: Dear all, I’m considering the use of org-babel for “reproducible science”. Is anyone successfully using org-babel for research that involves calculations that typically take a few minutes up to several hours on a single CPU (i.e. up to a few minutes on a cluster)? It seems to me that currently org-babel is not well suited for such an usage profile, but I’d love to be taught otherwise. Many thanks, Christoph
Re: [O] How do I define `org-agenda-cmp-user-defined'?
Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: More precisely, given this: ,- | (defun org-review-schedule-compare (a b) | Compares the date of scheduled review for the two agenda | entries. Returns +1 if A has been scheduled for longer, nil if | they have been scheduled for the same length of time, and -1 | otherwise. | ()) `- how can I access a property of `a' and `b'? See how `org-cmp-alpha' works. (The documentation tells me they are agenda entries, but it's not clear how I can access their information.) You can access agenda entries information by text properties. Create an agenda view, then C-u C-x = on some entry: you will see the list of available text properties that you can manipulate. -- Bastien
Re: [O] Embedding an image in base64; exporting to ascii, html, and latex?
On Thu, Apr 17, 2014 at 2:49 PM, Bastien b...@gnu.org wrote: How would that be different that zipping org files along with pictures and related needed content? Not different at all. Integrating the zipping into org-mode itself could standardize the process and make it more repeatable, portable, and convenient. Microsoft Word .docx files have something like this structure inside: . ├── [Content_Types].xml ├── _rels ├── docProps │ ├── app.xml │ ├── core.xml │ └── thumbnail.jpeg └── word ├── _rels │ └── document.xml.rels ├── document.xml ├── fontTable.xml ├── media │ └── image1.png ├── settings.xml ├── styles.xml ├── stylesWithEffects.xml ├── theme │ └── theme1.xml └── webSettings.xml An analogous structure inside a filename.orgz container might be useful. Perhaps something like: . ├── orgmain.org ├── config.org ├── media │ └── image1.png ├── elisp │ ├── init.el │ └── myorgmacros.el ├── babel └── export ├── styles └── output ├── orgmain.pdf └── orgmain.html A little elisp wizardry could ensure that invoking emacs filename.orgz would actually open and edit orgmain.org inside filename.orgz. Much of the tree structure could be optional, only included when certain features are used. Obviously, it would be necessary to put exported files outside of the .orgz file. But optionally including a copy inside could be useful. More important would be the inclusion of all non-standard input files needed to generate the output, things like images, elisp files, latex and html style files, etc. Maybe even a copy of the Emacs initialization file used when saving the container file. Finally, a standardized format for config.org would include things like Emacs version, Org version, creation date, modification date, a list of manually included files, etc.
Re: [O] [RFC] Org Minor Mode?
Thorsten Jolitz tjol...@gmail.com writes: In the case of regexps its of course not considered bad practice to write ^foo$ many times in a program, so nobody is to blame here, but the issue is the same as writing (message What a wonderful world) many times in a program and then entering a depressed state. Would have been better to write (message What a %s world current-world-view) ... ... except when the world is *always* wonderful! -- Bastien
Re: [O] [RFC] Org Minor Mode?
Thorsten Jolitz tjol...@gmail.com writes: That means that Org headlines are much more 'intelligent' than outline headlines (they know about todos, priorities, tags, timestamps, properties, planning, clocking, being archived etc.) and one could have that kind of intelligent headlines in other modes too with a true org-minor-mode. Joke aside, did you closely look at orgstruct-mode? I guess so if you started outorg.el. My point is: I'd rather improve orgstruct-mode than rethink an org-minor-mode from scratch. But that's just me of course. -- Bastien
Re: [O] Embedding an image in base64; exporting to ascii, html, and latex?
Hi Skip, I now see how this could be useful for sharing documents with Org files and Emacs configuration bits, but I doubt this would prove really useful: in LibreOffice, the bundle makes sense because it contains all what people need for both reading and writing docs; while in Emacs land, Org are more for writing and their PDF/HTML output for reading... not sure if my point is clear, I hope so -- that said, I like your idea and would be glad to see how it could work practically. -- Bastien
Re: [O] Feature Request. org-bibtex-tags-are-keywords inherit tags
Hi Bastien, Thanks for the feedback. I have attached the modified patch. All best, Leonard On 18 April 2014 12:14, Bastien b...@gnu.org wrote: Hi Leonard, thanks for starting this! A few stylistic comments inline. Leonard Randall leonard.a.rand...@gmail.com writes: diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index ed645e5..848d0e4 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -270,20 +270,31 @@ with underscores, and characters that are not permitted in org tags will be removed. If t, local tags in an org entry will be exported as a -comma-separated string of keywords when exported to bibtex. Tags -defined in `org-bibtex-tags' or `org-bibtex-no-export-tags' will -not be exported. +comma-separated string of keywords when exported to bibtex. If Make sure to end sentences with two spaces. (defcustom org-bibtex-no-export-tags nil List of tag(s) that should not be converted to keywords. -This variable is relevant only if `org-bibtex-export-tags-as-keywords' is t. +This variable is relevant only if `org-bibtex-tags-are-keywords' is t. :group 'org-bibtex :version 24.1 :type '(repeat :tag Tag (string))) I fixed this docstring from the maint branch, you may need to pull again and rewrite your changes. +(defcustom org-bibtex-inherit-tags nil + This variable controlls whether inherited tags are included The first line of the docstring should be a sentence. +when converting org tags to bibtex keywords. It is relevant only +if `org-bibtex-tags-are-keywords' is t. Tag inheritence itself is +controlled by `org-use-tag-inheritence' and +`org-exclude-tags-from-inheritence' There is a missing fullstop at the end, and missing double-space between sentences. + :group 'org-bibtex + :version 24.1 + :type 'boolean) Use :version 25.1 :package-version '(Org . 8.3) here, so that users will know the option is new in Org 8.3 (the next version that will be released from the master branc) and in Emacs 25.1 (the next Emacs stable version that will contain 8.3.) Otherwise, the patch looks good. Please resubmit it from a fresh pull with the modifications I suggested. Thanks in advance! -- Bastien diff --git a/lisp/org-bibtex.el b/lisp/org-bibtex.el index cdb12b7..516f2cf 100644 --- a/lisp/org-bibtex.el +++ b/lisp/org-bibtex.el @@ -270,9 +270,10 @@ with underscores, and characters that are not permitted in org tags will be removed. If t, local tags in an org entry will be exported as a -comma-separated string of keywords when exported to bibtex. Tags -defined in `org-bibtex-tags' or `org-bibtex-no-export-tags' will -not be exported. +comma-separated string of keywords when exported to bibtex. If +`org-bibtex-inherit-tags' is t, inherited tags will also be +exported as keywords. Tags defined in `org-bibtex-tags' or +`org-bibtex-no-export-tags' will not be exported. :group 'org-bibtex :version 24.1 :type 'boolean) @@ -284,6 +285,17 @@ This variable is relevant only if `org-bibtex-tags-are-keywords' is t. :version 24.1 :type '(repeat :tag Tag (string))) +(defcustom org-bibtex-inherit-tags nil + Controls whether inherited tags are converted to bibtex keywords. +It is relevant only if `org-bibtex-tags-are-keywords' is t. Tag +inheritence itself is controlled by `org-use-tag-inheritence' and +`org-exclude-tags-from-inheritence'. + :group 'org-bibtex + :version 25.1 + :package-version '(Org . 8.3) + :type 'boolean) + + (defcustom org-bibtex-type-property-name btype Property in which to store bibtex entry type (e.g., article). :group 'org-bibtex @@ -332,7 +344,9 @@ This variable is relevant only if `org-bibtex-tags-are-keywords' is t. (append org-bibtex-tags org-bibtex-no-export-tags)) tag)) - (org-get-local-tags-at)) + (if org-bibtex-inherit-tags + (org-get-tags-at) + (org-get-local-tags-at))) (when type (let ((entry (format @%s{%s,\n%s\n}\n type id
Re: [O] Problem with org-clock-display
Hello Bastien, Bastien wrote: Noah Slater nsla...@tumbolia.org writes: - Times are indented like the nodes, meaning they don't line up. (I presume this is intentional, but I find it annoying. Is there a way to turn it off?) Fixed. - Everything is highlighted with yellow. Is this intentional? Can I turn it off? M-x customize-face RET org-clock-display RET I changed from yellow to gray. - Why are some of the times blue and some white. Can I turn this off? Because the face inherited from the headline face. I changed it by specified a foreground. I tested your changes with this ECM file: --8---cut here---start-8--- #+TITLE: Example of Tasks #+LANGUAGE: en * Marketing :PROPERTIES: :CATEGORY: Marketing :END: ** STRT Hire PR firm:phone: DEADLINE: 2014-03-12 Wed :LOGBOOK: CLOCK: [2013-02-05 Tue 09:00]--[2013-02-05 Tue 10:11] = 1:11 - State TODO- STRT [2013-02-05 Tue 17:48] - State TODO- STRT [2013-08-19 Mon 15:16] :END: *** Call Laura about PR firm:phone: *** Interview PR firm candidates * Work :PROPERTIES: :CATEGORY: Work :END: ** TODO Update database to latest version SCHEDULED: 2014-03-13 Thu * Personal :PROPERTIES: :CATEGORY: Personal :END: ** DONE Read Getting Things Done :LOGBOOK: - State TODO- DONE [2014-01-06 Mon 15:10] :END: ** WAIT Mail package to Susan :LOGBOOK: - State TODO- STRT [2013-07-24 Wed 15:45] CLOCK: [2013-07-24 Wed 15:45]--[2013-07-24 Wed 17:28] = 1:43 CLOCK: [2013-08-12 Mon 11:56]--[2013-08-12 Mon 12:12] = 0:16 - State STRT- DONE [2013-08-12 Mon 12:12] - State DONE- TODO [2013-09-27 Fri 10:23] - State TODO- WAIT [2013-11-15 Fri 12:00] :END: --8---cut here---end---8--- and the Leuven theme (in the current trunk of the to be Emacs 24.4). See (on http://screencast.com/t/hkFpXhQG) that there are 2 weirdnesses: - The last letter of the headline text gets its height amplified when there is a following time display. - The : of the phone tag gets temporarily overlaid with an m. Best regards, Seb -- Sebastien Vauban
Re: [O] Counting number of children under heading
Bastien wrote: Marvin Doyley marvin...@gmail.com writes: I would like to automatically count the number of children under a given heading. For example, I would like to have * Cars (2) ** BMW ** Escort There is no such feature in Org, but I seem to remember someone hack something similar -- maybe someone else with a better memory can tell. IIRC, Sacha Chua had made such a hack -- must be found on her impressive blog. Best regards, Seb -- Sebastien Vauban
Re: [O] Problem with org-clock-display
Hi Sébastien, should be fixed, thanks! -- Bastien
Re: [O] org-todo-keywords-1 detection in asyn export
Nicolas Goaziou n.goaz...@gmail.com writes: Hello, zwz zhangwe...@gmail.com writes: So here what I mean by locally is to adjust the org-latex-pdf-process by some keywords, instead of binding it with some specific code/value (which is difficult for modification) `org-latex-pdf-process' can be a function. You could send it a message telling it what functions to use. For example, a hook could find out what LaTeX class you're using and send the appropriate message to the function. Thank you, Nicolas. Can you give me some example code? However I found it does not work in asyn export. Is is not related to async export. I am not sure if I get you totally. Here is what I put in my org-export-async-init-file: (defun ox-xetex-setup () (if (member XeTeX org-todo-keywords-1) (setq org-latex-default-packages-alist (remove '(AUTO inputenc t) org-latex-default-packages-alist) org-latex-pdf-process '(latexmk -xelatex -pdf -silent -f %f (add-hook 'org-mode-hook (lambda () (ox-xetex-setup))) ;; instead of add-hook as above, you can just put ;; (ox-xetex-setup) ;; but again, it still calls pdflatex when export asynchronously And in some test.org: #+TODO: XeTeX * test blah blah When I export it asynchronously, org-export calls pdflatex rather than xelatex to generate pdf. And even I put (ox-xetex-setup) directly in org-export-async-init-file, it still does not work as expected. A few variables live outside the scope of BIND keywords. `org-latex-pdf-process' is one of them. Though, you can always define it as a file local variable. Regards,
Re: [O] Can ELPA package split contrib part?
Bastien b...@gnu.org writes: Hello, Bastien, all! While I use org-plus-contrib package from orgmode ELPA, With other package which requires (updated) org, it isn't recognized as I expect. You should really not have both installed, I'd recommend using `org-plus-contrib' only. If that's not feasible because of some compatibility constraint you have, then use git or the .tar.gz/.zip archives, it's easy enough. I find that the following snippet seems to load Org fine even if I'm mixing org-plus-contrib (which is needed for some of the other Org packages like org-drill-table) with Org from git: ;; Set up load path, but don't actually load packages yet (package-initialize nil) ;; Override the packages with the git version of Org and other packages (add-to-list 'load-path ~/elisp/org-mode/lisp) (add-to-list 'load-path ~/elisp/org-mode/contrib/lisp) ;; Load the rest of the packages (package-initialize t) Sacha
Re: [O] Feature Request. org-bibtex-tags-are-keywords inherit tags
Hi Leonard, Leonard Randall leonard.a.rand...@gmail.com writes: Thanks for the feedback. I have attached the modified patch. Applied, thanks. Have a look at the ChangeLog I added in the commit message. If you plan to add other change, please sign the FSF agreement: http://orgmode.org/cgit.cgi/org-mode.git/plain/request-assign-future.txt Best, -- Bastien
Re: [O] Counting number of children under heading
Sebastien Vauban sva-n...@mygooglest.com writes: I would like to automatically count the number of children under a given heading. For example, I would like to have * Cars (2) ** BMW ** Escort There is no such feature in Org, but I seem to remember someone hack something similar -- maybe someone else with a better memory can tell. IIRC, Sacha Chua had made such a hack -- must be found on her impressive blog. I don't remember doing something like that - I tend to use [X] for automatically counted cookies... Do you need the number of children to be part of the text, or is it okay for that to be temporarily displayed? Sacha
Re: [O] org-export-format-source-code-or-example: End of Buffer
Hi Mishal, Mishal Awadah a.mam...@gmail.com writes: I added the sample code that generates the error for me on http://stackoverflow.com/questions/22565379/emacs-org-mode-python-source-blocks-dont-export-with-python-mode-el I see Andreas made this python-mode bug report for it: https://bugs.launchpad.net/python-mode/+bug/1295825 So I hope this will be sorted there. Best, -- Bastien
Re: [O] Spacing after sorting a heading
Bastien, Bastien wrote: Kyle Meyer k...@kyleam.com writes: Does anyone have suggestions for maintaining a space before headings after sorting? I fixed this in maint, let me know if this works for you. A pity that your fix did not solve the bug When moving headings, blank lines are added to the display (reported on 2013-11-15) at the same time ;-( See http://article.gmane.org/gmane.emacs.orgmode/78878. Best regards, Seb -- Sebastien Vauban
Re: [O] Problem with org-clock-display
Hi Bastien, Bastien wrote: should be fixed, thanks! Almost, but not really. See http://screencast.com/t/fmR5TJfa what happens to the size of the titles, when the overlay is applied or removed. Also, I did prefer (unlike Noah) when there were no reading dots. Is there a way to remove them, or at least to get them in a very light gray, for example? Best regards, Seb -- Sebastien Vauban
Re: [O] Spacing after sorting a heading
Hi Sébastien, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: A pity that your fix did not solve the bug When moving headings, blank lines are added to the display (reported on 2013-11-15) at the same time ;-( It may look similar, but that's a completely different issue. See http://article.gmane.org/gmane.emacs.orgmode/78878. Can you instrument `org-clean-visibility-after-subtree-move' and chase the bug from there? -- Bastien
Re: [O] Bug? (was Request for worg page -- escaping questions)
Bastien b...@gnu.org writes: Yes, a known bug, we need to decide whether markup should be supported in tables. Try this to see how bad it is: | abc | +3 | |-+| | || Fortunately, the parser doesn't make such error ;) Regards, -- Nicolas Goaziou
Re: [O] [RFC] Org Minor Mode?
Bastien b...@gnu.org writes: Thorsten Jolitz tjol...@gmail.com writes: That means that Org headlines are much more 'intelligent' than outline headlines (they know about todos, priorities, tags, timestamps, properties, planning, clocking, being archived etc.) and one could have that kind of intelligent headlines in other modes too with a true org-minor-mode. Joke aside, did you closely look at orgstruct-mode? I guess so if you started outorg.el. Yes! Actually, omm.el is a merge of outshine.el and the orgstruct section from org.el, i.e. the entire orgstruct code has been copied to omm.el and therefore could be removed from org.el in case org-minor-mode ever becomes reality (and omm.el part of org-mode). I think org(struct)-style list and table editing in other text-modes is a kind of special case for an org-minor-mode, though a very useful one. The default case would be its (mode agnostic) use in programming modes and with outcommented text. In that case outshine and outorg/poporg offer some useful ideas and functionality too. My point is: I'd rather improve orgstruct-mode than rethink an org-minor-mode from scratch. But that's just me of course. I think outorg and poporg are quite heavy competitors to org(struct)-style list and table editing, since they offer the full power of Org-mode, work in comment sections and docstrings (too), and avoid possible mode conflicts by simply reverting the `org-edit-special' idea = work in a programming mode and launch temporary org-mode edit buffers for occasional text editing. So for text/list/table editing I think there could be user options for deciding between orgstruct and/or outorgpoporg, so that none of the existing efforts is lost. The real value and innovation of a true org-minor-mode would be to introduce Org's intelligent headlines and all the related functionality into the world of outcommented text in programming modes. -- cheers, Thorsten
Re: [O] Problem with org-clock-display
On 18 April 2014 17:03, Sebastien Vauban sva-n...@mygooglest.com wrote: Also, I did prefer (unlike Noah) when there were no reading dots. Is there a way to remove them, or at least to get them in a very light gray, for example? They are completely removed for me.
Re: [O] using org-babel-trim in org-sbe?
On 2014-04-18 15:17, Bastien b...@gnu.org writes: Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: #+TBLFM: $2='(org-sbe spending (c (concat \ $1 \)))::$3='(org-sbe spending (c (concat \ (org-babel-trim $1) \))) You need to swap concat and org-babel-trim like this: #+TBLFM: $2='(org-sbe spending (c (concat \ $1 \)))::$3='(org-sbe spending (c (org-babel-trim (concat \ $1 \ Otherwise `org-babel-trim' act upon something that is not a string. Ah, thanks, this is good to know. Btw, org-trim is enough here. OK, I've replaced it in other places where I was using it. Thanks again, Alan
Re: [O] How do I define `org-agenda-cmp-user-defined'?
On 2014-04-18 15:21, Bastien b...@gnu.org writes: Hi Alan, Alan Schmitt alan.schm...@polytechnique.org writes: More precisely, given this: ,- | (defun org-review-schedule-compare (a b) | Compares the date of scheduled review for the two agenda | entries. Returns +1 if A has been scheduled for longer, nil if | they have been scheduled for the same length of time, and -1 | otherwise. | ()) `- how can I access a property of `a' and `b'? See how `org-cmp-alpha' works. Thank you for the suggestion, this is good inspiration. (The documentation tells me they are agenda entries, but it's not clear how I can access their information.) You can access agenda entries information by text properties. Create an agenda view, then C-u C-x = on some entry: you will see the list of available text properties that you can manipulate. Thanks a lot, I'm able to get the information I need, thanks to `org-marker' and `org-entry-get'. Alan
Re: [O] org-todo-keywords-1 detection in asyn export
zwz zhangwe...@gmail.com writes: Can you give me some example code? I was thinking about something like this (untested): --8---cut here---start-8--- (let (template) (defun ngz-set-template (new) (setq template new)) (defun ngz-latex-process (file) (case template (a (do-something-with file)) (b (do-something-else-with file)) (otherwise (do-default-with file) (defun ngz-latex-class-to-template (info backend) (when (org-export-derived-backend-p backend 'latex) (ngz-set-template (let ((value (plist-get info :latex-class))) (cond ((string= value classA) 'a) ((string= value classB) 'b) (t nil info)) (add-to-list 'org-export-filter-options-functions 'ngz-latex-class-to-template) (setq org-latex-pdf-process #'ngz-latex-process) --8---cut here---end---8--- Obviously, you need to activate lexical binding. I am not sure if I get you totally. I was talking about BIND keyword, not about your initial implementation. Here is what I put in my org-export-async-init-file: (defun ox-xetex-setup () (if (member XeTeX org-todo-keywords-1) (setq org-latex-default-packages-alist (remove '(AUTO inputenc t) org-latex-default-packages-alist) org-latex-pdf-process '(latexmk -xelatex -pdf -silent -f %f (add-hook 'org-mode-hook (lambda () (ox-xetex-setup))) ;; instead of add-hook as above, you can just put ;; (ox-xetex-setup) ;; but again, it still calls pdflatex when export asynchronously [...] When I export it asynchronously, org-export calls pdflatex rather than xelatex to generate pdf. I think the problem comes from `org-todo-keywords-1'. Its value is probably not updated during export. Regards, -- Nicolas Goaziou
Re: [O] Clocktable for this week starting at Sunday
Tried :wstart with all sorts of numbers - all starts at Monday. Cheers, Torben On 17 April 2014 16:28, Bastien b...@gnu.org wrote: Hi Torben, Torben Hoffmann torben.leh...@gmail.com writes: #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :weekstart 7 :block thisweek :step day :fileskip0 :narrow 20! ^^ should be :wstart -- let us know if it works! -- Bastien -- http://www.linkedin.com/in/torbenhoffmann @LeHoff
[O] Bug: clocktable does not respond to :wstart [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/org/)]
I'm trying to get a weekly clocktable report starting on Sunday using this specification: #+BEGIN: clocktable :maxlevel 2 :scope agenda-with-archives :wstart 2 :block thisweek-1 :step day :fileskip0 :narrow 20! #+END: The problem is that no matter which argument I use for :wstart the report starts on Monday. Let me know if you need more information from me. Cheers, Torben Emacs : GNU Emacs 24.3.1 (x86_64-apple-darwin13.0.2, NS apple-appkit-1265.00) of 2014-03-03 on pique.local Package: Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/org/) current state: == (setq org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select-beamer-code) org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-export-preprocess-before-normalizing-links-hook '(org-remove-file-link-modifiers) org-log-done 'note org-confirm-shell-link-function 'yes-or-no-p org-export-latex-final-hook '(org-beamer-amend-header org-beamer-fix-toc org-beamer-auto-fragile-frames org-beamer-place-default-actions-for-lists) org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-support-shift-select t org-default-notes-file ~/org/notes.org org-clock-in-resume t org-capture-templates '((t Todo entry (file+headline ~/org/refile.org Tasks) * TODO %?\n %i\n %a)) org-startup-indented 'indented org-after-todo-state-change-hook '(org-clock-out-if-current) org-from-is-user-regexp \\Torben Hoffmann\\ org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil \301\302\303#\207 [org-mode-map define-key org-mac-grab-link] 4] er/add-org-mode-expansions #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil \300\301\302\303\304$\207 [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-refile-targets '((nil :maxlevel . 9) (org-agenda-files :maxlevel . 9)) org-outline-path-complete-in-steps nil org-clock-persist t org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-refile-use-outline-path t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-export-latex-format-toc-function 'org-export-latex-format-toc-default org-export-blocks '((src org-babel-exp-src-block nil) (export-comment org-export-blocks-format-comment t) (ditaa org-export-blocks-format-ditaa nil) (dot org-export-blocks-format-dot nil)) org-export-first-hook '(org-beamer-initialize-open-trackers) org-babel-exp-code-template #+BEGIN_SRC %lang%flags\n%body\n#+END_SRC org-export-interblocks '((src org-babel-exp-non-block-elements)) org-refile-allow-creating-parent-nodes 'confirm org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-jsinfo org-irc org-mac-message org-mew org-mhe org-rmail org-vm org-wl org-w3m org-mac-link-grabber) org-clock-report-include-clocking-task t org-babel-process-comment-text 'org-babel-trim org-babel-tangle-lang-exts '((emacs-lisp . el)) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-completion-use-ido t org-agenda-files '(~/org) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) -- Torben Hoffmann CTO Erlang Solutions Ltd. Tel: +45 25 14 05 38 http://www.erlang-solutions.com
[O] org-review-schedule
Hello, I've just finished writing a little bit of code that allows the scheduling of reviews. The basic idea is that every task that is supposed to be reviewed has a LAST_REVIEW property (a date when the task / project was last reviewed), and optionally a REVIEW_DELAY property (with a configurable default value). If the current date is after LAST_REVIEW + REVIEW_DELAY, then the task is considered up to review. I've written a small function to show these tasks in the agenda, and a sorting function to allow them to be sorted from this had to be review so long ago to this has just been available to review. Another function allows to set the LAST_REVIEW property to the current date (or a chosen date if called with C-u). I attach the code. It's the first time I'm contributing something like this, so I don't really know how to do it. The header of the file is basically the same one as from `contrib/org-expiry.el', and I tried to keep a similar structure. Please don't hesitate to comment criticize the code, I'm still learning my way around emacs-lisp and org-mode. Thanks, Alan org-review-schedule.el Description: application/emacs-lisp
[O] how to stop the mouse pointer highlighting in agenda?
i find the highlighting of lines upon mouse pointer movement and the echo area notification to be distracting. i don't understand the code at all, but i tried (remove-text-properties 1 1 '(mouse-face nil)). didn't work. my goal is to make moving the mouse pointer do nothing in the agenda. -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] how to stop the mouse pointer highlighting in agenda?
Samuel Wales samolog...@gmail.com writes: i find the highlighting of lines upon mouse pointer movement and the echo area notification to be distracting. for the highlighting: (add-hook 'org-finalize-agenda-hook (lambda () (remove-text-properties (point-min) (point-max) '(mouse-face t -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] sharing my firsts, org babel tangle and init .org file
I've looked at the solution on worg and, though I didn't actually try to implement, it seems like tangling your init file every time you open Emacs is a little cumbersome. Please correct me if I'm wrong in this assumption. I also have a sync script hooked into my tangling that has to do with exporting some of my config sections to my gopher site so they're always up to date, so maybe it's just that my tangling experience is especially involved. Here's what I do. Since I probably only edit my config ~10% of the times that I open Emacs, it seems easier to just have a statically-tangled init file, so I just basically use C-c C-v C-t instead of C-x C-s to save my init.org. I also use somewhat customized init files on a few different hosts which share the same .emacs.d. They share come common functionality and differ slightly, so there are a few init files tangled into ~/.emacs.d of the form hostname.el and the init.el file is basically a switch which chooses which one to load on startup. Short reference: http://gopher.floodgap.com/gopher/gw?gopher://sdf.org:70/0/users/framling/emacs/init
[O] [PATCH] Making org-agenda filters orthogonal and refreshed
This is org-mode version 8.2.5h, directly off the git. emacs version 24.4.50.1 I have noticed that combining top headline filters and category filters didn't always work as documented. In particular, the combination of filters displayed depends on the order of application and removal, and is not always refreshed properly. To test it, I created a new org file with a couple of simple entries. Note: the behaviour is most obvious if you have some other tasks with the same categories or tags in your global todo agenda. * A team member ** TODO Task 1 :COMPUTER: :PROPERTIES: :CATEGORY: Work :END: ** TODO Task 2 :PROPERTIES: :CATEGORY: Team :END: * Someone else ** TODO Someone else's Task 1 :COMPUTER: :PROPERTIES: :CATEGORY: Work :END: If I apply two filters in succession: ^ to filter to the top headline and to filter to the Work category, it appears to work. But then if I toggle the top headline filter with ^ again, all the filters are removed, because the function is using the category filter type to apply and remove the top headline overlay. (Separately, the | shortcut to remove all filters does not currently recognise a top headline filter). I created a patch to fix the issues, but I think it's a bit of a hack, and I'd welcome input or a better patch by a more skilled coder. Even after separating the filter removal, I ended up advising two filter functions to reload the agenda so that it refreshed properly. All of this reflects my poor elisp skills. Nonetheless, I wonder if org-agenda doesn't need some refactoring to remove the explicit repetition of cases for different filter types. Greg diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 184209b..d686bd7 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -2097,6 +2097,7 @@ When nil, `q' will kill the single agenda buffer. org-agenda-tag-filter org-agenda-cat-filter-overlays org-agenda-category-filter +org-agenda-top-headline-filter org-agenda-re-filter-overlays org-agenda-regexp-filter org-agenda-markers @@ -3412,6 +3413,7 @@ If AGENDA-BUFFER-NAME, use this as the buffer name for the agenda to write. (defvar org-agenda-tag-filter-overlays nil) (defvar org-agenda-cat-filter-overlays nil) +(defvar org-agenda-top-headline-filter-overlays nil) (defvar org-agenda-re-filter-overlays nil) (defun org-agenda-mark-filtered-text () @@ -3425,6 +3427,7 @@ If AGENDA-BUFFER-NAME, use this as the buffer name for the agenda to write. 'org-filtered t))) (append org-agenda-tag-filter-overlays org-agenda-cat-filter-overlays +org-agenda-top-headline-filter-overlays org-agenda-re-filter-overlays (defun org-agenda-unmark-filtered-text () @@ -7352,6 +7355,11 @@ The category is that of the current line. (list (concat + cat))) 'category)) ((error No category at point)) + +(defadvice org-agenda-filter-by-category (after org-agenda-redo-after-cat-filter activate) + sometimes the filter needs to be redone + (org-agenda-redo)) + (defun org-find-top-headline (optional pos) Find the topmost parent headline and return it. (save-excursion @@ -7371,10 +7379,14 @@ The top headline is that of the current line. (progn (setq org-agenda-filtered-by-top-headline nil org-agenda-top-headline-filter nil) -(org-agenda-filter-show-all-cat)) -(let ((cat (org-find-top-headline (org-get-at-bol 'org-hd-marker - (if cat (org-agenda-filter-top-headline-apply cat strip) -(error No top-level category at point) +(org-agenda-filter-show-all-top-headlines)) +(let ((tophl (org-find-top-headline (org-get-at-bol 'org-hd-marker + (if tophl (org-agenda-filter-top-headline-apply tophl strip) +(error No top-level headline at point) + +(defadvice org-agenda-filter-by-top-headline (after org-agenda-redo-after-tophl-filter activate) + sometimes the filter needs to be redone + (org-agenda-redo)) (defvar org-agenda-regexp-filter nil) (defun org-agenda-filter-by-regexp (strip) @@ -7403,7 +7415,9 @@ With two prefix arguments, remove the regexp filters. (when org-agenda-category-filter (org-agenda-filter-show-all-cat)) (when org-agenda-regexp-filter -(org-agenda-filter-show-all-re))) +(org-agenda-filter-show-all-re)) + (when org-agenda-top-headline-filter) + (org-agenda-filter-show-all-top-headlines)) (defun org-agenda-filter-by-tag (strip optional char narrow) Keep only those lines in the agenda buffer that have a specific tag. @@ -7665,7 +7679,7 @@ When NO-OPERATOR is non-nil, do not add the + operator to returned tags. (tophl (and pos (org-find-top-headline pos (if (and tophl (funcall (if negative 'identity 'not) (string= hl tophl))) -(org-agenda-filter-hide-line
Re: [O] sharing my firsts, org babel tangle and init .org file
Good thing to consider. On my slow machine it takes 6 minutes to tangle my init and on my faster machine 1.5 minutes so I follow the static approach. Grant Rettke | AAAS, ACM, FSF, IEEE, Sigma Xi gret...@acm.org | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson On Fri, Apr 18, 2014 at 7:24 PM, Pete Ley peteley11...@gmail.com wrote: I've looked at the solution on worg and, though I didn't actually try to implement, it seems like tangling your init file every time you open Emacs is a little cumbersome. Please correct me if I'm wrong in this assumption. I also have a sync script hooked into my tangling that has to do with exporting some of my config sections to my gopher site so they're always up to date, so maybe it's just that my tangling experience is especially involved. Here's what I do. Since I probably only edit my config ~10% of the times that I open Emacs, it seems easier to just have a statically-tangled init file, so I just basically use C-c C-v C-t instead of C-x C-s to save my init.org. I also use somewhat customized init files on a few different hosts which share the same .emacs.d. They share come common functionality and differ slightly, so there are a few init files tangled into ~/.emacs.d of the form hostname.el and the init.el file is basically a switch which chooses which one to load on startup. Short reference: http://gopher.floodgap.com/gopher/gw?gopher://sdf.org:70/0/users/framling/emacs/init
Re: [O] Limits on capture mode?
Thanks for the suggestion, Bastien. I'm thinking now that when the org-protocol is invoked on Win XP via the capture javascript code that it's essentially the same as calling a windows command line. The Windows XP command line has an upper limit of 8192 characters. You can reach that fast because every space character gets translated into 3 url characters. This limits the ability of the nifty capture technology which is a shame. I imagine the work-around would require some sort of plug-in for FireFox. The command line limits for Linux are much higher, so people using org-mode on those platforms would rarely encounter the barrier. I guess there's not that many people using org-mode on Windows, if I'm the only one noticing this problem. Oh well, cutting and pasting isn't that tedious. Thanks, Mark On Thu, 4/17/14, Bastien wrote: Date: Thursday, April 17, 2014, 12:06 AM Hi Mark, Mark S. writes: The problem is that there seems to be some undocumented (?) upper limit to the number of characters that can be copied. It looks like it might be around a 1000. When I try to send more than that, the process doesn't seem to happen (there's no indication that anything is happening). There is no limit on Org-mode side, so I guess it's a limit from the browser protocol. I'd search in this direction. HTH, -- Bastien
Re: [O] how to stop the mouse pointer highlighting in agenda?
that works for the highlighting part of the question. thank you! On 4/18/14, Igor Sosa Mayor joseleopoldo1...@gmail.com wrote: for the highlighting: (add-hook 'org-finalize-agenda-hook (lambda () (remove-text-properties (point-min) (point-max) '(mouse-face t
Re: [O] how to stop the mouse pointer highlighting in agenda?
Samuel Wales samolog...@gmail.com writes: that works for the highlighting part of the question. thank you! I think for your other problem you have to use: (setq org-agenda-follow-mode nil) -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] how to stop the mouse pointer highlighting in agenda?
follow mode is nil. i am referring to the message that says that you can do mouse 2 or RET to go to the org file, which appears whenever the mouse pointer is over an agenda line. this message appears to be hardcoded in various places in org, but i don't know if its echoing can be disabled. your fix to the highlighting is a huge improvement. On 4/18/14, Igor Sosa Mayor joseleopoldo1...@gmail.com wrote: (setq org-agenda-follow-mode nil)
Re: [O] how to stop the mouse pointer highlighting in agenda?
Samuel Wales samolog...@gmail.com writes: follow mode is nil. i am referring to the message that says that you can do mouse 2 or RET to go to the org file, which appears whenever the mouse pointer is over an agenda line. maybe... ,[ C-h v org-agenda-show-outline-path RET ] | org-agenda-show-outline-path is a variable defined in `org-agenda.el'. | Its value is t | | Documentation: | Non-nil means show outline path in echo area after line motion. | | You can customize this variable. | | [back] ` -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Problem with org-clock-display
Hi, Sebastien Vauban sva-news-D0wtAvR13HarG/idocf...@public.gmane.org writes: See http://screencast.com/t/fmR5TJfa what happens to the size of the titles, when the overlay is applied or removed. Fixed, although I think this bug was present before I tweaked this function. Also, I did prefer (unlike Noah) when there were no reading dots. Is there a way to remove them, or at least to get them in a very light gray, for example? I reinstalled the dots (different ones) with a shadow background: having the dots is good to match the headline visually. -- Bastien
Re: [O] how to stop the mouse pointer highlighting in agenda?
it is not the outline path. it is a notification message that occurs when the mouse pointer is over a line. move mouse to a line without clicking and it will show up after a few seconds. On 4/18/14, Igor Sosa Mayor joseleopoldo1...@gmail.com wrote: ,[ C-h v org-agenda-show-outline-path RET ]
Re: [O] [RFC] Org Minor Mode?
Hi Thorsten, Thorsten Jolitz tjol...@gmail.com writes: The real value and innovation of a true org-minor-mode would be to introduce Org's intelligent headlines and all the related functionality into the world of outcommented text in programming modes. Yes. We could have `orgstruct-comment-prefix-regexp' along with `orgstruct-heading-prefix-regexp'. I'll check this, thanks for the idea! -- Bastien
Re: [O] how to stop the mouse pointer highlighting in agenda?
Samuel Wales samolog...@gmail.com writes: it is not the outline path. it is a notification message that occurs when the mouse pointer is over a line. move mouse to a line without clicking and it will show up after a few seconds. yes, I see. You're right... Maybe it is not exactly a org issue, I have the impression... -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::
Re: [O] Bug: clocktable does not respond to :wstart [7.9.3f (release_7.9.3f-17-g7524ef @ /usr/local/Cellar/emacs/24.3/share/emacs/24.3/lisp/org/)]
Hi Torben, torben.leh...@gmail.com writes: Package: Org-mode version 7.9.3f I can reproduce the bug with this version, but it has been fixed in the meantime and Org version 8 works fine. See the manual on how to install non built-in Org : http://orgmode.org/manual/Installation.html Thanks, -- Bastien
Re: [O] [RFC] Org Minor Mode?
another option is to create annotation mechanisms that are so compelling that you don't need org in non-org files. your lists and tasks would stay in your org agenda files, but your external files would be able to show (via overlays) and link to the annotations in org. in turn, your annotations in org would be able to send you to the spot in your extenal files that they refer to. we have a ton of annotation mechanisms in emacs and org, but they can perhaps be made more compelling in this way. On 4/11/14, Richard Lawrence richard.lawre...@berkeley.edu wrote: Hi Thorsten, Bastien b...@gnu.org writes: Nicolas Goaziou n.goaz...@gmail.com writes: Thorsten Jolitz tjol...@gmail.com writes: What do you think - is there any chance that Org-mode switches from static hardcoded regexp strings (all over the place) to dynamic regexps calculated at runtime (using libraries like drx.el or rx.el)? I hope not. The syntax should stabilize, not drift away. Agreed. Maybe there are some hardcoded regexps that we can factor out, but dynamically building those fundamental regexp is a deadend. I agree with what Nicolas and Bastien have said, but I wanted to say that I think there is an interesting idea in Thorsten's post that shouldn't be dismissed out of hand. Org provides a set of UI concepts (tree-like structure, visibility cycling, tree filtering, task state tracking, building an agenda from multiple sources, ...) that map nicely onto a lot of other situations, and would be really handy to have access to even when the syntax of the underlying file is incompatible with Org's syntax. There are two ways to think about Org syntax, which I think should be distinguished here. One is as the grammar of a .org file: basically, a set of rules that allow a sequence of characters to be parsed into an AST. The other way to think about Org syntax is the way Lisp programmers sometimes talk about syntax: as the AST itself, the collection of Lisp data types and their interrelationships that define a valid Org document. If Org were to evolve to the point where the UI concepts were implemented purely as transformations on an AST -- on Org syntax in the second sense -- then the way would be clear for making those concepts available in editing modes where the grammar of the underlying file is incompatible with Org syntax in the first sense. A programming mode could, say, parse comments into an Org AST, then expose that AST to the functions implementing Org's UI concepts. Et voila: you get visibility cycling, task state tracking, agendas...in your source code comments. One sort of use case where I think this idea could really shine is in dealing with email. Obviously, the grammar of the underlying mail files (say, in a Maildir) will never be compatible with Org syntax in the first sense. But Org handles so many of the concepts that apply to email (threading messages into hierarchies, visibility cycling, tagging, sorting by date or priority, thinking of messages as tasks to be dealt with, dealing with attachments) in such a nice way that I find myself sorely missing Org whenever I read mail in a client that doesn't implement them as nicely -- which is all of them. If it were possible to build a parser for message files that transformed them into an Org AST, the mail client of my dreams would be in reach. I have no idea if evolving Org in this direction is feasible or even really desireable. It may be that the two notions of Org syntax are tightly coupled in principle, so that the idea of producing an Org AST from an alternative underlying file format will never make sense. But I think that would be surprising. This evolution would clearly require more work than just abstracting out the regular expressions that implement much of Org's syntax in the first sense, and I think Bastien and Nicolas are right that we don't want either notion of Org syntax to become less stable. Still, I think there's a lot of interesting possibilities we could explore if Org's implementations of the two notions of syntax were to become less tightly coupled. Best, Richard -- The Kafka Pandemic: http://thekafkapandemic.blogspot.com The disease DOES progress. MANY people have died from it. And ANYBODY can get it. Denmark: free Karina Hansen NOW.
Re: [O] how to stop the mouse pointer highlighting in agenda?
Igor Sosa Mayor joseleopoldo1...@gmail.com writes: Samuel Wales samolog...@gmail.com writes: it is not the outline path. it is a notification message that occurs when the mouse pointer is over a line. move mouse to a line without clicking and it will show up after a few seconds. yes, I see. You're right... Maybe it is not exactly a org issue, I have the impression... M-x tooltip-mode RET Or increase tooltip-delay. -- Bastien
Re: [O] Bug? (was Request for worg page -- escaping questions)
Nicolas Goaziou n.goaz...@gmail.com writes: Bastien b...@gnu.org writes: Yes, a known bug, we need to decide whether markup should be supported in tables. Try this to see how bad it is: | abc | +3 | |-+| | || Fortunately, the parser doesn't make such error ;) Mhh.. why am I not surprised? :) Yes, it will feel good when we can use the parser for this. Let's first clean up the house a bit before moving some old furniture in the basement. -- Bastien
Re: [O] how to stop the mouse pointer highlighting in agenda?
Bastien b...@gnu.org writes: M-x tooltip-mode RET Or increase tooltip-delay. aha, interesting... but I get the message with tooltip-mode enabled and disabled... -- :: Igor Sosa Mayor :: joseleopoldo1...@gmail.com :: :: GnuPG: 0x1C1E2890 :: http://www.gnupg.org/ :: :: jabberid: rogorido ::::