Re: Feature request

2021-01-17 Thread Raoul Comninos
Ihor Radchenko writes: > I think something like the following will do (untested): > > (defun org-attach-save-file-list-to-property () > "Save list of attachments to ORG_ATTACH_FILES property." > (when-let* ((dir (org-attach-dir)) > (files (org-attach-file-list dir))) > (org-se

Re: Feature request

2021-01-17 Thread Ihor Radchenko
Raoul Comninos writes: > I have copied the code to my dot Emacs, but now when I try to add an > attachment now, it generates this error: > > run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of > attachments to ORG_ATTACH_FILES property." (when-let* ((dir > (org-attach-dir))

Re: Feature request

2021-01-17 Thread Raoul Comninos
Ihor Radchenko writes: > Raoul Comninos writes: > >> I have copied the code to my dot Emacs, but now when I try to add an >> attachment now, it generates this error: >> >> run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of >> attachments to ORG_ATTACH_FILES property." (whe

How to not include newlines in strip-export?

2021-01-17 Thread General discussions about Org-mode.
I'm using the following snippet for saving the plot in python snippets #+NAME: save-file #+BEGIN_SRC python :results silent :var filename="filename" plt="plt" :exports none return f"\nfname = 'assets/' + filename + '.png'\nplt.savefig(fname)\nfname" #+END_SRC Using it like so #+BEGIN_SRC python

Re: [feature request] A new cookie type [!] showing the last note taken

2021-01-17 Thread Christopher Miles
I think this is possible through read last note text in logbook, then display it in headline through text-property overlay. That's what I did in this package [[https://github.com/stardiviner/org-link-beautify]] Should not be that hard to implement it. Ihor Radchenko writes: > Over the years

Re: Custom Bulk Functions With Prompt

2021-01-17 Thread Kevin Foley
Ihor Radchenko writes: > Instead of advice, you can also provide a simple patch implementing the > described functionality in org-agenda-bulk-action. I do support adding > this functionality to org. I took a look this morning and came up with the attached patch. Essentially if the custom functio

org-publish error with java hook

2021-01-17 Thread Colin Baxter
Hello, In the last few days org-publish no loner works for me, giving a lisp error: (void-function conkeror-minor-mode). The source of the problem is the line '(add-hook 'js-mode-hook 'conkeror-minor-mode)' in my init file. If I comment out the line, the error disappears. I've tried reverting a c

Re: org-publish error with java hook

2021-01-17 Thread Tim Cross
Colin Baxter writes: > Hello, > > In the last few days org-publish no loner works for me, giving a lisp > error: (void-function conkeror-minor-mode). The source of the problem is > the line '(add-hook 'js-mode-hook 'conkeror-minor-mode)' in my init > file. If I comment out the line, the error d

Re: org-publish error with java hook

2021-01-17 Thread Colin Baxter
Hi Tim, Thanks for you quick reply. > Tim Cross writes: > Colin Baxter writes: >> Hello, >> >> In the last few days org-publish no loner works for me, giving a >> lisp error: (void-function conkeror-minor-mode). The source of >> the problem is the line '(add-hook '

Re: org-publish error with java hook

2021-01-17 Thread Tim Cross
Colin Baxter writes: > Hi Tim, > > Thanks for you quick reply. >> Tim Cross writes: > > > Colin Baxter writes: > > >> Hello, > >> > >> In the last few days org-publish no loner works for me, giving a > >> lisp error: (void-function conkeror-minor-mode). The source of >

Re: org-publish error with java hook

2021-01-17 Thread Colin Baxter
> Tim Cross writes: > Colin Baxter writes: >> Hi Tim, >> >> Thanks for you quick reply. >>> Tim Cross writes: >> >> > Colin Baxter writes: >> >> >> Hello, >> >> >> >> In the last few days org-publish no loner works for me, giving >> a

self-referencing babel shell code blocks

2021-01-17 Thread HJ
 hi,   I'm  trying to figure out how to write a block , header, PROPERTY or whatever is necessary so the output of a command in babel source block identifies it own position - the line (or block or something) in buffer (or at least the file) in which it is written. ( Plus the checked out gi

Re: na=\"nil\" in ob-R.elo

2021-01-17 Thread Brett Presnell
I can verify that the :post work-around suggested by Chuck and implemented by Jeremie works as advertised. FWIW, I would certainly prefer to see the implementation org-babel-R-write-object-command changed so that the work-around wouldn't be necessary. Thank you to both Chuck and Jeremie for loo

"Invalid version syntax" with 9.4.4

2021-01-17 Thread Hanns Mattes
Hi, as mentioned in the subject I ran into this error after upgrading from 9.4 to 9.4.4. With 9.4 org-version reports: , | Org mode version 9.4 (9.4-elpa @ /home/hanns/.emacs.d/elpa/org-9.4/) ` With 9.4.4: , | Org mode version ( @ /home/hanns/.emacs.d/elpa/org-9.4.4/) ` resul

Re: self-referencing babel shell code blocks

2021-01-17 Thread John Kitchin
I guess this is what you mean: * heading L1_12 ** heading L2_37 #+name: this-block #+header: :var VAR1=(getenv "HOSTNAME") #+header: :var VAR2=(message user-login-name) #+header: :var VAR3=(buffer-file-name) #+header: :var VAR4=(org-element-property :name (org-element-context)) #+header: :var VA

Re: self-referencing babel shell code blocks

2021-01-17 Thread HJ
Dear Mr Kitchin,   you are a genius !!    A BIG THANK YOU!!!   Wow. I couldn't imagine someone might be able to do this so quickly and perfectly. Wow.    thank you so much     HJ PS: Now I'm off to figure out how to invoke emacs to tell it to open up the window and show this file at

Re: self-referencing babel shell code blocks

2021-01-17 Thread John Kitchin
see https://stackoverflow.com/questions/3139970/open-a-file-at-line-with-filenameline-syntax there are also ways to make fancier org-links, but I think you will find what you need in that link. John --- Professor John Kitchin Doherty Hall A207F Department of Chemi

Re: Feature request

2021-01-17 Thread Raoul Comninos
Ihor Radchenko writes: > Raoul Comninos writes: > >> I have copied the code to my dot Emacs, but now when I try to add an >> attachment now, it generates this error: >> >> run-hook-with-args: Wrong number of arguments: (lambda nil "Save list of >> attachments to ORG_ATTACH_FILES property." (whe

Re: [feature request] A new cookie type [!] showing the last note taken

2021-01-17 Thread Ihor Radchenko
Christopher Miles writes: > I think this is possible through read last note text in logbook, then display > it > in headline through text-property overlay. > > That's what I did in this package > [[https://github.com/stardiviner/org-link-beautify]] > > Should not be that hard to implement it.

Re: Custom Bulk Functions With Prompt

2021-01-17 Thread Ihor Radchenko
Kevin Foley writes: > I took a look this morning and came up with the attached patch. > Essentially if the custom function is a list then the first element is > the bulk function and the second is the argument function. > > If that looks reasonable I can add some documentation and submit a > prop

Re: Feature request

2021-01-17 Thread Ihor Radchenko
Raoul Comninos writes: > It works now and its awesome! I cannot believe that they had this > feature and removed it. I am a very happy man and I cannot thank you enough. This feature creates a lot of junk text when attachment folder gets very large. For example, I keep my travel photos as attach

Re: Custom Bulk Functions With Prompt

2021-01-17 Thread Kevin Foley
Ihor Radchenko writes: > Note that attachment in the previous email appears to be empty. Can you > resend? I will take a look then. My mistake, populated file is attached. Thanks. Kevin diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index dedf7e5bb..1df99ec79 100644 --- a/lisp/org-agenda

Re: Feature request

2021-01-17 Thread Ihor Radchenko
Raoul Comninos writes: > With your permission can I post your solution to stack-exchange, > crediting you? Sure. The public message URL is https://orgmode.org/list/87sg70vsvy.fsf@localhost/ Best, Ihor

Why are (UU)IDs limited to the headline level?

2021-01-17 Thread arozbiz
I'm just getting into Emacs/Org-Mode. It's clearly an amazing system and the linking via UUID is very useful. My question is: why is linking by UUID (and, more generally, the creation of properties drawers) limited to headlines, and not to sub-elements like list elements or paragraphs? Doesn't all

Re: Bug: incorrect timestamps with :time-prompt and datetrees

2021-01-17 Thread Kyle Meyer
Richard Lawrence writes: > Hi everyone, > > Richard Lawrence writes: > >> I can now confirm that this is the problem. It looks like what is happening >> here >> is that the regex is meant to match a time range, but ends up matching >> the date: thus a string like "12-31 13:00" gets mangled to "1