Re: [Orgmode] Re: TODO type problem on speedbar and imenu.
Hi. > I won't answer your mail. Sorry. Just having a question: how do you have the > red "V" after the file names? Is it some sort of versioning marker? I don't set by my effort, but I manage org files with git(vc-git). I can reproduce this on GNU Emacs 23.2.1 (i386-mingw-nt6.0.6002) of 2010-05-08 on PC Org-mode version 7.01trans (release_7.01g.22.gec034.dirty) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Fix clocking on capture completion
Hi, this patch fixes the problem for me. I'm on release_7.01g.24.g6b5cf.dirty A somewhat related question: I use your bh/clock-in-to-next function to change the todo state to STARTED when clocking in TODO tasks. Unfortunately it is being applied to Capture buffers. I tried changing the buffer-name to "CAPTURE-*" but that didn't help. Thanks, Viktor Bernt Hansen wrote: > * lisp/org-capture.el (org-capture-finalize): Fix clock in of interrupted > task during capture finalize > > Calling org-capture-get inside the org-with-point-at macro does not > work when the current clocking task and the capture target buffer are > the same. In this case the captured task would continue clocking > instead of switching back to the previously clocking task. > --- > I think this patch fixes the issue but it should receive more testing. > Please report back if this works or not. > > -Bernt > > > lisp/org-capture.el |5 +++-- > 1 files changed, 3 insertions(+), 2 deletions(-) > > diff --git a/lisp/org-capture.el b/lisp/org-capture.el > index cf09dce..2efed78 100644 > --- a/lisp/org-capture.el > +++ b/lisp/org-capture.el > @@ -467,8 +467,9 @@ bypassed." > (markerp (org-capture-get :interrupted-clock 'local)) > (buffer-live-p (marker-buffer > (org-capture-get :interrupted-clock 'local > - (org-with-point-at (org-capture-get :interrupted-clock 'local) > - (org-clock-in)) > + (let ((clock-in-task (org-capture-get :interrupted-clock 'local))) > + (org-with-point-at clock-in-task > + (org-clock-in))) >(message "Interrupted clock has been resumed"))) > >(let ((beg (point-min)) > -- > 1.7.2 > > > ___ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] Fix clocking on capture completion
Hi Bernt, thanks for the updated version. It works as expected. Cheers, Viktor Bernt Hansen wrote: > Viktor Rosenfeld writes: > > > A somewhat related question: I use your bh/clock-in-to-next function to > > change the todo state to STARTED when clocking in TODO tasks. > > Unfortunately it is being applied to Capture buffers. I tried changing > > the buffer-name to "CAPTURE-*" but that didn't help. > > I've updated the function for capture mode but not posted the changes to > my doc.norang.ca yet. Here's the function that works for me with > capture and remember mode. I'm going to be removing the remember mode > logic since I no longer use that. > > (defun bh/clock-in-to-next (kw) > "Switch task from TODO to NEXT when clocking in. > Skips remember tasks and tasks with subtasks" > (if (and (string-equal kw "TODO") > (not (string-equal (buffer-name) "*Remember*")) > (not (and (boundp 'org-capture-mode) org-capture-mode))) > (let ((subtree-end (save-excursion (org-end-of-subtree t))) > (has-subtask nil)) > (save-excursion > (forward-line 1) > (while (and (not has-subtask) > (< (point) subtree-end) > (re-search-forward "^\*+ " subtree-end t)) > (when (member (org-get-todo-state) org-not-done-keywords) > (setq has-subtask t > (when (not has-subtask) > "NEXT" ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] org-insert-time-stamp: fix value of org-last-inserted-timestamp
* lisp/org.el (org-insert-time-stamp): Fix org-insert-time-stamp so that the value of org-last-inserted-timestamp includes time range. Previously, org-last-inserted-timestamp included only the beginning of a time range (e.g., 10:00 instead of 10:00-12:00). This caused parsing problems elsewhere, such as when rescheduling items with repeating timestamps and a time range (the repeater was removed during rescheduling). --- lisp/org.el |6 ++ 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 53d47f1..41c3e90 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -14556,7 +14556,6 @@ The command returns the inserted time stamp." stamp) (if inactive (setq fmt (concat "[" (substring fmt 1 -1) "]"))) (insert-before-markers (or pre "")) -(insert-before-markers (setq stamp (format-time-string fmt time))) (when (listp extra) (setq extra (car extra)) (if (and (stringp extra) @@ -14566,9 +14565,8 @@ The command returns the inserted time stamp." (string-to-number (match-string 2 extra (setq extra nil))) (when extra - (backward-char 1) - (insert-before-markers extra) - (forward-char 1)) + (setq fmt (concat (substring fmt 0 -1) extra (substring fmt -1 +(insert-before-markers (setq stamp (format-time-string fmt time))) (insert-before-markers (or post "")) (setq org-last-inserted-timestamp stamp))) -- 1.7.2 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: sharing Org-mode files for collaboration
Sébastien Vauban writes: > Hello Carles, > >> There have been some threads here about sharing and collaboratively >> editing Org-mode files. I have a LAN with a central server and Samba >> shares, all clients have Emacs and Org-mode installed. >> >> Sharing of calendars and tasks could be done through Org agenda. Right >> now I am implementing a very simple setup: >> >> - a shared folder with one org file per user >> >> - each user has writing permissions for his own file and reading >> permissions for all other org files >> >> - org-agenda-files of each user includes the names of the shared files >> of the other users >> >> Do you see any problems arising from this setup. Any other suggestions >> how it could be improved or extended? > > I have launched such a discussion, about extending the CLOCK times with a > suffix identifying the user. I have not had that much amount of reaction. > Maybe, this is not (yet) a main theme, currently. > > I find your setup interesting. The only drawback, for me, is that the next > thing we want is to work on common tasks, meaning we want to clock on common > tasks. Hence, my topic > http://osdir.com/ml/emacs-orgmode-gnu/2010-06/msg00277.html. > > Best regards, > Seb Hi Carles, I've also been following the previous collaboration discussions, but haven't recently had a personal collaboration need. I would second Sébastien's suggestions of maintaining a single Org-mode file to be shared by all users, that way each task need only appear once, and users can share notes, task information etc... in that one file. >From one previous thread, the following can be used to associate each user's username with clock in-out information. --8<---cut here---start->8--- (defun org-clock-out-mark-clock () (unless remove (insert (format " (%s)" user-full-name (add-hook 'org-clock-out-hook 'org-clock-out-mark-clock) --8<---cut here---end--->8--- Also, take a look at the `org-log-note-headings' variable (documentation included below [1]), which consists of an easily customized format string, and can be used to associate information (most notably username) with task state changes. Summary information (e.g. who's been working on what) could then be collected using the username tags above in combination with something like org-collector [2]. I certainly find this area interesting, and I'd be interested to hear how your collaboration experience plays out. Best -- Eric Footnotes: [1] ,[org-log-note-headings] | org-log-note-headings is a variable defined in `org.el'. | Its value is shown below. | | Documentation: | Headings for notes added to entries. | The value is an alist, with the car being a symbol indicating the note | context, and the cdr is the heading to be used. The heading may also be the | empty string. | %t in the heading will be replaced by a time stamp. | %T will be an active time stamp instead the default inactive one | %s will be replaced by the new TODO state, in double quotes. | %S will be replaced by the old TODO state, in double quotes. | %u will be replaced by the user name. | %U will be replaced by the full user name. | | In fact, it is not a good idea to change the `state' entry, because | agenda log mode depends on the format of these entries. | | You can customize this variable. | | Value: | ((done . "CLOSING NOTE %t") | (state . "State %-12s from %-12S %t") | (note . "Note taken on %t") | (reschedule . "Rescheduled from %S on %t") | (delschedule . "Not scheduled, was %S on %t") | (redeadline . "New deadline from %S on %t") | (deldeadline . "Removed deadline, was %S on %t") | (refile . "Refiled on %t") | (clock-out . "")) | | [back] ` [2] http://orgmode.org/worg/org-contrib/org-collector.php ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: sharing Org-mode files for collaboration
Hello Sébastien > > There have been some threads here about sharing and collaboratively > > editing Org-mode files. I have a LAN with a central server and Samba > > shares, all clients have Emacs and Org-mode installed. > > > > Sharing of calendars and tasks could be done through Org agenda. Right > > now I am implementing a very simple setup: > > > > - a shared folder with one org file per user > > > > - each user has writing permissions for his own file and reading > > permissions for all other org files > > > > - org-agenda-files of each user includes the names of the shared files > > of the other users > > > > Do you see any problems arising from this setup. Any other suggestions > > how it could be improved or extended? > > I have launched such a discussion, about extending the CLOCK times with a > suffix identifying the user. I have not had that much amount of reaction. > Maybe, this is not (yet) a main theme, currently. > > I find your setup interesting. The only drawback, for me, is that the next > thing we want is to work on common tasks, meaning we want to clock on common > tasks. Hence, my topic http://osdir.com/ml/emacs-orgmode-gnu/2010-06/msg00277.html. I personally do not use clocking but common tasks sound useful. However the question remains as to the sharing and simultaneous editing of the files by multiple persons. In the clock thread you mention your use of SVN for that. For my requirements SVN would be overkill, hence my simple setup as a workaround. More collaboration features for Org-mode would be great though. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] gnuplot with errorbars in org-mode
Hi, I think you're on the right path using Org-babel, here is an altered version of your gnuplot code block which should work. #+srcname: plot-data-w-err #+begin_src gnuplot :var data=data-table :file example.png set title 'My plot' plot "$data" using 1:2:3:4:5:6 with xyerrorlines title 'Ordinate (Y)' #+end_src This assumes that you have named your table with a line like #+tblname: data-table Notice that the example above uses two "header arguments", the ":var" header argument specifies that the data from data-table should be saved into the variable named "data", and the :file header argument specifies that gnuplot should save the resulting graph to a file named "exmaple.png" and that a link to that graph should be inserted on evaluation of the code block. Please see the quick-guide and the manual for more information on code block syntax and header arguments. Best -- Eric Quick Guide:Babel http://orgmode.org/guide/Working-With-Source-Code.html#Working-With-Source-Code Manual:Babel http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code Suvayu Ali writes: > Hi everyone, > > I am a new org-mode user and this is my first post to the mailing > list. Lately I have been using org-mode to manage the data for a study > I'm doing for my research project. I primarily use the spreadsheet > features to do all the calculations and then use gnuplot to plot the > final result. For all the basic plotting it works great, but I am > having trouble when I want error bars in my plot. > > To demonstrate my point here is a small example. > >> #+PLOT: title:"My plot" ind:1 deps:(2) type:2d with:xyerrorlines >> | Abscissa (X) | Ordinate (Y) | X low edge | X high edge | Y low edge | Y >> high edge | >> |--+--++-++-| >> | 60 |1.1140741 | 0020 |0100 | 1.1699508 | >> 1.0680423 | >> | 150 |1.1187818 | 0100 |0200 | 1.1593492 | >> 1.0855438 | >> | 350 |1.1193459 | 0200 |0500 | 1.1331885 | >> 1.1086636 | >> | 600 |1.1029173 | 0500 |0700 | 1.0940769 | >> 1.1121185 | >> | 850 |1.0841388 | 0700 |1000 | 1.0676310 | >> 1.1000886 | >> | 1250 |1.0358938 | 1000 |1500 | 1.0127586 | >> 1.0586916 | >> | 2000 | 0.89370079 | 1500 |2500 | 0.88014981 | >> 0.925 | > > This gives me an error like this, > >> gnuplot> plot '/tmp/org-plot30213YHV' using 1:2 with xyerrorlines title >> 'Ordinate (Y)' >> Not enough columns for this style > > I have tried changing the "#+PLOT:" line to say this, > >> #+PLOT: title:"My plot" ind:1 deps:(2 3 4 5 6) type:2d with:xyerrorlines > > But that doesn't work either. I think the problem is org-plot doesn't > recognise that when plotting with error bars, gnuplot expects more > than two columns of data. So a command like this should be sent to > gnuplot, > >> plot '/tmp/org-plot30213YHV' using 1:2:3:4:5:6 with xyerrorlines title >> 'Ordinate (Y)' > > In fact typing this on the gnuplot terminal actually generates the > desired plot! > > > So I thought maybe I should try org-babel. So I tried something like this, > >> #+srcname: plot-data-w-err >> #+begin_src gnuplot >> set title 'My plot' >> plot 'data-table' using 1:2:3:4:5:6 with xyerrorlines title 'Ordinate (Y)' >> #+end_src > > and gave my table a name like this, > > #+tblname: data-table > > But that didn't behave as I was expecting it to. I think I don't quite > understand how to pass a table as an input to a source block. > > I was hoping someone on the list could either help me understand how > babel uses tables as inputs, or pass the correct command to gnuplot > with org-plot. BTW, org-mode is phenomenal. Loving every bit of > it. Thank you Carsten /et al./ :) > > Specifics: > Org-mode version 7.01 > GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.20.1) of > 2010-05-13 on x86-07.phx2.fedoraproject.org > gnuplot 4.4 patchlevel 0 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [PATCH] org-export-generic, "text markup" -- and a request
wrote: >[1 ] >[1.1 ] >On Sat, Jul 24, 2010 at 01:49:44PM +0200, David Maus wrote: >> >> Hi Tomás, >> >> Could I asked you to send the patch again as an attachment of type >> text/plain? If you do so Org mode's patchtracker is able to pick it >> up for further review. >OK, I'll retry -- seems I made a mistake the first round. Here it >goes... Thanks, the patchtracker catched it[1]. >(BTW -- has anyone an idea why I can't subscribe to the list?) Uh... What does it mean, you cannot subscribe to the list? HTH, -- David [1] http://patchwork.newartisans.com/patch/169/ -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpTmHMUCd27l.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Bug: possible bug in latex export [7.01trans (release_6.36.735.g15ca.dirty)]
Stephen Eglen wrote: >Neither the heading or text of section 'B' appears due to the incorrect >level of B (three stars rather than two). If I correct the level for B, >the heading and text appears. >I found this today when working on a document. It is my fault for >getting the level of heading B wrong, but is it possible to keep the >text in the pdf, or put a heading like '2.0.1 B'? FYI: This is a know limitation of the LaTeX exporter[1] and the current state of this issue (dealing with skipped levels) is that patches for the problem are welcome. I agree that even if skipped-level-headlines are not allowed, they shouldn't be silently droped neither. Best, -- David [1] http://thread.gmane.org/gmane.emacs.orgmode/26413 -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpCHylmbOkDl.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] firefox problem with org-protocol
I don't seem to be able to add emacsclient as a handler for org-capture in firefox 3.6.7. When I click on the bookmark, I simply get a message telling me that there is no helper app associated with the file -- with no option to add my own. Anybody know a way to work around this? d. -- Daniel Goldin 213.926.1960 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [BUG] Org-capturing items to clock
Puneeth wrote: >Hi all, >I've found a bug with capturing as item to a running clock. I reduced >my dot-emacs to the bare minumum(given below), but the problem >continues. I can confirm this with Org-mode version 7.01trans (release_7.01g.24.g6b5cf) on GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-05-16 on raven, modified by Debian The list item with the link is placed above the second task's headline in the capture buffer.[1] Best, -- David [1] Screenshot: http://s10.directupload.net/images/user/100725/ukiomdma.png -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp5OaLa0V2VE.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mode 7.01, error while scheduling item
Marcelo de Moraes Serpa wrote: >GNU Emacs 23.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.29) of 2010-05-08. >Backtrace attached. Thanks. It looks like a problem with calendar.el: Org tries to use a function in the calendar-buffer named "*Calendar*" and fails because there is no window that contains such a buffer. - are there any customizations starting with "calendar-" in place? - can you open the calendar using M-x calendar RET? - if you can open the calendar, what is the name of the calendar buffer? To find out the name of the calendar buffer use this simple function: (defun dmj/print-buffer-name () "Print name of current buffer." (interactive) (print (buffer-name))) Simply place cursor after this expression and evaluate it (C-x C-e). After this you can M-x dmj/print-buffer-name RET to display the (internal) name of the calendar buffer. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp3nUMJYxWhi.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] firefox problem with org-protocol
Daniel Goldin wrote: >I don't seem to be able to add emacsclient as a handler for >org-capture in firefox 3.6.7. When I click on the bookmark, I simply >get a message telling me that there is no helper app associated with >the file -- with no option to add my own. Anybody know a way to work >around this? There was recently a thread that discuessed this: http://thread.gmane.org/gmane.emacs.orgmode/27362 Does one of the solutions there solve the problem for you? HTH, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgp682ruXtN3r.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] List improvement v.2
Hello, > Eric Schulte writes: > 2) This is very minor, but could you rebase your branch against master? >That would make switching back and forth slightly easier. I rebased against master and pushed to github. > 3) Since I can't help but relate things to Babel... What do you think >about having list types recognized by Babel (as arrays). This could >add nice flexibility to passing data back and forth between Babel and >the buffer, it could make it possible to do some fancy list stuff, >and if we add Hash-Maps or Dictionaries to Babel as first class >objects (which seems like a reasonable move at some point in the >nearish future) then they could integrate well with description >lists. It's a good idea, and I think the job from org-list side is already done, thanks to Bastien Guerry. You should have a look at `org-list-parse-list' and `org-list-to-generic'. With both of them, you can change a list back and forth to anything you'd like. Regards, -- Nicolas ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] LaTeX table export issue
Bart Bunting wrote: >Hi all, >I have found what is possibly a bug in the LaTeX export in org-mode but >I'm not totally sure. >I am no LaTeX expert, in fact I know very little about it. I have used >a process of ilimination to try and produce the simplest case I can to >demonstrate the issue. >What happens is that if I have a table at the top of my document before >a heading line and use the #+ATTR_LaTeX: setting it appears that the >settings used in that #+ATTR_LaTeX: line are then used for all >subsequent tables and other #+ATTR_LaTeX: lines are ignored. >If I add a heading line before the first #+ATTR_LaTeX: line then each >table works as expected. I can confirm this and think this is should be considered a bug: Whatever Org does with the element before the first headline it should not silently ignore the setting for following tables with a #+ATTR_LaTeX option. Thanks for reporting, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpHDXS4UqdQP.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] web site bug
Robert Klein wrote: >on the web site, the link to the HTML version of the compact guide >actually links to the full manual. >(http://orgmode.org/index.html#sec-4_1 first link) Thanks for reporting. Seems this is already fixed. Best, -- David -- OpenPGP... 0x99ADB83B5A4478E6 Jabber dmj...@jabber.org Email. dm...@ictsoc.de pgpmPvaQwzDmQ.pgp Description: PGP signature ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] gnuplot with errorbars in org-mode
This works like a charm Eric!! Now with org-babel working I can imagine all sorts of wonderful possibilities. I can now have common code blocks which are called to setup the gnuplot terminal depending on the need (say for png or eps or just regular interactive) for different sets of data or different output requirements! Thank you sooo much. :) On 25 July 2010 07:48, Eric Schulte wrote: > Hi, > > I think you're on the right path using Org-babel, here is an altered > version of your gnuplot code block which should work. > > #+srcname: plot-data-w-err > #+begin_src gnuplot :var data=data-table :file example.png > set title 'My plot' > plot "$data" using 1:2:3:4:5:6 with xyerrorlines title 'Ordinate (Y)' > #+end_src > > This assumes that you have named your table with a line like > > #+tblname: data-table > > Notice that the example above uses two "header arguments", the ":var" > header argument specifies that the data from data-table should be saved > into the variable named "data", and the :file header argument specifies > that gnuplot should save the resulting graph to a file named > "exmaple.png" and that a link to that graph should be inserted on > evaluation of the code block. Please see the quick-guide and the manual > for more information on code block syntax and header arguments. > > Best -- Eric > > Quick Guide:Babel > http://orgmode.org/guide/Working-With-Source-Code.html#Working-With-Source-Code > > Manual:Babel > http://orgmode.org/manual/Working-With-Source-Code.html#Working-With-Source-Code > > Suvayu Ali writes: > >> Hi everyone, >> >> I am a new org-mode user and this is my first post to the mailing >> list. Lately I have been using org-mode to manage the data for a study >> I'm doing for my research project. I primarily use the spreadsheet >> features to do all the calculations and then use gnuplot to plot the >> final result. For all the basic plotting it works great, but I am >> having trouble when I want error bars in my plot. >> >> To demonstrate my point here is a small example. >> >>> #+PLOT: title:"My plot" ind:1 deps:(2) type:2d with:xyerrorlines >>> | Abscissa (X) | Ordinate (Y) | X low edge | X high edge | Y low edge | Y >>> high edge | >>> |--+--++-++-| >>> | 60 | 1.1140741 | 0020 | 0100 | 1.1699508 | >>> 1.0680423 | >>> | 150 | 1.1187818 | 0100 | 0200 | 1.1593492 | >>> 1.0855438 | >>> | 350 | 1.1193459 | 0200 | 0500 | 1.1331885 | >>> 1.1086636 | >>> | 600 | 1.1029173 | 0500 | 0700 | 1.0940769 | >>> 1.1121185 | >>> | 850 | 1.0841388 | 0700 | 1000 | 1.0676310 | >>> 1.1000886 | >>> | 1250 | 1.0358938 | 1000 | 1500 | 1.0127586 | >>> 1.0586916 | >>> | 2000 | 0.89370079 | 1500 | 2500 | 0.88014981 | >>> 0.925 | >> >> This gives me an error like this, >> >>> gnuplot> plot '/tmp/org-plot30213YHV' using 1:2 with xyerrorlines title >>> 'Ordinate (Y)' >>> Not enough columns for this style >> >> I have tried changing the "#+PLOT:" line to say this, >> >>> #+PLOT: title:"My plot" ind:1 deps:(2 3 4 5 6) type:2d with:xyerrorlines >> >> But that doesn't work either. I think the problem is org-plot doesn't >> recognise that when plotting with error bars, gnuplot expects more >> than two columns of data. So a command like this should be sent to >> gnuplot, >> >>> plot '/tmp/org-plot30213YHV' using 1:2:3:4:5:6 with xyerrorlines title >>> 'Ordinate (Y)' >> >> In fact typing this on the gnuplot terminal actually generates the >> desired plot! >> >> >> So I thought maybe I should try org-babel. So I tried something like this, >> >>> #+srcname: plot-data-w-err >>> #+begin_src gnuplot >>> set title 'My plot' >>> plot 'data-table' using 1:2:3:4:5:6 with xyerrorlines title 'Ordinate (Y)' >>> #+end_src >> >> and gave my table a name like this, >> >> #+tblname: data-table >> >> But that didn't behave as I was expecting it to. I think I don't quite >> understand how to pass a table as an input to a source block. >> >> I was hoping someone on the list could either help me understand how >> babel uses tables as inputs, or pass the correct command to gnuplot >> with org-plot. BTW, org-mode is phenomenal. Loving every bit of >> it. Thank you Carsten /et al./ :) >> >> Specifics: >> Org-mode version 7.01 >> GNU Emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+ Version 2.20.1) of >> 2010-05-13 on x86-07.phx2.fedoraproject.org >> gnuplot 4.4 patchlevel 0 > -- Suvayu Open source is the future. It sets us free. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] question about date-tree
Below is an elisp function which does the required work. I now call this function at the beginning of the month so my journal.org file is pre-populated to make it easier for me to set future todos. You can also call it for any future month/year combination you want. Feel free to add it to orgmode or just let people who want it add to their own system manually. Thanks again for orgmode! ; Elisp code follows: (defun create-dates-for-month-and-year (month year) "Create entries in date-tree format in current buffer. This function creates nodes for all days in given the given MONTH and YEAR in the current buffer (if they do not exist already). " (let ((day 1) (max-days (if (= 2 month) (if (date-leap-year-p year) 29 28) (nth month (list nil 31 28 31 30 31 30 31 31 30 31 30 31 ) (while (<= day max-days) (org-datetree-find-date-create (list month day year)) (setq day (+ 1 day)) ) ) ) On Tue, Jul 20, 2010 at 10:27 AM, Carsten Dominik wrote: > > On Jul 19, 2010, at 11:46 PM, Eric S Fraga wrote: > >> On Mon, 19 Jul 2010 08:10:49 -0400, "Emin.shopper Martinian.shopper" >> wrote: >>> >>> Dear Experts, >>> >>> I really like the date-tree feature of org-remember and use it to plan >>> my daily agenda. Often I want to plan things in the future and fill >>> out an entry for a couple of weeks hence. It's slightly annoying to >>> try to remember the day of week and date so that it will match the >>> date-tree format. > >>> >>> Is there a function/utility/suggestion for prepopulating a month's >>> worth of date-tree daily nodes? >>> >>> Thanks, >>> -Emin >>> >>> ___ >>> Emacs-orgmode mailing list >>> Please use `Reply All' to send replies to the list. >>> Emacs-orgmode@gnu.org >>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> >> I know this doesn't actually answer your question but what I do is >> simply bring up the agenda view and then insert an entry in the right >> day using "i d". This will create a date-tree entry if you've set the >> right variable, specifically org-agenda-diary-file to point to the >> date-tree file. > > > Well, > > this is hard because org-capture places the entry *before* you > get a chance to set those dates. > > - Carsten > >> >> However, I also would like org-capture to handle this situation... >> for instance, I would sometimes like todo entries that I define with >> org-capture to be placed in a date tree structure for either of the >> scheduled or deadline dates that todo entry is initially defined with. >> -- >> Eric S Fraga >> GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D >> ___ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > - Carsten > > > > ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Finding old appointments
Sébastien Vauban writes: Hi Sébastien, > What's the info available about your past appointments? I'm a bit > puzzled about what I have to do with old appointments. Let me > explain... > > I have such appointments: > > ** Dentist ><2010-07-28 Wed 10:45-11:15> > > ** Meeting client ABC ><2010-08-19 Thu 10:00-12:00> Yes, I have many of those "Meeting with John Doe" appointments with no subtree, too. Additionally, there are some more complex outdated entries, that have subtrees and done todos. > OK. We're on 1st of August. What do I do with the first entry > (dentist)? > > - leave it like it is? > - change the angle brackets by [] (to explictly make it inactive)? > - remove it? I'd tag it with the archive tag. > Is it the type of information you have about your past entries? > Active or inactive timestamps? Yes, what I want to spot are enties with an active (or also inactive? not sure about this one) timestamp that is before today, and if it's a TODO, it has to be in a DONE state. The same must hold for any subtrees. > Would we do the full "right clocking behavior", we should have clocked > in and out such entries. So, the right info would be in LOGBOOK. > > Do you have such info as well about your past entries? I don't use clocking, but only changes to the TODO state are recorded in LOGBOOK. > What is the right behavior? Well, basically I'm just looking for a search facility that shows me an agenda view with all entries that contain only timestamps before today and no pending todos, so that I can use the agenda commands to act on them. Some will be deleted, others archived. Bye, Tassilo ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: [PATCH] org-export-generic, "text markup" -- and a request
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Jul 25, 2010 at 04:47:24PM +0200, David Maus wrote: > wrote: > >[1 ] > >[1.1 ] > >On Sat, Jul 24, 2010 at 01:49:44PM +0200, David Maus wrote: > >> > >> Hi Tomás, > >> > >> Could I asked you to send the patch again as an attachment of type > >> text/plain? If you do so Org mode's patchtracker is able to pick it > >> up for further review. > > >OK, I'll retry -- seems I made a mistake the first round. Here it > >goes... > > Thanks, the patchtracker catched it[1]. Thank *you* :-) > >(BTW -- has anyone an idea why I can't subscribe to the list?) > > Uh... What does it mean, you cannot subscribe to the list? (blush) oh, nevermind. I now found mailman's confirmation message It was being filed in some place I didn't expect. Sorry for the noise... Regards - -- tomás -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFMTGfcBcgs9XrR2kYRAqwpAJ43JGeulTTiMYIbtqcRNe/mbHMDkgCdHkp5 aPbx3RZlnt9i+45IN4r4YvI= =iAC8 -END PGP SIGNATURE- ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Finding old appointments
Tassilo Horn writes: > Additionally, there are some more complex outdated entries, that have > subtrees and done todos. > > Yes, what I want to spot are enties with an active (or also inactive? > not sure about this one) timestamp that is before today, and if it's a > TODO, it has to be in a DONE state. The same must hold for any > subtrees. > > Well, basically I'm just looking for a search facility that shows me an > agenda view with all entries that contain only timestamps before today > and no pending todos, so that I can use the agenda commands to act on > them. Some will be deleted, others archived. Here's an example of an agenda view that would bring up all old, active timestamps marked DONE: C-c a m [RET] TIMESTAMP<""+TODO="DONE" (If I understand the question correctly...) The variable org-stuck-projects (see the docstring) can be tweaked to identify subtrees that match your criteria. A custom skip function might also be useful here. (info "(org) Special agenda views") Best, Matt ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Composing letters using org-mode and scrlttr2
#+TITLE: #+AUTHOR: #+EMAIL: #+LANGUAGE: #+TEXT: #+DATE: #+LaTeX_CLASS_OPTIONS: [a4paper,parskip=full,backaddress=off,foldmarks=off,jambu] #+OPTIONS: toc:nil #+LaTeX_CLASS: scrlttr2 * letter Org Mode User Group \\ World Wide Web * subject Composing letters using org-mode and scrlttr2 * opening Dear Org-Mode Users * body Lately, I have been composing formal letters using KOMA script's scrlttr2. I find it convenient to have them composed auto-magically from within org-mode. I am enclosing the initial set of changes needed to compose some simple letters as this one. The only change that is too 'intrusive' seems to be an extra newline which gets added immediately after the emission of labels. These extra newlines trigger syntax errors in the closing{} and encl{} directives. I think rest of the changes could be squeeed in through existing hooks. #+BEGIN_EXAMPLE - (insert (mapconcat (lambda (l) (format "\\label{%s}" l)) -label-list "\n") "\n")) + (insert (mapconcat (lambda (l) (format "\\label{%s}" l)) + label-list "\n"))) #+END_EXAMPLE If there is some general interest, I could work on making a formal patch available. * closing Yours Truly * encl Patch from my work-area. Jambunathan K. diff --git a/lisp/org-latex.el b/lisp/org-latex.el old mode 100644 new mode 100755 index f3a55ee..6a86c35 --- a/lisp/org-latex.el +++ b/lisp/org-latex.el @@ -113,8 +113,10 @@ ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) ("beamer" "\\documentclass{beamer}" - org-beamer-sectioning - )) + org-beamer-sectioning) +("scrlttr2" + "\\documentclass{scrlttr2}" + org-scrlttr2-sectioning)) "Alist of LaTeX classes and associated header and structure. If #+LaTeX_CLASS is set in the buffer, use its value and the associated information. Here is the structure of each cell: @@ -776,6 +778,9 @@ when PUB-DIR is set, use this as the publishing directory." (org-export-latex-parse-global level odd) ;; finalization +(when (string-equal org-export-latex-class "scrlttr2") + (insert "\n\\end{letter}")) + (unless body-only (insert "\n\\end{document}")) ;; Attach description terms to the \item macro @@ -1016,8 +1021,8 @@ If NUM, export sections as numerical sections." (or sub-heading ""))) (insert "\n") (when label - (insert (mapconcat (lambda (l) (format "\\label{%s}" l)) -label-list "\n") "\n")) + (insert (mapconcat (lambda (l) (format "\\label{%s}" l)) + label-list "\n"))) (insert (org-export-latex-content content)) (cond ((stringp subcontent) (insert subcontent)) ((listp subcontent) diff --git a/lisp/org-scrlttr2.el b/lisp/org-scrlttr2.el new file mode 100755 index 000..c2b3764 --- /dev/null +++ b/lisp/org-scrlttr2.el @@ -0,0 +1,20 @@ +(defun org-scrlttr2-sectioning (level heading) + (let ((open "\n\\%s {") + (close "}")) + +(setq heading (replace-regexp-in-string "\\s-+" "" heading)) +(cond + ((string-equal heading "subject") + (setq open "\n\\setkomavar{%s} {") + ) + ((string-equal heading "letter") + (setq open "\n\\begin{%s} {") + ) + ((string-equal heading "body") + (setq open "\n") + (setq close "\n") + ) + (t 'ignore)) + +(list heading open close open close)) + ) diff --git a/lisp/org.el b/lisp/org.el index abc57a6..6e2b4a1 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3677,7 +3677,8 @@ If TABLE-TYPE is non-nil, also check for table.el-type tables." org-export-icalendar-all-agenda-files org-export-icalendar-combine-agenda-files)) (org-autoload "org-xoxo" '(org-export-as-xoxo)) - (org-autoload "org-beamer" '(org-beamer-mode org-beamer-sectioning))) + (org-autoload "org-beamer" '(org-beamer-mode org-beamer-sectioning)) + (org-autoload "org-scrlttr2" '(org-scrlttr2-sectioning))) ;; Declare and autoload functions from org-agenda.el ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] Keep same column when cycling visibility
Hello, Like what is already done with drawers, point should not move when cycling visibility of headings and list items. The call to `org-back-to-heading' this patch removes seems redundant anyways. Regards, -- Nicolas >From 17cd7d747366c90fad47b44edeac2daf920b Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 25 Jul 2010 23:14:08 +0200 Subject: [PATCH] Cursor stays at same column when cycling visibility. * org.el (org-cycle-internal-local): Removed an unnecessary call to `org-back-to-heading' that was preventing point to stay at its column when cycling visibility. --- lisp/org.el |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 53d47f1..51da384 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5849,7 +5849,6 @@ in special contexts. (defun org-cycle-internal-local () "Do the local cycling action." - (org-back-to-heading) (let ((goal-column 0) eoh eol eos level has-children children-skipped) ;; First, some boundaries (save-excursion -- 1.7.2 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] firefox problem with org-protocol
Thanks. Got me almost there. This is the link that solved the problem in the end: http://support.mozilla.com/en-US/kb/The+protocol+is+not+associated+with+any+program d. Excerpts from David Maus's message of Sun Jul 25 09:16:52 -0700 2010: > Daniel Goldin wrote: > >I don't seem to be able to add emacsclient as a handler for > >org-capture in firefox 3.6.7. When I click on the bookmark, I simply > >get a message telling me that there is no helper app associated with > >the file -- with no option to add my own. Anybody know a way to work > >around this? > > There was recently a thread that discuessed this: > > http://thread.gmane.org/gmane.emacs.orgmode/27362 > > Does one of the solutions there solve the problem for you? > > HTH, > -- David -- Daniel Goldin 213.926.1960 ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] org-protocol
I'm trying to get FF working with org again - http://orgmode.org/worg/org-contrib/org-protocol.php It says , |1. Type "about:config" into the location bar and press enter. |2. Click "I'll be careful, I promise!" to continue. |3. Right-click on the grid |4. Choose "New" -> "String" from the context menu. |5. Enter "network.protocol-handler.app.org-protocol" as the properties name. |6. Click "OK". |7. Leave the value blank. |8. Next time you try to open a location "org-protocol://..." FF will ask you for the program to use. Enter the path to emacsclient. ` It doesnt prompt me for a program. Is this uptodate or is there a better step by step guide? (I used to have this working but a forced firefox reinstall has corrupted it). thanks r. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Small patch to restrict syntactic context where [[links]] are active
Paul Sexton xnet.co.nz> writes: Unfortunately this doesn't seem to work as well as I thought. For some reason when org-bracket-link-context-ok is called, (point) is not at the end of the link, despite the fact that the docs for re-search-forward state that is where the point should be. Without a way to get the position at the end of the match, the context stuff does not work correctly. (the stuff activating org links outside org mode still works however.) ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-protocol
Richard Riley writes: > I'm trying to get FF working with org again - > > http://orgmode.org/worg/org-contrib/org-protocol.php > > It says > > , > |1. Type "about:config" into the location bar and press enter. > |2. Click "I'll be careful, I promise!" to continue. > |3. Right-click on the grid > |4. Choose "New" -> "String" from the context menu. > |5. Enter "network.protocol-handler.app.org-protocol" as the properties > name. > |6. Click "OK". > |7. Leave the value blank. > |8. Next time you try to open a location "org-protocol://..." FF will ask > you for the program to use. Enter the path to emacsclient. > ` > > It doesnt prompt me for a program. Is this uptodate or is there a better > step by step guide? > Despite having 3.5, the instructions for getting the app registered didnt work for some reason (iceweasel?). Anyway, the gconftool method worked. ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode