Re: Smart processing of http(s) links

2020-06-28 Thread Ag Ibragimov
seems more complicated and requiring more maintenance than just typing the appropriate description when you insert the link. Actually, it is not. See my reply to Kyle. You still can modify the link description, it just gives you an option to make it as the title of the GitHub issue or PR. htt

Re: Smart processing of http(s) links

2020-06-28 Thread Tim Cross
Ag Ibragimov writes: > I want to make something like this: > > Whenever I I use org-insert-link and it turns out to be a URI that starts > with "https://github.com"; I would like it to be processed differently than > any other link, one example - if it is a PR or a Github Issue, I'd like it t

Re: [PATCH] allow for multiline headers

2020-06-28 Thread Mario Frasca
On 28/06/2020 18:17, Nicolas Goaziou wrote: This could be extracted as an independent function, which would return the header, or nil. We can also imagine a function returning a cons cell (HEADER . BODY), both HEADER and BODY being list of rows (possibly empty). not only this … it could also be

[PATCH] ob-java support for variables, functional mode, tramp, add tests

2020-06-28 Thread ian martins
Hello. Attached is a patch to update the ob-java.el implementation. This allows package, class and imports to be provided in the code or header arguments or omitted, accepts variables, supports functional mode (:results value), writes temp files to the temp directory instead of current dir, works w

Re: Smart processing of http(s) links

2020-06-28 Thread Ag Ibragimov
Oh cool. This is exactly what I needed: I was able to build this: #+begin_src emacs-lisp (defun get-gh-item-title (uri &optional include-number?) "Based on given github URI for (pull request or an issue), returns its title" (when (string-match "\\(github.com\\).*\\(issues\\|pull\\)" uri) ;

Re: [PATCH] allow for multiline headers

2020-06-28 Thread Nicolas Goaziou
Hello, Mario Frasca writes: > On 24/06/2020 02:19, Nicolas Goaziou wrote: >> This could be extracted as an independent function, which would return the header, or nil. We can also imagine a function returning a cons cell (HEADER . BODY), both HEADER and BODY being list of rows (po

Re: Using regular expressions in custom agenda views

2020-06-28 Thread Nathan Neff
On Sun, Jun 28, 2020 at 5:48 PM Nathan Neff wrote: > More wonkiness: > > This custom view (no regexes) doesn't work, but manually entering projectA > (no quotes) in a tags-todo search > *does* work - so maybe my problem isn't regexes, but something else with > my org-agenda-custom-commands . . .

Re: Using regular expressions in custom agenda views

2020-06-28 Thread Nathan Neff
More wonkiness: This custom view (no regexes) doesn't work, but manually entering projectA (no quotes) in a tags-todo search *does* work - so maybe my problem isn't regexes, but something else with my org-agenda-custom-commands . . . . (setq org-agenda-custom-commands '(("1" tags-todo "projectA"

Re: Using regular expressions in custom agenda views

2020-06-28 Thread Nathan Neff
Still isn't working with org-mode 9.3.7 (org-20200622) and using emacs -q I have this file: * One :project:a:work:boss:projectA: :PROPERTIES: :Effort: 1:00 :END: * Two :projectB: :PROPERTIES: :Effort: 2:00 :END: * Bar :pt:project:b: And this custom view returns nothing: (setq org-agenda

Re: Using regular expressions in custom agenda views

2020-06-28 Thread Nathan Neff
G I tried "package update" and package mgr in Emacs kept telling me that Org 9.3.6 was the latest. Now I look @ orgmode.org and see 9.3.7 - I'll try that first after I figure out how to get that "package" or whatever that thing is to actually show the latest versions of packages. On Sun, Jun

Re: Using regular expressions in custom agenda views

2020-06-28 Thread Nathan Neff
On Sun, Jun 28, 2020 at 4:12 PM Kyle Meyer wrote: > Nathan Neff writes: > > > I'm having a difficult time using regular expressions in custom > > "tags-todo" agenda views. > > > > Is it possible to create custom agenda views using regular expressions, > > and if so, do I need to escape certain ch

[PATCH] partial rewrite of gnuplot-to-grid-data

2020-06-28 Thread Mario Frasca
according to me, this looks better, I'm curious about the reactions from the list. in particular, I was surprised finding a duplicated evaluation of (string-to-number (nth col (nth row table))) inside a (dotimes (col num-cols) (dotimes (row num-rows) …)) >From 9822748dfbdb99f1ea534e695e818d

Re: Using regular expressions in custom agenda views

2020-06-28 Thread Kyle Meyer
Nathan Neff writes: > I'm having a difficult time using regular expressions in custom > "tags-todo" agenda views. > > Is it possible to create custom agenda views using regular expressions, > and if so, do I need to escape certain characters? > > I can't get a simple regex like this to work, so I'

Re: Smart processing of http(s) links

2020-06-28 Thread Kyle Meyer
Ag Ibragimov writes: > Whenever I I use org-insert-link and it turns out to be a URI that > starts with "https://github.com"; I would like it to be processed > differently than any other link, one example - if it is a PR or a > Github Issue, I'd like it to fetch summary(title) of it and create a >

Smart processing of http(s) links

2020-06-28 Thread Ag Ibragimov
I want to make something like this: Whenever I I use org-insert-link and it turns out to be a URI that starts with "https://github.com"; I would like it to be processed differently than any other link, one example - if it is a PR or a Github Issue, I'd like it to fetch summary(title) of it and

Re: [bug] select TODO items and unexpected behaviour

2020-06-28 Thread Kyle Meyer
Mario Frasca writes: > On 28/06/2020 01:32, Kyle Meyer wrote: >> Thanks for reporting. Looks like org-todo's call to org-map-entries has >> been broken since its introduction in 7.8.05. Should be fixed with >> 8a2eb7d1b. > > 3ed035ce3 > > with this patch, you don't need to locally redefine the >

Using regular expressions in custom agenda views

2020-06-28 Thread Nathan Neff
I'm having a difficult time using regular expressions in custom "tags-todo" agenda views. Is it possible to create custom agenda views using regular expressions, and if so, do I need to escape certain characters? I can't get a simple regex like this to work, so I'm suspecting that I'm doing somet

Re: [bug] select TODO items and unexpected behaviour

2020-06-28 Thread Kyle Meyer
[ Please don't drop the list in your replies. ] Mario Frasca writes: > if we were using self-evaluating symbols, the issue would vanish, and > the code might result easier to read. The "loop over headline" code in org-todo needs to be able to handle every argument that org-todo accepts, includi

Re: [bug] select TODO items and unexpected behaviour

2020-06-28 Thread Mario Frasca
On 28/06/2020 01:32, Kyle Meyer wrote: Thanks for reporting. Looks like org-todo's call to org-map-entries has been broken since its introduction in 7.8.05. Should be fixed with 8a2eb7d1b. 3ed035ce3 with this patch, you don't need to locally redefine the org-loop-over-headlines-in-active-reg

Re: [FR] Add check for attachments in org-lint

2020-06-28 Thread Gustavo Barros
Hi Nicolas, On Sun, 28 Jun 2020 at 14:26, Nicolas Goaziou wrote: This is done in master. Thank you very much. Regards, Gustavo.

Re: [FR] Add check for attachments in org-lint

2020-06-28 Thread Nicolas Goaziou
Hello, Gustavo Barros writes: > So, I'd like to kindly suggest that either "attachment" be included as > a case in `org-lint-link-to-local-file' or that an equivalent check > for attachments be included in `org-lint'. I'd be much thankful. This is done in master. Regards, -- Nicolas Goaziou

Re: [patch] When inserting entry template, don't include last newline in narrowed zone

2020-06-28 Thread Kyle Meyer
E.L.K. writes: > Hello. > > Org 9.3.6: when inserting the entry by capture mechanics, it narrows buffer > in a way that cursor can be moved to the last line, which is the beginning > of next (non-capture template) line in the original unnarowed buffer. > > So this allows to: start capture, move po

Re: [bug] select TODO items and unexpected behaviour

2020-06-28 Thread Mario Frasca
the "somehow", I can confirm it happened in the same session.  it was left like that when I ran toggle-debug-on-error and landed in the debugger. I also noticed that the behaviour on the selection is only implemented for some actions, not all. if you select items, then S- (to raise priority),

Re: Babel: parse error when output contains opening bracket

2020-06-28 Thread ian martins
A little while back I submitted a patch to add org-babel integration for haxe and mentioned that the same could be done for java to expand the features of the java integration. There was no response which I took to mean no interest in haxe or java, so I didn't think submitting a patch for java woul

Re: [patch] When inserting entry template, don't include last newline in narrowed zone

2020-06-28 Thread E.L.K.
Just found an issue with this patch: if I try to schedule the item, SCHEDULED and timestamp get inserted into invisible area. Thanks, Alexey On Sun, Jun 28, 2020 at 1:14 PM E.L.K. wrote: > Hello. > > Org 9.3.6: when inserting the entry by capture mechanics, it narrows > buffer in a way that cur

[patch] When inserting entry template, don't include last newline in narrowed zone

2020-06-28 Thread E.L.K.
Hello. Org 9.3.6: when inserting the entry by capture mechanics, it narrows buffer in a way that cursor can be moved to the last line, which is the beginning of next (non-capture template) line in the original unnarowed buffer. So this allows to: start capture, move point to the very last char of