[O] org timer pause or continue
i'd like to have the timer stop when i do a type break and start when i don't. but the only interface for pausing i found is a toggle, which gets out of sync for some reason. is there a standalone pause and a standalone continue that i missed? thanks.
Re: [O] [PATCH] Reschedule "++" repeaters on same day if in future
Hello, Don Marchwrites: > Here is a patch with that addition to ORG-NEWS. Applied. Thank you. Regards, -- Nicolas Goaziou
Re: [O] patch for custom colored links in org-mode
Hello, John Kitchinwrites: > Would it make sense to use a defstruct for the link? I thought about that. Unfortunately, defstructs are not customize friendly. If we are going to give direct access to `org-link-parameters', i.e., make it a defcustom, this is not an option. > Then we get getters and setters automatically. We would still use an > a-list of ("type" org-link-struct). I see defstruct is an alias for > cl-defstruct, does that have Emacs version implications? Org 9.0 minimal requirement is Emacs 24.3, so "cl-lib" is fine. > To get the follow property on a link it would look like: > > (org-link-follow (cdr (assoc "type" org-link-parameters))) > > It isn't that different from this: > > (plist-get (cdr (assoc "type" org-link-parameters)) :follow) This is not very different, but the value you are manipulating is slightly more opaque in the first case. > and I suppose it might be nice to have > > (org-link--get "type" :follow) instead. `org-link-get-parameter' and `org-link-set-parameter', or some such. We should make them public. > WDYT? As I said above, if `org-link-parameters' is a defcustom, we need to use a plist. This is, however, not mandatory. Indeed, we can also treat `org-link--parameters' as an internal variable and force users, and libraries, to manipulate these parameters only through a set of functions (e.g., `org-link-get-parameter', `org-link-set-parameter', `org-link-add-parameters' and `org-link-show-parameters'). Nevertheless, I tend to think the former is clearer for users, simply because plists are simpler to grasp than structs. OTOH, /you/ are customizing links and I'm not, so your opinion on the subject is probably more accurate. Regards, -- Nicolas Goaziou
Re: [O] [ANN] ox-clip on MELPA
Le 02/07/2016 14:02, John Kitchin a écrit : > Hi all, > > ox-clip (https://melpa.org/#/ox-clip) is now available on MELPA. ox-clip > provides a command to copy a region from an org-file with formatting so > it can be pasted into other applications such as office programs, > webmail, etc... with formatting. It should work on Windows, Mac and > Linux. > > I hope you find it useful! > Simple & effective! On Ubuntu I had to install xclip: sudo aptitude install xclip Thanks
[O] Agenda custom commands and filtering category
Hi, how can I create a custom agenda command that filters by category? E.g. I want to create a custom agenda view that only shows items with category "work". Thanks, Dirk
Re: [O] Why no secure code retrieval
On Sat, Jul 02, 2016 at 04:18:42PM +0200, Bastien Guerry wrote: > Hi Nicolas, > > Nicolas Goaziouwrites: > > > GPG signing tags is OK, but I wouldn't like to request every commit to > > be signed. > > Agreed. > > >>> I know that https can be a bit tedious to setup so I am not asking for it > >>> (though I do think it would be great if it was enabled on the site in some > >>> fashion). > >> > >> HTTPS is not so tedious these days with Let's Encrypt. > >> > >> https://letsencrypt.org/ > >> > >> We should set up HTTPS as well. > > > I'm considering paying for a digitalocean instance, with https via > letsencrypt for both the website and git. > > I'm also considering switching from our current git setup to using > Gogs (https://gogs.io): this would ease the process of adding new > contributors, welcoming more org repositories, etc. > > The other solution would simply to use https://savannah.gnu.org. > > One remaining problem for both gogs and savannah is to ensure web > references to commits are correctly redirected, which I think is > one line of nginx configuration. > > I'm curious to know what people think about the switch to something > like gogs*. > > Thanks, > > * gitlab seems too heavy, and I'm more experienced in maintaining > gogs instances than gitlab instances. > > -- > Bastien > Not heard of Gogs before, although it looks nice. Another possiblity would be gitolite with cgit. Gitolite is very flexible and as a consequence can be hard to set up initially. The documentation is very comprehensive. It supports mirroring of repos. -- Best wishes, Ian.
Re: [O] Provide rsync access to Org ELPA
Chunyang Xu writes: > rsync access would allow people to efficiently mirror Org ELPA > [http://orgmode.org/elpa/]. Please provide rsync access to it. Git transport is more efficient than rsync. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Wavetables for the Terratec KOMPLEXER: http://Synth.Stromeko.net/Downloads.html#KomplexerWaves
[O] Provide rsync access to Org ELPA
Hello all, rsync access would allow people to efficiently mirror Org ELPA [http://orgmode.org/elpa/]. Please provide rsync access to it. Thanks. Chunyang
Re: [O] patch for custom colored links in org-mode
> > WDYT? > >> Presumably we would then eliminate the "org-%s-complete-link" >> functions? > > Indeed. > > I think it is possible to proceed in four steps. > > 1. First, we create the variable, with appropriate getter, setter and >default values. At this point it is sufficient to >support :follow, :export and :completion properties only. Would it make sense to use a defstruct for the link? Then we get getters and setters automatically. We would still use an a-list of ("type" org-link-struct). I see defstruct is an alias for cl-defstruct, does that have Emacs version implications? E.g. #+BEGIN_SRC emacs-lisp (defstruct org-link follow export completion face display echo) #+END_SRC #+RESULTS: : org-link A getter: #+BEGIN_SRC emacs-lisp (let ((new-link (make-org-link :follow nil :face '(:background "red" (org-link-face new-link)) #+END_SRC #+RESULTS: | :background | red | A setter: #+BEGIN_SRC emacs-lisp (let ((new-link (make-org-link :follow nil :face '(:background "red" (setf (org-link-face new-link) '(:background "blue")) (org-link-face new-link)) #+END_SRC #+RESULTS: | :background | blue | To get the follow property on a link it would look like: (org-link-follow (cdr (assoc "type" org-link-parameters))) It isn't that different from this: (plist-get (cdr (assoc "type" org-link-parameters)) :follow) and I suppose it might be nice to have (org-link--get "type" :follow) instead. WDYT? > 2. Then we get all the code base to extract information about links >through this variable instead of various existing ways, namely, >`org-%s-complete-link', `org-link-protocols' and `org-link-types'. > > 3. Then we extend it with new properties, i.e., :display, :echo >and :face. > > 4. Document the changes in the manual and ORG-NEWS file. > > You have mostly worked out the third part of the process. Do you want to > take a stab at any of the other steps? Or do you prefer me to do some > parts? > > Regards, -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
Re: [O] Why no secure code retrieval
Hi Nicolas, Nicolas Goaziouwrites: > GPG signing tags is OK, but I wouldn't like to request every commit to > be signed. Agreed. >>> I know that https can be a bit tedious to setup so I am not asking for it >>> (though I do think it would be great if it was enabled on the site in some >>> fashion). >> >> HTTPS is not so tedious these days with Let's Encrypt. >> >> https://letsencrypt.org/ >> >> We should set up HTTPS as well. > > It would be nice, indeed. I'm Cc'ing Bastien for his opinion on the > matter, and a possible step forward. I discussed possible server enhancements with Robert Klein a few months ago. I'm considering paying for a digitalocean instance, with https via letsencrypt for both the website and git. I'm also considering switching from our current git setup to using Gogs (https://gogs.io): this would ease the process of adding new contributors, welcoming more org repositories, etc. The other solution would simply to use https://savannah.gnu.org. One remaining problem for both gogs and savannah is to ensure web references to commits are correctly redirected, which I think is one line of nginx configuration. I'm curious to know what people think about the switch to something like gogs*. Thanks, * gitlab seems too heavy, and I'm more experienced in maintaining gogs instances than gitlab instances. -- Bastien
[O] Create org split agenda view, problems with differnt agendas in split windows?
Hi I have written this crappy code to save a split orgmode agenda views with different agenda views. (defun z/buffers-restore-agenda-split () (interactive) (org-agenda nil "a") (split-window-right) (org-agenda nil "ba") (split-window-below) (org-agenda nil "bb") ) the function does split the windows correctly yet all the views get the last option ("bb") instead of a different view in each window any clue why this happens? thx! Z
Re: [O] [ANN] ox-clip on MELPA
very cool! ill try it now Z On Sat, Jul 2, 2016 at 3:02 PM, John Kitchinwrote: > Hi all, > > ox-clip (https://melpa.org/#/ox-clip) is now available on MELPA. ox-clip > provides a command to copy a region from an org-file with formatting so > it can be pasted into other applications such as office programs, > webmail, etc... with formatting. It should work on Windows, Mac and > Linux. > > I hope you find it useful! > > -- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu > >
[O] [ANN] ox-clip on MELPA
Hi all, ox-clip (https://melpa.org/#/ox-clip) is now available on MELPA. ox-clip provides a command to copy a region from an org-file with formatting so it can be pasted into other applications such as office programs, webmail, etc... with formatting. It should work on Windows, Mac and Linux. I hope you find it useful! -- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu
Re: [O] Two numerical solutions from fsolve inside calc source block
Better yet: #+begin_src calc :wrap "src calc :var var-s2=1" fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src El 2016-06-26 15:53, Miguel Ruiz escribió: Hi, I have this block which is intended to get the two numerical solutions of the equations system: #+begin_src calc fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src This way I get the generic form of a multiple solution, and citing the manual "It will invent variables n1, n2, …, which represent independent arbitrary integers, and s1, s2, …, which represent independent arbitrary signs (either +1 or -1)." So I get #+RESULTS: : [r = 866. / (4621.24711316 - 2517.12631405 s1), v = 4621.24711316 - 2517.12631405 s1] Now, to get the two solutions I have to evaluate manually the result expression replacing s1 by "*1" and "*-1" #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *1), v = 4621.24711316 - 2517.12631405 *1] #+end_src #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] And #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *-1), v = 4621.24711316 - 2517.12631405 *-1] #+end_src #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] Emacs calc manual states "Note that variables like n1 and s1 are not given any special interpretation in Calc except by the equation solver itself. As usual, you can use the s l (calc-let) command to obtain solutions for various actual values of these variables.", but I cannot figure out a way to call (calc-let) or its algebraic equivalent inside a calc source block. I can accept a only-elisp workaround if it is more convenient. Any hint to do everything commented without user interaction? Regards.
Re: [O] Two numerical solutions from fsolve inside calc source block
Not optimal solution: #+begin_src calc :results code fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src yields #+RESULTS: #+BEGIN_SRC calc [r = 866. / (4621.24711316 - 2517.12631405 s2), v = 4621.24711316 - 2517.12631405 s2] #+END_SRC Manually add :var clause in the results block as follows #+RESULTS: #+BEGIN_SRC calc :var var-s2=1 [r = 866. / (4621.24711316 - 2517.12631405 s2), v = 4621.24711316 - 2517.12631405 s2] #+END_SRC And finally the modified results block is evaluated #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] ; var-s2=1 and #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] ; var-s2=-1 Any improvement will be appreciated. Miguel. El 2016-06-26 15:53, Miguel Ruiz escribió: Hi, I have this block which is intended to get the two numerical solutions of the equations system: #+begin_src calc fsolve([8.66e10 = r * v, -7.51e6 = 0.5*v^2 - 6.67e-11*6e24/r],[r,v]) #+end_src This way I get the generic form of a multiple solution, and citing the manual "It will invent variables n1, n2, …, which represent independent arbitrary integers, and s1, s2, …, which represent independent arbitrary signs (either +1 or -1)." So I get #+RESULTS: : [r = 866. / (4621.24711316 - 2517.12631405 s1), v = 4621.24711316 - 2517.12631405 s1] Now, to get the two solutions I have to evaluate manually the result expression replacing s1 by "*1" and "*-1" #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *1), v = 4621.24711316 - 2517.12631405 *1] #+end_src #+RESULTS: : [r = 41157332.8093, v = 2104.12079911] And #+begin_src calc [r = 866. / (4621.24711316 - 2517.12631405 *-1), v = 4621.24711316 - 2517.12631405 *-1] #+end_src #+RESULTS: : [r = 12131615.2598, v = 7138.37342721] Emacs calc manual states "Note that variables like n1 and s1 are not given any special interpretation in Calc except by the equation solver itself. As usual, you can use the s l (calc-let) command to obtain solutions for various actual values of these variables.", but I cannot figure out a way to call (calc-let) or its algebraic equivalent inside a calc source block. I can accept a only-elisp workaround if it is more convenient. Any hint to do everything commented without user interaction? Regards.
Re: [O] more than 2 indexes in org-mode -> latex
Sharon Kimblewrites: > How many indexes can you have in an org-mode document exported to latex? > My experience shows 2! So how can I have 3, or more please? > > This is the relevant part, I think, of my preamble of my file - > > #+latex_header: \usepackage{imakeidx} > #+latex_header: \makeindex[title=Index,options=-s > ./index.ist,columnseprule,intoc] > #+latex_header: \makeindex[name=ps,title=Index of Symptoms,options=-s > ./index.ist,columnseprule,intoc] > # #+latex_header: \makeindex[name=se,title=Index of Side-effects,options=-s > ./index.ist,columnseprule,intoc] > > I can have any choice of 2, but not 3 as I would like. > > In a 'straight' latex file using the above commands I can have 3 or > more, so how do I get it to allow 3 or more in org-mode please? > Answering my own question and saying you've made a cock-up! I'm using the 'morewrites' package and if you include it after setting up the indexes you will get this result with using 3 indexes - --8<---cut here---start->8--- (/usr/local/texlive/2016/texmf-dist/tex/latex/morewrites/morewrites.sty (/usr/local/texlive/2016/texmf-dist/tex/latex/morewrites/primargs.sty) ! No room for a new \write. \e@ch@ck ...message {No room for a new \string #4} \fi \fi l.34 \newwrite \g__morewrites_iow --8<---cut here---end--->8--- But if you put morewrites before the index setup, then 3 or more indexes work perfectly well, with absolutely zero problems. Thanks Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.95 signature.asc Description: PGP signature
Re: [O] [PATCH] Reschedule "++" repeaters on same day if in future
Here is a patch with that addition to ORG-NEWS. From 18d0d67f7f0efd635351056c185b46e2c2a54d5e Mon Sep 17 00:00:00 2001 From: Don MarchDate: Sat, 2 Jul 2016 02:39:58 -0400 Subject: [PATCH] ORG-NEWS: document last "++" repeater change --- etc/ORG-NEWS | 9 + 1 file changed, 9 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index ea9e4de..71f44f5 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -447,6 +447,15 @@ Thus the new behavior is to generate this HTML link instead: : http://www.gnu.org/software/emacs/manual/html_mono/emacs.html#List-Buffers;>emacs#List Buffers All emacs related info links are similarly translated plus few other =gnu.org= manuals. +*** Repeaters with a "++" interval and a time can be shifted to later today +Previously, if a recurring task had a timestamp of +=<2016-01-01 Fri 20:00 ++1d>= and was completed on 2016-01-02 at +08:00, the task would skip 2016-01-02 and would be rescheduled for +2016-01-03. Timestamps with "++" cookies and a specific time will now +shift to the first possible future occurrence, even if the occurrence +is later the same day the task is completed. (Timestamps already in +the future are still shifted one time further into the future.) + * Version 8.3 ** Incompatible changes -- 2.8.1