Re: [O] [PATCH 1/2] Add tests for org-refile-get-targets

2017-05-21 Thread Nicolas Goaziou
Hello, Sebastian Reuße writes: > Fair enough. Thank you! FWIW, is there some handy table to consult on > newly supported functions by Emacs version? Or do you have it all > memorized from the Emacs changelogs? When I encounter a suspicious function, i.e., a function I have hardly seen before, I

Re: [O] [PATCH 1/2] Add tests for org-refile-get-targets

2017-05-21 Thread Sebastian Reuße
Nicolas Goaziou writes: > Sebastian Reuße writes: >> It didn’t feel right copy-pasting the tests wholesale, so I made a >> helper-macro. I checked the ert output by forcing a failure and the >> failure explanation looks as expected. Does this work for you? > Honestly, I still find it difficul

Re: [O] [RFC] The "c" Org macro

2017-05-21 Thread Nicolas Goaziou
Hello, Kaushal Modi writes: > Thanks. I tried it out and it works great, except for one issue I came > across. Thank you for the feedback. > If the n macro is at the BOL, followed by a period, the counter value > resets to 1 even when that macro is specifying the counter value. > Foo > {{{n(a,

Re: [O] [RFC] The "c" Org macro

2017-05-21 Thread Kaushal Modi
On Sun, May 21, 2017 at 9:38 AM Nicolas Goaziou wrote: > Here is the last update, with tests and an ORG-NEWS entry. Noteworthy > change: the "c" macro is now the "n" macro. > > If there are no objection nor additional suggestions, I will push it to > master in a couple of days. > Thanks. I tried

Re: [O] [PATCH 1/2] Add tests for org-refile-get-targets

2017-05-21 Thread Nicolas Goaziou
Hello, Sebastian Reuße writes: > Sure. Have a look at the follow-up patch and let me know what you > think. Thank you! > It didn’t feel right copy-pasting the tests wholesale, so I made a > helper-macro. I checked the ert output by forcing a failure and the > failure explanation looks as expec

Re: [O] Bug: "PROPERTIES" drawer [9.0.5 (9.0.5-elpa @ /home/ymak/.emacs.d/elpa/org-20170210/)]

2017-05-21 Thread Nicolas Goaziou
Hello, Евгений Макей writes: > Only after updating to version 9.0.5 > When i'm trying to set property in file with headings with > PROPERTIES drawers '(not (org-before-first-heading-p))' every times > creates new drawer, even if drawer has properties end correct ':END:' > block. I'm not sure to

Re: [O] Bug: Link descriptions in org-element parser

2017-05-21 Thread Nicolas Goaziou
Hello, Erik Sjöstrand writes: > When having an link where the link's description also look like a link, > the description will be treated like a link by org-element. As an > example: > > [[info:emacs#Directory%20Variables][info:Directory Variables]] > > If the above was an org-file, org-elem

[O] Bug: Link descriptions in org-element parser

2017-05-21 Thread Erik Sjöstrand
When having an link where the link's description also look like a link, the description will be treated like a link by org-element. As an example: [[info:emacs#Directory%20Variables][info:Directory Variables]] If the above was an org-file, org-element-parse-buffer would find two links in the

Re: [O] returning propertized strings

2017-05-21 Thread John Kitchin
I figured out the properties are getting lost in org-babel-format-result, in the beginning with (setq result (org-no-properties result)). I can see a reason this is desirable is that the properties would not be persistent on saving/closing. On the other hand, it could be really useful in some scen

[O] Bug: "PROPERTIES" drawer [9.0.5 (9.0.5-elpa @ /home/ymak/.emacs.d/elpa/org-20170210/)]

2017-05-21 Thread Евгений Макей
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list.

Re: [O] [PATCH] org-store-link: Don't roll C-u behavior into C-u C-u behavior

2017-05-21 Thread Kyle Meyer
Nicolas Goaziou writes: > Kyle Meyer writes: > >> If there are no objections within a few days, I'll apply the following >> patch to maint. > > LGTM. Thank you. Thanks for having a look. Applied in 0de7ad043. -- Kyle

Re: [O] Bug: Bug: org-in-item-p indicates point is in list when it isn't [8.3.3 (release_8.3.3-529-gfed40e @ /home/malsburg/usr/share/emacs/site-lisp/org/)] [9.0.5 (9.0.5-elpa @ /home/malsburg/.emacs.

2017-05-21 Thread Titus von der Malsburg
On 2017-05-21 Sun 12:57, Nicolas Goaziou wrote: > Hello, > > Titus von der Malsburg writes: > >> In the example below, when I place the cursor on “Item 2” and then do >> (org-end-of-item-list), the cursor is correctly placed at the beginning >> of line 4. However, when I then say (org-in-item-p)

Re: [O] [RFC] The "c" Org macro

2017-05-21 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > On Monday, 8 May 2017 at 16:52, Nicolas Goaziou wrote: >> Here is an updated patch, in which one can write >> >> {{{c(sub,reset)}}} >> {{{c(sub, 5)}}} >> >> or even, for the default macro >> >> {{{c(,reset)}}} >> {{{c(, 99)}}} > > Finally found some time to t

Re: [O] returning propertized strings

2017-05-21 Thread John Kitchin
On Sat, May 20, 2017 at 9:46 PM, Charles C. Berry wrote: > On Sat, 20 May 2017, John Kitchin wrote: > > If I run this block I get test as a result, but all its properties have >> been stripped. >> >> #+BEGIN_SRC emacs-lisp :results drawer >> (propertize "test" 'font-lock-face '(:foreground "red")

Re: [O] Bug: Bug: org-in-item-p indicates point is in list when it isn't [8.3.3 (release_8.3.3-529-gfed40e @ /home/malsburg/usr/share/emacs/site-lisp/org/)] [9.0.5 (9.0.5-elpa @ /home/malsburg/.emacs.

2017-05-21 Thread Nicolas Goaziou
Hello, Titus von der Malsburg writes: > In the example below, when I place the cursor on “Item 2” and then do > (org-end-of-item-list), the cursor is correctly placed at the beginning > of line 4. However, when I then say (org-in-item-p), I get something > non-nil. When I move the cursor to th

[O] Bug: Bug: org-in-item-p indicates point is in list when it isn't [8.3.3 (release_8.3.3-529-gfed40e @ /home/malsburg/usr/share/emacs/site-lisp/org/)] [9.0.5 (9.0.5-elpa @ /home/malsburg/.emacs.d/el

2017-05-21 Thread Titus von der Malsburg
In the example below, when I place the cursor on “Item 2” and then do (org-end-of-item-list), the cursor is correctly placed at the beginning of line 4. However, when I then say (org-in-item-p), I get something non-nil. When I move the cursor to the beginning of line 5, I still get non-nil for (

Re: [O] [PATCH] org-store-link: Don't roll C-u behavior into C-u C-u behavior

2017-05-21 Thread Nicolas Goaziou
Hello, Kyle Meyer writes: > If there are no objections within a few days, I'll apply the following > patch to maint. LGTM. Thank you. Regards, -- Nicolas Goaziou