Re: [PATCH] ob-sqlite: Use a transient in-memory database by default

2023-05-06 Thread Rudolf Adamkovič
Max Nikulin  writes:

> Perhaps it is better to keep current behavior with error by default
> and just to recommend [...] a user is experimenting with sqlite
> features.

This is exactly the case where the user SHOULD use

#+PROPERTY: header-args:sqlite :db 

to avoid mistyping  across their SQLite blocks.

[Hence, defaulting to ":memory:" would NOT hurt.]

Org is primarily about INTERACTIVE use, not batch processing, so I think
it would make sense to match the usefulness of the official INTERACTIVE
SQLite shell, which defaults to in-memory for good reasons.

Rudy
-- 
"Thinking is a momentary dismissal of irrelevancies."
-- Richard Buckminster Fuller, 1969

Rudolf Adamkovič  [he/him]
Studenohorská 25
84103 Bratislava
Slovakia



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Thomas S. Dye



Ihor Radchenko  writes:


"Thomas S. Dye"  writes:

For me, the bug bites intermittently.  I often run an Emacs 
instance for more than a week before I'm bitten, so it will 
likely 
be a long process to work through the packages loaded on top of 
what Spacemacs loads to make a reproducer.


Others in this thread appear to be affected more frequently. So, 
you may

get lucky just by following the thread.

Also, I anticipate a problem deciding that removing a package 
has 
squashed the bug; will two weeks without the bug be long 
enough? 
Three?  Four or more?


You can try
M-x debug-on-variable-change  org-fold-core-style 


Done.  Thanks.

All the best,
Tom

--
Thomas S. Dye
https://tsdye.online/tsdye



Re: Interest in an Org video meetup?

2023-05-06 Thread Ihor Radchenko
"Adham Omran"  writes:

>> For example, Last Sunday every month with rotating timing suitable for
>> the USA, Europe, and Asia Pacific.
>
> As in each month having a different timing? I might have understood this wrong
> but won't this mean that, for example the Europe group would have a meeting
> every 3 months? Please tell me if I'm wrong.

Nope. But regardless the time chosen, one of these three groups of
people will have night. Two others will not.

So it is 2 meetings every 3 months.
Frequency may be different.

Of course, that will require at least two hosts living in appropriate
time zones.

> I suggest having a monthly meeting per region such that each group meets once 
> a
> month, for example the first Sunday, second Sunday and third Sunday.

That would require 3 hosts or more commitment from 1-2 hosts.

I guess the question is who is willing to do the hosting.

> As for the day I'd prefer a Saturday as my weekends occur on Friday/Saturday 
> but
> I understand this is not the norm.

I have no opinion wrt Fri/Sat/Sun, or other days.

There are several other general Emacs meetups:

Emacs APAC: "We meet every fourth Saturday of the month (<%%(diary-float t 6 
4)> in Org mode)"

Emacs Berlin: last Wednesday every month

Emacs NYC: "We get together the first Monday of every month for Emacs related 
activities."

M-x research: "We meet virtually every 1st and 3rd Tuesday of every month at 
4pm (UK time)"

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Interest in an Org video meetup?

2023-05-06 Thread Adham Omran
> For example, Last Sunday every month with rotating timing suitable for
> the USA, Europe, and Asia Pacific.

As in each month having a different timing? I might have understood this wrong
but won't this mean that, for example the Europe group would have a meeting
every 3 months? Please tell me if I'm wrong.

I suggest having a monthly meeting per region such that each group meets once a
month, for example the first Sunday, second Sunday and third Sunday.

As for the day I'd prefer a Saturday as my weekends occur on Friday/Saturday but
I understand this is not the norm.

- Adham Omran



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
"Thomas S. Dye"  writes:

> For me, the bug bites intermittently.  I often run an Emacs 
> instance for more than a week before I'm bitten, so it will likely 
> be a long process to work through the packages loaded on top of 
> what Spacemacs loads to make a reproducer.

Others in this thread appear to be affected more frequently. So, you may
get lucky just by following the thread.

> Also, I anticipate a problem deciding that removing a package has 
> squashed the bug; will two weeks without the bug be long enough? 
> Three?  Four or more?

You can try
M-x debug-on-variable-change  org-fold-core-style 

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Thomas S. Dye



Ihor Radchenko  writes:


"Thomas S. Dye"  writes:


But some third-party package might be.
May you try disabling various extra packages and see if the 
problem persists?


If it helps, I get this bug using the Spacemacs Org mode layer 
and 
Emacs 27.


Sorry, but it does not help.
Without reproducer, I can only guess.

And I do not see any bug reports in Spacemacs repo. So, you 
likely has

something else contributing.


OK, that helps.

For me, the bug bites intermittently.  I often run an Emacs 
instance for more than a week before I'm bitten, so it will likely 
be a long process to work through the packages loaded on top of 
what Spacemacs loads to make a reproducer.


Also, I anticipate a problem deciding that removing a package has 
squashed the bug; will two weeks without the bug be long enough? 
Three?  Four or more?


I've found that I can work around the bug by moving the headline 
up or down.  Once this is done, the headline unfolds.  Then, when 
I move it back to its original position, it still unfolds 
properly.  For me, this is easier than my first workaround, which 
involved stopping and re-starting the Emacs instance.


Possibly related, I intermittently get bits of text following the 
ellipsis that indicates a folded headline.  My impression is that 
this happens when the bug has bitten a folded headline, but if I 
remember correctly, the bug and the bits of text following the 
ellipsis are not on the same heading.  I'll check systematically 
next time I see this, if you think it might help.


All the best,
Tom

--
Thomas S. Dye
https://tsdye.online/tsdye



Re: Interest in an Org video meetup?

2023-05-06 Thread Ihor Radchenko
Matt  writes:

> Thoughts on dates and times?

For example, Last Sunday every month with rotating timing suitable for
the USA, Europe, and Asia Pacific.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Interest in an Org video meetup?

2023-05-06 Thread Matt
Thoughts on dates and times?



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
"Thomas S. Dye"  writes:

>> But some third-party package might be.
>> May you try disabling various extra packages and see if the 
>> problem persists?
>
> If it helps, I get this bug using the Spacemacs Org mode layer and 
> Emacs 27.

Sorry, but it does not help.
Without reproducer, I can only guess.

And I do not see any bug reports in Spacemacs repo. So, you likely has
something else contributing.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Thomas S. Dye



Ihor Radchenko  writes:


Michael Dauer  writes:

I'm not doing anything with org-fold-core-style directly. The 
only maybe

relevant thing I do after (org-mode) is:
(straight-use-package 'org-modern)


I do not think that org-modern can be a culprit.
But some third-party package might be.
May you try disabling various extra packages and see if the 
problem persists?


If it helps, I get this bug using the Spacemacs Org mode layer and 
Emacs 27.


All the best,
Tom

--
Thomas S. Dye
https://tsdye.online/tsdye



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Christopher M. Miles

I got similar result:


#+begin_example
Text content at position 33755:


There is an overlay here:
 From 33755 to 36387
  evaporatet
  invisibleorg-fold-outline
  isearch-open-invisible delete-overlay
  org-invisibleorg-fold-outline
  priority 5


There are text properties here:
  face org-level-2
  fontifiedt
  isearch-open-invisible org-fold-core--isearch-show
  isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
  jinx--pendingt

#+end_example

#+begin_example
Text content at position 36387:


There are text properties here:
  fontifiedt
  isearch-open-invisible org-fold-core--isearch-show
  isearch-open-invisible-temporary org-fold-core--isearch-show-temporary

#+end_example

I confirmed I have NOT set `org-fold-core-style` to 'overlay.

Seems I have same reason with Michael.

Michael Dauer  writes:

> Got another observation:
> Text content at position 30248:
>
> There is an overlay here:
>  From 30248 to 30442
>   evaporatet
>   invisibleorg-fold-outline
>   isearch-open-invisible delete-overlay
>   org-invisibleorg-fold-outline
>   priority 5
>
> There are text properties here:
>   fontifiedt
>   isearch-open-invisible org-fold-core--isearch-show
>   isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
>
> Am Sa., 6. Mai 2023 um 08:24 Uhr schrieb Ihor Radchenko :
>
>  "Christopher M. Miles"  writes:
>
>  > I meet an unfold-able headline now. Then I record a video to show this
>  > unfold-able headline. I executed command "describe-text-properties".
>
>  Please put the cursor right before the fold ("..."), execute M-x
>  describe-text-properties and share the properties description text.
>  You don't need video to share the property details buffer contents.
>
>  -- 
>  Ihor Radchenko // yantar92,
>  Org mode contributor,
>  Learn more about Org mode at .
>  Support Org development at ,
>  or support my work at 


-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without 
misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3


signature.asc
Description: PGP signature


Re: [POLL] Add command names to key bindings in Org Guide? (was: Suggestion: for each listed keybinding, also name the command)

2023-05-06 Thread Corwin Brust
On Sat, May 6, 2023, 01:26 Adham Omran  wrote:

> >> I want to add command names into the org-mode guide. I have attached
> >> an example of such an addition.
> >
> > Will it be useful?
> >
> > Technically, adding the command name will increase the Org Guide size,
> > which is a bit against its idea of compactness.
>
> Wouldn't it just put additional information on the same line as the
> keybinding?
>

This was my thought, also.

>
> > On the other hand, new users may benefit from seeing the command names
> > alongside with the bindings, especially users of pre-packages Emacs
> > where the bindings may be shadowed by evil-mode and the likes.
> >
> > WDYT?


> I think this would result in a more coherent experience between the
> manuals as the Emacs manual and Org mode manual both provide command names
> for most of the keybindings.
>


+1

Especially, I think new spacemacs and doom users starting out with evil.el
will appreciate knowing the extended command names.


Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-05-06 Thread Konstantinos Chousos
Update about a little bug I found:

When it comes to fragments that contains things such as limits, under/over 
braces etc., the live preview's borders get kind of messed up. Don't know how 
to describe it exactly, see the attached image.

-Konstantinos


Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-05-06 Thread Ihor Radchenko
Konstantinos Chousos  writes:

>> Tecosaur will have a better idea of what's happening here.  Note that
>> the export options for html are `tex:dvipng' or `tex:dvisvgm', not
>> `dvipg' and `dvisvg'.
>
> Oops, you're right. `dvisvgm' works.

It would be useful if unexpected values there triggered a warning.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2023-05-06 Thread Konstantinos Chousos
> They shouldn't be any slower than when you manually call
> `org-latex-preview' on a fragment.  To be sure, you could try
>
> (setq org-latex-preview-debounce 0.3
>   org-latex-preview-throttle 0.3)
>
> and then turn on (or turn off + on) `org-latex-preview-auto-mode'.

Yeah, it kinda works ok now. It is kinda slow, but it probably takes
the same time as the normal previews. May the fact that I use `lualatex'
be the culprit?

> The video you linked to was a proof of concept.  Here is a demo of the
> current design: 
>
> If `org-latex-preview-live-display-type' is set to `eldoc':
> - show live previews using Eldoc.  You may need to pop up the Eldoc doc
> buffer for larger previews to be visible (`M-x eldoc-mode', followed by
> `M-x eldoc-doc-buffer').
>
> Else:
> - Inline fragments are live-previewed inline
> - LaTeX environments are previewed below the environment

Both `buffer' and `eldoc' work as expected. Although, when I use `eldoc' and
use the `eldoc-box' package, nothing is shown. But, this probably isn't
in the scope of this conversation and it's really secondary.

> Tecosaur will have a better idea of what's happening here.  Note that
> the export options for html are `tex:dvipng' or `tex:dvisvgm', not
> `dvipg' and `dvisvg'.

Oops, you're right. `dvisvgm' works.

Since this was what was wrong, I tried setting
`org-latex-preview-default-process' to `dvipng' and found that previews as
well appear blank. Don't know what might be the problem.

> It shouldn't be happening every time -- only when certain conditions are
> met.  Deleting fragments might be one of these conditions.

Today it works better, I don't know what I did differently. But as you
said, it certainly bugs out when you delete the fragment.

Now that I've tried it a bit, it seems smoother than at first
glance. I'll probably keep using it and report any problems that might
arise.

-Konstantinos


Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
Michael Dauer  writes:

> I'm not doing anything with org-fold-core-style directly. The only maybe
> relevant thing I do after (org-mode) is:
> (straight-use-package 'org-modern)

I do not think that org-modern can be a culprit.
But some third-party package might be.
May you try disabling various extra packages and see if the problem persists?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Michael Dauer
I'm not doing anything with org-fold-core-style directly. The only maybe
relevant thing I do after (org-mode) is:
(straight-use-package 'org-modern)
(global-org-modern-mode)
(setq org-pretty-entities t)
(setq org-pretty-entities-include-sub-superscripts nil)
(setq org-ellipsis "…")
(setq org-modern-hide-stars nil) ; somehow fixes indentation of body

And I think that I can only do it after loading org-mode.

Am Sa., 6. Mai 2023 um 09:36 Uhr schrieb Ihor Radchenko :

> Michael Dauer  writes:
>
> > This sibling branch works:
> > Text content at position 27007:
> >
> >
> > There are text properties here:
> >   fontifiedt
> >   isearch-open-invisible org-fold-core--isearch-show
> >   isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
> >   org-fold--spec-org-fold-outline-1035805047878762682 org-fold-outline
>
> If you have both Org fold overlay and text properties at the same time,
> you are doing something funny with `org-fold-core-style'. If you do set
> it, please only do it before Org is loaded.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at .
> Support Org development at ,
> or support my work at 
>


Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
Michael Dauer  writes:

> This sibling branch works:
> Text content at position 27007:
>
>
> There are text properties here:
>   fontifiedt
>   isearch-open-invisible org-fold-core--isearch-show
>   isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
>   org-fold--spec-org-fold-outline-1035805047878762682 org-fold-outline

If you have both Org fold overlay and text properties at the same time,
you are doing something funny with `org-fold-core-style'. If you do set
it, please only do it before Org is loaded.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Michael Dauer
This sibling branch works:
Text content at position 27007:


There are text properties here:
  fontifiedt
  isearch-open-invisible org-fold-core--isearch-show
  isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
  org-fold--spec-org-fold-outline-1035805047878762682 org-fold-outline

Am Sa., 6. Mai 2023 um 09:18 Uhr schrieb Michael Dauer :

> Got another observation:
> Text content at position 30248:
>
>
> There is an overlay here:
>  From 30248 to 30442
>   evaporatet
>   invisibleorg-fold-outline
>   isearch-open-invisible delete-overlay
>   org-invisibleorg-fold-outline
>   priority 5
>
>
> There are text properties here:
>   fontifiedt
>   isearch-open-invisible org-fold-core--isearch-show
>   isearch-open-invisible-temporary org-fold-core--isearch-show-temporary
>
> Am Sa., 6. Mai 2023 um 08:24 Uhr schrieb Ihor Radchenko <
> yanta...@posteo.net>:
>
>> "Christopher M. Miles"  writes:
>>
>> > I meet an unfold-able headline now. Then I record a video to show this
>> > unfold-able headline. I executed command "describe-text-properties".
>>
>> Please put the cursor right before the fold ("..."), execute M-x
>> describe-text-properties and share the properties description text.
>> You don't need video to share the property details buffer contents.
>>
>> --
>> Ihor Radchenko // yantar92,
>> Org mode contributor,
>> Learn more about Org mode at .
>> Support Org development at ,
>> or support my work at 
>>
>


Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Michael Dauer
Got another observation:
Text content at position 30248:


There is an overlay here:
 From 30248 to 30442
  evaporatet
  invisibleorg-fold-outline
  isearch-open-invisible delete-overlay
  org-invisibleorg-fold-outline
  priority 5


There are text properties here:
  fontifiedt
  isearch-open-invisible org-fold-core--isearch-show
  isearch-open-invisible-temporary org-fold-core--isearch-show-temporary

Am Sa., 6. Mai 2023 um 08:24 Uhr schrieb Ihor Radchenko :

> "Christopher M. Miles"  writes:
>
> > I meet an unfold-able headline now. Then I record a video to show this
> > unfold-able headline. I executed command "describe-text-properties".
>
> Please put the cursor right before the fold ("..."), execute M-x
> describe-text-properties and share the properties description text.
> You don't need video to share the property details buffer contents.
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> Learn more about Org mode at .
> Support Org development at ,
> or support my work at 
>


Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Christopher M. Miles

"Christopher M. Miles"  writes:

> [[PGP Signed Part:Undecided]]
>
> I meet an unfold-able headline now. Then I record a video to show this
> unfold-able headline. I executed command "describe-text-properties".
> Afterwards, I closed the buffer, then re-open the file to show the
> headline can be expanded normally, and show the subtree content.
>
> Here is the uploaded video (P.S, I know video link is not a good way to
> archive information in mailing list, but this problem seems can't be
> text-described simply. Sorry about this.):
>
> https://upload.disroot.org/r/QNhW1xz0#X2or/2T7i7Kb7pHPxfAupRaEYJ28Sbp+2R6UDREnFic=

I recorded a new video which contains the Edebug process. Which shows
the `org-cycle' function internal status data. Ihor, hope this can help
you find the reason.

https://upload.disroot.org/r/khVnJgYV#vMBC3hiBUoPqBG2bgTEfJb44AUrGXVDuvpVGKv8Vw+w=

-- 

[ stardiviner ]
I try to make every word tell the meaning that I want to express without 
misunderstanding.

Blog: https://stardiviner.github.io/
IRC(libera.chat, freenode): stardiviner, Matrix: stardiviner
GPG: F09F650D7D674819892591401B5DF1C95AE89AC3


signature.asc
Description: PGP signature


Re: [PATCH v4] Add compat.el support to Org (was: [POLL] Use compat.el in Org? (was: Useful package? Compat.el))

2023-05-06 Thread Max Nikulin

On 30/04/2023 17:39, Ihor Radchenko wrote:

Date: Mon, 3 Apr 2023 10:41:50 +0200
Subject: [PATCH v4 4/8] Use compat.el library instead of ad-hoc compatibility
  function set


Ihor, I have not noticed removal of


;; `flatten-tree' was added in Emacs 27.1.
(defalias 'org-protocol-flatten
  (if (fboundp 'flatten-tree) 'flatten-tree


from org-protocol.el

Perhaps I will post more comments, so there is no point to send updated 
patch set in response to this message.





Re: [FEATURE Request] inherit headline directory for `org-attach' in `org-add-note' etc temp buffers

2023-05-06 Thread Ihor Radchenko
"Christopher M. Miles"  writes:

> I press [C-c C-z] `org-add-note` to add logbook note. It will open a new
> temporary buffer. I want to execute command [C-c C-a m] `org-attach-mv`
> to attach a file. But it will prompt me for org-attach directory. I
> think commands like `org-add-note`, `org-clock` add log, `org-todo`
> change TODO state add log, etc should auto inherit this org-attach
> directory. So that user can do `org-attach` in the temporary log buffer.
>
> WDYT?

Makes sense, but `org-add-log-note` implementation is not great. We
should ideally re-use capture, which will give the right context without
extra efforts.

Patches welcome!

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Tangling of clojure code blocks is broken [9.7 (9.7-??-0807107 @ /Users/ag/.emacs.d/.local/straight/build-30.0.50/org/)]

2023-05-06 Thread Ihor Radchenko
Ag Ibragimov  writes:

> Repro steps:
> ...
> Observed:
>
> It's wrapping the content into
> `(prn (binding [*out* (java.io.StringWriter.)]{:foo :bar}))`
>
> Expected:
>
> {:foo :bar}

I see the expected result on my side.
May you follow the steps starting from emacs -Q or make repro?
See https://orgmode.org/manual/Feedback.html#Feedback

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [POLL] Add command names to key bindings in Org Guide? (was: Suggestion: for each listed keybinding, also name the command)

2023-05-06 Thread Jens Neuhalfen


> 
> On the other hand, new users may benefit from seeing the command names
> alongside with the bindings, especially users of pre-packages Emacs
> where the bindings may be shadowed by evil-mode and the likes.
> 
> WDYT?

I am in favor. One of my main problems in learning emacs: I started with evil 
and all documentation lacking the function names was literally a huge source of 
frustration. Also, humans are much better at remembering names than high 
entropy keystrokes. If I just remember a bit of the name, I can easily find the 
key binding in the help. The other way around is not possible. Just like a 
phone book. The numbers (key bindings) are shorter, yes. But good luck trying 
to find 555-12346 when you remember 555-12345.

BR Jens


Re: BUG: org-cycle does not unfold some subtrees

2023-05-06 Thread Ihor Radchenko
"Christopher M. Miles"  writes:

> I meet an unfold-able headline now. Then I record a video to show this
> unfold-able headline. I executed command "describe-text-properties".

Please put the cursor right before the fold ("..."), execute M-x
describe-text-properties and share the properties description text.
You don't need video to share the property details buffer contents.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at