[Orgmode] org-babel: [PATCH] allow emacs-lisp results to be pretty-printed

2009-10-03 Thread Benjamin Andresen
Hey there, on irc (#org-mode) someone asked how one would go about to insert the result of a emacs-lisp function without it being transformed into a org-mode table. I didn't see any other way, so I wrote a small patch that allows the parameter :results to accept 'pp'. Is this the right way? And w

[Orgmode] Re: allow emacs-lisp results to be pretty-printed

2009-10-03 Thread Benjamin Andresen
Benjamin Andresen writes: > where should this special parameter be documented? I would add a page on Worg that is linked from org-babel.org that contains the following. I have done this for org-babel-screen.org here: http://orgmode.org/worg/org-contrib/babel/org-babel-screen.php (might not

[Orgmode] Re: allow emacs-lisp results to be pretty-printed

2009-10-04 Thread Benjamin Andresen
"Eric Schulte" writes: > Hi Benny, > > Benjamin Andresen writes: > >> Benjamin Andresen writes: >> >>> where should this special parameter be documented? >> >> I would add a page on Worg that is linked from org-babel.org that >>

[Orgmode] Re: Emacs23 Menus "Org" and "Tbl" empty

2009-10-06 Thread Benjamin Andresen
Hey Erich, "e.waelde" writes: > Hello, > > I noticed today that the pulldown menus "Org" and "Tbl" remain > empty, even though org mode is loaded and all functions can be > called by "M-x org-...". > Any hints where to look? Might be a shot in the dark, but: (Only applicable if you use the gtk

[Orgmode] Re: FAQ incorrect

2009-10-27 Thread Benjamin Andresen
Hey W., "W.Bentley MacLeod" writes: > FAQ on how to include all org files in a directory is incorrect (view 85). > Correct code is: > (setq org-agenda-files (file-expand-wildcards "~/org-files/*.org")) You are right. This isn't valid: (setq org-agenda-files "~/my/special/path/org/") M-x org-a

[Orgmode] Re: Search in the archive file by date

2009-10-27 Thread Benjamin Andresen
Hey Marcelo, Marcelo de Moraes Serpa writes: > Hello, > > When someone asks you: "Hey, do you remember what you have done last day > x?", it would be useful to query org to return in the archive for the items > that have been closed that day. Is there a way to do that? Sure. Let me tell you how

[Orgmode] Re: Fast traversing directories

2009-10-31 Thread Benjamin Andresen
Hey Andrea, andrea Crotti writes: > I didn't find any function in elisp, maybe it would be better > to get a list of org-files with an external command (python or shell script), > what do you think? http://orgmode.org/worg/org-faq.php#set-agenda-files-recursively br, benny __

[Orgmode] Re: org-show-effort ideas

2009-11-03 Thread Benjamin Andresen
Hey org-mode, Adam Spiers writes: > I definitely did try it, and I just did another 'git pull' and tried > again, and I still don't see it, so I guess we're talking about > different things ;-) > > To clarify, I'm referring to showing effort via a single keystroke > when on a todo line in the *O

[Orgmode] Org-mode version 6.32trans (release_6.32b.165.g3547); :LOGGING: property works differently from #+SEQ_TODO

2009-11-11 Thread Benjamin Andresen
In a file that looks like this: #+SEQ_TODO: TODO(!) | DONE(!) * TODO Shave (Explicit logging) SCHEDULED: <2009-11-13 Fri .+2d/4d> - State "TODO" from "DONE" [2009-11-11 Wed 11:04] :PROPERTIES: :LOGGING: TODO(!) | DONE(!) :STYLE:habit :END: * TODO Shave (No explicit l

[Orgmode] Re: Speed commands

2009-11-14 Thread Benjamin Andresen
Hey Dan, Dan Davison writes: > (unless (org-heading-has-child-p) (org-cycle)) There is no function by the name of org-heading-has-child-p in the current org-mode tree. I'd like to try the above code. > > Dan br, benny ___ Emacs-orgmode maili

[Orgmode] Re: Speed commands

2009-11-15 Thread Benjamin Andresen
Hey Dan, Dan Davison writes: > Here are simplified versions of the forward- and backward-scroll speed > commands that I'm suggesting. I love it! > Dan br, benny ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list.

[Orgmode] RFC: sort subtree by most recently clocked in and most time spend on

2009-11-23 Thread Benjamin Andresen
Hey there, I wrote a bit of code to do the things in the subject. I'm interested if someone has a better way to deal with the subtree copying thing I'm doing. I'm not really happy with using the kill-ring like that. `org-narrow-subtree' won't work, because `save-excursion' doesn't revert it to t

[Orgmode] Re: sreen : unable to run org-babel-screen-test

2009-11-30 Thread Benjamin Andresen
Hey, bluedian writes: > Hi, > > When running "org-babel-screen-test", a xterm appear with its prompt, but no > message appear. Emacs hangs and my cpu is à 100%. I just tried it myself, and apparently it's broken with the current git. I will have a look and report back with my findings! br, be

[Orgmode] Re: sreen : unable to run org-babel-screen-test

2009-11-30 Thread Benjamin Andresen
Hey, Benjamin Andresen writes: > I will have a look and report back with my findings! I was relying on a variable which used to contain the value it needed, but doesn't do any more. It was a foolish shortcut and now it uses the official route by processing the parameters that are pass

[Orgmode] Re: sreen : unable to run org-babel-screen-test

2009-12-01 Thread Benjamin Andresen
Hey, bluedian writes: > Hi, > > With the last git version (updated by org-track 5 five minutes ago), I have > still the same problem and the same error message. I'm a bit at a loss with debugging this thing non-interactively. (Yeah I know, after the first one was unsuccessful that's early to gi

[Orgmode] Re: Saving and restoring visibility

2009-12-14 Thread Benjamin Andresen
Hey Carsten, Carsten Dominik writes: > Hi, > > I vaguely remember that someone posted code here a > while ago (one year?) to save and restore outline visibility. > > Who remembers or can find back the post? There is Org-mode and saveplace.el http://orgmode.org/worg/org-hacks.php#sec-18 And the

[Orgmode] Re: Know what has been done for a certain date ?

2009-12-23 Thread Benjamin Andresen
Hey Xavier, Xavier Maillard writes: > Hi, > > I heavily use logbook in order to track things. I need a way > to know what has been done for a certain day. The master problem > is that using logbook does not imply I marked something as DONE. It can be > contextual informations (I phoned someon

[Orgmode] Re: Encrypting files for org-mobile

2009-12-29 Thread Benjamin Andresen
Richard Moreland writes: > Hi Daniel, > > There is no support for this in MobileOrg yet, but it has resided on my todo > list for a while. > > Do you currently use any encryption on your local Org-files in Emacs? I've > been meaning to examine AutoEncryption or CryptPlusPlus ( > http://www.emacs

[Orgmode] Re: Date calculations

2009-12-30 Thread Benjamin Andresen
Hey, Fredrik writes: > I'm using a normal org-file as my contact register so I easier can > link tasks to a specific person. I have also added events as birthdays > to each contact but is there some way I can make them show up in the > agenda with some yearly calculations? > > For example a simp

[Orgmode] Re: Date calculations

2009-12-30 Thread Benjamin Andresen
Hey, Benjamin Andresen writes: > I used to do it the way it was done in the manual: > > (info "(org)Weekly/daily agenda") > under Calendar/Diary integration > > %%(diary-anniversary 14 5 1956) Arthur Dent is %d years old I can't for the life of me get

[Orgmode] Re: Date calculations

2009-12-30 Thread Benjamin Andresen
Hey Carsten, Carsten Dominik writes: > On Dec 30, 2009, at 3:21 PM, Benjamin Andresen wrote: > >> Hey, >> >> Benjamin Andresen writes: >> >>> I used to do it the way it was done in the manual: >>> >>> (info "(org)Weekly/daily agen

[Orgmode] Re: Date calculations

2009-12-30 Thread Benjamin Andresen
Memnon Anon writes: > Probably related to these settings in my .emacs: > > (setq european-calendar-style t) ; obsolete! > (setq calendar-date-style 'european) ;(info "(emacs)Date Formats") > > Do you have these set, too? Thanks! If I set it to european, it works. Should the documentation

[Orgmode] Re: Date calculations

2009-12-30 Thread Benjamin Andresen
Hey Carsten, Carsten Dominik writes: > Hi Benjamin, > > can you point out exactly where in the documentation this is located? Sure. org-mode/doc/org.text Line: 6643 I wouldn't know how to phrase it, but maybe a link to (info "(emacs)Special Diary Entries") where this behaviour is explained is

[Orgmode] Re: Update ispell-dictionary to text language

2010-01-11 Thread Benjamin Andresen
Hey Sébastien, Sébastien Vauban writes: > Hello, > > Here my proposal (and my very first self-written chunk of ELisp code) for > switching to the right language for ispell, upon reading the contents of the > meta-tag `LANGUAGE'. I think using File Variables are better for this. For no particula

[Orgmode] Re: Which version org-mode

2010-01-12 Thread Benjamin Andresen
Hey Shawn, Shawn Koons writes: > How can I tell which version of Org-mode I am using? I originally installed > emacs-snapshot and org-mode through Ubuntu's Synaptic Package manager, then > found out about git, which I have used since. I just want to make sure that > I am using the latest versio

[Orgmode] Re: how to unschedule a task in agenda view?

2010-01-14 Thread Benjamin Andresen
Hey Eric, Eric S Fraga writes: > Hello, > > the short question is: how can I easily unschedule a task when in the > agenda view? C-c C-s allows me to re-schedule (as do shifted arrow > keys) but sometimes I simply want to remove the schedule entry for the > item. C-u C-c C-s on the item in the

[Orgmode] Re: how to unschedule a task in agenda view?

2010-01-14 Thread Benjamin Andresen
Hey Eric, Eric S Fraga writes: > At Thu, 14 Jan 2010 11:41:55 +, > Paul Mead wrote: >> >> Eric S Fraga writes: >> >> > Hello, >> > >> > the short question is: how can I easily unschedule a task when in the >> > agenda view? C-c C-s allows me to re-schedule (as do shifted arrow >> > keys)

[Orgmode] Re: New Org-mode talk by Carsten Dominik

2010-03-07 Thread Benjamin Andresen
Hey, Tom writes: > Stefan Vollmar nf.mpg.de> writes: > >> >> Hallo, >> >> we proudly present: >> >> "Emacs Org-mode: Organizing a Scientist's Life and Work" >> > > I noticed the org color config in the talk was much > catchier (e.g. the keywords with bgcolor) than in the default org > conf

[Orgmode] org-mime: [PATCH] Toggle between plaintext and html

2010-04-15 Thread Benjamin Andresen
Hello, I hope I'm not polluting this mailing list wrongly (due to org-mime being contrib and not mainline). I wrote a small patch that gives the function org-mime-toggle-html (+ support) for that I had to unfortunately rewrite `org-mime-multipart' Maybe Eric can look at it and if useful include

[Orgmode] Re: Toggle between plaintext and html

2010-04-15 Thread Benjamin Andresen
"Eric Schulte" writes: > Hi Benny, > > Thanks for the patch. I've refactored it so that it's smaller and only > changes the htmlized portion if `org-mime-htmlize' was called on a > partial region. What do you think about the attached alternative? > > I guess given this patch `org-mime-toggle' s

[Orgmode] Re: Automatic clock-in

2010-04-19 Thread Benjamin Andresen
Hey Andrea, Andrea Crotti writes: > Or is there another better way to do already what I'm asking? Maybe C-u M-x org-clock-in RET does what you want. br, benny ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-

[Orgmode] Re: Poll: Who is using these commands

2010-05-08 Thread Benjamin Andresen
"Eric Schulte" writes: > Carsten Dominik writes: > >> Hi everyone, >> >> I am wondering: >> >> How many of your are using these keys >> >> C-c C-f >> C-c C-b >> C-c C-n >> C-c C-p >> > > Not me, I'm using CM-n, CM-p, CM-u, and CM-d for outline navigation. Same here. I'm also using speed command

[Orgmode] Org-FAQ request for full-text dump

2010-05-12 Thread Benjamin Andresen
Hello guys, quite often people ask question in the IRC-channel (#org-mode on freenode) which are answered in the FAQ. Now I personally find the org-faq very cumbersome to use, due to its javascript-interface that grabs keys. (Just a short thing: I'm faster with my native browser search functional

[Orgmode] Re: Proposal: Emtest as tester

2010-06-07 Thread Benjamin Andresen
Hey Tom, I was wondering what the status was of the emtest inclusion in org-mode? Looks like the tehom-master in the org-mode repo is not the right one (last commit Wed Apr 28 16:39:59 2010 -0500) br, benny ___ Emacs-orgmode mailing list Please use `R

[Orgmode] Re: Debate about "One clock per user, but user is identified"

2010-06-12 Thread Benjamin Andresen
Hey Sébastien, Sébastien Vauban writes: > Hi all, > > What do you think about all this? I just read this and before nobody answers, I'll give you a small POC that should work for you. As far as I can tell it doesn't break anything. (defun org-clock-out-mark-clock () (unless remove (insert (f

[O] [PATCH] fix calc-eval date()

2011-07-09 Thread Benjamin Andresen
((and (stringp s) + (not (string-match org-ts-regexp-both s)) (string-match "\\([0-9]+\\):\\([0-9]+\\)" s)) (let ((min (string-to-number (match-string 1 s))) (sec (string-to-number (match-string 2 s Hope that helps and thanks for the good work everyone, Benjamin Andresen

[Orgmode] Bug: tags grouping not working

2011-01-25 Thread Benjamin Andresen
Hey there, I've just upgraded to the latest org-mode HEAD and noticed that the tag behavior changed. (It now sorts entries, except now grouping is broken.) This is how it used to work: (Assume "#+TAGS: { foo(f) bar(b) } quux(q)" for all of this.) * Foo :foo: now using M-x org-set-tags-command a

[Orgmode] [PATCH] agenda startup: log-mode should be customizable as well

2009-05-13 Thread Benjamin Andresen
Hey there, I was curious as to why a value such log-mode wasn't customizable to be run on start-up as follow-mode and clock-report-mode are. If Carsten thinks this is a good idea, I've attached a patch that may shave of 5 seconds of him adding it. It applies cleanly to current git HEAD. br, benn

[Orgmode] any use for org-clock.el hooks?

2009-06-21 Thread Benjamin Andresen
Hello Carsten, I found myself wanting to run actions after I used the clock so I added hooks to the most commonly actions in regards to clocks. In case anyone is curious: I want to display the currently clocked in task in my statusbar, and so I write it to a file and have an inotify script update

[Orgmode] Re: Lisp Link type for Org mode

2009-06-22 Thread Benjamin Andresen
Hey Jonathan, Jonathan Arkell writes: > Hey everyone > > I've added a very simple link type to Org. This is descendent from > Sacha Chua's lisp link plugin for planner, and works the same way. > > This is a great way to make active buttons inside of your org mode > files. I am not sure how well

[Orgmode] Re: breaking protocol (org-protocol.el)

2009-06-23 Thread Benjamin Andresen
Hey, sav...@nsidc.org writes: > I'm looking to get the file org-protocol.el. I've looked at the worg > site at the org-protocol page, but the only direct link I can find on it > is this, http://orgmode.org/worg/org-tutorials/org-protocol.el, which is > dead. > > Could someone point me to the corr

[Orgmode] Dynamically adjusti tags position

2009-07-08 Thread Benjamin Andresen
hey there, I wrote a bit of code that allows me to have the tags always at the utmost right position in the file... I often have windows that are bigger than the standard 80 characters wide default and I dislike seeing the tags in the middle of the window. I started doing this and found out that

[Orgmode] Re: Vertical split in Emacs 23

2009-07-15 Thread Benjamin Andresen
Hey Paul, Paul Mead writes: > Hi, > > I've recently upgraded to Emacs 23, and I'm not at all impressed with > the vertical split that it seems to prefer when there's supposedly > enough buffer width to allow it - the Agenda gets squashed up and things > like the TODO quick selection menus look t

[Orgmode] How to ignore horizontal lines in tables and references

2009-07-31 Thread Benjamin Andresen
Hello everyone, I'm having a bit of a problem with tables and references. I try to use tables + spreadsheet capabilities for data entry while testing certain things, and one table design that works conceptually for me is the following: | Attempt | Start | End|

[Orgmode] Re: How to ignore horizontal lines in tables and references

2009-07-31 Thread Benjamin Andresen
Hey, Benjamin Andresen writes: > | Attempt | Start | End| Success | Wait > in Min | > |-+++-+-| > | 1 | <2009-07-31 Fri 04:43> | <2009-

[Orgmode] Re: Org-mode and GPG (EasyPG)

2009-08-02 Thread Benjamin Andresen
Hey everyone, Maurice Boucher writes: > Hello, > > Kyle Sexton disait le 31/07/2009 que : > >> Does this mean you were able to get the agenda view working with >> EasyPG as well? > > In my .emacs, I have : > , > | (require 'epa) > | (epa-file-enable) > | (setq epa-file-cache-passphrase-for-

[Orgmode] Re: Day workflow: need your opinion

2009-08-04 Thread Benjamin Andresen
Hey Xavier, Xavier Maillard writes: > Ex: > > a) I doing some non urgent (planned) DBA tasks (call this project A) > b) someone calls me (interrupting Project A) > c) I am doing what urgency of b) is needed > d) when c) is finished, I get back to project A > > At my job, they often rules the "re

[Orgmode] Re: Keeping org files under git - trimming the repository

2009-08-04 Thread Benjamin Andresen
Hey Ben, Ben Alexander writes: > Different people cite different benefits: > + safety while editing. If a slip of the fingers hits C-k on a folded > line and you don't notice it for a long time, git allows you to find > when that happen (git blame) and 'cherry-pick' a patch to bring the > lost

[Orgmode] Re: How do people do it: lots of tags?

2009-08-13 Thread Benjamin Andresen
Hey Alan, "Alan E. Davis" writes: > Working in an 80-90 character line format, I am afraid to use more than a > few tags, and I try to make them short. After well over a year, I am still > a bumbling novice with org-mode, but I'm beginning to have some insight, > perhaps, into how some things c

[Orgmode] Re: How to measure a project's %complete?

2009-08-18 Thread Benjamin Andresen
Hey Christopher, Christopher DeMarco writes: > * PROJECT Overhaul personal productivity [50%] > ** DONE Clean my desk > ** TODO Learn Org I copied exactly those 3 lines and put them in foo.bar and pressed C-c C-t on "Learn Org" and the [50%] became [100%] If this doesn't work for you, you migh

[Orgmode] Re: POLL: Change of keys to move agenda through time

2009-08-25 Thread Benjamin Andresen
Carsten Dominik writes: > Hi, > > we have the proposal to do the following key changes in the agenda: > > 1. Make the cursor keys LEFT and RIGHT do normal cursor motion again > 2. Use the keys "n" and "p" to switch the agenda to earlier >and later dates. But "n" and "p" are already used to m

[Orgmode] Re: POLL: Change of keys to move agenda through time

2009-08-25 Thread Benjamin Andresen
Hey Bastien, Bastien writes: > Benjamin Andresen writes: >> But "n" and "p" are already used to move up and down entries in the >> org-agenda. >> Where would they go to then? > > C-n and C-p, like in any Emacs buffer? Sure. That's a given.

[Orgmode] Re: question and use example

2009-08-26 Thread Benjamin Andresen
Hey Paul, Paul Menair writes: > My problem is this. I populate the fifth field with c-- c-u c-y. I > would be nice if it happened automatically, but that's no big deal. > However, I've been going through and manually entering the sixth > field, and that does end up being a hassle. I whipped s

[Orgmode] Re: Refiling goes to the wrong place

2009-08-27 Thread Benjamin Andresen
Hey, Bernt Hansen writes: > [snip] I have the same behavior from time to time. But whenever I try to find a reproducible scenario it disappears. It also never happens twice in a row, same as with Bernt. br, benny ___ Emacs-orgmode mailing list Rem

[Orgmode] Re: Useful utility function: org-sort-multi

2009-08-30 Thread Benjamin Andresen
Hey Carsten, Carsten Dominik writes: > On Aug 29, 2009, at 3:38 AM, Ryan C. Thompson wrote: > > Hi Ryan, > > this looks interesting, but I am not sure I understand how it works. > It looks to me that each sorting step will completely re-sort the entire > list of items, so the final sorting will

[Orgmode] Re: Org-mode version 6.30trans; HTML exporting problem

2009-09-21 Thread Benjamin Andresen
Andrew Stribblehill writes: > [snip] do you have org-mode/contrib/lisp at the beginning of your load-path? The error you're seeing seems to be from using an old version of htmlize (Maybe from a different source?). The one in contrib should work. HTH, benny ___

[Orgmode] org-babel: interactive terminal support

2009-09-22 Thread Benjamin Andresen
Hello, after seeing org-babel I immediately thought of the eev project by Eduardo Ochs (http://angg.twu.net/) Basically I wanted to do what he does in this video: http://angg.twu.net/eev-current/anim/channels.anim.html So I wrote a small org-babel gnu screen interface. Eev does the same with "ex

[Orgmode] Re: org-babel: interactive terminal support

2009-09-23 Thread Benjamin Andresen
Hey Eric, "Eric Schulte" writes: > Benjamin Andresen writes: > > So if I understand the purpose is to evaluate source-code blocks in > Org-mode files which will open terminals in new windows, send shell > commands to those terminals, and either display informati

[Orgmode] Re: org-babel: interactive terminal support

2009-09-25 Thread Benjamin Andresen
Hey Dan, Dan Davison writes: > Hi Benny, > > This looks very interesting and I think it's extremely likely that we'll > want to include your code -- thanks very much. Having said that, I'm > being a bit dense: would you mind expanding a bit on what this currently > does, and what it has the pote

[Orgmode] Re: Question on spreadsheet formula

2009-09-25 Thread Benjamin Andresen
Hey RC, If you set the value of D2 to 0 what you want will be achieved. The table would look like this: |-+--+--+---| | No. |P |E | B | |-+--+--+---| | | | | 0 | | 1 | 5000 | 2000 | 3000 | | 2 | 7000 | 1000 | 9000 | | 3 | 5000

[Orgmode] Re: Change the color of the "hidestars" property

2009-09-26 Thread Benjamin Andresen
Marcelo de Moraes Serpa writes: > Hello, > > How could I change the color that the hidestarts feature use ? I'm using a > different theme, and org applies black to the starts to "hide" it, but the > background color of this theme is a ton of grey. Put the point on the black star and execute M-x

[Orgmode] Re: org-babel: interactive terminal support

2009-09-28 Thread Benjamin Andresen
Dan Davison writes: > Hi Benny, > > Thanks a lot for that, it looks really promising. Do you want to create > a branch in a publicly accessible org-mode repo containing your > additions? Sure. Should it really be a branch? At the moment it's a single file just like the others that are located i

[Orgmode] Re: Problems using org-babel

2009-10-03 Thread Benjamin Andresen
Hey Keith, Keith Lancaster writes: > I enabled org-babel according to the instructions on worg, but am > running into a number of issues which I am guessing are a function of > my configuration. For example, enabling org-babel completely breaks > remember mode, giving me a "wrong ..." argument (

[O] Babel: a way to get the org-heading into source block

2016-09-18 Thread Benjamin Andresen
Hello, small intro in case there is a better way than I thought up: I've just started using Ledger and wanted to use Babel to tangle the ledger file. Every entry is its own heading: * <2016-07-01 Fri> * Hollywood | Monthly rent #+begin_src ledger :tangle yes 07-01 * Hollywood | Monthly rent