Templating of PDF export

2020-02-02 Thread Florian Lindner
Hello, I am collecting my cooking recipes in an org-mode file. While that certainly works for, I would like to have a nice LaTeX export for non-nerd mortals to look at. All recipes are in one file and each one looks like: * Pancakes ** Ingredients + 6 Eggs + 3 Apples ** Directions Just do it! **

Strangely recognized non-lists and non-headers.

2020-02-02 Thread D
Hi all, while debugging org-superstar-mode I noticed something very strange, and I am not sure if it's a bug in org or a bug in my understanding of org. First off, an MWE for Org mode version 9.1.9 (release_9.1.9-65-g5e4542): #+BEGIN_SRC C /* * This is a header? + this + is * a

Re: Provide org-insert-subitem

2020-02-02 Thread Dmitrii Korobeinikov
Hi, Bastien, > `org-insert-subheading' and `org-insert-todo-subheading' are not used > anywhere in Org's code. Do you them? How? I use them as intended: for convenience. Basically, I have a binding for this: (defun my/insert-heading () (interactive) (end-of-line) (cond

Re: [RFC PATCH] specify a time, not number of minutes to keep, with org-resolve-clock

2020-02-02 Thread Bastien
Hi Dan, Dan Drake writes: > I'm willing to assign copyright to the FSF, make my > contribution public domain, or whatever is most convenient and > easiest to get this into org. Thanks! My understanding is that your contribution has already been added to org-mode, which is fine. To assign

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread Nicolas Goaziou
D writes: > On 02.02.20 12:59, Nicolas Goaziou wrote: >> Long story short. Don't use this function, it is not correctly >> implemented at the moment. The correct way to check if you're in a list >> is something like: >> >> (org-element-lineage (org-element-at-point) '(plain-list) t) > > I

Re: [BUG] Tags misalign while editing heading

2020-02-02 Thread Dmitrii Korobeinikov
Hi Bastien, Sure, filed it here https://github.com/emacs-evil/evil/issues/1264 Best, Dmitrii вс, 2 февр. 2020 г. в 03:30, Bastien : > > Hi Dmitrii, > > Dmitrii Korobeinikov writes: > > > Oh, I forgot about the "-Q"... Anyway, I figured the behavior is > > present with evil-mode. > > > >

Re: [BUG] Infinite loop in org-agenda-show-new-time

2020-02-02 Thread Andrew Hyatt
On Sat, Feb 1, 2020 at 4:33 AM Bastien wrote: > Hi Andrew, > > Andrew Hyatt writes: > > > I've been having this same issue - the issue is quite reproducible > > for me, and it has been for years. I just finally grew tired of the > > issue and decided to investigate it, and yes, the issue is >

Re: Command to edit the heading?

2020-02-02 Thread Dmitrii Korobeinikov
Hi, Bastien, Well, the idea was to have consistency, since there's already org-set-tags. But org-set-tags is useful for completion, which can't be said of the title. So I think you are right, plain editing is sufficient. Especially now that I have written a goto-heading function, it's hasn't been

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread Nicolas Goaziou
Hello, D writes: > I use org-list-in-valid-context-p as a quick hack to check if what I am > looking at is actually a list. Long story short. Don't use this function, it is not correctly implemented at the moment. The correct way to check if you're in a list is something like:

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread D
Hi, On 02.02.20 12:59, Nicolas Goaziou wrote: > Long story short. Don't use this function, it is not correctly > implemented at the moment. The correct way to check if you're in a list > is something like: > > (org-element-lineage (org-element-at-point) '(plain-list) t) I tried that out, but

Re: Strangely recognized non-lists and non-headers.

2020-02-02 Thread D
> You need to escape them with commas. Ah, I overlooked that because I did not check the manual whether leading stars are escaped automatically and just assumed it, sorry. Thanks a lot! Though, there is one minor thing I noticed: Leading stars are valid comment symbols in Fortran, as long as

Bug (with fix): org-tempo-add-block incorrectly inserts comma before next `#+begin_src' during expansion [9.3.2 (9.3.2-8-g47b104-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20200127/)]

2020-02-02 Thread Bram Adams
Hi, I encountered a bug in org-tempo-add-block, where the following snippet in an org file (with “’ on line 125 of org-tempo.el: === (defun org-tempo-add-block (entry) "Add block entry from `org-structure-template-alist'." (let* ((key (format "<%s" (car entry))) (name (cdr entry))

Bug: org-indent-region doesn't restore cursor position when org-src-tab-acts-natively is t [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.3/lisp/org/)]

2020-02-02 Thread Sébastien Miquel
Given the following src block in org-mode: #+BEGIN_SRC emacs-lisp (defun my-function ()   (instruction1)   (instruction2) ;;  (instruction3)   ) #+END_SRC Steps to reproduce (with emacs -Q):  1) set org-src-tab-acts-natively to t  2) set the mark at the beginning of the function definition

Re: [RFC PATCH] specify a time, not number of minutes to keep, with org-resolve-clock

2020-02-02 Thread Dan Drake
I just wanted to add that I have no real opinion one way or the other on the TINYCHANGE bit; I was just following what I found at https://orgmode.org/worg/org-contribute.html. I also have no strong opinion on how copyright should be handled for this. I'm willing to assign copyright to the FSF,

Re: Provide org-insert-subitem

2020-02-02 Thread Adam Porter
Bastien writes: > `org-insert-subheading' and `org-insert-todo-subheading' are not used > anywhere in Org's code. Do you them? How? > > I'm more inclined to delete these commands since they have no binding > than to add an `org-insert-subitem'. > > Hitting then seems swift and handy enough.

Re: A new, "org-bullets"-like minor mode

2020-02-02 Thread D
> I haven't looked at the code yet but would it make sense for your new > mode just being renamed to "org-bullet" instead? Do you expect that > some current users won't want to update? I have been considering that, but decided against replacing org-bullets (or calling the package something akin

Re: org-superstar-mode: A re-imagining of org-bullets with new features

2020-02-02 Thread Adam Porter
Hi D, This looks fantastic! Great work! I sent you a quick suggestion on the issue tracker. Let's get this on MELPA ASAP! :)

Re: A new, "org-bullets"-like minor mode

2020-02-02 Thread Jonas Bernoulli
> Much like org-bullets-mode, the new mode (dubbed > "org-superstar-mode" for the time being) visually replaces headline > stars with UTF8 bullets. However, while I took the code of org-bullets > as an initial template, I have largely rewritten the code base for lots > of additional features I

Re: [BUG] Tags misalign while editing heading

2020-02-02 Thread Bastien
Dmitrii Korobeinikov writes: > Sure, filed it here > > https://github.com/emacs-evil/evil/issues/1264 Thanks! -- Bastien

Re: A few changes to test in master

2020-02-02 Thread Fraga, Eric
On Friday, 31 Jan 2020 at 21:31, Bastien wrote: > "Fraga, Eric" writes: > >> 1. the header contents are placed at the leftmost column means the first >>row does not align with the table in two cases: >>1. when display-line-number-mode is active and/or >>2. when org-indent-mode is

Re: A few changes to test in master

2020-02-02 Thread Bastien
Hi Eric, "Fraga, Eric" writes: > On Friday, 31 Jan 2020 at 17:50, Bastien wrote: >> "Fraga, Eric" writes: >>> 2. the display of the first row does not have column widths adjusted and >>>so the entries do not line up if the table itself has adjusted column >>>widths (C-c TAB). >> >>

Re: A few changes to test in master

2020-02-02 Thread Fraga, Eric
On Friday, 31 Jan 2020 at 17:50, Bastien wrote: > "Fraga, Eric" writes: >> 2. the display of the first row does not have column widths adjusted and >>so the entries do not line up if the table itself has adjusted column >>widths (C-c TAB). > > `org-table-automatic-realign' being t by

Table alignment documentation

2020-02-02 Thread Colin Baxter
I notice in https://orgmode.org/manual/Column-width-and-alignment.html that a footnote says table centering does not work in emacs but only when exported to html. This does not seem to be correct as shown in below screen shot. Perhaps I am missing something. Best wishes, Colin.

Re: org table integrity

2020-02-02 Thread John Kitchin
This is a little tricky to guarantee; there are just so many ways to edit a table. One way to do this is like the following. The idea is to use the org-cycle-hook to check the last cell you were in when you pressed TAB in a table. This of course does not work if you don't use tab, and in its

Re: Bug (with fix): org-tempo-add-block incorrectly inserts comma before next `#+begin_src' during expansion [9.3.2 (9.3.2-8-g47b104-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20200127/)]

2020-02-02 Thread Ihor Radchenko
It's a duplicate of my earlier bug report https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00326.html Hope, there will be some progress. Best, Ihor Bram Adams writes: > Hi, > > I encountered a bug in org-tempo-add-block, where the following snippet in an > org file (with “

Re: Bug (with fix): org-tempo-add-block incorrectly inserts comma before next `#+begin_src' during expansion [9.3.2 (9.3.2-8-g47b104-elpaplus @ ~/.emacs.d/elpa/org-plus-contrib-20200127/)]

2020-02-02 Thread Bram Adams
Hi Ihor, > It's a duplicate of my earlier bug report > https://lists.gnu.org/archive/html/emacs-orgmode/2019-12/msg00326.html > True, I seem to notice the same symptoms and also had `org-src-tab-acts-natively’ set. >