Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-20 Thread Ihor Radchenko
Daniel Clemente writes: > But org-crypt still feels strange. For instance, I decrypt a header, > add a space somewhere else and save. It's saved, but the header is > still visibly unencrypted in Emacs; that's unexpected, because > org-crypt-use-before-save-magic promised to „automatically

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-15 Thread Daniel Clemente
In that branch, I don't see the previously mentioned bugs; thanks. But org-crypt still feels strange. For instance, I decrypt a header, add a space somewhere else and save. It's saved, but the header is still visibly unencrypted in Emacs; that's unexpected, because org-crypt-use-before-save-magic

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-11 Thread Ihor Radchenko
Daniel Clemente writes: > I see it's trying to decrypt things (therefore it asks for the > password). It shouldn't, since I didn't modify any encrypted section. > I said „it asked me for an encryption password“ because the GPG prompt > confusingly uses the word „encryption“ („Passphrase for

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-10 Thread Daniel Clemente
> > With that code I see something strange: I opened a file which had > > encrypted :crypt: sections (never unencrypted), and after adding a > > space somewhere else and saving, it asked me for an encryption > > password. It shouldn't, since all sections are encrypted. > > I also see „org-crypt:

Re: [BUG] Org element cache error in indirect buffer [9.6.15 (release_9.6.15 @ c:/Users/User/Downloads/emacs-master-x86_64-full/share/emacs/30.0.50/lisp/org/)]

2024-07-09 Thread Ihor Radchenko
Matthew Clarke writes: > When using an indirect buffer I get the warning > ... > Warning (org-element-cache): org-element--cache: Org parser error in > PIBBSS.org<2>::488418. Resetting. > ... > I am also experiencing, in indirect buffers, the inability to unfold > org-headings, and problems

[BUG] Org element cache error in indirect buffer [9.6.15 (release_9.6.15 @ c:/Users/User/Downloads/emacs-master-x86_64-full/share/emacs/30.0.50/lisp/org/)]

2024-07-09 Thread Matthew Clarke
adings, and problems where rearranging them leaves sub-headings behind, which may be related Best wishes, Matthew Clarke Emacs : GNU Emacs 30.0.50 (build 1, x86_64-w64-mingw32) Package: Org mode version 9.6.15 (release_9.6.15 @ c:/Users/User/Downloads/emacs-master-x86_64-full/share/emacs/30.0.50

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-06 Thread Ihor Radchenko
Daniel Clemente writes: >> May you try >> https://git.sr.ht/~yantar92/org-mode/log/feature/org-crypt-refactor branch? >> Is encryption speed satisfactory then? > > With that code I see something strange: I opened a file which had > encrypted :crypt: sections (never unencrypted), and after adding

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-04 Thread Daniel Clemente
> May you try > https://git.sr.ht/~yantar92/org-mode/log/feature/org-crypt-refactor branch? > Is encryption speed satisfactory then? With that code I see something strange: I opened a file which had encrypted :crypt: sections (never unencrypted), and after adding a space somewhere else and

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-02 Thread Ihor Radchenko
Daniel Clemente writes: >> Does it also happen when you use the latest Org mode version? >> > > Yes, with today's build. It happens with an 11 Mb Org file which has > 19721 headers (some of them reach level 13). > Here I enabled the profiler, added a space, saved (1 time only), and > reported

Re: org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-07-02 Thread Daniel Clemente
> > For instance, I don't use it because it adds around 5 seconds to each > > saving of a large file. If it were instantaneous I would enable it. > > With it disabled, this explains why I often find unencrypted sections > > at the end of the day… I have to rely on myself to reencrypt them > >

Re: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)

2024-07-02 Thread Daniel Clemente
> > In addition, „leaving some encrypted sections unencrypted for a short > > amount of time, and closing and reopening the buffer during that time“ > > isn't a bug, it's a possible user behaviour that we can't control. But > > org-crypt can mention that that behaviour is u

Re: Please document the caching and its user options

2024-06-28 Thread Ihor Radchenko
Rudolf Adamkovič writes: > Ihor Radchenko writes: > >> Fixed, on bugfix. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5ffb2675f > > FYI: A typo, 's/has/hash/'. > > (Optionally, also 's/anyway //'.) Thanks! Fixed

Re: Please document the caching and its user options

2024-06-28 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Fixed, on bugfix. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=5ffb2675f FYI: A typo, 's/has/hash/'. (Optionally, also 's/anyway //'.) Rudy -- "The whole science is nothing more than a refinement of everyday thinking." --- Albert Einstein,

Re: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)

2024-06-27 Thread Ihor Radchenko
-functions' instead of `before-save-hook', there should be no such problem. > Or just a message in the style of „Encryption failed. Saving the file > may store unencrypted data in disk, and in backups and cache if > enabled“. > > Totally preventing the user from saving a file seems

Re: Please document the caching and its user options

2024-06-27 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org > Date: Thu, 27 Jun 2024 10:11:46 + > > Eli Zaretskii writes: > > > . set your locale's codeset to something other than UTF-8 > > . type into *scratch*: > > > > (insert "* heading\n(") > > (org-mode) > > (hs-minor-mode) > >

org-encrypt-entries is slow (was: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options))

2024-06-27 Thread Ihor Radchenko
Daniel Clemente writes: > For instance, I don't use it because it adds around 5 seconds to each > saving of a large file. If it were instantaneous I would enable it. > With it disabled, this explains why I often find unencrypted sections > at the end of the day… I have to rely on myself to

Re: Please document the caching and its user options

2024-06-27 Thread Ihor Radchenko
Eli Zaretskii writes: > . set your locale's codeset to something other than UTF-8 > . type into *scratch*: > > (insert "* heading\n(") > (org-mode) > (hs-minor-mode) > (hs-hide-all) > > . mark the region around these 4 sexps and type "M-x eval-region" > . observe the popup *Warning*

Re: Please document the caching and its user options

2024-06-27 Thread Eli Zaretskii
Here's one example where org-persistent (I think) triggers an annoying select-safe-coding-system popup because it is trying to cache something behind user's back: . set your locale's codeset to something other than UTF-8 . type into *scratch*: (insert "* heading\n(") (org-mode)

Re: org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)

2024-06-27 Thread Daniel Clemente
> > As for not typing the same password twice and not using > org-crypt-use-before-save-magic, we should somehow fix this. > (I am starting a new thread branch.) > „Not using org-crypt-use-before-save-magic“ is currently a user decision, not a bug. For instance, I don't use it

org-crypt leaking data when encryption password is not entered twice (was: Please document the caching and its user options)

2024-06-26 Thread Ihor Radchenko
Daniel Clemente writes: > Sometimes org-crypt fails to reencrypt the data. E.g. if Emacs > crashes, or if you fail to type the same password twice, or of course > if you don't use (org-crypt-use-before-save-magic), etc. I do not think that there is anything left on disk if Emacs crashes. As

Re: Please document the caching and its user options

2024-06-26 Thread Daniel Clemente
> > A user has somefile.org which contains some headers marked with the > > "crypt" tag. Only those headers are encrypted. The org-element cache > > may now cache the whole file, including the encrypted headers (this is > > ok). Now the user temporarily de

Re: Please document the caching and its user options

2024-06-24 Thread Ihor Radchenko
oned org-crypt because users of org-crypt may be > surprised if they see encrypted data stored unencrypted in disk, due > to this cache. No unencrypted data should be stored in the cache _on fs_. If it does get stored, it is a bug that should be reported. > A user has somefile.org which con

Re: Please document the caching and its user options

2024-06-23 Thread Daniel Clemente
clude sensitive data, unless the data is encrypted via `org-crypt'.") I first mentioned org-crypt because users of org-crypt may be surprised if they see encrypted data stored unencrypted in disk, due to this cache. A user has somefile.org which contains some headers marked with the "crypt&

Re: Please document the caching and its user options

2024-06-23 Thread Björn Bidar
Eli Zaretskii writes: >> Eli Zaretskii writes: >> >> >> I was referring to some kind of global option that defines cache >> >> directory, data directory, etc. Something akin XDG. >> > >> > We already have xdg-cache-home (and a few others in xdg.el). Is that >> > what you meant? >> >> Yes,

Re: Please document the caching and its user options

2024-06-19 Thread Ihor Radchenko
Colin Baxter writes: > This what I cannot understand. If the user never uses latex preview why > cannot the latex preview cache be disabled? I don't want to go on and on > and become a bore - I've said my piece and I will be silent from now > on. I believe that we ha

Re: Please document the caching and its user options

2024-06-19 Thread Colin Baxter
> by parser. The parser cache in particular can be disabled. But not > the latex preview cache. This what I cannot understand. If the user never uses latex preview why cannot the latex preview cache be disabled? I don't want to go on and on and become a bore - I've said my piece and I w

Re: Please document the caching and its user options

2024-06-19 Thread Ihor Radchenko
Eli Zaretskii writes: > Let me clarify. In the scenario in which I found out about Org > caching, I didn't use latex-preview, not at all Sure. Org uses multiple caches. You encountered the one created by parser. The parser cache in particular can be disabled. But not the latex preview

Re: Please document the caching and its user options

2024-06-19 Thread Eli Zaretskii
ng, I hope they will all be documented), but evidently the caching by Org happens (by default!) even if the user doesn't come anywhere near latex-preview.

Re: Please document the caching and its user options

2024-06-19 Thread Ihor Radchenko
Colin Baxter writes: > > 1. not reasonable in a sense that it has downsides compared to > > what we do now - save latex previews on disk 2. impossible in a > > sense that we do not have an existing toggle to store cached > > previews in memory. Such functionality would have to be

Re: Please document the caching and its user options

2024-06-19 Thread Colin Baxter
e significant changes in the >>> Org mode codebase. >> >> I understand all that, but if the user wants it, and insist on >> not caching any data, let them have what they want. > It is not about letting or not letting them. I would have to >

Re: Please document the caching and its user options

2024-06-18 Thread tomas
On Wed, Jun 19, 2024 at 12:06:42AM +0200, Rudolf Adamkovič wrote: > Ihor Radchenko writes: > > > Can we instead store them in memory? Yes, but (1) it will make Emacs RAM > > consumption grow constantly and more and more previews are generated; > > (2) it will require significant changes in the

Re: Please document the caching and its user options

2024-06-18 Thread Rudolf Adamkovič
Ihor Radchenko writes: > Can we instead store them in memory? Yes, but (1) it will make Emacs RAM > consumption grow constantly and more and more previews are generated; > (2) it will require significant changes in the Org mode codebase. And, (3) all previews would be lost every time one shuts

Re: Please document the caching and its user options

2024-06-18 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: Eli Zaretskii , emacs-orgmode@gnu.org > Date: Tue, 18 Jun 2024 15:53:18 + > > Daniel Clemente writes: > > > What's the setting then to disable org-persist? I.e. to disable > > creating of files like ~/.cache/org-persist/gc-lock.eld > > Many people seem to want

Re: Please document the caching and its user options

2024-06-18 Thread Ihor Radchenko
Eli Zaretskii writes: >> Can we instead store them in memory? Yes, but (1) it will make Emacs RAM >> consumption grow constantly and more and more previews are generated; >> (2) it will require significant changes in the Org mode codebase. > > I understand all tha

Re: Please document the caching and its user options

2024-06-18 Thread Eli Zaretskii
ly) > > Can we instead store them in memory? Yes, but (1) it will make Emacs RAM > consumption grow constantly and more and more previews are generated; > (2) it will require significant changes in the Org mode codebase. I understand all that, but if the user wants it, and

Re: Please document the caching and its user options

2024-06-18 Thread Ihor Radchenko
Eli Zaretskii writes: >> It is impossible. We need to store files like latex previews >> somewhere. This somewhere is org-persist-directory now. > > Sorry, I don't understand: why do you need to store them as files? > Why not keep the previews in buffer(s)? In Org mode, in order to create latex

Re: Please document the caching and its user options

2024-06-18 Thread Ihor Radchenko
Daniel Clemente writes: >> Nope. "org-persist" directory is not only used by org-element. If some >> other parts of Org need to cache something, they can also store cache >> there. >> > What's the setting then to disable org-persist? I.e. to disable > creating of files like

Re: Please document the caching and its user options

2024-06-17 Thread Daniel Clemente
files include sensitive data?) If you use `org-crypt', note that the persisted cache may temporarily store unencrypted data after decrypting a header. Use `org-element-use-cache' instead to use a memory-only cache.") I mentioned I don't know org-element-cache-persistent, I mean that as a u

Re: Please document the caching and its user options

2024-06-16 Thread Ihor Radchenko
or instance: > (defvar org-element-use-cache t > "Non-nil when Org parser should cache its results.") > From that description, it's not clear to a new user whether they're > creating files on disk (as caches often do) or not. Do you mean something like "Non-nil when

Re: Please document the caching and its user options

2024-06-16 Thread Eli Zaretskii
d its fallbacks is a de-facto standard of solving this in Emacs, and it supports all the platforms. Even startup.el uses it (albeit by customized code, to avoid interfering with user customizations) when looking for init files and suchlikes. So I think you raise a problem that is already solved

Re: Please document the caching and its user options

2024-06-16 Thread Ihor Radchenko
r all possible kinds of cache/history data. > > Deleting files in a directory, recursively if needed, is already > available. is that what you meant? No. I mean a new user option like `clear-caches-on-exit' that will work across all the packages. Then, concerned users may set it to non-nil to d

Re: Please document the caching and its user options

2024-06-15 Thread Daniel Clemente
> > Please document the caching features of Org in the manual, including > > how to turn that off. (I also question the wisdom of turning this on > > by default without as much as a single request for confirmation from > > the user.) > Hmm. What aspect of caching do you

Re: Please document the caching and its user options

2024-06-15 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org, emacs-de...@gnu.org, Michael Albinus > > Date: Sat, 15 Jun 2024 14:13:03 + > > CCing emacs-devel as I'd like to upgrade this discussion to Emacs-wide > context. > > Eli Zaretskii writes: > > >> ... I wanted to know what is being

Re: Please document the caching and its user options

2024-06-15 Thread Ihor Radchenko
CCing emacs-devel as I'd like to upgrade this discussion to Emacs-wide context. Eli Zaretskii writes: >> ... I wanted to know what is being cached, why, and in what file/directory. >> > > ... >> Would it be possible for Emacs to define a framework for cache/var/data >> locations? Such

Re: Please document the caching and its user options

2024-06-15 Thread Ihor Radchenko
Ihor Radchenko writes: >> The emacs-internal encoding is not binary. In almost all the cases it >> is indistinguishable from utf-8-unix. It differs where a buffer >> includes characters outside of the Unicode codespace. The usual >> practice in Emacs is that files holding internal data use >>

Re: Please document the caching and its user options

2024-06-15 Thread Eli Zaretskii
> From: Ihor Radchenko > Cc: emacs-orgmode@gnu.org > Date: Sat, 15 Jun 2024 12:47:29 + > > Eli Zaretskii writes: > > >> I am not convinced that we have to do it. > > > > That's too bad. When a user finds out about this caching, how do you > >

Re: Please document the caching and its user options

2024-06-15 Thread Ihor Radchenko
Eli Zaretskii writes: >> I am not convinced that we have to do it. > > That's too bad. When a user finds out about this caching, how do you > propose that he/she looks for the information about it? I wanted to > know what is being cached, why, and in what file/directory.

Re: Please document the caching and its user options

2024-06-14 Thread Eli Zaretskii
The > > manual is currently completely silent about it. > > > > Next, please document the user options that control this caching, and > > especially those options which can be used to turn this caching off or > > direct it to a different place. > > I am not con

Re: Please document the caching and its user options

2024-06-14 Thread Ihor Radchenko
Eli Zaretskii writes: >> Hmm. What aspect of caching do you want us to document? > > First and foremost, that it exists, and is turned on by default. The > manual is currently completely silent about it. > > Next, please document the user options that control this cach

Publishing cache (was: Please document the caching and its user options)

2024-06-14 Thread Ihor Radchenko
Jens Lechtenboerger writes: > Jumping in here, I do not understand the publishing cache. Some of > my org documents are re-published every time, while others are only > re-published after changes. What is checked where? See "14.4 Triggering Publication" section of Org mode manual: Org

Re: Please document the caching and its user options

2024-06-14 Thread Jens Lechtenboerger
On 2024-06-14, Ihor Radchenko wrote: > Eli Zaretskii writes: > >> Please document the caching features of Org in the manual, including >> how to turn that off. (I also question the wisdom of turning this on >> by default without as much as a single request for confi

Re: Please document the caching and its user options

2024-06-14 Thread Eli Zaretskii
> > > > Please document the caching features of Org in the manual, including > > how to turn that off. (I also question the wisdom of turning this on > > by default without as much as a single request for confirmation from > > the user.) > > Hmm. What asp

Re: Please document the caching and its user options

2024-06-14 Thread Ihor Radchenko
y default without as much as a single request for confirmation from > the user.) Hmm. What aspect of caching do you want us to document? FYI, Org mode has been doing various forms of caching since forever. Recently, we just employed a bit more regular API and introduced one more kind of caching - parser cac

Re: [BUG] org-export: incorrect assignment of bind keywords [9.7.3 (9.7.3-2f1844 @ /home/user/.emacs.d/elpa/org-9.7.3/)]

2024-06-13 Thread Ihor Radchenko
"Suhail Singh" writes: > In Org 9.7.3, the variables bound using the =#+BIND= keyword have values that > are nested. E.g., when a string value is provided, the value actually gets > set > to a singleton list containing said string. This can be observed using the > snippet: > ... > #+RESULTS:

Please document the caching and its user options

2024-06-12 Thread Eli Zaretskii
in the manual about turning off the caching. Please document the caching features of Org in the manual, including how to turn that off. (I also question the wisdom of turning this on by default without as much as a single request for confirmation from the user.) Please also make sure

[BUG] org-export: incorrect assignment of bind keywords [9.7.3 (9.7.3-2f1844 @ /home/user/.emacs.d/elpa/org-9.7.3/)]

2024-06-11 Thread Suhail Singh
-export-copy-buffer ( to-buffer drop-visibility drop-narrowing drop-contents base-commit: 3e4c89e55649f95cffbf70fcf64dcbc69760f96f -- 2.45.2 Emacs : GNU Emacs 29.3 (build 2, x86_64-suse-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) Package: Org mode version 9.7.3 (9.7.3-2f1844 @ /home/user/.emacs.d/elpa/org-9.7.3/) -- Suhail

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-08 Thread Ihor Radchenko
Suhail Singh writes: > Ihor Radchenko writes: > >> Accidentally deleted newline here* Heading 2 > > Are there situations which result in such accidental newline deletions > that are likely to not be immediately caught if not prompted by the > checker? Or was the checker added preemptively? I

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-08 Thread Suhail Singh
Ihor Radchenko writes: > Accidentally deleted newline here* Heading 2 Are there situations which result in such accidental newline deletions that are likely to not be immediately caught if not prompted by the checker? Or was the checker added preemptively? Perhaps the checker should simply be

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-08 Thread Ihor Radchenko
Suhail Singh writes: > On a related note, what specific situation(s) was this checker intended > to help the user in? I.e., what are the situations that could result in > misplaced headings? For example, * Heading 1 * Heading 2* Heading 3 * Heading 4 or * Heading Some te

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-08 Thread Suhail Singh
begin_src org :tangle /tmp/misplaced-heading-mre-3.org | Blah | Hello** world | | | | #+call: blah :var foo="hello** world" #+end_src On a related note, what specific situation(s) was this checker intended to help the user in? I.e., what are the situations t

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-07 Thread Suhail Singh
Ihor Radchenko writes: > Oops. > I amended the fix now. > https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=6c862699a It's better, but not quite there. For instance, tangle the block below into an org file and observe the reported warning. #+begin_src org :tangle

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-07 Thread Ihor Radchenko
Suhail Singh writes: >> Fixed, on bugfix. >> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b8497aa7f > > This doesn't seem fixed as of 9.7.3 (the MRE above still shows spurious > warning). It seems that org-at-block-p returns nil when point is within > the block. Oops. I

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-06 Thread Suhail Singh
Ihor Radchenko writes: > "Suhail Singh" writes: > >> When there is, say, an "example" result block that is indented (i.e., >> the entire block including the delimiters is indented) and it contains >> some asterisks in the middle, org-lint considers it to be a possible >> case of

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-06 Thread Ihor Radchenko
//git.sr.ht/~bzg/worg/commit/7f498b97 >> Further, the distant goal is to implement integration of org-lint into >> flycheck/flymake. And we do need user-level config for which checkers >> should be enabled for "full" org-lint check and for "quick" check on >>

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
ome much more complicated as a result of it. > Further, the distant goal is to implement integration of org-lint into > flycheck/flymake. And we do need user-level config for which checkers > should be enabled for "full" org-lint check and for "quick" check on >

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
ther, the distant goal is to implement integration of org-lint into flycheck/flymake. And we do need user-level config for which checkers should be enabled for "full" org-lint check and for "quick" check on the fly then. -- Ihor Radchenko // yantar92, Org mode contributor, Lear

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > This would work, but it modifies the checker list destructively. Yes, as does org-lint-add-checker. In the same vein, org-lint-remove-checker is intended to be able to undo the "effect" of one or more org-lint-add-checker invocations. > What about introducing some

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
Suhail Singh writes: > Ihor Radchenko writes: > >> There is currently no such way. Although, it would be nice to have such >> a feature. Patches welcome! > > See attached. Thanks! > +;;;###autoload > +(defun org-lint-remove-checker (name names) > + "Remove checker(s) from linter. > +NAME is

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > There is currently no such way. Although, it would be nice to have such > a feature. Patches welcome! See attached. >From 7d7a240d82202fcb3323453648dd2d8b78d22a6f Mon Sep 17 00:00:00 2001 From: Suhail Date: Wed, 5 Jun 2024 11:55:10 -0400 Subject: [PATCH] org-lint: Add

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
uages in general wouldn't it be > better to consult something like the output of #'org-src-get-lang-mode > and see if that mode is either defined or can be loaded (depending on > whether or not we require the user to ensure whether the feature > representing the mode is already loaded or

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Suhail Singh
Ihor Radchenko writes: > Org mode has no idea which languages are intended to be executed, but > happen to not have their ob-lang.el backend loaded; and which > languages do not need execution. So, Org mode warns just in case. If the primary function of this check is to ensure that

Re: [BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
"Suhail Singh" writes: > When there is, say, an "example" result block that is indented (i.e., > the entire block including the delimiters is indented) and it contains > some asterisks in the middle, org-lint considers it to be a possible > case of misplaced-heading. Case in point: > >

Re: [BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-05 Thread Ihor Radchenko
"Suhail Singh" writes: > Any code block in a language that isn't intended to be executed results in a > warning from 'suspicious-language-in-src-block checker. For instance: > > #+begin_src conf > [Unit] > Description=Blah > #+end_src > > In the above example, conf-mode exists and is used

[BUG] org-lint: Spurious warning by 'suspicious-language-in-src-block [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-04 Thread Suhail Singh
to provide syntax highlighting and yet, org-lint reports a warning. Emacs : GNU Emacs 29.3 (build 2, x86_64-suse-linux-gnu, GTK+ Version 3.24.41, cairo version 1.18.0) Package: Org mode version 9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/) -- Suhail

[BUG] org-lint: Spurious warning from 'misplaced-heading lint-checker [9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/)]

2024-06-04 Thread Suhail Singh
ro version 1.18.0) Package: Org mode version 9.7.2 (release_N/A-N/A-88dd2c @ /home/user/.emacs.d/elpa/org-9.7.2/) -- Suhail

Re: Exporting user labels to non-latex backends

2024-05-17 Thread Stefano Ghirlanda
> > \begin{equation} > >x = 1 > > \end{equation} > > > > cref:eq:x > > --- > > > > exports with a mix of org labels and user labels: > > > > --- > > \begin{equation} > > \label{orgf29908c} > > x = 1 > > \end{equa

Re: Exporting user labels to non-latex backends

2024-05-17 Thread Ihor Radchenko
Stefano Ghirlanda writes: > There may be an issue with using #+name: labels when exporting to > non-latex backends. For example: > ... > #+name: eq:x > \begin{equation} >x = 1 > \end{equation} > > cref:eq:x > --- > > exports with a mix of org labels and us

Exporting user labels to non-latex backends

2024-05-16 Thread Stefano Ghirlanda
--- exports with a mix of org labels and user labels: --- \begin{equation} \label{orgf29908c} x = 1 \end{equation} equation \ref{eq:x} --- This does not affect latex export because one can set org-latex-prefer-user-labels, but most other backends do not seem to have this setting. I think

Re: User set org-hide-block-startup value overwritten by defvaralias

2024-02-23 Thread Ihor Radchenko
Ruiyang Wu writes: > I recently started to get the following warning from emacs when loading org > mode: > Warning (defvaralias): Overwriting value of ‘org-hide-block-startup’ by > aliasing to ‘org-cycle-hide-block-startup’ > > I have this in my init file: > (setq org-hide-block-startup t) > >

User set org-hide-block-startup value overwritten by defvaralias

2024-02-22 Thread Ruiyang Wu
Hi there, Thanks for maintaining this great piece of software. I recently started to get the following warning from emacs when loading org mode: Warning (defvaralias): Overwriting value of ‘org-hide-block-startup’ by aliasing to ‘org-cycle-hide-block-startup’ I have this in my init file:

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-13 Thread Ihor Radchenko
s safe if file:///ssh:host:org/test.org is > added to `org-safe-remote-resources'. I was considering a case when > there is no matching entry in `org-safe-remote-resources'. The user > opens (C-x C-f) /ssh:host:org/test.org and likely it is enough to > consider /ssh:host:org/inclu

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-11 Thread Max Nikulin
, actually it resides on the same host as the current document. Perhaps user consent is redundant. `org--safe-remote-resource-p' checks the containing Org file as well, in addition to #+included URL. If my reading of the code is correct then it considers /ssh:host:org/include.org as safe

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-08 Thread Ihor Radchenko
s something similar. >> >> May you please elaborate? > > Consider a file opened as /ssh:host:org/test.org that has > > #+setupfile: /ssh:host:org/include.org > > Formally it is a remote file, actually it resides on the same host as > the current documen

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-08 Thread Max Nikulin
as /ssh:host:org/test.org that has #+setupfile: /ssh:host:org/include.org Formally it is a remote file, actually it resides on the same host as the current document. Perhaps user consent is redundant. On the other hand, the file likely either contains #+setupfile: include.org or the user has

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-07 Thread Ihor Radchenko
Max Nikulin writes: > On 07/02/2024 23:12, Ihor Radchenko wrote: >> Max Nikulin writes: >> >>> #+setupfile: /dav:localhost#8000:/msg-123456.org > [...] >> I think we can enable checking for anything where `file-remote-p' >> returns non-nil. > ... In addition, TRAMP locations should be >

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-07 Thread Max Nikulin
On 07/02/2024 23:12, Ihor Radchenko wrote: Max Nikulin writes: #+setupfile: /dav:localhost#8000:/msg-123456.org [...] I think we can enable checking for anything where `file-remote-p' returns non-nil. It is a bit more tricky. Current file may be remote as well. Browsers have concept of

Re: [BUG] Org may fetch remote content without asking user consent

2024-02-07 Thread Ihor Radchenko
uffer: > > Tramp: Opening connection for localhost using dav...failed > ... > No dialog whether the file should be downloaded is displayed. > > My expectation is that Org should not connect to remote servers in > default configuration unless it is explicitly approved by the user

[BUG] Org may fetch remote content without asking user consent

2024-02-07 Thread Max Nikulin
ocalhost#8000:/msg-123456.org" No dialog whether the file should be downloaded is displayed. My expectation is that Org should not connect to remote servers in default configuration unless it is explicitly approved by the user. I am unsure what user option may be changed to mitigate the is

Re: [PATCH] lisp/ox-latex.el: make org-latex-prefer-user-labels safe file local

2024-02-02 Thread Ihor Radchenko
gerard.vermeu...@posteo.net writes: > I think that it is inconsistent that `org-latex-reference-command' > is a safe file local variable while `org-latex-prefer-user-labels' is > not (it makes no sense to set the first at file scope, while the second > is nil at global scope). Furth

[PATCH] lisp/ox-latex.el: make org-latex-prefer-user-labels safe file local

2024-02-02 Thread gerard . vermeulen
Hi, I think that it is inconsistent that `org-latex-reference-command' is a safe file local variable while `org-latex-prefer-user-labels' is not (it makes no sense to set the first at file scope, while the second is nil at global scope). Furthermore, `org-html-prefer-user-labels' is also a safe

Re: [BUG] M-x org-lint gives spurious warning when file contains a link with percent-encoded url [9.6.13 ( @ /home/user/.emacs.d/elpa/org-9.6.13/)]

2023-12-31 Thread Ihor Radchenko
Suhail Singh writes: > Running M-x org-lint on an org file with below contents results in a > spurious "Link escaped with obsolete percent-encoding syntax" warning. > > #+begin_src org > * org-lint url percent-encoding syntax warning > [[https://www.example.com?param=hello%20world][test url]] >

[BUG] M-x org-lint gives spurious warning when file contains a link with percent-encoded url [9.6.13 ( @ /home/user/.emacs.d/elpa/org-9.6.13/)]

2023-12-29 Thread Suhail Singh
][test url]] #+end_src I would expect the above org file to not yield any warnings. Emacs : GNU Emacs 29.1 (build 2, x86_64-suse-linux-gnu, GTK+ Version 3.24.38, cairo version 1.18.0) Package: Org mode version 9.6.13 ( @ /home/user/.emacs.d/elpa/org-9.6.13/) -- Suhail

Re: [BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-12-12 Thread Ihor Radchenko
Aaron Madlon-Kay writes: >> This particular change should fit within TINYCHANGE, I think. So, you do >> not need a copyright assignment (unless you have already exhausted the >> 15LOC limit on Emacs patches, which I do not see in git logs). > > Ah, yes, that should be OK then. Please see

Re: [BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-12-12 Thread Aaron Madlon-Kay
> On Dec 12, 2023, at 23:15, Ihor Radchenko wrote: > > This particular change should fit within TINYCHANGE, I think. So, you do > not need a copyright assignment (unless you have already exhausted the > 15LOC limit on Emacs patches, which I do not see in git logs). Ah, yes, that should be OK

Re: [BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-12-12 Thread Ihor Radchenko
Aaron Madlon-Kay writes: > OK this was also wrong, because seq only matches a finite sequence. I couldn’t > find a way to match an arbitrary-length list with pcase, so here’s my final > attempt: > > ... > This seems to handle all cases correctly, but again of course I leave the > details to the

Re: [BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-12-12 Thread Aaron Madlon-Kay
t; existing > function is correct except that the list case should be wrapped in (seq …). OK this was also wrong, because seq only matches a finite sequence. I couldn’t find a way to match an arbitrary-length list with pcase, so here’s my final attempt: (defun org-entities--user-safe-p (v) &q

Re: [BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-12-12 Thread Aaron Madlon-Kay
defun org-entities--user-safe-p (v) "Non-nil if V is a safe value for `org-entities-user'." (pcase v (`nil t) ((seq `(,(and (pred stringp) (pred (string-match-p "\\`[a-zA-Z][a-zA-Z0-9]*\\'"))) ,(pred stringp) ,(pred booleanp) ,(pred stringp)

[BUG] "Safe" local values for org-entities-user not recognized as such [9.6.11 (release_9.6.11 @ /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/org/)]

2023-12-12 Thread Aaron Madlon-Kay
. Local definitions for `org-entities-user` are not recognized as "safe" even when they are in the correct format. For instance, including the following local variables list in an org-mode file will still result in Emacs prompting you to accept the value

Re: Suggestion: User-contributed use-cases on orgmode.org ?

2023-11-19 Thread Bastien Guerry
Ihor Radchenko writes: > I don't think so. We intentionally keep Org mailing list as a single > place for all the discussions, not just Org development. > AFAIU, Bastien is firmly into this policy (CCing him in case if I > misunderstood). You didn't misunderstood: I firmly believe that we

Re: Suggestion: User-contributed use-cases on orgmode.org ?

2023-11-18 Thread David Masterson
Ihor Radchenko writes: > David Masterson writes: > >>> Would it help if we change it to >>> >>> It is made of numerous .org files from https://git.sr.ht/~bzg/worg. >>> >>> ? >> >> Perhaps: >> >> Follow the link https://git.sr.ht/~bzg/worg for information (including >> cloning) on the WORG

  1   2   3   4   5   6   7   8   >