Re: [O] [PATCH] org-protocol: fixes open-source and extends rewriting of URLs
Hello, Mario Martelli writes: > > Doing the tests for the documentation I encountered some issues with > org-protocol. > > [0001-url-is-sanitized-before-processing] > I’ve got trouble to get sub-protocol “open-source” working in some cases. By > sanitising the URL it works for me in all cases. > [...] > This changes the test of the URI which was tested against the resulting > filename. It’s now tested against the base-url. > > I’m still unsure with this because the code is there for more than seven > years. Maybe I’m not seeing something obvious here. But all tests I made so > far are succeeding with this change. > [...] If all tests in "test-org-protocol.el" pass with your changes, I think it is fine to apply them. Another round of tests for the cases you solve would be nice, too. Regards, -- Nicolas Goaziou
Re: [O] Bug: Does HEADER_LATEX_EXTRA work in org 9.0? [9.0.9 (9.0.9-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20170622/)]
Hello, Mario Román writes: > I have tried to use #+latex_header_extra on org 9.0.9, using an empty Emacs > configuration file. The following fragment > > #+LATEX_HEADER_EXTRA: \newcommand{\test}{testing} > $\test$ > > creates an image with the text "testing". It seems that it is using the > command inside the preview; but I would expect it to give me an error (a > blank image), as \test should not be defined in latex preview. I don't know > if this is a bug or if I am missing something. Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org-protocol: fixes open-source and extends rewriting of URLs
> If all tests in "test-org-protocol.el" pass with your changes, I think > it is fine to apply them. Selector: "test-org-protocol/" Passed: 2 Failed: 0 Skipped: 0 Total: 2/2 > Another round of tests for the cases you solve > would be nice, too. I added the configuration part. That will be parsed during the tests I suppose. Selector: "test-org-protocol/" Passed: 3 Failed: 0 Skipped: 0 Total: 3/3 0004-config-for-date-style-URL-is-added-to-org-protocol-t.patch Description: Binary data Adding full test-coverage of my changes is beyond my abilities at the moment, I must admit. But I will come back to it soon, I promise ;) Especially as there are succeeding tests for open-source using old-style URIs. (old-style URIs are not working for me with open-source) That will be the next task for me after completing the documentation. Speaking of the documentation: is it right, that there is no more support for “remember”? I would then remove that part from the documentation. Kind regards Mario —
Re: [O] Grouping tasks with todo-keywords
Narendra Joshi writes: > Is it possible to group tasks in org-agenda by the state they are in? > For example, I would like to have horizontal divider between all tasks > that are ONGOING and tasks that are in TODO state. > I have already setup `org-agenda-sorting-strategy' to get the desired > order. You could be interested to have a look at my org-leuven-agenda-views.el, in my own "Emacs Leuven" configuration files. Fabrice -- Fabrice Niessen Leuven, Belgium http://www.pirilampo.org/
Re: [O] org-protocol documentation
Hi, > Also, I suggest using ox-texinfo from development version, if you can, > as the Texinfo output should be superior. Done that, eventually. > Also, if the syntax is not quite right, no worries, > we'll fix it. That is probably necessary. Please note, that the documentation assumes that the patches regarding “open-source” are applied. 0001-org-protocol-documentation-is-moved-to-core-document.patch Description: Binary data Kind regards Mario —
Re: [O] org table toggle narrowing and true column hiding
>>> "Nicolas" == Nicolas Goaziou writes: > Hello, > Uwe Brauer writes: >> Great thanks I will test this now, I presume this patch is against the >> latest stable version? > No, it is against development version, aka "master" branch. Ok I cloned that branch, applied your patch and run some tests, (using GNU emacs 26) Here are my impressions. - (org-table-hide-column nil) works nicely! I can hide several columns: I start with the first, hide it, move to the second hide etc - however (org-table-hide-column 1) etc did not work as expected, the first column was hidden but when I called (org-table-hide-column 2) that column was not hidden! Then I found out the culprit. I had the cursor on a different column. So (org-table-hide-column 1) seems to work best if the cursor is not on the table! - would it be possible to hide various column on the fly. Either by marking them or running (org-table-hide-column 1 2 3) or something like this. Thanks very much for this, I would it very useful and think it should be included at some point in master. Uwe Brauer
[O] Capture template stopped working: nil
Hello, since recently, one of my capture templates stopped working. Message is: Template key: org-capture: Capture template ‘j’: nil and: - %? is added to journal.org. I have also tried some other template text like "foo" (without any keys), but the message is the same. value of org-capture-templates is: (("t" "Todo" entry (file+headline "" "Tasks") "* TODO %?\n%t\n%i") ("q" "Question" entry (file+headline "" "Questions") "* %?\n%t\n%i") ("c" "Code Question" entry (file+headline "" "Code Questions") "* %?\n%t %F\n%i") ("j" "Journal" item (file+datetree (concat org-directory "/journal.org")) "%?\n%i" :kill-buffer t) ("m" "Mail" entry (file+headline "" "Mail") "* TODO %? %a\nSCHEDULED: %(org-insert-time-stamp (org-read-date nil t \"+0d\"))\nFrom: %:from") ("h" "CSC Todo" entry (file+headline "~/Dropbox/CSC/CSC.org" "TODOs") "* TODO %?\n%t\n%i")) All templates are working just fine, only the Journal one not. Org mode version 9.0.9 (9.0.9-elpa @ /home/florian/.emacs.d/elpa/org-20170622/) Any idea anyone? Thanks! Florian
Re: [O] Capture template stopped working: nil
Hello, Florian Lindner writes: > since recently, one of my capture templates stopped working. Message is: > > Template key: > org-capture: Capture template ‘j’: nil > > and: > > - %? > > is added to journal.org. I have also tried some other template text like > "foo" (without any keys), but the message is the same. > > value of org-capture-templates is: > ("j" "Journal" item > (file+datetree >(concat org-directory "/journal.org")) It should be (lambda () (concat org-directory "/journal.org")). See ORG-NEWS. Regards, -- Nicolas Goaziou
Re: [O] Capture template stopped working: nil
Am 25.06.2017 um 21:09 schrieb Nicolas Goaziou: > Hello, > > Florian Lindner writes: > > >> since recently, one of my capture templates stopped working. Message is: >> >> Template key: >> org-capture: Capture template ‘j’: nil >> >> and: >> >> - %? >> >> is added to journal.org. I have also tried some other template text like >> "foo" (without any keys), but the message is the same. >> >> value of org-capture-templates is: > >> ("j" "Journal" item >> (file+datetree >>(concat org-directory "/journal.org")) > > It should be (lambda () (concat org-directory "/journal.org")). > > See ORG-NEWS. Hey, ok, found it there. However, it seems that I don't need it anyways, since "When an absolute path is not specified for a target, it is taken as relative to ‘org-directory’." So, I changed it to: ("j" "Journal" item (file+datetree "journal.org") "%?\n%i" :kill-buffer t) which still gives the same error. Sorry... what is still wrong there? Best, Florian
Re: [O] Capture template stopped working: nil
Hi Nicolas, Nicolas Goaziou writes: > It should be (lambda () (concat org-directory "/journal.org")). > > See ORG-NEWS. What is the reason for this change? Thanks, -- Bastien
Re: [O] Capture template stopped working: nil
Hello, Bastien writes: > Hi Nicolas, > > Nicolas Goaziou writes: > >> It should be (lambda () (concat org-directory "/journal.org")). >> >> See ORG-NEWS. > > What is the reason for this change? I don't like `eval' in the code base. Regards, -- Nicolas Goaziou
Re: [O] Fwd: Re: How to export LaTeX amsmath align bmatrix to ODT?
Hello, ed...@openmail.cc writes: > I don't really know how to modify org-latex-packages-alist to have > a latex command like this in my tex file: > > \newcommmand{\mysymbol}[1]{\mathrm{my_{#1}}} > > I do have a bunch of packages with custom options over there :P ! I fixed a bug in "ox-odt.el". Now, when using convertion to png, you can add #+latex_header: \newcommmand{\mysymbol}[1]{\mathrm{my_{#1}}} Hopefully, it should solve, at least partly, your issue. Regards, -- Nicolas Goaziou
Re: [O] Capture template stopped working: nil
Hi Nicolas, Nicolas Goaziou writes: >> What is the reason for this change? > > I don't like `eval' in the code base. May I ask you why `eval' in the code base is problematic? This change may break current configurations. Such changes should be made with extreme parcimony and for very consensual reasons. -- Bastien
Re: [O] Capture template stopped working: nil
Bastien Guerry writes: > May I ask you why `eval' in the code base is problematic? Because 1. it is hideous, 2. it doesn't cope well with lexical binding. Using `eval' should be made with extreme parcimony and for very consensual reasons. > This change may break current configurations. Such changes should > be made with extreme parcimony and for very consensual reasons. The breakage is trivial to fix, as specified in the ORG-NEWS file. Regards,
Re: [O] Grouping tasks with todo-keywords
I have this in my init.el - I did it years ago and it could be refined, but works for my needs. My custom agenda view breaks the agenda into 4 blocks of todos - Completed/Cancelled - WIP - Delegated - Backlog (setq org-agenda-custom-commands (quote (("n" "Agenda and all TODO's" ((agenda "" nil) (alltodo "" nil)) nil) ("wr" "Weekly Report" ((todo "DONE|CANCELLED" ((org-agenda-overriding-header "Completed and Cancelled : Last Week"))) (todo "STARTED|NEXT" ((org-agenda-overriding-header "WIP"))) (todo "HOLD|DELEGATED" ((org-agenda-overriding-header "On Hold and Delegated Tasks"))) (todo "TODO" ((org-agenda-overriding-header "Task Backlog" nil nil On 25 June 2017 at 19:02, Fabrice Niessen wrote: > Narendra Joshi writes: > > Is it possible to group tasks in org-agenda by the state they are in? > > For example, I would like to have horizontal divider between all tasks > > that are ONGOING and tasks that are in TODO state. > > I have already setup `org-agenda-sorting-strategy' to get the desired > > order. > > You could be interested to have a look at my org-leuven-agenda-views.el, > in my own "Emacs Leuven" configuration files. > > Fabrice > > -- > Fabrice Niessen > Leuven, Belgium > http://www.pirilampo.org/ > > > -- regards, Tim -- Tim Cross