Re: asterisk allowed for list items

2022-04-29 Thread Ihor Radchenko
c.bu...@posteo.jp writes: > Am 29.04.2022 15:49 schrieb Ihor Radchenko: >> Exactly because you are actively trying to understand the syntax, you >> are in unique situation where you can easily see all the "opaque" >> places >> in the syntax description. > > I still don't know if I misunderstand

Re: [BUG] Scheme code block evaluation doesn't show any result [9.5.\ 2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]

2022-04-29 Thread Ihor Radchenko
Pascal Grossé writes: > I managed to track the bug to *ob-scheme.el*: > > in (defun org-babel-scheme-execute-with-geiser, on line 179, simply > replace geiser-eval-region with geiser-eval-region/wait so that the > temporary result buffer doesn't close too soon. It then works as > expected.

Re: [PATCH] Show drawers in text entries in Org Agenda

2022-04-29 Thread Ihor Radchenko
Rodrigo Morales writes: >> For this reason, I am wondering whether there is a way to make >> =org-agenda-entry-text-mode= to show the drawers without much >> tinkering. >> > > After inspecting the source code of Org Mode, I managed to do what I was > searching by deleting the relevant part of

[BUG] <2022-04-11 Mon 17:1-19:10> is wrongly parsed as a valid timestamp [9.5.3 (release_9.5.3-461-ga3dac4 @ /home/yantar92/.emacs.d/straight/build/org/)]

2022-04-29 Thread Ihor Radchenko
Hi, Consider the following timestamp with a typo in starting minute: <2022-04-11 Mon 17:1-19:10> Running org-element-context yields a timestamp object with unexpected properties: (timestamp (:type active :raw-value "<2022-04-11 Mon 17:1-19:10>" :year-start 2022 :month-start 4 :day-start 11

Re: org-depend: bug fix

2022-04-29 Thread Ihor Radchenko
Damien Couroussé writes: > Please find attached a small patch for org-depend, which fixes a bug > (function 'remove-if' is unknown). > - (setq items (remove-if > + (setq items (org-remove-if org-remove-if is itself obsolete :) I applied a slightly different change

Re: [PATCH] Remove XEmacs and ancient Emacs compat code

2022-04-29 Thread Ihor Radchenko
Stefan Kangas writes: > The attached patch removes some compat code for XEmacs, and Emacs 21/22. Thanks! And sorry for the late reply. The patch does not apply onto current main anymore. Would you mind updating the patch? Best, Ihor

bug#45915: 28.0.90; deletechar distorts org-table

2022-04-29 Thread Ihor Radchenko
Tak Kunihiro writes: > Thank you for the patch. I applied the patch to org-table.el on Emacs > 28.0.90. > > And I still see the problem there. Is the problem solved by the patch > on your environment? The problem was solved on my side, but _not_ using your reproducer explicitly. If I save the

bug#45915: 28.0.90; deletechar distorts org-table

2022-04-29 Thread Ihor Radchenko
Tak Kunihiro writes: > Thank you for the patch. I applied the patch to org-table.el on Emacs > 28.0.90. > > And I still see the problem there. Is the problem solved by the patch > on your environment? The problem was solved on my side, but _not_ using your reproducer explicitly. If I save the

Re: [PATCH] "Cache corruption detected" when editing CLOCK timestamp by hand

2022-04-29 Thread Ihor Radchenko
Ihor Radchenko writes: > Should we consider the above CLOCK line as a valid running clock or > maybe it should be parsed as a paragraph? Nicolas, do you have any comment on this? I am inclined to treat CLOCK: [2021-10-22 Fri 10:41]--[2021] as a paragraph, not a clock line. Best, Ihor

Re: [PATCH] org-attach-attach: fix symlinks

2022-04-29 Thread Ihor Radchenko
Matt Price writes: > I'm having trouble with org-attach-attach if my current buffer is visiting > a filepath starting with "~/". This trivial patch fixes the problem for me > by running (expand-file-name) on the file before attaching. I always use > the 'lns method, so I don't know whether it

Re: Org as a workspace (an impromptu reflection)

2022-04-29 Thread Matt
On Fri, 29 Apr 2022 11:03:55 -0400 Juan Manuel Macías wrote > I don't know if anyone has had a similar experience... I tell people that Emacs changed my life. I feel it's that profound. My story is different from yours, yet similar in that it started with Org. I love that it

[BUG] Scheme code block evaluation doesn't show any result [9.5.\ 2 (release_9.5.2-25-gaf6f12 @ /usr/share/emacs/28.1/lisp/org/)]

2022-04-29 Thread Pascal Grossé
I configured a fresh emacs 28 installation to include the package geiser-guile. I tried to evaluate this simple org block (after activating scheme with babel of course): #+begin_src scheme :session test (define x 42) x #+end_src I get: #+RESULTS: The *Geiser Messages* buffer shows this:

Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc.

2022-04-29 Thread Paul Eggert
On 4/29/22 07:22, Max Nikulin wrote: It was still working in most real-life cases. Yes, the current code breaks only in fine-grained cases. Most of the time it'll work fine since people rarely compile the same file twice in the same second. From my point of view, it is better to rewrite

RE: [BUG] org-mode #+SETUPFILE not working with properties [9.5.2 (release_9.5.2-378-g98588e @ /home/eros/src/org-mode/lisp/)]

2022-04-29 Thread Cook, Malcolm
I agree. There is no reason to think this should not work. I have been down this road myself in wished it did. From: Emacs-orgmode On Behalf Of Ihor Radchenko Sent: Thursday, April 28, 2022 9:41 AM To: Eros Zaupa Cc: emacs-orgmode@gnu.org Subject: Re: [BUG] org-mode #+SETUPFILE not working

Org as a workspace (an impromptu reflection)

2022-04-29 Thread Juan Manuel Macías
Hi all, Since I use Org Mode I have been noticing a gradual change in the way I work with a computer (as a simple user). It is not something consciously sought, but I have to say that I see it as a positive evolution. I've always been used to (or rather resigned to) the typical Unix

Re: [PATCH] Add :noweb-prefix and :noweb-trans babel header arguments

2022-04-29 Thread Sébastien Miquel
Hi, Ihor Radchenko writes: prin1-to-string is too specific and only solves a single use-case. prin1-to-string is actually universal in a way, since any other manipulation can then be achieved with : (setq var (do-something <>)) at least as long as you're tangling to a programming language,

Re: asterisk allowed for list items

2022-04-29 Thread c . buhtz
Dear Ihor, thanks for your reply. Am 29.04.2022 15:49 schrieb Ihor Radchenko: Exactly because you are actively trying to understand the syntax, you are in unique situation where you can easily see all the "opaque" places in the syntax description. I still don't know if I misunderstand the

Re: master 4a1f69ebca 2/2: Use (TICKS . HZ) for current-time etc.

2022-04-29 Thread Max Nikulin
On 29/04/2022 05:27, Paul Eggert wrote: On 4/27/22 09:55, Stefan Monnier wrote: Instead of rounding the times to whole seconds, wouldn't it make more sense to check that the difference is larger than 1s? org-file-newer-than-p is intended to work on filesystems like HFS+ that store just the

Re: Ordered list items and the point

2022-04-29 Thread Ihor Radchenko
c.bu...@posteo.jp writes: > This is about https://orgmode.org/worg/dev/org-syntax.html#Plain_Lists > > Comparing the syntax description and the real world behaviour of my > Emacs 27 with org from yesterday it seems to me that the syntax > description is not correct. > > I cite "Plain Lists"

Re: asterisk allowed for list items

2022-04-29 Thread Ihor Radchenko
c.bu...@posteo.jp writes: > Am 29.04.2022 15:04 schrieb Detlef Steuer: >> But *first* it should be easily read- and writable by humans and only >> then easily parseble by parsers! At least imho. > > I agree and understand that this is one of the design principals of Org. > > But even for humans

Re: asterisk allowed for list items

2022-04-29 Thread Ihor Radchenko
c.bu...@posteo.jp writes: > Sidenote: As someone who writes software that parse org-content I would > suggest to make the whitespace in front of a list item mandatory even > for "-" and "+". It would reduce code complexity. It might probably simplify things for third-party parsers. Not for

Re: asterisk allowed for list items

2022-04-29 Thread Ihor Radchenko
c.bu...@posteo.jp writes: > Am 29.04.2022 14:15 schrieb Ihor Radchenko: >> Would you be interested to contribute an example to >> https://orgmode.org/worg/dev/org-syntax.html#Items ? > > Not sure what you mean. Currently I just try to understand the syntax > and get the hard rules for my own

Re: asterisk allowed for list items

2022-04-29 Thread c . buhtz
Dear Detlef Am 29.04.2022 15:04 schrieb Detlef Steuer: But *first* it should be easily read- and writable by humans and only then easily parseble by parsers! At least imho. I agree and understand that this is one of the design principals of Org. But even for humans the current situation is

Re: asterisk allowed for list items

2022-04-29 Thread Detlef Steuer
Am Fri, 29 Apr 2022 12:17:24 + schrieb c.bu...@posteo.jp: > Sidenote: As someone who writes software that parse org-content I > would suggest to make the whitespace in front of a list item > mandatory even for "-" and "+". It would reduce code complexity. But *first* it should be easily

Re: asterisk allowed for list items

2022-04-29 Thread c . buhtz
Am 29.04.2022 14:15 schrieb Ihor Radchenko: Would you be interested to contribute an example to https://orgmode.org/worg/dev/org-syntax.html#Items ? Not sure what you mean. Currently I just try to understand the syntax and get the hard rules for my own parser. ;) - List item with

Re: asterisk allowed for list items

2022-04-29 Thread c . buhtz
I need to add something here and think the syntax description should be updated about that. A "*" is allowed or recognized as a list item instead as a head only if there is one (or maybe more) whitespace space in front of it. But "-" and "+" also recognized as starts for list items without

Re: asterisk allowed for list items

2022-04-29 Thread Ihor Radchenko
c.bu...@posteo.jp writes: > I cite from there > "An asterisk, hyphen, or plus sign character (i.e., *, -, or +)." > > I wonder why * is allowed because * also starts a heading. So how does a > piece of software/parser decide if a line starting with an * is a > heading or a list item? Headlines

Ordered list items and the point

2022-04-29 Thread c . buhtz
This is about https://orgmode.org/worg/dev/org-syntax.html#Plain_Lists Comparing the syntax description and the real world behaviour of my Emacs 27 with org from yesterday it seems to me that the syntax description is not correct. I cite "Plain Lists" section: "If first item in a plain list

asterisk allowed for list items

2022-04-29 Thread c . buhtz
I was looking into https://orgmode.org/worg/dev/org-syntax.html#Items to find out which characters are allowed as "bullets" for unorderd lists. I cite from there "An asterisk, hyphen, or plus sign character (i.e., *, -, or +)." I wonder why * is allowed because * also starts a heading. So how

Re: [BUG] org-fold-core-style 'text-properties interprets Org link syntax in code blocks too

2022-04-29 Thread Ihor Radchenko
Kaushal Modi writes: > It's not time-critical, but it would be good to fix this bug. It's not > just the Org link syntax.. any Org markup is fontified inside the src > blocks. Here's a screenshot (attached) that shows the bold > fortification happen in the src block as well. Emphasis should not

Re: Link display not working for orgroam links as items in enumeration

2022-04-29 Thread Ihor Radchenko
>> Link display not working for orgroam links as items in enumeration Could you elaborate what about what you did, what you expected, and what you actually observed? It is very hard for us to guess what "not working" means. Please refer to https://orgmode.org/manual/Feedback.html for more

Re: ob-lisp determining package

2022-04-29 Thread Ihor Radchenko
Alan Ruttenberg writes: > I propose that the package determination be changed to > > (or (cdr (assq :package params)) (funcall org-babel-lisp-package-fn)) > > with org-babel-lisp-package-fn being bound analogous to how > org-babel-lisp-eval-function is: > > (require (pcase