Re: Bug: org-refile-get-target offers default candidate in duplicity [9.2.6 (9.2.6-4-ge30905-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20191007/)]

2020-02-12 Thread Bastien
Hi Gustavo,

Gustavo Barros  writes:

> I tested it and indeed the duplicate candidate is gone. However, the
> last refile target no longer seems to be offered as the default for a 
> subsequent refile operation. Was that intentional?

Nope, an oversight -- fixed in master.

Thanks!

-- 
 Bastien



Re: Bug: org-refile-get-target offers default candidate in duplicity [9.2.6 (9.2.6-4-ge30905-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20191007/)]

2020-02-12 Thread Bastien
Hi Gustavo,

Gustavo Barros  writes:

> Am I missing something, or wouldn't it be more appropriate
> `https://code.orgmode.org/bzg/org-mode.git' in the manual?

Indeed, applied, thanks!

-- 
 Bastien



Re: specify time of day for org-resolve-clocks, not number of minutes

2020-02-12 Thread Bastien
Hi Kyle and Dan,

Kyle Meyer  writes:

> Thanks, though sadly Dan had already taken the time to follow up with a
> patch:
>
>   https://lists.gnu.org/archive/html/emacs-orgmode/2020-01/msg00175.html

Err, my bad, sorry Dan -- and thanks Kyle for the warning.

(I too hastily assume 1 thread = 1 topic, I should have checked.)

I reverted my changes and pushed Dan's commit to master.

I took the liberty of inlining the function and making the message a
bit more explicit.  Dan, let me know if that's okay.

Interestingly, our (different and complementary) implementations may
lead to a new idea: your implementation is like the `k' option while
mine is like the `g' option (when you "got back").  I guess both can
make sense, and what the user expect is to be able to enter a number
of minutes *or* a HH:MM time spec in both `t' and `g'.

That would also have the advantage of having less options while still
having the possibility to use HH:MM.  (Also, using org-read-date here
seems a bit too much here, but maybe that's okay.)

Dan, what do you think?  Would you like to try implementing this or
can I give it a try?

Thanks,

-- 
 Bastien



Re: Provide org-insert-subitem

2020-02-12 Thread Corwin Brust
Hi,

On Wed, Feb 12, 2020, 15:28 Adam Porter  wrote:

> Hi Bastien,
>
> Bastien  writes:
>
> > I still find it strange to keep functions that are used nowhere in the
> > Org's core--except of course for functions that explicitely mention as
> > usable by the user (e.g. `org-clock-persistence-insinuate'.)
>

[snip]

And it's in org.el, so it's in Org's
> "core", right?  I guess we're thinking in different terms.
>
> Inserting a subheading or subitem is a very common operation in an
> outlining and list-making tool, so it would seem like a significant
> regression to remove it.
>

I think there's an implied -and usually misleading‐ correlation between the
importance of a function and the count of self-references -meaning uses in
the defining package- shown from help buffers.It would be cool to see
uses tracked as we byte-compile or something.

I'm not opposed to reorganizing the code, of course, as long as it
> remains loaded as a command when org-mode is activated.
>

I'm a fan of interactive methods in obvious, easy to reach places.


Re: Bug: org-refile-get-target offers default candidate in duplicity [9.2.6 (9.2.6-4-ge30905-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20191007/)]

2020-02-12 Thread Gustavo Barros

Hi Bastien,

On Wed, Feb 12 2020, Bastien wrote:


this should be fixed in Org master branch, thanks for the detailed
report.  If you can confirm the fix, even better.


By the way, I almost forgot, a small "side-report" on this.
In going to test this from master, I followed the instructions in the 
manual (web version https://orgmode.org/manual/Installation.html) and 
those instruct users to:



$ git clone g...@code.orgmode.org:bzg/org-mode.git


I tried it, but lacked the password...

Am I missing something, or wouldn't it be more appropriate 
`https://code.orgmode.org/bzg/org-mode.git' in the manual?


Best,
Gustavo.




Re: Bug: org-refile-get-target offers default candidate in duplicity [9.2.6 (9.2.6-4-ge30905-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20191007/)]

2020-02-12 Thread Gustavo Barros

Hi Bastien,

thank you very much for looking into this.

On Wed, Feb 12 2020, Bastien wrote:


this should be fixed in Org master branch, thanks for the detailed
report.  If you can confirm the fix, even better.


I tested it and indeed the duplicate candidate is gone. However, the 
last refile target no longer seems to be offered as the default for a 
subsequent refile operation. Was that intentional?


To be more precise, in terms of the ECM of the initial bug report, when 
refiling "Entry 2" the default target is "test.org/", when I would 
expect it to be "test.org/Top heading 1".


Best,
Gustavo.




Re: specify time of day for org-resolve-clocks, not number of minutes

2020-02-12 Thread Kyle Meyer
Hi Bastien,

Bastien  writes:

> good idea -- please test from latest master branch, you can now use
> `t' and `T' as you suggested.

Thanks, though sadly Dan had already taken the time to follow up with a
patch:

  https://lists.gnu.org/archive/html/emacs-orgmode/2020-01/msg00175.html



Re: Bug: copy-rectangle-to-register problem with org-indent [9.3.5 (9.3.5-elpa @ ~/.emacs.d/elpa/org-20200212/)]

2020-02-12 Thread Bastien
Hi Hannu,

Hannu Koivisto  writes:

> Summary: if org-indent-mode is enabled, copy-rectangle-to-register
> seems to copy "indentation" in addition to the actual rectangle, even
> if the rectangle is not in the beginning or end of any line.

Well, this is a real problem, but I have no idea how to prevent this
behavior.  I'd be interested if someone finds a solution.

We could also ask on emacs-devel@ whether `copy-rectangle-to-register'
(and friends) should not take care of stripping wrap/line-prefix props
from the copied text.

-- 
 Bastien



Re: specify time of day for org-resolve-clocks, not number of minutes

2020-02-12 Thread Bastien
Hi Dan,

Dan Drake  writes:

> I posted a question on emacs.stackexchange: https://
> emacs.stackexchange.com/questions/54445/
> specify-time-of-day-for-org-resolve-clocks-not-number-of-minutes

good idea -- please test from latest master branch, you can now use
`t' and `T' as you suggested.

-- 
 Bastien



Custom block agendas: Set buffer name

2020-02-12 Thread Nathan Neff
Hello all,

I'm playing with block agendas and I'm wondering how to set a
specific buffer
name.

In non-block agendas, I can set the buffer name like this:
(setq org-agenda-custom-commands (append
  '(
 ("p" "Simple list of active projects" tags-todo
"PRIORITY<\"C\"+project-inactive/-cancelled-done"
   ((org-agenda-prefix-format " %?-12t% s")
(org-agenda-buffer-name "Top Level Active Projects")
(org-agenda-sorting-strategy (quote (priority-down)

But I can't find where to specify org-agenda-buffer-name in a custom block
agenda - for example,
in the docs:
https://orgmode.org/manual/Block-agenda.html

Where would I add the org-agenda-buffer-name?

Thanks,
--Nate


Re: Bug: org-refile-get-target offers default candidate in duplicity [9.2.6 (9.2.6-4-ge30905-elpaplus @ /home/gustavo/.emacs.d/elpa/org-plus-contrib-20191007/)]

2020-02-12 Thread Bastien
Hi Gustavo,

this should be fixed in Org master branch, thanks for the detailed
report.  If you can confirm the fix, even better.

Best,

-- 
 Bastien



bug#39173: 26.1; Extra character deleted in org-export--update-included-link

2020-02-12 Thread Bastien
Fixed upstream, thanks.

-- 
 Bastien





Re: Agenda: How to bulk mark regex w/spaces?

2020-02-12 Thread Nathan Neff
Thanks Bastien for your hard work - I'm famous!

https://code.orgmode.org/bzg/org-mode/commit/c0d08b7efe740c17a3eec28984161c05e43da5ef

On Wed, Feb 12, 2020 at 1:01 PM Bastien  wrote:

> Hi Nathan,
>
> thanks for sticking with me on this one!  You're right, it's when the
> match happens at the end of the line, I've pushed a fix in maint.
>
> Thanks!
>
> --
>  Bastien
>


Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread Bastien
D  writes:

> After some I found the culprit!  The issue arises from
> org-do-emphasis-faces.

Fixed in maint, following your suggestion.  Thanks!

-- 
 Bastien



Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread D
Hi,

After some I found the culprit!  The issue arises from
org-do-emphasis-faces.  The bug is caused by the line

(font-lock-prepend-text-property
  (match-beginning 2) (match-end 2) 'face face)

which makes the surrounding "~"s part of the box, combined with

(add-text-properties (match-end 4) (match-beginning 5)
  '(invisible org-link))

setting them invisible.  This appears to confuse Emacs.  Anything along
the lines of

(let ((num (if org-hide-emphasis-markers 4 2)))
  (font-lock-prepend-text-property
   (match-beginning num) (match-end num) 'face face))

should fix the issue.

To demonstrate the behavior, I created a MWE function reproducing the bug.

(defun mwe (start end)
  "Reproduce a weird fontification behaviour cutting off boxes."
  (interactive "r")
  (font-lock-prepend-text-property
   start end 'face '(:box (:line-width 3 :color "grey")))
  (add-text-properties (1- end) end '(invisible org-link)))


Hope that is helpful,
D.



Re: Possible to exclude/include tags for agenda custom commands?

2020-02-12 Thread Bastien
Hi Stig,

Stig Brautaset  writes:

> I can easily do this in the list of TODOs, with a tag search. However, I
> haven't figured out how to do this for the agenda. Is it possible? If
> so, how?

>From what I understand, check `org-agenda-tag-filter' to see how to
use it within an agenda custom command.

HTH,

-- 
 Bastien



Re: org-babel-load-file support elisp

2020-02-12 Thread Troy Hinckley
Wow. Thanks for the quick resolution!
On Feb 12, 2020, 2:42 PM -0700, Bastien , wrote:
> Hi Troy,
>
> Troy Hinckley  writes:
>
> > I tracked down an issue trying to load a literate config file.
> > org-babel-load-file calls org-babel-tangle-file with lang set to
> > "emacs-lisp". This means that it won't tangle any blocks with
> > language set to "elisp", which is equivalent.
>
> This is now fixed in master, will be in Org 9.4.
>
> --
> Bastien


Re: Feature request: Radio button option for lists of checkboxes

2020-02-12 Thread Samuel Wales
istr an org-choice package that did somthin siilar with entries.

On 2/12/20, Bastien  wrote:
> Hi Matus,
>
> Matus Goljer  writes:
>
>> Thank you both for following up on this! I'm going to add a note to
>> my package that this feature is now built-in and deprecate it.
>
> You might want to wait a little bit before deprecating your package,
> there might be some differences with the built-in implementation that
> make your package more useful to some users?
>
> A link to the built-in implementation is always good, of course.
>
> Thanks!
>
> --
>  Bastien
>
>


-- 
The Kafka Pandemic

What is misopathy?
https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html



Re: org-babel-load-file support elisp

2020-02-12 Thread Bastien
Hi Troy,

Troy Hinckley  writes:

> I tracked down an issue trying to load a literate config file.
> org-babel-load-file calls org-babel-tangle-file with lang set to
> "emacs-lisp". This means that it won't tangle any blocks with
> language set to "elisp", which is equivalent.

This is now fixed in master, will be in Org 9.4.

-- 
 Bastien



Re: Provide org-insert-subitem

2020-02-12 Thread Adam Porter
Hi Bastien,

Bastien  writes:

> I still find it strange to keep functions that are used nowhere in the
> Org's core--except of course for functions that explicitely mention as
> usable by the user (e.g. `org-clock-persistence-insinuate'.)
>
> I'd rather have these functions stored in a org-utils.el library for
> those who care.

I'm not sure what you mean about functions mentioned as usable by the
user.  org-insert-subheading is an interactive command, so it's
explicitly usable by the user.  And it's in org.el, so it's in Org's
"core", right?  I guess we're thinking in different terms.

Inserting a subheading or subitem is a very common operation in an
outlining and list-making tool, so it would seem like a significant
regression to remove it.

I'm not opposed to reorganizing the code, of course, as long as it
remains loaded as a command when org-mode is activated.




Re: Bug: Link given to gnuplot-mode is out of date [9.1.9 (release_9.1.9-65-g5e4542 @ /nix/store/x7b40y4pxp69h343akhaj4fb9fspacdq-emacs-26.1.50/share/emacs/26.1.50/lisp/org/)]

2020-02-12 Thread Bastien
Hi all,

Nicolas Goaziou  writes:

> At this point, I think the only way to stay in Emacs is to move
> ob-gnuplot (and other similar libraries that require non-Emacs
> libraries) in GNU ELPA or some such.
>
> I'm Cc'ing Bastien for his opinion about it.

I've simply removed the broken link from ob-gnuplot.el without
mentioning the (currently active) GitHub repository.

-- 
 Bastien



Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'

2020-02-12 Thread Sebastian Miele
Bastien  writes:
>
> Sebastian Miele  writes:
>
> > I am quite certain, that the content indentation conceptually and
> > technically belongs to the buffer containing the src block.
>
> Sorry, I think I got confused - let's call buffer-A the one with the
> "#+begin_src ... #+end_src" string and buffer-B the one you get when
> C-c ' on this string (the src block).
>
> If "the buffer containing the src block" is buffer A, then we are on
> the same line.  Is it the case?  Or am I still confused?

Yes, we are on the same line.



Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'

2020-02-12 Thread Bastien
Hi Sebastian,

Sebastian Miele  writes:

> I am quite certain, that the content indentation conceptually and
> technically belongs to the buffer containing the src block.

Sorry, I think I got confused - let's call buffer-A the one with the 
"#+begin_src ... #+end_src" string and buffer-B the one you get when
C-c ' on this string (the src block).

If "the buffer containing the src block" is buffer A, then we are on
the same line.  Is it the case?  Or am I still confused?

-- 
 Bastien



Possible to exclude/include tags for agenda custom commands?

2020-02-12 Thread Stig Brautaset


I use Org agenda to manage both work and non-work TODOs. I tend to use
the tags @home, @work. When at work I don't want to distractions from
@home stuff, and vice versa.

In a work context I would like an agenda view that excludes anything
tagged with @home, and a list of the 5 highest priority non-@home tasks.
Vice versa for a home context I want to exclude @work stuff. Items with
neither tag should show up in both views.

I can easily do this in the list of TODOs, with a tag search. However, I
haven't figured out how to do this for the agenda. Is it possible? If
so, how? If it's not possible, can I skip the agenda and instead create
a separate tags-todo search that shows a list of only those scheduled /
timestamped / deadlined for today in a separate stanza, so they stand
out from the unscheduled ones?

Here's what I'm currently using. The tags-todo search works as I like,
but I can't figure out how to exclude agenda items with certain tags
from the agendas.

(setq org-agenda-custom-commands
  '(("w" "Work Agenda"
 ((agenda "" ((org-agenda-span 'day)))
  (tags-todo "-@home-MAYBE/TODO"
 ((org-agenda-max-entries 5)
  (org-agenda-todo-ignore-scheduled 'all)
  (org-agenda-todo-ignore-deadlines 'all)
  (org-agenda-todo-ignore-timestamp 'all)
("h" "Home Agenda"
 ((agenda "")
  (tags-todo "-@work-MAYBE/TODO"
 ((org-agenda-max-entries 5)
  (org-agenda-todo-ignore-scheduled 'all)
  (org-agenda-todo-ignore-deadlines 'all)
  (org-agenda-todo-ignore-timestamp 'all)
("m" "Maybe"
 ((tags-todo "MAYBE/PROJ")
  (tags-todo "MAYBE-PROJ/TODO")))
("P" "Projects" tags-todo "-MAYBE/PROJ")))

Stig



Re: Agenda: How to bulk mark regex w/spaces?

2020-02-12 Thread Bastien
Hi Nathan,

thanks for sticking with me on this one!  You're right, it's when the
match happens at the end of the line, I've pushed a fix in maint.

Thanks!

-- 
 Bastien



Re: Org mode entry in Emacs Info menu

2020-02-12 Thread Stephen Berman
On Wed, 12 Feb 2020 18:01:07 +0100 Bastien  wrote:

> Hi Stephen,
>
> I don't think this was intentional, I reverted to the old
> dircategory, thanks to you and Drew for reporting this.

Thanks for restoring it.

Steve Berman




Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'

2020-02-12 Thread Sebastian Miele
Hi Bastien,

Bastien  writes:
>
> Sebastian Miele  writes:
>
> > * lisp/org-src.el (org-src--contents-for-write-back): Use the
> > potentially buffer-local value of `org-edit-src-content-indentation'
> > from the source buffer instead of that from the editing buffer.
>
> I'm not sure about I see why this patch would be useful.
>
> IIUC, in case `org-edit-src-content-indentation' is set in the src
> block buffer itself, you want Org to honor its value _there_ instead
> of the value this variable has in the org buffer (containing the src
> block)?

I am quite certain, that the content indentation conceptually and
technically belongs to the buffer containing the src block. Except for
src blocks containing org I see no point at all for setting a content
indentation in an edit buffer for the block. There just is no meaning of
an org src content indentation in e.g. an Elisp buffer.

And for an src buffer containing org the meaning would be the content
intentation for the org in the block, and not for the org containing the
block.

> I find it difficult to see a compelling use case, please let me know
> if I don't understand correctly.

Nicolas already accepted the patch. Currently it is included as commit
3649d95b in the history of master. Before accepting the patch, he too
asked for a use case. Please see

https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00052.html

for the answer.

Best wishes
Sebastian



Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread D
Hi,

On 12.02.20 18:24, Bastien wrote:
> I can reproduce this issue but I have no clue what can be wrong in
> Org.  Perhaps you can submit this to emacs-de...@gnu.org.
Very strange indeed.  In that case I'll try poking around the code a bit
more (I think there is a lot I can learn from investigating org's code
base) and relay the issue to emacs-devel if I find nothing helpful.

I'll report back in a few days!



Bug: copy-rectangle-to-register problem with org-indent [9.3.5 (9.3.5-elpa @ ~/.emacs.d/elpa/org-20200212/)]

2020-02-12 Thread Hannu Koivisto

Hi,

Summary: if org-indent-mode is enabled, copy-rectangle-to-register seems 
to copy "indentation" in addition to the actual rectangle, even if the 
rectangle is not in the beginning or end of any line.


Steps to reproduce:
- Using the Emacs and Org mode versions listed at the end, start Emacs 
with "emacs -q"
- M-x package-initialize RET so that Org fetched using the package 
system is used instead of the bundled one

- Create test.org with the following content:

* test
** test2
foo !2.11. foo
bar 23.11. foo
baz 24.11. foo
jep 25.11! foo

- Enable org-indent-mode
- Select a region starting from the first ! and ending to the second !
- C-x r r i
- Switch to *scratch* buffer
- C-x r i i

Expected result:

!2.11.
23.11.
24.11.
25.11!

Actual result:

!2.11.
23.11.
24.11.
25.11!

...where indentation happens due to text properties (you cannot move 
point to column 0, for example -- I'm using manually inserted spaces in 
this email).  If I select the inserted lines, starting from the line 
above it, and execute M-x facemenu-remove-all RET, the inserted lines 
move to column 0.


Emacs  : GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21)
 of 2017-09-22, modified by Debian
Package: Org mode version 9.3.5 (9.3.5-elpa @ 
/home/hannuko/.emacs.d/elpa/org-20200212/)


--
Hannu



Re: Use CUSTOM_ID for outline-containers during HTML export

2020-02-12 Thread Bastien
Hi Yann,

"Yann Esposito (yogsototh)"  writes:

> I would like to submit a simple patch that could make the HTML
> exporter closer to reproductible build.  I have given a bit more
> information in my commit below.

I applied your patch in the master branch, thanks.

-- 
 Bastien



Re: Agenda: How to bulk mark regex w/spaces?

2020-02-12 Thread Nathan Neff
Whoops sorry wanted to reference the source code:

https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-agenda.el#L10147

I think that the problem is the call to org-agenda-bulk-mark on line 10160
(it doesn't mark
if the point is at the EOL)
https://code.orgmode.org/bzg/org-mode/src/master/lisp/org-agenda.el#L10160

On Wed, Feb 12, 2020 at 11:49 AM Nathan Neff  wrote:

> Hi Bastien,
>
> I'm using emacs -u NONE with emacs 27.0.50
> and Org mode version 9.2.5
>
> And I'm not seeing this expected behavior.
>
> I have the following simple foo.org file for my agenda:
> * TODO Foo
> * TODO Pre Class
> * TODO Again
>
> I'm using the built-in agenda view for TODO entries ("t")
> and I'm searching using
>
> Pre\sClass
> {Pre\sClass}
> Pre Class
> "Pre Class"
>
> And the entry is not *marked* in the agenda, but there are messages
> saying "1 entries marked for bulk action"
>
> If I search for "Pre Clas" and "Pre\sCl" etc. the entries are marked.
>
> If I search for "Class" (no quotes) then there's no match.  However, if I
> search for "Cla" (no quotes) then there is a match and the heading is
> marked.
>
> So, it appears there's a problem *if the match ends on the last character
> of the heading*.
>
> In fact, I can replicate the problem by searching in the agenda manually
> by searching for "Class"
> (no quotes) :) and then calling (call-interactively 'org-agenda-bulk-mark)
> - the mark is not made and
> there's a message "user-error: Nothing to mark at point"
>
> Not sure how to fix it but wanted to show my awesome debugging skills :)))
>
> Thanks,
> --Nate
>
> Thanks,
> --Nate
>
>
>
> On Tue, Feb 11, 2020 at 5:22 PM Bastien  wrote:
>
>> Hi Nathan,
>>
>> Nathan Neff  writes:
>>
>> > I'm trying to use org-agenda-bulk-mark-regexp and trying to search
>> > for
>> > headings having "Pre Class".
>> >
>> > None of the combinations have worked so far (I've tried with quotes
>> > and without quotes in the prompt)
>>
>> There is nothing special with the regexps you need to enter with
>> `org-agenda-bulk-mark-regexp', you can use the same syntax you would
>> use for, e.g., C-u C-s in Emacs.
>>
>> Note that only the text of the headline is considered, not part of
>> the agenda line that are not the heading itself (e.g. todo keywords,
>> tags, etc.)
>>
>> > Pre Class
>>
>> should work
>>
>> > Pre\sClass
>>
>> => Pre\s-Class should work
>>
>> > Pre\\sClass
>>
>> nope
>>
>> > Pre.*Class
>>
>> should work
>>
>> > {Pre Class}
>>
>> nope.
>>
>> HTH,
>>
>> --
>>  Bastien
>>
>


Re: [PATCH] Respect buffer-local value of `org-edit-src-content-indentation'

2020-02-12 Thread Bastien
Hi Sebastian,

Sebastian Miele  writes:

> * lisp/org-src.el (org-src--contents-for-write-back): Use the
> potentially buffer-local value of `org-edit-src-content-indentation'
> from the source buffer instead of that from the editing buffer.

I'm not sure about I see why this patch would be useful.

IIUC, in case `org-edit-src-content-indentation' is set in the src
block buffer itself, you want Org to honor its value _there_ instead
of the value this variable has in the org buffer (containing the src
block)?

I find it difficult to see a compelling use case, please let me know
if I don't understand correctly.

Thanks,

-- 
 Bastien



Re: Agenda: How to bulk mark regex w/spaces?

2020-02-12 Thread Nathan Neff
Hi Bastien,

I'm using emacs -u NONE with emacs 27.0.50
and Org mode version 9.2.5

And I'm not seeing this expected behavior.

I have the following simple foo.org file for my agenda:
* TODO Foo
* TODO Pre Class
* TODO Again

I'm using the built-in agenda view for TODO entries ("t")
and I'm searching using

Pre\sClass
{Pre\sClass}
Pre Class
"Pre Class"

And the entry is not *marked* in the agenda, but there are messages
saying "1 entries marked for bulk action"

If I search for "Pre Clas" and "Pre\sCl" etc. the entries are marked.

If I search for "Class" (no quotes) then there's no match.  However, if I
search for "Cla" (no quotes) then there is a match and the heading is
marked.

So, it appears there's a problem *if the match ends on the last character
of the heading*.

In fact, I can replicate the problem by searching in the agenda manually by
searching for "Class"
(no quotes) :) and then calling (call-interactively 'org-agenda-bulk-mark)
- the mark is not made and
there's a message "user-error: Nothing to mark at point"

Not sure how to fix it but wanted to show my awesome debugging skills :)))

Thanks,
--Nate

Thanks,
--Nate



On Tue, Feb 11, 2020 at 5:22 PM Bastien  wrote:

> Hi Nathan,
>
> Nathan Neff  writes:
>
> > I'm trying to use org-agenda-bulk-mark-regexp and trying to search
> > for
> > headings having "Pre Class".
> >
> > None of the combinations have worked so far (I've tried with quotes
> > and without quotes in the prompt)
>
> There is nothing special with the regexps you need to enter with
> `org-agenda-bulk-mark-regexp', you can use the same syntax you would
> use for, e.g., C-u C-s in Emacs.
>
> Note that only the text of the headline is considered, not part of
> the agenda line that are not the heading itself (e.g. todo keywords,
> tags, etc.)
>
> > Pre Class
>
> should work
>
> > Pre\sClass
>
> => Pre\s-Class should work
>
> > Pre\\sClass
>
> nope
>
> > Pre.*Class
>
> should work
>
> > {Pre Class}
>
> nope.
>
> HTH,
>
> --
>  Bastien
>


Re: Feature Request: Use ~org-set-tags-command~ for ~%^g~ in capture

2020-02-12 Thread Bastien
Hi Samuel,

swflint+orgm...@flintfam.org (Samuel W. Flint) writes:

> Is there a way to use the ~org-set-tags-command~ function to complete
> tags during capture?  It currently uses whatever my normal completion
> method is, but this means that I can't use the faster tag-selection
> method that I'm used to otherwise.

I tried to implement this but I've failed to find a clean way of doing
so.  What matters here is that tag completion should be accurate, and
for some reason, I cannot get this right and use org-set-tags-command.

If you find a clean way, with correct tag completion, please let us know.

Thanks,

-- 
 Bastien



Re: Folding whitespace at the end of a tree

2020-02-12 Thread Bastien
Hi,

knoll  writes:

> I tried it using a minimal .emacs and version 9.3.3. It behaves the
> same on a Linux and a Windows installation.

Mhh, sorry, I still cannot reproduce this problem.  I hope you can
digg through the code and find the problem to fix, if any.

-- 
 Bastien



Re: org-mode functional programming library

2020-02-12 Thread Bastien
Hi Nate,

"Dwarshuis, Nathan J"  writes:

> Thank you for the feedback. I don't mind writing something up
> myself. Under what section should this be submitted ("contributed
> packages" or "additions under development")?

I would say *both* to give it as much visibility as possible.

Also, beware that I plan to make a big revamping of Worg's contents,
precisely in order to make it easier to answer such questions.

Thanks!

-- 
 Bastien



Re: [PATCH] ob-plantuml: Support for plantuml as well as the current java+jar solution

2020-02-12 Thread Bastien
Hi Terje,

Terje Larsen  writes:

> I have been missing this feature for a while and noticed it had already
> been requested before (2014), See:
> https://lists.gnu.org/archive/html/emacs-orgmode/2016-08/msg00105.html
>
> With this patch you can switch between using jar or plantuml. The idea
> partly stemmed from plantuml-mode and my inability to use the default
> implementation. You can see the implementation for plantuml-mode here:
> https://github.com/skuro/plantuml-mode/pull/102/files
>
> My patch is available here:
> https://code.orgmode.org/terlar/org-mode/commit/fbe245c0b09513ee5a6d3b189e112708b9d08da0

Thanks for the patch -- I see you're already on the list of committers
with TINYCHANGE: https://orgmode.org/worg/org-contribute.html#orgcd077ac

Would you like to sign the FSF papers and resubmit your patch on top
of current master?

https://orgmode.org/request-assign-future.txt

Thanks a lot,

-- 
 Bastien



Re: Weird face behavior with org-hide-emphasis-markers enabled

2020-02-12 Thread Bastien
Hi,

D  writes:

> Org mode version 9.1.9 (release_9.1.9-65-g5e4542)
>
> minimal setup:
> (setq org-hide-emphasis-markers t)
> (set-face-attribute 'org-code nil :box '(:line-width 1))
>
> an example file mwe.org:
> ~sample text~
>
> This reproduces the issue reliably.

I can reproduce this issue but I have no clue what can be wrong in
Org.  Perhaps you can submit this to emacs-de...@gnu.org.

-- 
 Bastien



Re: [PATCH 2/4] ob-clojure.el: Add ClojureScript interface

2020-02-12 Thread Bastien
Hi,

I hope you and/or Robert can take care of improvements for ob-clojure.el.

I use it, so I'm comfortable testing patches, don't hesitate.

Robert: I see old patches that haven't been answered, sorry for that.
I hope you can resubmit them, possibly partly rewriting them on top of
Org's master branch.

Thanks!

-- 
 Bastien



Re: [FEATURE] exporting with write partially to solve big Org file slowing exporting

2020-02-12 Thread Bastien
Hi Stardiviner,

stardiviner  writes:

> This question seems no people interested in.

Well, it is a mix of people not having time and questions being too
large or too fuzzy.  The best way to get an answer is to get as close
as a solution as you can, then ask for the missing piece.

Here the question is vague - also the subject says "FEATURE" while the
feature suggestion is not very clear...

I'm bumping (very) old threads when I really think it is worth revive
them, but let's try not to bump issues just because they don't get an
answer.

Thanks!

-- 
 Bastien



Re: Org mode entry in Emacs Info menu

2020-02-12 Thread Bastien
Hi Stephen,

I don't think this was intentional, I reverted to the old
dircategory, thanks to you and Drew for reporting this.

I will follow-up on the Emacs bug report.

Best,

-- 
 Bastien



Re: org-agenda clock table total time only for first clock time column

2020-02-12 Thread Bastien
stardiviner  writes:

> Why the total clock time only calculated for first column clock task
> time?

I am not sure I understand the problem.

If you really think there *is* a problem, can you give us an example
file to reproduce it?

-- 
 Bastien



Re: org-capture with :prepend t breaks :clock-resume functionality in 9.1.9

2020-02-12 Thread Bastien
Hi Cody,

this should have been fixed, if you can upgrade to Org > 9.3.3.

Thanks,

-- 
 Bastien



Re: org-mode functional programming library

2020-02-12 Thread Dwarshuis, Nathan J
Hi Bastien,

Thank you for the feedback. I don't mind writing something up myself. Under 
what section should this be submitted ("contributed packages" or "additions 
under development")?

Thank you,
Nate


From: Bastien 
Sent: 2020-02-11T03:13:48-0500
To: Dwarshuis, Nathan J
Subject: org-mode functional programming library
Hello Nathan,

this looks very interesting and promising, thanks for this work.

I hope you can work with Nicolas to spot possible enhancements to
your own library or to org-element.el, if that's relevant.

I will reference om.el (or org-ml.el?) on Worg, but if you want
to do it yourself, please go ahead:

https://orgmode.org/worg/org-contribute.html

Thanks!




Re: [O] [FEATURE] exporting with write partially to solve big Org file slowing exporting

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


This question seems no people interested in. I still have not found solution.
Don't know somebody have any idea?

stardiviner  writes:

> When I export a big Org file which is a big reference has about 36285
> lines to epub format through package "ox-epub". I found it write to HTML
> is very slow.
>
> Is there any solution to solve this?
>
> I guess this could be Org exporter problem. If Org exporter can write
> partly to file one by one. it will be better.
>
> If you have any other idea, please tell me. Thanks.
>
> Regards.


- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5EDpAUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsO2GwgArvx4oOuSCKIgA76W1bBJ+iUxqpo1
TVJ910xo4n/mieHWPzYCok4gqtJSK++qqnBY/a/ujjna95xqYk7yQeAZRWVz46kG
hAjnNIGWweEQQirJWtXLCZbUDg0xrhqC2hBC5IWjl6q3AQuAWYcWh+yhh0OKlQqY
0abxLOqWKklzprmW+CEKCgOgY9czRQtZhu2QaWupG+xzeu4VIc+wQ1AduPNdR0E3
n4EnarL9mx+7vQ+YpScfcQz+UvQ963RdPgkUnBsvc7iLOhQx/XIZmdnEDXrgIMCE
1DxZTiz6DzjDDwAdA0peXn90Sgc0pPxLfVFV0JFqfjbqO4fN4R0adEqGeQ==
=Ld+v
-END PGP SIGNATURE-



Re: [O] [PATCH 2/4] ob-clojure.el: Add ClojureScript interface

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Hi, any update on this patch? I still have this feature reminder in my GTD.
Really hope ob-clojure.el can support ClojureScript too.

If possible, hope this can integrate with current CIDER new session manager 
"sesman".

roberthambr...@gmail.com writes:

> From: Robert Hambrock 
>
> * lisp/ob-clojure.el (org-babel-execute:clojure): Implemented :target,
> which allows selection of connection.
> * lisp/ob-clojure.el (org-babel-execute:clojurescript): New
> ClojureScript interface that uses :target flag to specify `cljs`
> evaluation target.
> ---
>  lisp/ob-clojure.el | 10 +++---
>  1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/lisp/ob-clojure.el b/lisp/ob-clojure.el
> index 93674b552..7f7c24ff1 100644
> --- a/lisp/ob-clojure.el
> +++ b/lisp/ob-clojure.el
> @@ -129,7 +129,8 @@ using the :show-process parameter."
>(cider
> (require 'cider)
> (let ((result-params (cdr (assq :result-params params)))
> -  (show (cdr (assq :show-process params
> +  (show (cdr (assq :show-process params)))
> +  (connection (cider-current-connection (cdr (assq :target 
> params)
>   (if (member show '(nil "no"))
>;; Run code without showing the process.
>(progn
> @@ -137,7 +138,7 @@ using the :show-process parameter."
>(let ((nrepl-sync-request-timeout
>   org-babel-clojure-sync-nrepl-timeout))
>  (nrepl-sync-request:eval expanded
> - (cider-current-connection
> + connection)))
>  (setq result
>(concat
> (nrepl-dict-get response
> @@ -171,7 +172,7 @@ using the :show-process parameter."
>   (nrepl--merge response resp)
>   ;; Update the status of the nREPL output session.
>   (setq status (nrepl-dict-get response "status")))
> -   (cider-current-connection))
> +   connection)
>  
>;; Wait until the nREPL code finished to be processed.
>(while (not (member "done" status))
> @@ -211,6 +212,9 @@ using the :show-process parameter."
>(condition-case nil (org-babel-script-escape result)
>   (error result)
>  
> +(defun org-babel-execute:clojurescript (body params)
> +  (org-babel-execute:clojure body (cons '(:target . "cljs") params)))
> +
>  (provide 'ob-clojure)
>  
>  ;;; ob-clojure.el ends here


- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5D+p8UHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsNcZwf8DtemZgXwNYF7SidMtURACKAEZkkN
wxRWB6MyZ5O4AbnOxTIwYrp+GiGMshrA24NIsWvb9IPQUK4yquzukxzH+Z1/fpK/
iQpbplhFjIS2Pvzh1o+Fe1nH9jYjJx7gg6JlUAuXiJF0qHntw/XHbPRjOcF7u450
jkN/iyh7UbQd1Ds/Yy/rISi846c4Ezx6eKGH6X5btWvFjF4dop/GxA7WWl73HMyk
769pLiMRZAhy0dIKj1daQ769P0V5dS5XpZvwXy8AxJP/0sjO38x6DLpANRI92C4A
gUpI5q3lGBc4frxHDpudBkIuOhX1e42n+AUGCTXB7b7Ktl7RXiTCwwP/ng==
=KcNL
-END PGP SIGNATURE-



Re: ob-clojure :var header argument not work when src block is noweb called by another src block

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Bastien  writes:

> Hi stardiviner,
>
> stardiviner  writes:
>
>> You can see the error result in the src block.
>
> The attached .org file works for me - I put requirements in a separate
> source block and I repeat the :var setting in the last src block.
>
> If you find an occurrence in other languages where the repeated setting
> is not needed, please give me an example.
>
> Thanks,

Indeed, so I guess this is not supported in Org Mode originally.

Is it possible to support it? Or does it have a value to support?

Well, the first obvious reason is to avoid repeated typing and redundant input
data.

If this is not possible or very difficult to implement. I will not insist on
this. I guess we have other solution on Babel to archive same purpose. WDYT?

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5D7dAUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsP7kAf/ZOOCzlh/268k4w+djC/BVQFuSTDT
XuNS9ITKDhhbe3jnUZt/UTU5x4CmnfUAdvaXNeYaOEppEEgSHpuYJA741gbtnuZj
J40EDLaHjAy5/3lx/d67XE7cnk7Y3+M9423/L8hOfEdV0GQcxJlJcJRTfIhZLAVq
hdgm+5sZ4zksCbZjq5ElC6Q7VkUdweq+bLn3uof1QO/EdBVmOeklLbmpVS8JZPCl
p15d/lByXJj7Lh5q5zPltUEd6vS67VGQ1gPVxtrhCIAUudVclAqEVuRSffTc7zeM
nb8RaFS5KX2tK0thNvXjGWsWZfngVTRUoUP/v+6mhz9OwkfJy83pp9DXEg==
=WDAV
-END PGP SIGNATURE-



Re: Bug: Symlink handling in org-babel-load-file

2020-02-12 Thread Bastien
Hi Ricky,

thanks for reporting this.

Can you try this patch and confirm it solves your issue?

diff --git a/lisp/org.el b/lisp/org.el
index f3823284c..ef2c7b9e6 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -218,7 +218,8 @@ and then loads the resulting file using `load-file'.  With
 optional prefix argument COMPILE, the tangled Emacs Lisp file is
 byte-compiled before it is loaded."
   (interactive "fFile to load: \nP")
-  (let* ((tangled-file (concat (file-name-sans-extension file) ".el")))
+  (let* ((file (file-truename file))
+	 (tangled-file (concat (file-name-sans-extension file) ".el")))
 ;; Tangle only if the Org file is newer than the Elisp file.
 (unless (org-file-newer-than-p
 	 tangled-file

-- 
 Bastien


Re: Bug: :lexical header argument not handled when tangling [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)]

2020-02-12 Thread Bastien
Hi Immanuel,

immanuel  writes:

> #+BEGIN_SRC emacs-lisp :lexical t :tangle elisp.el
> (defun lex-p ()
>   "Return t if lexical binding is in effect."
>   (interactive)
>   (let (lex
> _lex-p)
> (let ((lex t))
>   (setq _lex-p
> (lambda ()
>   lex)))
> (if (funcall _lex-p)
> (message "lexical binding")
>   (message "no lexical binding"
>
> (lex-p)
> #+END_SRC
>
> When evaluating this code block with C-c C-c I get lexical binding.
> When tangling it or with org-babel-load-file I get no lexical
> binding.

You can declare lexical-binding in the source block, like this:

#+BEGIN_SRC emacs-lisp :lexical t :tangle elisp.el
;;; elisp.el -*- lexical-binding: t; -*-

(defun lex-p ()
  "Return t if lexical binding is in effect."
  (interactive)
  (let (lex
_lex-p)
(let ((lex t))
  (setq _lex-p
(lambda ()
  lex)))
(if (funcall _lex-p)
(message "lexical binding")
  (message "no lexical binding"

(lex-p)
#+END_SRC

#+RESULTS:
: lexical binding

-- 
 Bastien



Re: [PATCH] ob-java.el: Add header argument to pass command line args

2020-02-12 Thread Bastien
Hi Jarmo,

Jarmo Hurri  writes:

> ... attached

Just to confirm: this has been applied.

-- 
 Bastien



Re: ob-clojure :var header argument not work when src block is noweb called by another src block

2020-02-12 Thread Bastien
Hi stardiviner,

stardiviner  writes:

> You can see the error result in the src block.

The attached .org file works for me - I put requirements in a separate
source block and I repeat the :var setting in the last src block.

If you find an occurrence in other languages where the repeated setting
is not needed, please give me an example.

Thanks,

-- 
 Bastien
* test example

#+begin_src clojure
(require '[clojure.java.io :as io])
#+end_src

#+RESULTS:
: nil

#+NAME: read-in-wxid
#+begin_src clojure :var cwd=(file-truename "~/org/")
(def directory (io/file cwd))
(def files (filter #(.isFile %) (file-seq directory)))
#+end_src

#+RESULTS: read-in-wxid
: #'user/files

#+begin_src clojure :noweb yes :results pp :var cwd=(file-truename "~/org/")
<>
(take 3 user/files)
#+end_src

#+RESULTS:
: (#object[java.io.File 0x3caf7341 "/home/guerry/org/.gitattributes"]
:  #object[java.io.File 0x3afb2723 "/home/guerry/org/clojure.org"]
:  #object[java.io.File 0x36b68109 "/home/guerry/org/.git/description"])




Re: ob-clojure :var header argument not work when src block is noweb called by another src block

2020-02-12 Thread stardiviner

I check out the latest master, seems still not fixed.

From your another thread email, I guess you don't have email reading with Org
Mode, so can't read org format text. So I attach an Org file for testing
ob-clojure :var header argument in noweb reference in attachment.

You can see the error result in the src block.

Bastien  writes:

> Hi stardiviner,
>
> this should be fixed in latest master, please test it and
> report any problem.
>
> Thanks,


-- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
* test example

#+NAME: read-in-wxid
#+begin_src clojure :var cwd=(file-truename "~/Documents/WeChat/wxid/")
(require '[clojure.java.io :as io])

(def directory (io/file cwd))
(def files (filter #(.isFile %) (file-seq directory)))
#+end_src

#+RESULTS[<2020-02-12 18:41:03> 559e1d5d2e56334675f94f553b0d89c18ae938dc]: 
read-in-wxid
: #'user/files

#+begin_src clojure :noweb yes :results pp
<>
(take 3 files)
#+end_src

#+RESULTS[<2019-08-28 09:12:30> 9bbcd9f779f72bdd9b7bb8fb85aa36bbdfee7e3c]:
: class clojure.lang.Compiler$CompilerExceptionclass 
clojure.lang.Compiler$CompilerExceptionCompilerException 
java.lang.RuntimeException: Unable to resolve symbol: cwd in this context, 
compiling:(*Org Src Code.org[ clojure ]*:3:16) 


signature.asc
Description: PGP signature


Re: [PATCH] support colorful blocks display on org-agenda

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Bastien  writes:

> stardiviner  writes:
>
>> (add-hook 'org-agenda-finalize-hook #'org-agenda-time-grid-colorful-spacing)
>
> FWIW I don't think this should go in Org's core, it is a useful
> command to customize Org agenda colors.
>
> Can you suggest the author to add this to
> https://orgmode.org/worg/org-hacks.html ?

I see. I will add it to Worg hacks. Thanks for reviewing.

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5D1WMUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsPjaAf/awGa6rVJgG9/GCEAcIBuCN06rzEP
rUOEGdlUGHpTcayhosAE4awu1pkp9BT6DU7wtDJn/9R9p7QeFln9uwLaYzVoTYh5
QilMewzaxcZ7sOkmZB/a4Amz456lWuGf3xJ6DzcPlDicJVzK3ZXbJ/UzJrT4e3NL
I779FrqeusmyQ7KdrlDw8t8k2+AWldvcw+bmGHdw4lNxD2/PEfLaKuq26pTRqwOt
Uk5q7zIyDoCDdoDoeDV+j7ur1TtX79z54uV17E9fyiAUXp9Ms3Y7cJd+DgiGxdG1
HAaoIBw36BkncmI9OhCcBPZcXBk8faV2PpCwqDBvpuV+FJrVbiYQAmkgmg==
=njsz
-END PGP SIGNATURE-



Re: ob-clojure :var header argument not work when src block is noweb called by another src block

2020-02-12 Thread Bastien
Hi stardiviner,

this should be fixed in latest master, please test it and
report any problem.

Thanks,

-- 
 Bastien



Re: Multiply alerts for icalendar export

2020-02-12 Thread Fraga, Eric
On Wednesday, 12 Feb 2020 at 09:46, Bastien wrote:
> Perhaps adding three different appointments to get three alerts is
> good enough?

Noting, of course, that you can have multiple time stamps (active ones
in this case) associated with a single heading.  I do this every so
often.
-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.2-199-ga557cf



Re: Short captions

2020-02-12 Thread Fraga, Eric
On Tuesday, 11 Feb 2020 at 14:50, Anthony Cowley wrote:
> They are described in section 12.8 Captions

Thanks.  Missed that.  I was looking in the LaTeX export section of the
manual which doesn't mention short captions!  And, actually, the
:caption option for tables, say, doesn't seem to support such?

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.2-199-ga557cf



Org mode entry in Emacs Info menu

2020-02-12 Thread Stephen Berman
The update of Org mode to 9.3 in the Emacs sources
(http://git.savannah.gnu.org/cgit/emacs.git/commit/doc/misc/org.texi?h=emacs-27=165f7383822086d465519ebe6e4283723923f097)
contains this change to doc/misc/org.texi:

  -@dircategory Emacs editing modes
  +@dircategory Emacs

which resulted in moving the Org mode entry in the Emacs Info menu,
prompting Emacs bug#39556
(https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-02/msg00372.html).
I also find the new menu item placement inappropriate.  Was this
relocation intended, and if so, why?

Steve Berman



Re: On writing a theme for raw-notes prose legibility

2020-02-12 Thread Diego Zamboni
>
> I have similar idea, I try to create a minor mode for Org Mode to archive
> this
> effect.
>
> https://lepisma.github.io/2017/10/28/ricing-org-mode/


Wow, that looks absolutely amazing. Thanks for the link!

--Diego


Re: ob-clojure :var header argument not work when src block is noweb called by another src block

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


This problem seems missed. Let me resume it with a gentle ping.

I know not much people in this mailing list using ob-clojure.el. Still hope 
someone can fix it.

stardiviner  writes:

> Here is an example:
>
> #+NAME: read-in-wxid
> #+begin_src clojure :var cwd=(file-truename "~/Documents/WeChat/wxid/")
> (require '[clojure.java.io :as io])
>
> (def directory (io/file cwd))
> (def files (filter #(.isFile %) (file-seq directory)))
> #+end_src
>
> #+RESULTS[<2019-08-28 09:12:24> 84a1210d836742ca71c776aaebba0e0224af]: 
> read-in-wxid
> : #'user/files
>
> #+begin_src clojure :noweb yes :results pp
> <>
> (take 3 files)
> #+end_src
>
> #+RESULTS[<2019-08-28 09:12:30> 9bbcd9f779f72bdd9b7bb8fb85aa36bbdfee7e3c]:
> : class clojure.lang.Compiler$CompilerExceptionclass 
> clojure.lang.Compiler$CompilerExceptionSyntax error compiling at (*Org Src 
> Code.org[ clojure ]*:3:16).
> : Unable to resolve symbol: cwd in this context


- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DykkUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsMHPgf/U9hAaBPj+IB/bqKC5sdWsk1UNrUm
i8oZE3jnvKzyJKmNYv5mSA14VH49uCP/bdZNoaA+8BWtxl5JEwQuXxKMYI946jXw
JcloAG5VIfx4eQwUE3prRjBibLgPrIz6zB+w1GseWvjzqXpKTexgky0gDYmS0BQI
w6nYe4lSlvV4bOtjb8QU+YgtSm17GDaiFGzpfRPPOlVZ0zz0vtGwgTYIT0kJkWd6
N/eoyHXhykNZB0GBujAN8iXYbYPoJ6CHrDZEycLf3cYAeYFHubKRZwoZj85PKMeD
CtSe6ZfR465pjpYD1aZCme3t07b/sCSflKYn6WsqUr9HrvPktlEBQ2GN2w==
=fz33
-END PGP SIGNATURE-



Re: ob-clojure :var header argument not work when src block is noweb called by another src block

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


This problem is missed, Let me resume it.

stardiviner  writes:

> Here is an example:
>
> #+NAME: read-in-wxid
> #+begin_src clojure :var cwd=(file-truename "~/Documents/WeChat/wxid/")
> (require '[clojure.java.io :as io])
>
> (def directory (io/file cwd))
> (def files (filter #(.isFile %) (file-seq directory)))
> #+end_src
>
> #+RESULTS[<2019-08-28 09:12:24> 84a1210d836742ca71c776aaebba0e0224af]: 
> read-in-wxid
> : #'user/files
>
> #+begin_src clojure :noweb yes :results pp
> <>
> (take 3 files)
> #+end_src
>
> #+RESULTS[<2019-08-28 09:12:30> 9bbcd9f779f72bdd9b7bb8fb85aa36bbdfee7e3c]:
> : class clojure.lang.Compiler$CompilerExceptionclass 
> clojure.lang.Compiler$CompilerExceptionSyntax error compiling at (*Org Src 
> Code.org[ clojure ]*:3:16).
> : Unable to resolve symbol: cwd in this context


- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DyaEUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsNf7ggAxeVNocyCnuHdy8hhk1xNDJ3EXBay
PHquEzImS014tFh2I5yd7OsrtMlbVJ5W9Z4r81ZNsrFtEjYybweiVXsfmGbUjZmN
I8AaNqUMQBSWbaSeHrNETX5jTLFJEG86aPsMcvspDBnQtUbfcKl+zveiaC2pvMYh
XPzp6xVuQrRDIET6TljQbw9cwlI/8n2q5G/0ts73MdmAlXIKuvcGpgkY9gul7Csy
vc1t4wzVXVEllGzEEIK72VegJqi83ACO9n3HTVZqs/hxHmpPjLOI+avi0EiKydi4
G8IHD4FZ6KslkO6epcz4XHAdpuhlN++pvqlmLDldfQUsrBAnEUs9lppbDw==
=vGvD
-END PGP SIGNATURE-



Re: Feature request: Radio button option for lists of checkboxes

2020-02-12 Thread Matus Goljer
Thank you both for following up on this! I'm going to add a note to my
package that this feature is now built-in and deprecate it.

m.

On Wed, 12 Feb 2020, 08:43 Bastien,  wrote:

> Hi Phil,
>
> Phil Sainty  writes:
>
> > A nice feature that may be missing from this implementation
> > is the ability to mark individual lists as radio-button lists,
> > and then have C-c C-c do the right thing contextually.
>
> Good idea, this is now in.
>
> > The syntax John and Matúš used was:
> >
> > #+attr_org: :radio
>
> I think it should be "#+attr_org: :radio t".
>
> Try "#+attr_org: :radio t" and let me know if it works for you.
>
> > If that's practical to add to the new implementation, I would think
> > it would provide the best end-user experience for interacting with
> > such lists.
>
> Yes, I find it nice too, thanks again for suggestion this!
>
> Best,
>
> --
>  Bastien
>


Re: Feature request: Radio button option for lists of checkboxes

2020-02-12 Thread Bastien
Hi Matus,

Matus Goljer  writes:

> Thank you both for following up on this! I'm going to add a note to
> my package that this feature is now built-in and deprecate it.

You might want to wait a little bit before deprecating your package,
there might be some differences with the built-in implementation that
make your package more useful to some users?

A link to the built-in implementation is always good, of course.

Thanks!

-- 
 Bastien



Re: Finally figuring out some ob-sqlite stuff -- for worg?

2020-02-12 Thread Bastien
Hi Eric,

Eric Abrahamsen  writes:

> This is about putting some more example stuff on Worg about using Org
> and SQLite...

Please go ahead and add this -- no need to ask for permission, Worg is
not too sensible :)

Thanks,

-- 
 Bastien



Re: Org mode for meeting minutes

2020-02-12 Thread Bastien
Hi Christian,

this is nice indeed.  I added a link to your email in Worg:
https://orgmode.org/worg/org-tutorials/index.html#org7df3a04

Thanks,

-- 
 Bastien



Re: Emacs hangs sometimes for no reason

2020-02-12 Thread Karl Voit
* briangpowell .  wrote:
>
> Emacs periodically saves all files that you are visiting; this is called
> auto-saving . Auto-saving prevents you from losing more than a limited
> amount of work if the system crashes. By default, auto-saves happen every
> 300 keystrokes, or after around 30 seconds of idle time.
>
> Suggest you try making your auto-save-interval variable much larger and see
> if that helps

I had to disable auto-save because I'm using org-crypt which would
leak sensitive information to my disk (+ git repository).

I'm using real-auto-save instead.

> Also suggest making smaller .org files when practical

Way too late for that ;-) So far, I've found no one with bigger Org
files. I plan to blog about small versus big Org files in the
upcoming weeks.


However, your suggestions are valid points for the general
situation.

-- 
get mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML into Org-mode:
   > get Memacs from https://github.com/novoid/Memacs <
Personal Information Management > http://Karl-Voit.at/tags/pim/
Emacs-related > http://Karl-Voit.at/tags/emacs/




Re: On writing a theme for raw-notes prose legibility

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


I have similar idea, I try to create a minor mode for Org Mode to archive this
effect.

https://lepisma.github.io/2017/10/28/ricing-org-mode/

Maybe you can reference some from this.

Texas Cyberthal  writes:

> I already like and use Leuven themes:
> https://github.com/fniessen/emacs-leuven-theme
>
> It appears to be the correct normie-noob choice. Maybe some raw-notes
> prose features would fit there. Emacs has many use cases, calling for
> different settings. But Leuven already has some customize settings, so
> flexibility is possible. It's already doing more than just
> color-theming.
>
> Duplication of effort between many themes is an issue, but this
> appears to solve it:
> https://github.com/jonnay/org-beautify-theme/
>
> Doubtless some components of the normie-noob intake funnel should go
> to Spacemacs, others to Org, others to Emacs, others to theme, others
> to separate packages. Leuven is a good option I didn't consider.


- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5Du18UHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsOSnwf/X0mWKaUnhtfgDEbZbXbxPUP/xX+y
XA5RfwZRxeil+DDGDhxh+/P7PK6zjQ8Iz+ZjFTi4se3dUwDYCr9aHDdDUakamGPv
Qpnwhz3G5SGmm0/5ICbP0ln8rOv4jdHkY4XSAxaxE3ovbXGDpAS37xp2HXkMojTX
xe2KKiPC1mviGPl8d6A1E61JiCzj53xA3kUvmG/rCEy/96CuNEH0oo5u1gpVExR/
ZfJ8YJ01wHUHlOErZ4J3WrD75YYhD5Yg25gcRTAN1zuuUQ698BiN6/PAmt+DWoXo
j4z3M/csv+PVSlLoW1Q+1aAr07JUpLNooxzmVHmBY8KjG6PVIh4arJTweg==
=pIjL
-END PGP SIGNATURE-



Re: Multiply alerts for icalendar export

2020-02-12 Thread Bastien
Hi Mikhail,

Mikhail Skorzhinskii  writes:

> I am happy with current functionality but in rare cases I'd like to have
> more reminders per entry. Like many other PIMs allows this
> today. E.g. I'd like to have at least 3 reminders for my flight
> appointments. So to be extra sure and do not to miss my plain :-)

Perhaps adding three different appointments to get three alerts is
good enough?

2 cents of course...

-- 
 Bastien



Re: [PATCH] support colorful blocks display on org-agenda

2020-02-12 Thread Bastien
stardiviner  writes:

> (add-hook 'org-agenda-finalize-hook #'org-agenda-time-grid-colorful-spacing)

FWIW I don't think this should go in Org's core, it is a useful
command to customize Org agenda colors.

Can you suggest the author to add this to
https://orgmode.org/worg/org-hacks.html ?

-- 
 Bastien



[SOLVED] Re: [PATCH] ob-sql.el support auto set sql-product in editing sql-mode src block buffer

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Bastien  writes:

> Hi Stardiviner,
>
> stardiviner  writes:
>
>> Hmmm.. Just a gentle ping ... This might is been missed  Let me
>> resume this thread.
>
> I've seen this suggestion and the previous ping but did not really
> understand the change.
>
> I have edited your patch a little bit to avoid redundant lines and
> pushed it in master :
>
> https://code.orgmode.org/bzg/org-mode/commit/7cd9ad8f75
>
> Let me know if it looks good to you.
>
> Thanks for your contribution,

This is great. I don't know ~cl-case~'s KEYLIST can be a list. This solved my
problem totally. Still have more to learn. Thanks Bastien. :)

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5Duk0UHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsMiZQf/TO/2Bn6xmX8txp8icgb1zRX7f9z0
DFSKhlY782ihdWUKLuPpwJdV1zo0sAhoDRTkZSPyaa+8V2zwISyYmVrH72uxyfWV
vGBQOtTT7t68xPqdRAGlM10OZISE9xAISDjxB/HX6RRi3byg9z+15CyjMQTqSbW3
3beeEY+HZf9Rmhcxr8RXqiXgL37Cxk2zVSZwOyeNFZzjTXhJOnb6BEXg+lsUv/vo
/pGjOliFE12fshF0Rox9jX7HmA7fxNnq//CL7afh4zrolYYlJ79VA5Tixrv94M56
O15dPW/O6W0wBz7/ItGSTD3vxgPYx+ZDE5Q/WtHbFH00SV0NoqfxAIlwyw==
=16GH
-END PGP SIGNATURE-



Re: [PATCH] support colorful blocks display on org-agenda

2020-02-12 Thread Bastien
Hi Stardiviner,

stardiviner  writes:

> I have got author's permission to add this patch to Org Mode.

We need it explicitely here on this list.

Please submit the patch as an inline or attach .patch file.
You just need to go in the modified file, C-x v v and save the patch.

Even better, as a Git patch.
See https://orgmode.org/worg/org-contribute.html for details.

Otherwise, it is difficult to understand what the patch does.

Thanks!

-- 
 Bastien



Re: recently org-attach change invoke method caused error

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Bastien  writes:

> stardiviner  writes:
>
>> Here is the error:
>
> Thanks - can you try again from master and report?

Fixed now. Thanks for really quick fixup. Awesome!! :)

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DudcUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsNh4ggAxJtHX1wwZSrJ9G2SvEADEZ5EJjBC
CMYEokHq1ynZOyy8xNWssTOnHQZOjpZc/w4PEEAdMJ22U/FbLn+p3XY9hBQO6mCB
05Q9SYJa4SMeOJiFppHaBMPfordZ569Rq9mDHhH7V4y9OkF1PlZ8IwNvS3s7H9U/
ILHF6kmfbFV+ITucQmEmdZduhwApfHrc6hDT99IaeyWVQXG3gOYQ4DgQmUGPLct9
yNgsvZhEqj1nPDfm3NIGIBmj0PoGSY7kqK195gpf7pEVW1OOgP33jAPeEqG+dW2K
rU8T/zcZHhwVu7Ck1euaJdHErNjp9D14VjGokTtPswE1CxBStSshBSHZDw==
=eKjj
-END PGP SIGNATURE-



Re: [PATCH] Fix verbatim block fontification to end blocks on headlines

2020-02-12 Thread Bastien
Hi Tom,

Tom Gillespie  writes:

> An unrelated question.
>
> I've written some basic tests for this and I couldn't find any other
> tests that seemed to deal with fontification at all. In order to get
> fontification tests to work I added a call to `font-lock-ensure' inside
> `org-test-with-temp-text' (see excerpted patch bit below). Given how
> frequently `org-test-with-temp-text' is used, does it make sense to
> create a separate version of that macro just for testing with
> fontification? I have no idea what the performance impact would be, so
> any guidance is appreciated.

I tested this patch for a week or so, running tests not as often as I
should (obviously), but I noticed to performance issue.  I applied it
in master.

Thanks!

-- 
 Bastien



[PATCH] support colorful blocks display on org-agenda

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


I have got author's permission to add this patch to Org Mode.

Here is the original thread: https://emacs-china.org/t/org-agenda/8679/8

I don't know whether this patch have to get author signed FSF papers. Might have
not exceeded the TINYCHANGE limit?

Here is the patch code.

#+begin_src emacs-lisp
;; Show Org Agenda tasks with heigh spacing based on clock time with 
`org-agenda-log-mode'.
;; https://emacs-china.org/t/org-agenda/8679
;; work with org-agenda dispatcher [c] "Today Clocked Tasks" to view today's 
clocked tasks.
(defun org-agenda-time-grid-colorful-spacing ()
  "Set different line spacing w.r.t. time duration."
  (save-excursion
;; (list "#aa557f" "DarkGreen" "DarkSlateGray" "DarkSlateBlue") ; dark theme
;; (list "#F6B1C3" "#9D" "#BEEB9F" "#ADD5F7") ; white theme
(let* ((colors (list "#aa557f" "DarkGreen" "DarkSlateGray" "DarkSlateBlue"))
   pos
   duration)
  (nconc colors colors)
  (goto-char (point-min))
  (while (setq pos (next-single-property-change (point) 'duration))
(goto-char pos)
(when (and (not (equal pos (point-at-eol)))
   (setq duration (org-get-at-bol 'duration)))
  ;; larger duration bar height
  (let ((line-height (if (< duration 15) 1.0 (+ 0.5 (/ duration 30
(ov (make-overlay (point-at-bol) (1+ (point-at-eol)
(overlay-put ov 'face `(:background ,(car colors) :foreground 
"black"))
(setq colors (cdr colors))
(overlay-put ov 'line-height line-height)
(overlay-put ov 'line-spacing (1- line-height

(add-hook 'org-agenda-finalize-hook #'org-agenda-time-grid-colorful-spacing)
#+end_src

If this patch can be merged. I will submit an PATCH format file.

BTW, about this patch, I know using hook is a user hack way. In real patch, I
will add a defcustom option to enabled by default (WDYT?). and loaded in
org-agenda finalize position.

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DuJEUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsM8Qwf+MFGcBeC180m7fN/PLwrkeuOMS5zT
XsR3oS2B/urrPY8DU2+Ff3YgA+HABFpJ0O0DHe5O+xdFr0uggJhFJi3wqPXetl4e
i+IKGx3j8gJ2cpSf1E5CATWppCklMEX4aFB7hk35zRtrIsn+Kgs5irr1EPxAmqjY
0CyvklRe3RacPSDRNh6PTPYJPmYa3UIgjkD6kzzSxB+ED6xTECDwuh9dSMQhqj1q
8+/ji9OfYjyFzHkdEC8+fc+e2wZ7/lm4sGUfW6Y3v5KIonhtrA+D/tikGfqHvfR2
Q728uZGGQcrYO511V37f+bAndW2GSSaAIZJ5gzcatqB+wRnqTcqMlQSiHw==
=mhYR
-END PGP SIGNATURE-



Re: Provide org-insert-subitem

2020-02-12 Thread Bastien
Adam Porter  writes:

> Please do not delete org-insert-subheading!

Done :)

I still find it strange to keep functions that are used nowhere in the
Org's core--except of course for functions that explicitely mention as
usable by the user (e.g. `org-clock-persistence-insinuate'.)

I'd rather have these functions stored in a org-utils.el library for
those who care.

This is not urgent, of course, we can have this discussion later on.

-- 
 Bastien



Re: special treatment of one org-file in org-publish

2020-02-12 Thread Bastien
Hi John,

John Kitchin  writes:

>   ("references"
>  :base-directory "/Users/jkitchin/2020/01/26/org-files/"
>  :exclude "org"
>  :include ("c.org")
>  :publishing-directory "docs"
>  :publishing-function ox-manuscript-publish-references)
>
> This seems to ignore all org files, except the one I included, and on
> that one it runs the special publishing-function.
>
> Is the version above preferable to:
>
>   ("references"
>  :base-directory "/Users/jkitchin/2020/01/26/org-files/"
>  :base-extension "[^.*]"
>  :include ("c.org")
>  :publishing-directory "docs"
>  :publishing-function ox-manuscript-publish-references)
>
> They both seem to work.

I'd say the first one is more readable.

If you find a place in the documentation where we could explicit the
interactions between :exclude, :include and :base-extension please go
ahead!

Thanks,

-- 
 Bastien



Re: recently org-attach change invoke method caused error

2020-02-12 Thread Bastien
stardiviner  writes:

> Here is the error:

Thanks - can you try again from master and report?

-- 
 Bastien



recently org-attach change invoke method caused error

2020-02-12 Thread stardiviner
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256


Here is the error:

#+begin_example
Debugger entered--Lisp error: (error "Format specifier doesn’t match argument 
type")
  format-message("No such attachment command: %c" nil)
  apply(format-message ("No such attachment command: %c" nil))
  error("No such attachment command: %c" nil)
  (if (commandp command t) (call-interactively command) (error "No such 
attachment command: %c" c))
  (let ((command (cl-some #'(lambda (entry) (and (memq c ...) (nth 1 entry))) 
org-attach-commands))) (if (commandp command t) (call-interactively command) 
(error "No such attachment command: %c" c)))
  (save-restriction (widen) (goto-char (or --mpom (point))) 
(org-back-to-heading-or-point-min t) (save-excursion (let ((wconfig 
(current-window-configuration))) (unwind-protect (progn (if org-attach-expert 
nil (switch-to-buffer-other-window (get-buffer-create "*Org Attach*")) 
(erase-buffer) (setq cursor-type nil header-line-format "Use C-v, M-v, C-n or 
C-p to navigate.") (insert (concat "Attachment folder:\n" ... ... "\n\n" ...))) 
(org-fit-window-to-buffer (get-buffer-window "*Org Attach*")) (let ((msg ...) 
key) (message msg) (while (and ... ...) (org-scroll key t))) (and (get-buffer 
"*Org Attach*") (kill-buffer "*Org Attach*"))) (set-window-configuration 
wconfig (let ((command (cl-some #'(lambda (entry) (and ... ...)) 
org-attach-commands))) (if (commandp command t) (call-interactively command) 
(error "No such attachment command: %c" c
  (save-excursion (save-restriction (widen) (goto-char (or --mpom (point))) 
(org-back-to-heading-or-point-min t) (save-excursion (let ((wconfig 
(current-window-configuration))) (unwind-protect (progn (if org-attach-expert 
nil (switch-to-buffer-other-window ...) (erase-buffer) (setq cursor-type nil 
header-line-format "Use C-v, M-v, C-n or C-p to navigate.") (insert ...)) 
(org-fit-window-to-buffer (get-buffer-window "*Org Attach*")) (let (... key) 
(message msg) (while ... ...)) (and (get-buffer "*Org Attach*") (kill-buffer 
"*Org Attach*"))) (set-window-configuration wconfig (let ((command (cl-some 
#'(lambda ... ...) org-attach-commands))) (if (commandp command t) 
(call-interactively command) (error "No such attachment command: %c" c)
  (save-excursion (if (markerp --mpom) (progn (set-buffer (marker-buffer 
--mpom (save-excursion (save-restriction (widen) (goto-char (or --mpom 
(point))) (org-back-to-heading-or-point-min t) (save-excursion (let ((wconfig 
(current-window-configuration))) (unwind-protect (progn (if org-attach-expert 
nil ... ... ... ...) (org-fit-window-to-buffer ...) (let ... ... ...) (and ... 
...)) (set-window-configuration wconfig (let ((command (cl-some #'... 
org-attach-commands))) (if (commandp command t) (call-interactively command) 
(error "No such attachment command: %c" c))
  (let ((--mpom marker)) (save-excursion (if (markerp --mpom) (progn 
(set-buffer (marker-buffer --mpom (save-excursion (save-restriction (widen) 
(goto-char (or --mpom (point))) (org-back-to-heading-or-point-min t) 
(save-excursion (let ((wconfig ...)) (unwind-protect (progn ... ... ... ...) 
(set-window-configuration wconfig (let ((command (cl-some ... 
org-attach-commands))) (if (commandp command t) (call-interactively command) 
(error "No such attachment command: %c" c)))
  (let ((dir (org-attach-dir nil 'no-fs-check)) c marker) (if (eq major-mode 
'org-agenda-mode) (progn (setq marker (or (get-text-property (point) 
'org-hd-marker) (get-text-property (point) 'org-marker))) (if marker nil (error 
"No item in current line" (let ((--mpom marker)) (save-excursion (if 
(markerp --mpom) (progn (set-buffer (marker-buffer --mpom (save-excursion 
(save-restriction (widen) (goto-char (or --mpom (point))) 
(org-back-to-heading-or-point-min t) (save-excursion (let (...) (unwind-protect 
... ...))) (let ((command ...)) (if (commandp command t) (call-interactively 
command) (error "No such attachment command: %c" c
  org-attach()
  funcall-interactively(org-attach)
  call-interactively(org-attach nil nil)
  command-execute(org-attach)
#+end_example

This might a bug in commit "933a9ee99 * | org-attach.el: Enhance dispatch buffer
navigation". I'm not very sure. I git bisect running on this commit.

- -- 
[ stardiviner ]
   I try to make every word tell the meaning what I want to express.

   Blog: https://stardiviner.github.io/
   IRC(freenode): stardiviner, Matrix: stardiviner
   GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
  
-BEGIN PGP SIGNATURE-

iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl5DtMYUHG51bWJjaGls
ZEBnbWFpbC5jb20ACgkQG13xyVromsOw0AgAkU75aR/VEiVmdqYDAD3BWZiJ3B1w
L61z4iVAogLI5IuJoD/SsOSOKLRE/Ml9HnNMW13htBEXALOHHD2cJwcQuXONji7Y
W+pIiLoEViQAMqVmxEQu27twwOF7hOR6hWqFTidwS3XU0/ucrXEE146Xnbb5s9l5
590GMVBXVZWB3+iYP0Sb8+5OzZUU3rkUhMbY9fp0nI3SHalmiXJ3FB5CNCf+w3KY
ZT+G4Zs/hiLFI3vmPxgRnabHdeC02DYe6Dj/DwdZBBn56ETow2oHeTlNGLsGjc3E

Re: Short captions

2020-02-12 Thread Bastien
Hi Anthony,

I applied a slightly different fix (just moving save-match-data down
the s-expression).  Thanks for reporting this and for the fix!

-- 
 Bastien



Re: Making info gives error

2020-02-12 Thread Bastien
Hi Colin,

Colin Baxter  writes:

> Making info in org-version: 9.3.4 (release_9.3.4-273-g4028cc) gives the
> error:

Fixed, thanks!

-- 
 Bastien



Re: [PATCH] ob-sql.el support auto set sql-product in editing sql-mode src block buffer

2020-02-12 Thread Bastien
Hi Stardiviner,

stardiviner  writes:

> Hmmm.. Just a gentle ping ... This might is been missed  Let me
> resume this thread.

I've seen this suggestion and the previous ping but did not really
understand the change.

I have edited your patch a little bit to avoid redundant lines and
pushed it in master :

https://code.orgmode.org/bzg/org-mode/commit/7cd9ad8f75

Let me know if it looks good to you.

Thanks for your contribution,

-- 
 Bastien