Re: [PATCH] Fix bug in org-num check for commented headlines

2020-08-27 Thread Nicolas Goaziou
Hello, Anders Johansson writes: > I found an easily solved bug in org-num. > > This happens when org-num-skip-commented is non-nil. > When creating a new headline, often org-num--skip-value is invoked > before any headline text is created. This means that ‘title‘ is nil > and the string-match ch

[PATCH] Fix bug in org-num check for commented headlines

2020-08-25 Thread Anders Johansson
I found an easily solved bug in org-num. This happens when org-num-skip-commented is non-nil. When creating a new headline, often org-num--skip-value is invoked before any headline text is created. This means that ‘title‘ is nil and the string-match check breaks. Checking if title is non-nil fixes