Re: [O] [RFC] Link-type for attachments, more attach options

2019-07-08 Thread Marco Wahl
Hi Gustav and all,

Thanks for the refreshment of the org attach universe.

In particular I like the new attachment type for links.  I'd like to
express my favorability to use the name "att" opposed to "attachment" to
specify that type.


Thanks for reading, best regards,  Marco






[O] [PATCH] Export with verbatim LaTeX removes spaces

2019-07-08 Thread Michaël Cadilhac
Hi,

When LaTeX is exported verbatim, some spaces are lost.  Try for instance:
  M-: (let ((org-html-with-latex 'verbatim)) (org-html-export-as-html)) RET
on a buffer containing "$a$ $b$".  Post-blanks were simply not added
back, see below.

Thanks!

Cheers,
Michaël

ox.el: Add post-blanks when latex is verbatim

* lisp/ox.el (org-export--remove-uninterpreted-data): Add post-blanks
  when latex is verbatim.

TINYCHANGE
---
 lisp/ox.el | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/lisp/ox.el b/lisp/ox.el
index 078efaffc..395ce7feb 100644
--- a/lisp/ox.el
+++ b/lisp/ox.el
@@ -2950,7 +2950,12 @@ returned by the function."
   ;; ... LaTeX environments and fragments...
   ((latex-environment latex-fragment)
(and (eq (plist-get info :with-latex) 'verbatim)
-(list (org-export-expand datum nil
+(list (concat
+(org-export-expand datum nil)
+(make-string
+   (or (org-element-property :post-blank datum)
+   0)
+   ?\s)
   ;; ... sub/superscripts...
   ((subscript superscript)
(let ((sub/super-p (plist-get info :with-sub-superscript))



[O] Org headings to HTML or Latex table?

2019-07-08 Thread Jay Iyer
Hi, would it be possible to collect org headlines/subtrees into a format
that allows for HTML or Latex tabular output (C-c C-e h or l)?  Is there
anything out-of-the-box that can be used for this?

Recently, Sacha Chua offered a way to collect headlines into a simple 2x2
HTML table (
sachachua.com/blog/2019/06/turning-an-org-mode-outline-into-an-html-table-with-a-column-for-more-notes/)
and I am curious whether this can be extended for any arbitrary table grid?

IMHO, the primary benefit of exporting trees this way could be to
accommodate the need for multi-line tables.

Thanks for your help.
-jay


[O] Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]

2019-07-08 Thread 'Ihor Radchenko'


When defining a time interval using org-schedule, I can usually type
something like "2pm+2" and get "SCHEDULED: <2019-07-09 Tue
14:00-16:00>". However, typing "11pm+2" leads to incorrect behaviour.
The result is "SCHEDULED: <2019-07-09 Tue 23:00-25:00>", which is
obviously wrong.

Emacs  : GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit)
 of 2019-04-29
Package: Org mode version 9.2.3 (9.2.3-17-g4df705-elpaplus @ 
/home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)




Re: [O] Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]

2019-07-08 Thread Matthew Piziak


> obviously wrong

It's natural to think so, but my Org mode correctly interprets `Tue
25:00` as being equivalent to `Wed 01:00`. That includes agenda
scheduling filters.

This format is used in the real world sometimes too, especially for
things like TV showings that span across the midnight boundary, as in
your example.



Re: [O] Bug: Incorrect behaviour of org-schedule when defining a time interval [9.2.3 (9.2.3-17-g4df705-elpaplus @ /home/yantar92/.emacs.d/elpa/org-plus-contrib-20190513/)]

2019-07-08 Thread Ihor Radchenko


Thanks for the clarification. I never saw this format earlier. 

Matthew Piziak  writes:

>> obviously wrong
>
> It's natural to think so, but my Org mode correctly interprets `Tue
> 25:00` as being equivalent to `Wed 01:00`. That includes agenda
> scheduling filters.
>
> This format is used in the real world sometimes too, especially for
> things like TV showings that span across the midnight boundary, as in
> your example.