Re: newline or no newline at end of capture: expected behavior

2020-09-27 Thread Samuel Wales
well, fwiw, i am still getting empty lines for capture buffers with a final newline and empty capture buffers. idk if htat helps by iutself. recent maint [new org version] emacs 25. On 9/27/20, Samuel Wales wrote: > ... but i want to know what is expected. it sopunds like org is > intended to

Re: newline or no newline at end of capture: expected behavior

2020-09-27 Thread Samuel Wales
... but i want to know what is expected. it sopunds like org is intended to produce the desired result regardless. so i will messa aroud more with my settings. i am limited in comput3er use so it might take a while for me to produce anything liek an mwe. but i will check a few things. On

Re: newline or no newline at end of capture: expected behavior

2020-09-27 Thread Samuel Wales
hi nicolas, thanks, that helps to know that org adds a newline. this prevents the failure mode of corrupted headers. just to confirm, do you mean capture /templates/ [potentially verifiable by org] vs. /finalized buffers/? it sounds like you mean templates, because otherwise org just does

Re: newline or no newline at end of capture: expected behavior

2020-09-27 Thread Nicolas Goaziou
Hello, Samuel Wales writes: > thank you. when i can, i will try explicitly setting all three to 0 > to see if that prevents the unwanted newlines, in the buffer with > newline on last line, and empty buffer, cases. > > the docstring says empty-lines defaults to 0, which is what i want. > it

Re: newline or no newline at end of capture: expected behavior

2020-09-27 Thread Samuel Wales
hi richard, thank you. when i can, i will try explicitly setting all three to 0 to see if that prevents the unwanted newlines, in the buffer with newline on last line, and empty buffer, cases. the docstring says empty-lines defaults to 0, which is what i want. it does not say what the default

Re: newline or no newline at end of capture: expected behavior

2020-09-27 Thread Richard Lawrence
Hi Samuel, > On 9/23/20, Samuel Wales wrote: >> i have the same question for headline-only capture >> buffers. i.e. what is the expected result with and without trailing >> newline. Just to clarify: are you aware of the :empty-lines, :empty-lines-before and :empty-lines-after keys that you can

Re: newline or no newline at end of capture: expected behavior

2020-09-26 Thread Samuel Wales
hi bastien, another example is, whenever i capture a headline like "* test\n" and finalize, it creates a blank line after the headline. is it expected that users should remove the final newline in the capture buffer, in a finalize hook, to prevent this? it would heolp me figure out whether it

Re: newline or no newline at end of capture: expected behavior

2020-09-23 Thread Samuel Wales
i have the same question for headline-only capture buffers. i.e. what is the expected result with and without trailing newline.

Re: newline or no newline at end of capture: expected behavior

2020-09-23 Thread Samuel Wales
i have been trying various hooks so this might not be the worst case, but i know that finalizing a completely empty buffer will insert a newline after the target. that can't be worked around with hooks. On 9/23/20, Bastien wrote: > Hi Samuel, > > Samuel Wales writes: > >> basically i am

Re: newline or no newline at end of capture: expected behavior

2020-09-23 Thread Bastien
Hi Samuel, Samuel Wales writes: > basically i am getting unwanted newlines all over the place when i > capture. but i want to confirm expected behavior for all 4 questions. Let's take this one by one. Can you provide the *worst* use case of Org going completely insane regarding empty lines

Re: newline or no newline at end of capture: expected behavior

2020-09-19 Thread Samuel Wales
third question: if you capture a completely blank capture buffer, is it supposed to insert a blank line right after the target headline, or is it supposed to be a no-op? [i prefer no-op.] fourth question: if you capture a capture buffer with a newline, [same options]. [i prefer no-op.] this

newline or no newline at end of capture: expected behavior

2020-09-19 Thread Samuel Wales
i want to check on what is /supposed/ to occur in 9.4 maint. if i capture an entry that has a newline at the end of the last line in the entry, is it supposed to end the entry with a blank line? or is it supposed to end the entry with the last line? [i want last line.] if i capture an entry