Re: [O] can I refile or archive from the agenda without rebuilding?
Alan Schmitt alan.schm...@polytechnique.org writes: On 2014-12-12 12:01, Kyle Meyer k...@kyleam.com writes: Alan Schmitt alan.schm...@polytechnique.org wrote: My agenda is fairly big, and it takes a few minutes to generate it. Wow. I meant seconds (about 20 seconds). But is feels like minutes ;) I have the same feeling :-). When I need to refile many items to different places (so bulk edit is not an option), it slows me down quite a bit. Is there an option to prevent rebuilding the agenda after archiving or refiling? org-agenda-refile takes a NO-UPDATE argument. To set this interactively, you could advise org-agenda-refile (or wrap it in another command). This is a great suggestion, thanks! It works perfectly. For other readers to take advantage of the code, this is my implementation of the advise. --8---cut here---start-8--- (defun my/org-agenda-refile (orig optional goto rfloc no-update) (funcall orig goto rfloc t)) (add-function :around (symbol-function 'org-agenda-refile) #'my/org-agenda-refile) --8---cut here---end---8--- My two cents, -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature
Re: [O] constellations Re: relative deadlines
J. David Boyd dbo...@mmm.com writes: Tom Baker tombake...@gmail.com writes: Date: Tue, 09 Dec 2014 12:05:39 -0500 From: dbo...@mmm.com (J. David Boyd) To: emacs-orgmode@gnu.org Subject: Re: [O] relative deadlines J. David Boyd dbo...@mmm.com wrote on Dec 9: Jeffrey Brent McBeth mcb...@broggs.org writes: From time to time (each time I delve into using org-mode for deadlines before my habits fall apart), I find the desire to have some form of relative deadlines. By this I mean, that there are often sequences of tasks that I know the time required to complete and when things are due. These tasks may repeat (usually do). It would be awful helpful to me, but I would guess few others, as a search didn't find much, for there to be some annotation like this (example is farcical, notation is notional) * Go on date DEADLINE: 2014-12-25 ** Ask Girl #-3w# ** Wash Hair #-2w# ** Make Money #-1w2d# ** Get in Car #-0d# ** Call her back #+1w# that in the agenda view would show as a sequence of tasks with the following dates Go on date 2014-12-25 Ask Girl 2014-12-04 Wash Hair 2014-12-11 Make Money 2014-12-16 Get in Car 2014-12-25 Call her back 2015-01-01 I have a python function that can take a stripped down org file and places an active date after each #block# (or inactive after #[block]#), that I hacked up today to see if it would really be as useful as I thought, but I keep thinking that someone somewhere must have scratched this itch elsewhere, and having to partially parse org in python and modify the text rather than having my agenda smart enough to figure it out gives me pause... If nobody have better ideas, are the block delimiters I'm using going to conflict with some other feature in org that I'm just not using yet? The main functuionality I'm stumbling toward is having an easily moveable end date (so replacing the block with absolute dates is a nono). Thanks for your attention, Jeffrey McBeth I think like that as well. I know when some _thing_ has to be done. Then I start thinking of all the support items in relative terms to the main one. You should add this to org mode, if able. It would be a nice addition... Dave The relative deadline part should be implemented, I agree. I also like the collection of intermediate tasks. Does Emacs have a name for that? Because I used to call that a constellation of deadlines, and if we have the relative timestamps, the constellation would be easy to implement on the fly. This addresses Jeffrey's original intention, you see, if I explain. If I have an appointment at 4pm and I know it is a 40m drive AND I may need to get dressed formally (that takes 30m), then I really can't tell the Org system Notify me at 4pm. Instead, I *need* to have it say, Get me driving by 320pm, and if I need to dress up, then get that started by 250pm. Really, for me, the appointment at 4 starts much earlier. Also, keep track of the fact that I will probably come right back, so if the appointment ends at 530, then I won't get back until 610pm. Now if Jeffrey wants to schedule something like this BUT needs to take into account that he already has a 6pm appointment, then his request for an easily movable end is reasonable. When he is setting up the appointment, Org needs to tell him, as soon as possible, that there is a conflict, and so when they suggest 330pm instead of 4pm? he can try that. Tom Yup, exactly what I would like. I hate modern appointment calendars, as they have no means of accomplishing this... Dave I also think I would use such feature. -- Konubinix GPG Key: 7439106A Fingerprint: 5993 BE7A DA65 E2D9 06CE 5C36 75D2 3CED 7439 106A signature.asc Description: PGP signature
Re: [O] Capturing outgoing gnus e-mail
Bastien == Bastien b...@gnu.org writes: Hi Bastien I just saw your code Hi Ivan, this is what I use : ;; Hack to store Org links upon sending Gnus messages (defun bzg-message-send-and-org-gnus-store-link (optional arg) (define-key message-mode-map [(control c) (control meta c)] 'bzg-message-send-and-org-gnus-store-link) Then, in a message, I use C-c C-M-c instead of C-c C-c to send the message and create a link to it that I can reinsert later one. This is not really capturing, but it's good enough for my needs. I tried it out and it is nice, the only thing which is missing is to insert automatically the link into an org file or the diary if you want. When I call org-insert-link an interactive query started which is nice but in this case time consuming regards Uwe Brauer smime.p7s Description: S/MIME cryptographic signature
[O] Bug: Export Error with a css code snippet
Hello, this snippet won't export after this error face-attribute: Invalid face: css-property, italic: #+BEGIN_SRC css -moz-border-image: url(dots.gif) 10 stretch; #+END_SRC In emacs css-mode displays -moz-border-image as italic. Daniele
Re: [O] [RFC] Display most recent log item in Agenda
Eric Abrahamsen e...@ericabrahamsen.net writes: I think this still isn't quite right. If the variable `org-log-into-drawer' is set to t, and the entry has no logdrawer property, the whole function still returns the t, which breaks `org-log-beginning'. Indeed. Fixed. Thank you. Regards,
Re: [O] [RFC] Display most recent log item in Agenda
Eric Abrahamsen e...@ericabrahamsen.net writes: I started with this approach for two reasons: 1) I thought collecting the list items would be simpler, and as it became more and more complicated, I didn't rethink the approach, and 2) collecting all the items is the actual feature I was after (for future hackage), and the agenda display was just a nice bonus. OK. I'd like to keep the collection routine (even just for myself, if it's not necessary for core), but you're right, the most-recent note display could be done differently. Collecting is fine, but instead of using `org-log-beginning', I suggest to factor out parts you need (e.g. find the log drawer, if any). Note that if `org-log-into-drawer' is nil, you can only find all notes heuristically (they might be scattered across the section). In this case, finding the last note is safer. Better, you could store the last note as a text property on the headline and skip altogether the parsing phase. When would the storing happen? As the agenda was being built? When the storing is done, i.e. after calling `org-store-log-note'. However, you would need persistent data to save log notes across sessions. So it isn't a good idea after all. Regards,
[O] Something wrong with the src_python babel execution
Hi, I'm using GNU Emacs 24.4.4 (x86_64-apple-darwin13.4.0, Carbon Version 157 AppKit 1265.21) with Org-mode version 8.2.10 (8.2.10-29-g89a0ac-elpaplus). Example file: --8---cut here---start-8--- #+BEGIN_SRC python :session test :exports none a = 0.55 #+END_SRC The result is src_python[:session test :results raw]{'${:.1f}$'.format(a)}. --8---cut here---end---8--- This used to execute without any problem. Now the related latex export is: --8---cut here---start-8--- The result is \$'.format(a)\}. --8---cut here---end---8--- And there are the outputs in the *test* session: --8---cut here---start-8--- '${:.1f '${:.1f File stdin, line 1 '${:.1f ^ SyntaxError: EOL while scanning string literal --8---cut here---end---8--- Yours faithfully, Tian Qiu
Re: [O] Is it possible to use org-babel to deal with bibtex?
Hi Feng, Feng Shu tuma...@gmail.com writes: I want to deal with my bibtex like this, is it possible? I'm not entirely sure what you're asking to do here. Your example looks like you want to store bibliography information in Org, and generate citations using Org syntax. This is possible, and plenty of people do it. See the org-bibtex library (included in the main Org distribution) for storing your bibliographic data in Org trees; see the ox-bibtex library (in contrib) for one way of generating citations using Org syntax. Here's my setup (which uses org-bibtex but not ox-bibtex): http://article.gmane.org/gmane.emacs.orgmode/86033/ You might also look into John Kitchin's org-ref library: https://github.com/jkitchin/jmax/blob/master/org/org-ref.org None of these options involve Babel, though; I'm not sure if you specifically wanted a Babel-based solution. Is there something more specific you're trying to do? Best, Richard
[O] PlantUML
Hi, I just tried evaluating plantUML source code in babel and get the following error message: Error: Invalid or corrupt jarfile /home/cmulloy/.emacs.d/elpa/contrib/scripts/ I'm currently in the latest stable release of org-mode 8.2.10 and have downloaded the plantuml.jar application in the /home/cmulloy/.emacs.d/elpa/contrib/scripts/ directory. I did manage to test the plantuml.jar application and validate that it wasn't corrupt by successfully running plantuml directly and building .png files directly: java -jar plantuml.jar -verbose sequenceDiagram1.txt I tried was able to use babel to execute both ditaa and dot code successfully so it seems the problem is with plantuml! I had a look at the ob-plantuml.el file but could see nothing of relevance and am still learning elisp. Any thoughts? Regards, Ciaran
Re: [O] PlantUML
Ciaran Mulloy crmul...@gmail.com writes: Hi, I just tried evaluating plantUML source code in babel and get the following error message: Error: Invalid or corrupt jarfile /home/cmulloy/.emacs.d/elpa/contrib/scripts/ I'm currently in the latest stable release of org-mode 8.2.10 and have downloaded the plantuml.jar application in the /home/cmulloy/.emacs.d/elpa/contrib/scripts/ directory. I did manage to test the plantuml.jar application and validate that it wasn't corrupt by successfully running plantuml directly and building .png files directly: java -jar plantuml.jar -verbose sequenceDiagram1.txt I tried was able to use babel to execute both ditaa and dot code successfully so it seems the problem is with plantuml! I had a look at the ob-plantuml.el file but could see nothing of relevance and am still learning elisp. Any thoughts? This maybe: org-plantuml-jar-path needs the complete pathname of your plantuml.jar. Customize appropriately. Nick
[O] Exporting LaTeX fragments equations Org-mode 8.2.10
Hello, Since I updated to Org-mode version 8.2.10, I am having trouble exporting equation in latex properly. Some \ are inserted in the tex verion. For example: \begin{equation} \label{eqn:Lpar} Lpar_{k}=\frac{hb_{k}}{slope} \end{equation} Becomes: \begin{equation} \label{eqn:Lpar} Lpar$_{\text{k}}$=\frac\{hb$_{\text{k}}$\}\{slope\} \end{equation} I tried to force #+OPTIONS: tex:t which should be the default value but that didn't help. Any suggestion of what I may be missing? -- Kevin
Re: [O] Exporting LaTeX fragments equations Org-mode 8.2.10
Aloha Kevin, kevin.lemorzadec kevin.lemorza...@mun.ca writes: Since I updated to Org-mode version 8.2.10, I am having trouble exporting equation in latex properly. Some \ are inserted in the tex verion. For example: \begin{equation} \label{eqn:Lpar} Lpar_{k}=\frac{hb_{k}}{slope} \end{equation} Becomes: \begin{equation} \label{eqn:Lpar} Lpar$_{\text{k}}$=\frac\{hb$_{\text{k}}$\}\{slope\} \end{equation} I tried to force #+OPTIONS: tex:t which should be the default value but that didn't help. Any suggestion of what I may be missing? I think this came up on the list a few days ago. IIRC, the \begin{equation} has to be on its own line. The \label{} should move down to the next line. Does that work? hth, Tom -- Thomas S. Dye http://www.tsdye.com
Re: [O] Exporting LaTeX fragments equations Org-mode 8.2.10
It does, Thanks for the answer, Kevin On Mon, Dec 15, 2014 at 4:58 PM, Thomas S. Dye t...@tsdye.com wrote: Aloha Kevin, kevin.lemorzadec kevin.lemorza...@mun.ca writes: Since I updated to Org-mode version 8.2.10, I am having trouble exporting equation in latex properly. Some \ are inserted in the tex verion. For example: \begin{equation} \label{eqn:Lpar} Lpar_{k}=\frac{hb_{k}}{slope} \end{equation} Becomes: \begin{equation} \label{eqn:Lpar} Lpar$_{\text{k}}$=\frac\{hb$_{\text{k}}$\}\{slope\} \end{equation} I tried to force #+OPTIONS: tex:t which should be the default value but that didn't help. Any suggestion of what I may be missing? I think this came up on the list a few days ago. IIRC, the \begin{equation} has to be on its own line. The \label{} should move down to the next line. Does that work? hth, Tom -- Thomas S. Dye http://www.tsdye.com -- Kevin Le Morzadec - Ph.D. candidate Dept of Physics and Physical Oceanography, Memorial University of Newfoundland, Canada Tel 709-864-8654
Re: [O] Evaluating R source code line by line
For your use case, I would suggest adding print() calls in strategic places in your long-running code, which will appear in the R buffer to let you know how it’s progressing. I don’t quite understand everything you wrote. But this would be helpful for my test case. Will use. Thanks. Vikas
Re: [O] PlantUML
On 15/12/14 18:50, Nick Dokos wrote: Ciaran Mulloy crmul...@gmail.com writes: Hi, I just tried evaluating plantUML source code in babel and get the following error message: Error: Invalid or corrupt jarfile /home/cmulloy/.emacs.d/elpa/contrib/scripts/ I'm currently in the latest stable release of org-mode 8.2.10 and have downloaded the plantuml.jar application in the /home/cmulloy/.emacs.d/elpa/contrib/scripts/ directory. I did manage to test the plantuml.jar application and validate that it wasn't corrupt by successfully running plantuml directly and building .png files directly: java -jar plantuml.jar -verbose sequenceDiagram1.txt I tried was able to use babel to execute both ditaa and dot code successfully so it seems the problem is with plantuml! I had a look at the ob-plantuml.el file but could see nothing of relevance and am still learning elisp. Any thoughts? This maybe: org-plantuml-jar-path needs the complete pathname of your plantuml.jar. Customize appropriately. Nick Hi Nick, Yes! The instructions in the ob-plantuml file state: ;; plantuml.jar | `org-plantuml-jar-path' should point to the jar file, I had just put in the path. I amended to (setq org-plantuml-jar-path ~/.emacs.d/elpa/contrib/scripts/plantuml.jar) and it works! Many thanks Ciaran
Re: [O] Entering Repeating Scheduled Tasks in the Minibuffer
So, no one has any ideas about the syntax for an all-in-minibuffer specification of a repeated, scheduled event? -Kenneth PS Thanks, Pete, for your explaining (=F) ...
Re: [O] [RFC] Display most recent log item in Agenda
Nicolas Goaziou m...@nicolasgoaziou.fr writes: Eric Abrahamsen e...@ericabrahamsen.net writes: I started with this approach for two reasons: 1) I thought collecting the list items would be simpler, and as it became more and more complicated, I didn't rethink the approach, and 2) collecting all the items is the actual feature I was after (for future hackage), and the agenda display was just a nice bonus. OK. I'd like to keep the collection routine (even just for myself, if it's not necessary for core), but you're right, the most-recent note display could be done differently. Collecting is fine, but instead of using `org-log-beginning', I suggest to factor out parts you need (e.g. find the log drawer, if any). Note that if `org-log-into-drawer' is nil, you can only find all notes heuristically (they might be scattered across the section). In this case, finding the last note is safer. I thought that's what `org-log-beginning' was for: finding where the log-note list would be (drawer or no), if it exists. If users aren't using `org-log-into-drawer', `org-log-beginning' should still go to the spot where the list would be, right? Then, if there's a list there, I take the first or last note (depending on log-state-notes-reversed). I don't know why the notes would be scattered across the section... Slightly confused, Eric
[O] getting calc-units working in table formulas
I've been playing with calc-units, and it's pretty amazing. See all the units with `calc-view-units-table'. Some calc-units stuff works out the box (maybe have to require calc-units?), I think this should be mentioned in the manual: | distance | time | speed | |--++-| | 3 km | 2.5 hr | 1.2 km / hr | #+TBLFM: @2$3=$1/$2 Who knew it could do that?! Probably everyone but me... It doesn't need the constants.el package, and looks nicer in the input, to boot. calc-units makes a few of its functions available via defmath: | speed| simplified speed | |--+--| | 40km / 2.5hr | 16. km / hr | | | | #+TBLFM: @2$2=usimplify($1) But it's got a lot more tricks. I think unit conversion would be very handy to have, but there's something I'm not getting about using defmath. For instance, this works: | km| ft | |---+-| | 2.5km | 8202.10 | #+TBLFM: $2='(calc-eval (math-convert-units (calc-eval $1 'raw) (calc-eval ft 'raw))); %.2f But this doesn't: #+BEGIN_SRC emacs-lisp (defmath uconvert (expr target-units) (math-convert-units expr target-units)) #+END_SRC | km| ft | |---+-| | 2.5km | uconvert(2.5 km ft) | #+TBLFM: $2=uconvert($1 ft) I can't tell if I've written the calcFunc thing wrong, or if it's somehow not getting installed correctly. I've tried several variants, and they mostly all just give me the results above. Does anyone know what I'm doing wrong? Also, once that's figured out, wouldn't it be handy if Org came with a few predefined units-related math functions? It would be a tiny bit of code, for quite a bit more power. At the very least, I'd like to provide a patch to the manual to make the units stuff a little more explicit... Eric
Re: [O] getting calc-units working in table formulas
Eric Abrahamsen e...@ericabrahamsen.net writes: I've been playing with calc-units, and it's pretty amazing. See all the units with `calc-view-units-table'. Some calc-units stuff works out the box (maybe have to require calc-units?), I think this should be mentioned in the manual: | distance | time | speed | |--++-| | 3 km | 2.5 hr | 1.2 km / hr | #+TBLFM: @2$3=$1/$2 Who knew it could do that?! Probably everyone but me... It doesn't need the constants.el package, and looks nicer in the input, to boot. calc-units makes a few of its functions available via defmath: | speed| simplified speed | |--+--| | 40km / 2.5hr | 16. km / hr | | | | #+TBLFM: @2$2=usimplify($1) But it's got a lot more tricks. I think unit conversion would be very handy to have, but there's something I'm not getting about using defmath. For instance, this works: | km| ft | |---+-| | 2.5km | 8202.10 | #+TBLFM: $2='(calc-eval (math-convert-units (calc-eval $1 'raw) (calc-eval ft 'raw))); %.2f I wonder if the problem is the 'raw in here. To the best of my knowledge, calc-eval needs that 'raw flag to work properly with this. But it doesn't look like `org-table-eval-formula' will ever send that flag. I hope someone who knows this code better than me can comment...