Re: Typing latency
Timothy writes: >> (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") > > If this doesn't produce regressions, is this worth patching into Org? I believe so, but I am not sure about regressions. Current master allow placing priority cookies anywhere, while my version only limits priority to headline. Best, Ihor
Re: Typing latency
Ihor Radchenko writes: > I also had issues with priority faces. It is related to sub-optimal > regexp used to detect priority cookies. > > I have the following in my config to speed things up: > > (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") If this doesn't produce regressions, is this worth patching into Org? -- Timothy.
Re: Typing latency
Sébastien Miquel writes: > the delay, which must be caused by the already fontified parts. > I guess the issue must be wih emacs' internals. I had some issues with performance when displaying unicode symbols in the past for certain (large) fonts. That time, the following helped to improve Emacs performance drastically: (setq inhibit-compacting-font-caches t) That is the only thing I can think about in regard to the Emacs display engine slowness. Best, Ihor
Re: Typing latency
Ihor Radchenko writes: I have the following in my config to speed things up: (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") For the latex fontification, I never had issues, but you might play with org-highlight-latex-and-related. Hope it helps. Thanks, I've set it so aswell. It does speed up the initial fontification of the buffer. I've looked into org-do-latex-and-related, but even replacing it with a dud doesn't fix the delay, which must be caused by the already fontified parts. I guess the issue must be wih emacs' internals. -- Sébastien Miquel
Bug: org-next/previous-link not working with radio targets [9.5 (nil @ /home/kevin/.emacs.d/.local/straight/build-27.1/org-mode/)]
Not sure if this is a bug or a feature request but it would sure be niceif this works (if it's even feasible). Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-cygwin) of 2020-10-29Package: Org mode version 9.5 (nil @ /home/kevin/.emacs.d/.local/straight/build-27.1/org-mode/)
Re: [PATCH] document org-html-meta-tags
Kyle Meyer writes: > Thanks. Pushed (5b0eb9aad) with the tweaks mentioned below. Great! >> Oh, by the way --- [...] > > Sorry, I don't have the bandwidth at the moment for that discussion. No problem, I mainly wanted to put the thought /somewhere/ --- which I have now done :) -- Timothy.
Re: Account for latex snippet width in fill paragraph
Eric S Fraga writes: > I don't have this issue because I use visual-line-mode (together with > org-indent-mode) and text reflows automatically. Every paragraph is a > single "line" in the org file but is (soft) wrapped automatically at the > window edge. But this may not suit you, of course. This works very well. Thanks for the suggestion! Matt
Re: Typing latency
Sébastien Miquel writes: > It reports that most of the time is spent in org-do-latex-and-related, > and some 20% in something related to the priority faces (despite the > lack of priority cookies). I also had issues with priority faces. It is related to sub-optimal regexp used to detect priority cookies. I have the following in my config to speed things up: (setq org-priority-regexp "^\\*+.*\\(\\[#\\([A-Z0-9]+\\)\\] ?\\)") For the latex fontification, I never had issues, but you might play with org-highlight-latex-and-related. Hope it helps. Best, Ihor
Re: Typing latency
Ihor Radchenko writes: You can try font-lock-profiler package (https://github.com/Lindydancer/font-lock-profiler) This is useful, thank you. It reports that most of the time is spent in org-do-latex-and-related, and some 20% in something related to the priority faces (despite the lack of priority cookies). I doubt that those two account for the whole of the slowdown, but I'll be checking it out. -- Sébastien Miquel
Re: Typing latency
Russell Adams writes: My only suggestion is have you looked at disabling flyspell? Yes, thank you. Flyspell can cause some delay on its own aswell, but in this situation/configuration it doesn't change the results. -- Sébastien Miquel
Re: Typing latency
Eric S Fraga writes: What Emacs version are you using? This is using the latest ative-comp git branch. -- Sébastien Miquel
Re: local variables and export processing in hooks
Eric S Fraga writes: I tried but this doesn't seem to be propagated to the export as the export works on a copy of the buffer, not the buffer itself. That's what #+BIND is for, supposedly... I think this buffer copy preserves local variables. I know I use a such a local variable and its value can be read during macro expansion. It seems the org-export-before-parsing-hook functions are run before the #+BIND values are collected (see org-export-as in ox.el). -- Sébastien Miquel
Re: local variables and export processing in hooks
On Tuesday, 9 Feb 2021 at 12:30, to...@tuxteam.de wrote: > Perhaps a file local variable? Thank you. I tried but this doesn't seem to be propagated to the export as the export works on a copy of the buffer, not the buffer itself. That's what #+BIND is for, supposedly... I'll play some more. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f
Re: local variables and export processing in hooks
On Tue, Feb 09, 2021 at 10:13:01AM +, Eric S Fraga wrote: > Dear org mode users, > > I have a small elisp function that I use to process my org file before > export to LaTeX or HTML, adding this function to > org-export-before-parsing-hook. Briefly, the function exports the TBLFM > lines so that the org table calculations can be inspected. This is for > pedagogical use. > > This works just fine. However, I don't want to do this generally so I > have a variable that controls whether the processing happens or not. Is > there some way to make this variable local to an org file for use in the > export? I have tried combinations of setq-local and #+BIND: but have > not yet managed to get this work successfully. Perhaps a file local variable? Either in the first line: -*- mode: MODENAME; VAR: VALUE; ... -*- or at the end of the file: # Local Variables: # mode: org # my-var: value # End: (Indentation is for clarity, remove) Cheers - t signature.asc Description: Digital signature
Re: Exporting from Org to Gift/Aiken or other quiz formats
Hi Eric, Thanks for the pointer! I had not seen it. It would seem delightfully convoluted to go Org -> LaTeX -> Moodle, but it might just work :) I'll take a look when I have some more time to devote to this. For now I've been semi-manually converting my quizzes into Gift format for import into Moodle. Best, --Diego On Tue, Feb 9, 2021 at 10:58 AM Eric S Fraga wrote: > On Wednesday, 13 Jan 2021 at 12:31, Diego Zamboni wrote: > > Hi everyone, > > > > I've started to develop online teaching materials with Moodle ( > > https://moodle.com/), and I'm looking for ways to generate my content > > using Org as much as possible. > > Diego, > > did you have a look at the LaTeX package for moodle quizzes? > > https://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/latex/contrib/moodle/ > > It may be possible (albeit probably non-trivial) to use org to export to > suitable LaTeX that uses this package, along the lines of beamer > piggy-backing on the LaTeX export? > > I'm done using moodle for the academic year now (as of today!) so won't > be looking at this any time soon (really must get back into my research > after the COVID-19 disruption...) but that LaTeX package seems to cover > all the cases I would need. > > HTH, > eric > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f >
local variables and export processing in hooks
Dear org mode users, I have a small elisp function that I use to process my org file before export to LaTeX or HTML, adding this function to org-export-before-parsing-hook. Briefly, the function exports the TBLFM lines so that the org table calculations can be inspected. This is for pedagogical use. This works just fine. However, I don't want to do this generally so I have a variable that controls whether the processing happens or not. Is there some way to make this variable local to an org file for use in the export? I have tried combinations of setq-local and #+BIND: but have not yet managed to get this work successfully. Thank you, eric -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f
Re: Exporting from Org to Gift/Aiken or other quiz formats
On Wednesday, 13 Jan 2021 at 12:31, Diego Zamboni wrote: > Hi everyone, > > I've started to develop online teaching materials with Moodle ( > https://moodle.com/), and I'm looking for ways to generate my content > using Org as much as possible. Diego, did you have a look at the LaTeX package for moodle quizzes? https://anorien.csc.warwick.ac.uk/mirrors/CTAN/macros/latex/contrib/moodle/ It may be possible (albeit probably non-trivial) to use org to export to suitable LaTeX that uses this package, along the lines of beamer piggy-backing on the LaTeX export? I'm done using moodle for the academic year now (as of today!) so won't be looking at this any time soon (really must get back into my research after the COVID-19 disruption...) but that LaTeX package seems to cover all the cases I would need. HTH, eric -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f
Re: Account for latex snippet width in fill paragraph
I can only agree with Eric - I think visual-line-mode is the best way to deal with variable-length content in paragraphs. --Diego On Tue, Feb 9, 2021 at 10:47 AM Eric S Fraga wrote: > On Monday, 8 Feb 2021 at 22:43, Matt Huszagh wrote: > > Before I take a crack at this, has anyone else attempted to remedy this? > > I don't have this issue because I use visual-line-mode (together with > org-indent-mode) and text reflows automatically. Every paragraph is a > single "line" in the org file but is (soft) wrapped automatically at the > window edge. But this may not suit you, of course. > > -- > : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f > >
Re: Account for latex snippet width in fill paragraph
On Monday, 8 Feb 2021 at 22:43, Matt Huszagh wrote: > Before I take a crack at this, has anyone else attempted to remedy this? I don't have this issue because I use visual-line-mode (together with org-indent-mode) and text reflows automatically. Every paragraph is a single "line" in the org file but is (soft) wrapped automatically at the window edge. But this may not suit you, of course. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f
Re: Typing latency
On Monday, 8 Feb 2021 at 19:24, Sébastien Miquel wrote: > 1. Is anyone experiencing something similar ? Yes, particularly since I moved to using exwm as my window manager, so not necessarily org related. For instance, I find that having doc-view buffers active, my whole Emacs shows latency. This is most visible in org mode buffers but probably because that's where I spend most of my time. What Emacs version are you using? -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f
Re: strange table calculation
On Monday, 8 Feb 2021 at 12:34, Eric S Fraga wrote: > The behaviour of @-1$+1 seems fragile. To follow up, the same table copied (verbatim) to another org file behaves as it should but continues to behave oddly in the original file. Very mysterious. But adding blank lines before/after horizontal dividers does the job so no worries for the moment. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.4-213-g49364f