Re: Org mode, Org Mode, Org-mode or Org-Mode?

2022-10-28 Thread Kaushal Modi
On Fri, Oct 28, 2022, 4:25 PM Marcin Borkowski wrote: > What is the "official" version? I found at least two spelling on > orgmode.org... > > TIA, > Here's my personal take on that topic: https://scripter.co/how-do-i-write-org-mode/ >

Re: [ANN] We are now regularily testing Org main branch against Emacs 26, 27, 28

2022-10-17 Thread Kaushal Modi
On Sun, Oct 16, 2022 at 2:04 AM Bastien wrote: > Hi all, > > thanks to joint efforts by Christian Köstlin and Ihor, we are running > the Org test suite from the Org main branch against Emacs 26, 27, 28. > It's great to hear this. Thank you, Christian and Ihor!

Re: Interest in an Org video meetup?

2022-10-06 Thread Kaushal Modi
I'd like to join. -- Kaushal Modi On Thu, Oct 6, 2022 at 9:24 AM Russell Adams wrote: > > Would there be any interest in a monthly 1-2 hour long ad-hoc screen > sharing and video discussion for Org-mode? > > I'm offering to schedule and moderate the first few events. I'd >

Re: Support for tagging (special) blocks

2022-08-31 Thread Kaushal Modi
On Wed, Aug 31, 2022 at 4:19 PM Sébastien Miquel wrote: > Hi, > > I've been using tags on special blocks, src blocks and other, for two > purposes: > > 1. to control which blocks get exported, using the `#+exclude_tags` > property. > 2. to fine tune the export, according to tags, of

Re: org-set-properties for various (all) headings

2022-07-20 Thread Kaushal Modi
On Wed, Jul 20, 2022 at 4:07 AM Uwe Brauer wrote: > 2. Second code > > (defun test/set-property-at-heading () > "Function to be called at the beginning of an Org heading." > (interactive) > (let ((el (org-element-at-point))) > ^el is defined but not used. > (org-set-property

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
On Tue, Jul 19, 2022 at 12:58 PM Uwe Brauer wrote: > > > On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > Try replacing the `org-set-property` form to: > > > (org-set-property "New" "[]") > > This does not anything (besides garbage collecting) > Did you replace only the

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
On Tue, Jul 19, 2022, 10:54 AM Uwe Brauer wrote: > > > #+begin_src elisp :noexport > (defun my-set-property-at-heading () > "Function to be called at the beginning of an Org heading." > (interactive) > (let ((el (org-element-at-point))) > (org-set-property "New" (org-element-property

Re: org-set-properties for various (all) headings

2022-07-19 Thread Kaushal Modi
Check out org-map-entries. I have one example here: https://scripter.co/looping-through-org-mode-headings/#example-modifying-a-property-in-all-headings . On Tue, Jul 19, 2022, 4:16 AM Uwe Brauer wrote: > > > Now, I would add to all subheadings a new property, say > > :Received: [ ] > > Whose

Re: Taking notes of videos in Emacs

2022-07-08 Thread Kaushal Modi
On Fri, Jul 8, 2022, 9:07 AM Gerardo Moro wrote: > Hi, > > I recently discover the Obsidian Media Extended plugin ( > https://www.youtube.com/watch?v=GQXVWtNkeZw) to take notes while watching > videos / listening to audios with keybindings to stop the video and create > timestamps with link to

Re: how to convert a non-org list to org headings

2022-07-06 Thread Kaushal Modi
On Wed, Jul 6, 2022 at 11:17 AM Uwe Brauer wrote: > Hi > > I have a file that contains a list as: > > > 1.1 Funciones de una variable > > 1.1.1. Catálogo de funciones. Translaciones y dilataciones > > 1.1.2. Derivación > > 1.1.2.1. Optimización. Tasa de cambio > > 1.1.2.2. Aproximación de

Re: Utility of description lists

2022-06-17 Thread Kaushal Modi
On Fri, Jun 17, 2022 at 8:50 AM Cletip Cletip wrote: > Final question : why do you use description lists and not another ? I use description lists *heavily*. 1. For description lists of course.. where the "description" part is a bit verbose and plain lists don't look at that elegant For

Re: Missing stardiviner repos [org-contrib]

2022-06-05 Thread Kaushal Modi
On Sun, Jun 5, 2022, 9:40 AM Kaushal Modi wrote: > > Have you moved those repos elsewhere? > I kept on looking at the release 0.4 commit message on the org-contrib and didn't realize that the "release notes" referred in that Mastodon thread are at the different place

Missing stardiviner repos [org-contrib]

2022-06-05 Thread Kaushal Modi
://fosstodon.org/@bzg/108424011487959609 -- Kaushal Modi

Re: [PATCH] ox: fix comment exported as a blank line

2022-06-01 Thread Kaushal Modi
On Wed, Jun 1, 2022 at 1:32 AM Phil Estival wrote: > > > * lisp/ox.el (org-export--skip-p): no longer export single-line > comments as blank lines which did break paragraphs in two. This is a pretty big breaking change. In your next PATCH email, I see that you are also modifying the test that

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Kaushal Modi
On Mon, May 30, 2022 at 7:45 PM Ihor Radchenko wrote: > Your code__collapse_all_posts block makes use of hide-subtree from > outline.el. Please, do not use it. outline.el is no longer considered > compatible with Org. It was not in the past, and even more so now. This > has been announced in

Re: BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Kaushal Modi
On Mon, May 30, 2022, 7:45 PM Ihor Radchenko wrote: > Kaushal Modi writes: > > > I was trying to create a minimal reproducible example for a different > > issue and I ended up with this other issue that I didn't expect and so > > I am reporting that first. > >

BUG: org cycling regression when using the legacy folding style overlays

2022-05-30 Thread Kaushal Modi
:00 :END: = Hit TAB once again, you will see: = * Image / Figure :image: ** Image links... = Now if you move the point to line 69 (* Image links), hitting the TAB will not do any kind of cycling at all. -- Kaushal Modi

About opening issues vs email [Was: About 'inline special blocks']

2022-05-26 Thread Kaushal Modi
On Thu, May 26, 2022 at 1:36 PM João Pedro wrote: > > On Thu, May 26 2022 20:20, Ihor Radchenko wrote: > > > I think that you can simply open an issue in his Github repo. > > I reached out to him on e-mail, if he doesn't reply there I'll create > the issue. Thanks! Just saying this based on my

Re: export regions of a org files to other formats (most likely only to a buffer).

2022-05-25 Thread Kaushal Modi
On Wed, May 25, 2022 at 11:09 AM Uwe Brauer wrote: > > Hi > > Sometimes I only want to convert/export a region or a paragraph of an > org file to another format, most likely as html or latex. > I cannot find such a functionality also not in the package system > does anybody knows about such a

Re: About 'inline special blocks'

2022-05-23 Thread Kaushal Modi
On Mon, May 23, 2022 at 10:33 AM Juan Manuel Macías wrote: > I think this idea was suggested by Ihor in a thread from a few months > ago (I don't remember which one), but since other topics were discussed, > the idea remained a bit in limbo. I still find the idea very > interesting, and I think

Re: Change of behavior of org-meta-return in 9.6/DoomEmacs?

2022-05-17 Thread Kaushal Modi
On Tue, May 17, 2022 at 12:24 PM Guillaume MULLER wrote: > > I noticed that hitting Meta-Return in org in Doom does not behave as in > Vanilla Emacs. If I have (with <> being the cursor): > > * outline 1 > ** outline 2 >+ no<>te1 >+ note2 > > In Vanilla Emacs, hitting M-Ret (i.e. calling

Re: Inline src org block element with containing inside item does not get exported when it contains a newline (was: Inline src block element not parsed correctly for export when in a list item)

2022-05-15 Thread Kaushal Modi
On Sat, May 14, 2022 at 5:39 AM Ihor Radchenko wrote: > > I just tried again on the latest main and I cannot reproduce anymore. > Though I do see the problem on bugfix. > > Can you please check again on your side? I confirm -- I cannot reproduce the bug in Org mode version 9.5.3

Re: [BUG] C-u C-u C-u TAB regression on master

2022-05-12 Thread Kaushal Modi
> Allen Li writes: > > > There appears to be a regression in the behavior of C-u C-u C-u TAB on > > master (at aea24b3feafb9c389dc5933005928462bb20c4f8). > > > > C-u C-u C-u TAB is supposed to show everything including drawers, but on > > this test file it does not show property drawers: Thanks

Re: source block evaluation in #+DATE line

2022-05-10 Thread Kaushal Modi
Also check out the {{{time}}} macro if you want complete control on the formatting of the date string. Example Org snippet: = #+date: {{{time(%Y-%m-%d)}}} #+options: toc:nil author:nil See the ~{{{time}}}~ macro in [[info:org#Macro Replacement][org#Macro Replacement]]. The format passed to

Re: oc-basic "Wrong value for ENTRY-OR-KEY" error on emacs master (29.x) [Was: Bibliographies on export with ox-context and ox-epub]

2022-05-10 Thread Kaushal Modi
On Mon, May 9, 2022 at 5:44 PM Kaushal Modi wrote: > > I have now sent this to Emacs bug tracking: > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55342 Thanks for the debug[1] Ihor! This issue was quickly fixed on Emacs master in https://git.savannah.gnu.org/cgit/emacs.git/c

bug#55342: 29.0.50; org-cite-basic--get-field: Wrong value for ENTRY-OR-KEY: nil

2022-05-10 Thread Kaushal Modi
done 55342 On Tue, May 10, 2022 at 1:06 AM Lars Ingebrigtsen wrote: > > Ihor Radchenko writes: > > > The code above always skips a bibtex entry starting at bob. > > Hence, the provided example bibliography is parsed as empty, which is > > not expected by Org. > > This should now be fixed on the

Re: oc-basic "Wrong value for ENTRY-OR-KEY" error on emacs master (29.x) [Was: Bibliographies on export with ox-context and ox-epub]

2022-05-09 Thread Kaushal Modi
I have now sent this to Emacs bug tracking: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55342

Re: oc-basic "Wrong value for ENTRY-OR-KEY" error on emacs master (29.x) [Was: Bibliographies on export with ox-context and ox-epub]

2022-05-09 Thread Kaushal Modi
On Mon, May 9, 2022 at 10:21 AM Kaushal Modi wrote: > Can someone using emacs > built from master branch confirm that they see this same error when > `org-cite-process-bibliography` is called? It should be reproducible > without using ox-hugo too. Alright I was able to confirm t

oc-basic "Wrong value for ENTRY-OR-KEY" error on emacs master (29.x) [Was: Bibliographies on export with ox-context and ox-epub]

2022-05-09 Thread Kaushal Modi
On Thu, Nov 25, 2021 at 6:21 AM juh wrote: > With cite_export: basic I get > > Wrong value for ENTRY-OR-KEY: nil Hello, I saw the ox-hugo CI fail with emacs master (29.0.50) over the past few days with this backtrace, but this error is probably not related to ox-hugo, and I need help confirming

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

2022-04-28 Thread Kaushal Modi
On Thu, Apr 28, 2022 at 10:44 AM Ihor Radchenko wrote: > I am not going to fix this just yet unless it is critical. It does not > look like this bug is common. 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

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

2022-04-27 Thread Kaushal Modi
-style to overlays, and refresh that Org buffer, I see the square brackets around asdf in the src block (as expected). Org mode version 9.5.3 (release_9.5.3-458-g1ed9e4) -- Kaushal Modi

Difference seen in org-version strings when built from git

2022-04-23 Thread Kaushal Modi
On Fri, Dec 17, 2021 at 11:34 PM Ihor Radchenko wrote: > > Kaushal Modi writes: > > > I actually run a wrapper script to update Org and that has all that: > > ... > > I verified that at least the git hash was latest as of then: > > release_9.5-364-g*de022e*

[PATCH] Fix inf-loop due to org-eldoc when point is in an org src block

2022-04-23 Thread Kaushal Modi
-indent, untabify patch 2: Fix for the inf-loop Can someone please review and apply these patches to the org-contrib repo? [I am unable to commit using ssh/git: protocol (only https is allowed) based on the network restrictions at work.] Thanks! -- Kaushal Modi 0001-lisp-org-eldoc.el-Whitespace

[BUG] org-eldoc inf-loops when point is in an org src block

2022-04-23 Thread Kaushal Modi
ction ((string= lang "php") (if (require 'php-eldoc nil t) (progn (php-eldoc-function ((or (string= lang "go") (string= lang "golang")) (if (require 'go-eldoc nil t) (progn (go-eldoc--documentation-function (t (let ((doc-fun (org-eldoc-get-mode-local-documentation-function lang)) (callback (car args))) (if (functionp doc-fun) (progn (if ... ... ... org-eldoc-documentation-function(#f(compiled-function (string plist) #)) = Recipe to create this error: 1. Create a file test.org with these contents: #+begin_src org ,#+html: foo #+end_src 2. emacs -Q 3. Load/evaluate org-eldoc.el from https://git.sr.ht/~bzg/org-contrib/tree/master/item/lisp/org-eldoc.el 4. Open the test.org file and place the point *inside* the org src block 5. eldoc error: (error Lisp nesting exceeds ‘max-lisp-eval-depth’) - Upon inspecting the `org-eldoc-documentation-function` function, I don't see a reason why the control should enter the default of `t' case if the src lang is "org". Just returning with nil works for me if the lang is "org". I will send a patch for this in a follow-up email. -- Kaushal Modi

Re: What's the flow for adding info: links in Org documents?

2022-04-15 Thread Kaushal Modi
On Wed, Apr 13, 2022 at 7:38 AM Max Nikulin wrote: > > On 13/04/2022 01:26, Kaushal Modi wrote: > > On Mon, Apr 11, 2022 at 10:57 AM Max Nikulin wrote: > > > >> There are a some problems with info links outside of Emacs: > >> - Export to PDF > > >

Re: What's the flow for adding info: links in Org documents?

2022-04-12 Thread Kaushal Modi
On Mon, Apr 11, 2022 at 10:57 AM Max Nikulin wrote: > There are a some problems with info links outside of Emacs: > - Export to PDF Yeah, I recently realized that I will need to add custom support for exporting info: links using ox-hugo. I made a small blog post out of this learning:

Re: #+latex_header blocks, or, managing lots of LaTeX headers

2022-04-12 Thread Kaushal Modi
On Mon, Apr 11, 2022 at 10:53 PM Vikas Rawal wrote: > > For a major project like this, I would just put these in a separate file, and > include it using #+INCLUDE: Org has a special keyword for the purpose of including *just the setup stuff*: #+setupfile See (org) Export Settings. #+include

Re: What's the flow for adding info: links in Org documents?

2022-04-11 Thread Kaushal Modi
On Mon, Apr 11, 2022 at 8:35 AM Kaushal Modi wrote: > I believe I am missing out something basic with inserting info: links > in Org documents. Yes, I was missing out on something :) To my future self: 1. When in Info buffer, do M-x org-store-link (typically a user binds this to C-c l:

What's the flow for adding info: links in Org documents?

2022-04-11 Thread Kaushal Modi
uot;[[info:(org) External Links]]" would work as well. But I think I am missing out on some flow that would make the above manually editing in step 3 unnecessary. How do you insert info: links efficiently? -- Kaushal Modi

Re: How to handle strings with commas in macros?

2022-04-07 Thread Kaushal Modi
On Thu, Apr 7, 2022 at 12:30 PM William Denton wrote: > I'm using macros to format names in a LaTeX export, like so: > > on export and LaTeX will format it. That works fine. But in an index of > names, > if I want > > {{{m(Denton, William)}}} > > then Org takes that as two arguments to the

Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?

2022-04-04 Thread Kaushal Modi
On Mon, Apr 4, 2022 at 10:34 AM wrote: > > I would like to know why does a list need 2 blank lines instead of 1? > For what reason exists this rule? > - 1 blank line in a list item with create a paragraph break as I showed in my example earlier. It will not end the list item or list. - So we

Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?

2022-04-03 Thread Kaushal Modi
On Mon, Apr 4, 2022, 12:06 AM Ihor Radchenko wrote: > > I think your examples are a bit misleading. I have the indentations correct in my three examples. A list item continues until > there are _2_ blank lines or until the subsequent line is not indented >= > current list item indentation: >

Re: Multiline list entries / Is auto-fill-mode in org(roam) usual?

2022-04-03 Thread Kaushal Modi
On Sun, Apr 3, 2022, 4:29 PM wrote: > Hello togehter, > > is it usual to have auto-fill-mode (automatic new-line after n > characters) turned on in org or org-roam (including fill-column set e.g. > to 80)? > I cannot comment on that. Enabling auto-fill-mode is user preference. Or let me ask

Re: Inline src block element not parsed correctly for export when in a list item

2022-03-16 Thread Kaushal Modi
Hello, Just pinging here again. Can someone confirm this bug? -- Kaushal Modi On Tue, Mar 1, 2022, 10:10 PM Kaushal Modi wrote: > Hello, > > I believe I have come across a corner case issue where the inline src > block element doesn't get parsed as one, if: > > 1. That src

Possible bug in `org-subtree--get-subtree-options`?

2022-03-14 Thread Kaushal Modi
e at least since 2015. Thanks! -- Kaushal Modi

Re: Code blocks and quotes export style

2022-03-13 Thread Kaushal Modi
On Sun, Mar 13, 2022, 6:55 AM Sébastien Gendre wrote: > Hello everyone. _o/ > > When I export an Org file to LaTeX and finally PDF, the code blocks and > quotes often exceed the width of the page. > Hello _o/ I fixed[1] that problem by using the LaTeX minted package that allows wrapping around

Re: Unable to resolve link; aborting: "roam:git"

2022-03-13 Thread Kaushal Modi
On Sun, Mar 13, 2022, 8:23 AM wrote: > In real I (try to) use ox-hug to export my org-files (org-roam-v2) to > markdown (and later to HTML). > > After analyzing the my debug output [1] the ox-hugo people pointed me to > org-roam community because the error is "thrown" (correct term in >

Re: org-roam to HTML: My needs are unusual?

2022-03-11 Thread Kaushal Modi
Hello Christian, tl;dr: If you decide to learn how to use Hugo (read its docs, ask questions on its forum, etc.), this[1] should solve the issues you have faced so far. --- Details: On Fri, Mar 11, 2022 at 7:04 AM wrote: > > ox-hugo with hugo is often mentioned in the context. But ox-hugo is

Inline src block element not parsed correctly for export when in a list item

2022-03-01 Thread Kaushal Modi
- abcdefg abcdefg abcdefg abcdefg `[[abc def][bar]]'. = Note that incorrect export of the inline src block in section 1 above. The remaining sections exports correctly because either the inline src block is not in a list item, or it doesn't wrap to the next line. -- Kaushal Modi

Re: Inconsistent handling of multi-line properties

2022-02-28 Thread Kaushal Modi
On Mon, Feb 28, 2022 at 3:34 PM Kaushal Modi wrote: > > On Sat, Oct 2, 2021 at 11:03 AM Hanno Perrey wrote: > > > > Hej, > > > > I have noticed that properties that stretch over multiple lines using > > the :value+: syntax are ignored by org-element-propert

Re: Inconsistent handling of multi-line properties

2022-02-28 Thread Kaushal Modi
On Sat, Oct 2, 2021 at 11:03 AM Hanno Perrey wrote: > > Hej, > > I have noticed that properties that stretch over multiple lines using > the :value+: syntax are ignored by org-element-property and therefore > also by e.g. org-export-get-node-property when exporting to ics via > ox-icalendar.el

Re: Org mode profiling meetup on Sat, Feb 26 (was: profiling latency in large org-mode buffers (under both main & org-fold feature))

2022-02-23 Thread Kaushal Modi
On Wed, Feb 23, 2022 at 7:37 AM Ihor Radchenko wrote: > > Dear all, > > Since there is at least a couple of people who might be interested, lets > try to meet online on jitsi and debug performance issues you experience > because of Org mode. Probably some time this Saturday (Feb 26). I am >

Re: profiling latency in large org-mode buffers (under both main & org-fold feature)

2022-02-21 Thread Kaushal Modi
On Tue, Feb 22, 2022, 12:34 AM Ihor Radchenko wrote: > > I am wondering if many people in the list experience latency issues. > Maybe we can organise an online meeting (jitsi or BBB) and collect the > common causes/ do online interactive debugging? > +1 I have seen few people see this issue on

Re: [PATCH] c-csl : accept relative CSL filenames

2022-02-18 Thread Kaushal Modi
> It is already in the main branch, AFAIU. I assume you mean it should be > back-ported to bugfix branch. If that's the case, I don't know. This is > a new feature, and not a critical one: there are workarounds, as you > found out. Yes, sorry, I meant the bugfix branch. > This should be

Re: [PATCH] c-csl : accept relative CSL filenames

2022-02-18 Thread Kaushal Modi
Hello Nicolas, > Since you are probably busy, I implemented this on your behalf. The new > behaviour is in main branch. Thank you. > Can this commit[1] be merged into the main branch. Locally on my machine, I use org built from main and something like this was working fine: #+cite_export: csl

Re: Bug with exporting list with link item containing "::" to markdown

2022-02-13 Thread Kaushal Modi
On Sun, Feb 13, 2022, 4:18 AM Jeremie Juste wrote: > Hello Cash, > > Many thanks for reporting but I cannot reproduce the error with my current > version of emacs and org-mode. Could you specify the version of org-mode > and emacs you are currently using? > > * test > :PROPERTIES: > :ID:

org-element persist logic hangs when quitting emacs

2022-01-26 Thread Kaushal Modi
version: GNU Emacs 28.0.91 (build 7, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2022-01-25, built using commit 7eca80b20444f7bd7bcb6a66a9054e029f0e7013. -- Kaushal Modi

Re: Question Regarding CSS Stylesheets For Art Gallery Webpage Made With Org Mode

2022-01-21 Thread Kaushal Modi
Hi Samuel, On Sun, Jan 16, 2022 at 12:06 PM Samuel Banya wrote: > > I am planning to use Emacs to create Org Mode files for the few main sections > of my site that aren't the Art Gallery page itself. > > I'm trying to figure out how to get a modern Wordpress looking Org generated > HTML page

org-element-cache: org-set-tags (C-c C-q) makes Emacs unresponsive at times

2022-01-21 Thread Kaushal Modi
Hello Ihor, > The issue here had nothing to do with hanging. You are probably seeing > yet another bug. ok. > By hang, do you mean that even C-g does not restore responsiveness? Typically, within a second of doing C-c C-q, I would know that the buffer is going to freeze, and if I do C-g soon

Re: [BUG] org-element-cache: The inherited property is set wrong

2022-01-20 Thread Kaushal Modi
to nil, Emacs stopped hanging. Looking at your bug report, I believe that the issue I am seeing with cache and Org tags could be very much related. So thanks for submitting this. -- Kaushal Modi

Re: [BUG] Prefer lowercase #+results [9.5.2 (release_9.5.2-3-geb9f34 @ /Users/salutis/src/emacs/nextstep/Emacs.app/Contents/Resources/lisp/org/)]

2022-01-10 Thread Kaushal Modi
On Mon, Jan 10, 2022 at 8:35 AM Timothy wrote: > > FWIW, I think it would be good to be internally consistent. #+RESULTS is > currently one of the few keywords inserted in upper case. Unless there’s a > good > reason to distinguish it from other keywords (perhaps an argument could be > made >

Re: Way to mark contents of an Org special block as verbatim?

2022-01-09 Thread Kaushal Modi
On Sun, Jan 9, 2022 at 3:01 PM Nicolas Goaziou wrote: > > I suggest to use > > (org-element-interpret-data (org-element-contents special-block)) That does it!! Thank you! Also thanks to Juan and Charles who helped lead me to the final solution.

Re: Way to mark contents of an Org special block as verbatim?

2022-01-09 Thread Kaushal Modi
> On Sat, Jan 8, 2022 at 10:01 PM Berry, Charles > wrote: Hi Charles, I used your minimal example to show the issue I am seeing when using ox-md as the base exporter. = #+property: header-args :results none :exports none :eval never-export #+options: toc:nil * Define newmd

Re: Way to mark contents of an Org special block as verbatim?

2022-01-08 Thread Kaushal Modi
On Sat, Jan 8, 2022 at 10:01 PM Berry, Charles wrote: > > > A simple one here: > > #+begin_src emacs-lisp > ;; minimal backend with latex parent > (org-export-define-derived-backend 'newlatex 'latex > :translate-alist > '((special-block . org-newlatex-special-block))) > > ;; special

Re: Way to mark contents of an Org special block as verbatim?

2022-01-08 Thread Kaushal Modi
> What am I missing? > > It seems like you want your derived backend to transcode special blocks > somewhat differently than the parent backend. And adding a special block > export filter doesn't quite do the job. I tried out the example Juan posted and it works perfectly well. But it would

Re: Way to mark contents of an Org special block as verbatim?

2022-01-06 Thread Kaushal Modi
On Thu, Jan 6, 2022 at 2:33 PM Juan Manuel Macías wrote: > I just realized that there is a much simpler solution for your katex > environment :-) > > You can use an example block, and define your custom environment using > the attribute :environment Sorry, but this exporter is derived from md,

Re: Way to mark contents of an Org special block as verbatim?

2022-01-06 Thread Kaushal Modi
On Thu, Jan 6, 2022 at 1:27 PM Juan Manuel Macías wrote: > I think one possibility would be using a parse tree export filter: > > #+BIND: org-export-filter-parse-tree-functions (katex-verbatim) > #+begin_src emacs-lisp :exports results :results none > (defun katex-verbatim (tree backend info) >

Way to mark contents of an Org special block as verbatim?

2022-01-06 Thread Kaushal Modi
that enables the verbatim mode (prevent Org from replacing the Org entities, do the sub/superscript expansion, etc.)? -- Kaushal Modi

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-18 Thread Kaushal Modi
On Fri, Dec 17, 2021 at 11:34 PM Ihor Radchenko wrote: > > There's a setup included in there; I forgot about that. If you don't mind > > trying it again, this would download everything needed: > > Thanks! I was able to follow your steps this time. > I really appreciate making this extra effort

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-16 Thread Kaushal Modi
On Thu, Dec 16, 2021 at 10:16 AM Ihor Radchenko wrote: > > FYI, it is suspicious. You should be at 9.5.1. Maybe you forgot to make > clean; make autoloads. > I actually run a wrapper script to update Org and that has all that: = # cmds to update to latest commit on git main branch

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-16 Thread Kaushal Modi
> Can you: > 1. Update Org to latest version > 2. set org-element--cache-self-verify to 'backtrace > 3. set org-element--cache-self-verify-frequency to 1.0 > 4. Try to reproduce the warning you are seeing > 5. If you still see it, post the full warning text including the >backtrace (below the

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-15 Thread Kaushal Modi
On Wed, Dec 15, 2021 at 9:29 PM Kaushal Modi wrote: > > Can you help fix this? > Also looking closely, I am seeing a different warning: Warning (org-element-cache): org-element--cache: (org-hugo-export-wim-to-md) Cached element is incorrect in *Ox-hugo Pre-processed ox-hugo-manua

Re: [BUG] org-element--cache gives "Unregistered buffer modifications" warning [9.5 (9.5-g859984 @ /home/john/.emacs.d/straight/build/org/)]

2021-12-15 Thread Kaushal Modi
On Mon, Nov 8, 2021 at 1:05 AM Ihor Radchenko wrote: > > I was able to reproduce the issue. This is a bug on ox-hugo side. > `org-hugo--get-pre-processed-buffer' inserts text with > inhibit-modification-hooks bound to non-nil, which breaks > org-element-cache. The cache is enabled by default in

Re: [BUG] make test is extremely slow since b3cc2f793 [9.5.1 (9.5.1-g984367 @ /home/yantar92/.emacs.d/straight/build/org/)]

2021-12-06 Thread Kaushal Modi
On Sun, Dec 5, 2021 at 4:12 AM Nicolas Goaziou wrote: > Hello, > > Ihor Radchenko writes: > > > Sorry, but tests are still slow for me after the update. > > If I run the test from inside Emacs with ert, things got better, but > > make BTEST_RE="^test-org-cite/adjust-note" test > > still takes

Re: [PATCH] Fix org-comment-line-break-function

2021-12-06 Thread Kaushal Modi
external ssh access. >From de607dff518eaa91149ff1aa8c255f67fb6ee887 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 30 Nov 2021 20:37:10 -0500 Subject: [PATCH] org: Remove `org-comment-line-break-function' * lisp/org.el: Remove `org-comment-line-break-function' and let `comment-l

Re: [PATCH] Fix org-comment-line-break-function

2021-12-04 Thread Kaushal Modi
On Sat, Dec 4, 2021, 5:25 PM Tim Cross wrote: > > Given that Nicholas cannot remember the reason for the original function > and suspects it was meant to be an internal only function, I think this > patch is probably the best way forward and should be applied. > Thanks. Nicolas asked me to add

Re: examples for org-manual

2021-12-02 Thread Kaushal Modi
On Thu, Dec 2, 2021, 8:08 AM Vincent Breton wrote: > Hi, > > > Emacs and Emacs Org documentation, and lot of others GNU products use > Texinfo to generate their own documentation to different formats. The Org mode documentation switched to Org format few years back:

Re: [PATCH] Fix org-comment-line-break-function

2021-11-30 Thread Kaushal Modi
d this patch work? = >From 1a9187b82ed8d4e8d54ddd369a44d34295281fc3 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Tue, 30 Nov 2021 20:37:10 -0500 Subject: [PATCH] org: Remove `org-comment-line-break-function' * lisp/org.el: Remove `org-comment-line-break-function' and let `comment-line

Re: [PATCH] Fix org-comment-line-break-function

2021-11-30 Thread Kaushal Modi
On Tue, Nov 30, 2021, 6:29 PM Tim Cross wrote: > > Regardless, I think that unless we understand the purpose of > insert-before-markers-and-inherit, we should make the patch such that it > still calls that function. Even if fill-prefix is nil there is > probably a good reason why the markers and

Re: [PATCH] Fix org-comment-line-break-function

2021-11-30 Thread Kaushal Modi
On Tue, Nov 30, 2021 at 3:20 PM Marco Wahl wrote: > > > diff --git a/lisp/org.el b/lisp/org.el > index 1a1375461..fdeec0d67 100644 > --- a/lisp/org.el > +++ b/lisp/org.el > @@ -19695,7 +19695,8 @@ non-nil." >(save-excursion (forward-char -1) (delete-horizontal-space))

Re: babel output seems to drop anything before % (in session)

2021-11-09 Thread Kaushal Modi
Hello all, I am following up on this issue with ob-shell and sessions. I had posted the recipe to reproduce the issue few months back, and it still applies; ref: https://list.orgmode.org/CAFyQvY2AeToQc2G=e+de4votetfbkvisenipypw1y-feu1o...@mail.gmail.com/ Thanks! -- Kaushal Modi

Re: [BUG] Org V 9.5 error when ~/.cache doesn't exist

2021-11-05 Thread Kaushal Modi
On Fri, Nov 5, 2021, 9:48 AM Ihor Radchenko wrote: > > I am not sure if we are dropping Emacs 25 just yet. However, there is > currently more than one place in Org that does not work on Emacs 25. > See https://list.orgmode.org/87zgqu6081.fsf@localhost/T/#t > > If compilation is critical for you,

Re: wrong-type-argument avl-tree- (org-persist-write-all-buffers) [org main + emacs emacs-28]

2021-11-05 Thread Kaushal Modi
On Fri, Nov 5, 2021 at 10:25 AM Ihor Radchenko wrote: > Fixed on main. Thanks for reporting! > Thanks! I confirm the fix.

wrong-type-argument avl-tree- (org-persist-write-all-buffers) [org main + emacs emacs-28]

2021-11-05 Thread Kaushal Modi
rg-persist-write((org-element--headline-cache org-element--cache) #) org-persist-write-all(#) org-persist-write-all-buffer() kill-buffer("NEWS") Are there any pointers on how to fix this? Thanks! -- Kaushal Modi

Re: [BUG] Org V 9.5 error when ~/.cache doesn't exist

2021-11-05 Thread Kaushal Modi
On Fri, Nov 5, 2021 at 9:27 AM Kaushal Modi wrote: > Hello, > > On the topic of xdg, I pulled Org from main branch today and tried to > build it but it's failing with: > > org-persist.el:32:1:Error: Cannot open load file: No such file or > directory, xdg > > Anybody e

Re: [BUG] Org V 9.5 error when ~/.cache doesn't exist

2021-11-05 Thread Kaushal Modi
On Fri, Nov 5, 2021 at 9:27 AM Kaushal Modi wrote: > Hello, > > On the topic of xdg, I pulled Org from main branch today and tried to > build it but it's failing with: > > org-persist.el:32:1:Error: Cannot open load file: No such file or > directory, xdg > > Anybody

Re: [BUG] Org V 9.5 error when ~/.cache doesn't exist

2021-11-05 Thread Kaushal Modi
Hello, On the topic of xdg, I pulled Org from main branch today and tried to build it but it's failing with: org-persist.el:32:1:Error: Cannot open load file: No such file or directory, xdg Anybody else seeing this?

Re: Headings and Headlines

2021-07-23 Thread Kaushal Modi
On Fri, Jul 23, 2021 at 10:07 AM Marco Wahl wrote: > André A. Gomes writes: > > > The project's documentation refers to headings and headlines as > > synonyms. Relying on a single definition would be beneficial. > > Agreed. E.g. no more thinking waste about the question if it is > headline or

Re: Comments break up a paragraph when writing one-setence-per-line

2021-07-16 Thread Kaushal Modi
Hello, On Fri, Jul 16, 2021 at 12:35 PM Bruce D'Arcus wrote: > On Fri, Jul 16, 2021 at 12:07 PM William Denton wrote: > > > However, I was a bit surprised when I found that a commented line starts > a new > > paragraph. > > I hadn't yet discovered that, but I think it should be considered a >

Re: babel output seems to drop anything before % (in session)

2021-06-08 Thread Kaushal Modi
Hi Nick, On Tue, Jun 8, 2021 at 11:54 PM Kaushal Modi wrote: > > Thanks! I tried out your patch and it does fix the truncation of results > output. Though, it retains the shell prompt in the first eval block and > removes it only from the second eval block onwards. > I have on

Re: babel output seems to drop anything before % (in session)

2021-06-08 Thread Kaushal Modi
On Thu, May 6, 2021 at 7:45 PM Nick Savage wrote: > So I have a patch written that doesn't completely fix the problem, but > maybe makes enough progress that someone else can figure it out. > > The issue is that comint-prompt-regexp is reading the "% " as a prompt, > and taking everyone off

Re: babel output seems to drop anything before % (in session)

2021-06-08 Thread Kaushal Modi
, with detection of shell prompt: '>', '%', etc. when session is enabled. -- Kaushal Modi On Sat, May 15, 2021 at 4:48 PM Bastien wrote: > Hi Nick, > > Nick Savage writes: > > > So I have a patch written that doesn't completely fix the problem, but > > maybe makes enough p

Re: [ORG] Moving the org-mode.git repo to savannah.gnu.org

2021-06-01 Thread Kaushal Modi
ng that the complete switch to Savannah is still pending? -- Kaushal Modi

Re: Regression in table.el detection? [maint]

2021-01-05 Thread Kaushal Modi
On Tue, Jan 5, 2021 at 12:09 PM Nicolas Goaziou wrote: > Oops. Fixed. Thank you. > Thank you! for fixing this so quick :) I confirm that fix you made in https://code.orgmode.org/bzg/org-mode/commit/332da69b3c3ca222943728c20287e4ace6d40e61 . Can you also please add a test for that? [My ox-hugo

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
html fails to detect that table.el table because I see this in the exported buffer: = Header 1 Header 2 Header 3 -- = But if I introduce a newline before "* Subtree 2", the table.el table detection works fine. -- Kaushal Modi

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
On Tue, Jan 5, 2021 at 1:36 AM Kaushal Modi wrote: > > I'll keep looking.. > OK, when I added the same debug messages to ox-html.el, I see: = (table (:begin 1860 :end 2104 :type table\.el :tblfm nil :contents-begin nil :contents-end nil :value "+--+--+

Re: Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
On Tue, Jan 5, 2021 at 1:15 AM Kyle Meyer wrote: > > > Exporting that table to html, I see "Before" on release_9.4.4, maint > (273391c97), and master (00b4de329). > > You're able to trigger the issue with a vanilla configuration on maint? > Hi Kyle, Thanks for checking. Indeed ox-html export

Regression in table.el detection? [maint]

2021-01-04 Thread Kaushal Modi
f After: Header1 Header2 Header3 I stumbled across this regression as I was looking into why my weekly cron for ox-hugo tests failed: https://travis-ci.org/github/kaushalmodi/ox-hugo/jobs/752831865 -- Kaushal Modi

Re: pcase failure with Emacs 24 (was Emacs version for Org 9.4?)

2020-09-17 Thread Kaushal Modi
> On 2020-09-15, Kyle Meyer wrote: > > > >> It is pretty tricky to debug, but the failure starts with 4a27b67fd > >> (org-element: Fix property drawers parsing, 2020-04-22). As far as I > >> can see, the pattern introduced there is perfectly valid and should be > >> compatible with Emacs 24.

Re: Debugging at least 2 regressions in org-mode master breaking ox-hugo

2020-09-07 Thread Kaushal Modi
On Sun, Sep 6, 2020, 5:37 PM Bastien wrote: > Hi Kaushal, > > sorry for the late reply, and thanks for the detailed report. > > Kaushal Modi writes: > > > *The regression is that earlier (org-babel--string-to-number "1,3-5") > > used to return nil

  1   2   3   4   5   6   7   8   >