Re: [BUG] Fix for inlinetask visibility cycling causes infinite loop for

2022-08-18 Thread Anders Johansson
Something like this could work. Just ensuring that we haven’t ended back at the start of the current (degenerate) inlinetask. I don’t know if this would be the most elegant solution though. I also considered whether org-inlinetask-goto-end should really move to the point after the last line of

[BUG] Fix for inlinetask visibility cycling causes infinite loop for "degenerate" inlinetasks

2022-08-18 Thread Anders Johansson
task, so `inlinetask-at-task-p` is still t and the loop continues infinitely in this fashion. I don’t have a good suggestion for a solution that would still solve the problem addressed in that commit. Best, Anders Johansson

[BUG] org-get-buffer-tags no longer strips text properties

2022-08-11 Thread Anders Johansson
tag)) t hashed Best, Anders Johansson

[Style] Shouldn’t the macros in org-fold-core have (indent 0)

2022-05-05 Thread Anders Johansson
to for example `with-silent-modifications`. I didn’t want to create a patch, since it would involve whitespace changes on quite a lot of places, but I thought it could be good to highlight now that org-fold just got merged. Best, Anders Johansson

[PATCH v2 24/38] Fix typo: delete-duplicates → delete-dups

2022-04-20 Thread Anders Johansson
--- lisp/org-fold-core.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org-fold-core.el b/lisp/org-fold-core.el index 6ea374498..121c6b5c4 100644 --- a/lisp/org-fold-core.el +++ b/lisp/org-fold-core.el @@ -592,7 +592,7 @@ (defun

[PATCH v2 25/38] Fix bug in org-get-headingFixes #26, where fontification could make the matching and extraction of heading

2022-04-20 Thread Anders Johansson
Fixes #26, where fontification could make the matching and extraction of heading components fail. --- lisp/org.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 0f31e7794..ff17bf001 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6167,8

[PATCH v2 26/38] Rename remaining org-force-cycle-archived

2022-04-20 Thread Anders Johansson
--- lisp/org-cycle.el | 2 +- lisp/org-keys.el | 4 ++-- lisp/org.el | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lisp/org-cycle.el b/lisp/org-cycle.el index d2fcc356c..df0a3761a 100644 --- a/lisp/org-cycle.el +++ b/lisp/org-cycle.el @@ -811,7 +811,7 @@ (defun

Bug: Changed behaviour of org-at-timestamp-p after recent change

2022-04-11 Thread Anders Johansson
Hi, I noticed that this commit: b1a570b3b org-agenda: Fix regression when diary sexp timestamps are ignored made a call like (org-at-timestamp-p 'agenda) match against the regexp `org-element--timestamp-regexp`. However, this regexp doesn’t have the match groups setup as the others

Re: [wip-cite-new] Exporting to pandoc md (and from there to zotero odt)

2022-03-10 Thread Anders Johansson
Hi, >We should also get pandoc to support updated org-cite syntax. > https://github.com/jgm/pandoc/issues/7329 Now that pandoc has org-cite support, I found it simpler to reuse ox-pandoc (https://github.com/emacsorphanage/ox-pandoc) and just do this very simple configuration. ox-pandoc exports to

Re: Suggestion: convert dispatchers to use transient

2022-02-07 Thread Anders Johansson
against the idea of saving options with transient. So still some work to do there. By the way. Getting started with transient is way easier with this tutorial than with the rather abstract info pages: https://github.com/magit/transient/wiki/Developer-Quick-Start-Guide Best, Anders Johansson

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

2022-01-20 Thread Anders Johansson
> I don’t know if this is the best solution though. > Perhaps this is needed also in org--get-local-tags where a similar > thing is done? (but only the fontification seems to matter there) I now noted that this differed in Ihor's org-fold-universal-core branch which I use and main (org-get-tags

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

2022-01-20 Thread Anders Johansson
t solution though. Perhaps this is needed also in org--get-local-tags where a similar thing is done? (but only the fontification seems to matter there) Best, Anders Johansson (who is otherwise as mentioned in an earlier discussion very appreciative of org-element-cache)

Re: [BUG?] Cache: org-scan-tags behaves differently on inlinetasks with and without cache

2021-11-22 Thread Anders Johansson
> Thanks for reporting! You encountered a bug in org-get-tags. It ignored > inlinetasks in some cases. Fixed in 7a14d6035. Thank you! It works very well now, and indeed the counting and collection of tagged extracts (done with org-scan-tags) is much quicker now with cache enabled. I tested with

[BUG?] Cache: org-scan-tags behaves differently on inlinetasks with and without cache

2021-11-22 Thread Anders Johansson
appears that org-get-tags doesn't fetch tags for inlinetasks, is this really right? Otherwise, the small patch below gets me the right behaviour (tags returned also for inlinetasks) for these tests. Best, Anders Johansson --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a

Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items

2021-09-02 Thread Anders Johansson
org-duration-format is (("m") ("w") ("d") (special . h:mm)). This call to org-duration-from-minutes (like in org-agenda-format-item): (org-duration-from-minutes MINUTES nil t) will then result in a full format amounting to (("d")), (since "special" is

Re: [PATCH] Fix bug assuming canonical duration units in org-agenda-format-items

2021-08-31 Thread Anders Johansson
Hi, Oh, I sent a response but failed to send it to the list and only to Nicolas (hard to do things right using the gmail web interface) I include it below: > I think a proper fix would be to change `org-duration-from-minutes' so > it removes any unknown unit from what is provided from fmt or >

[PATCH] Fix bug assuming canonical duration units in org-agenda-format-items

2021-08-09 Thread Anders Johansson
org-duration-from-minutes was called with canonical = t, but without providing a corresponding format only using the canonical units. This broke if the user’s org-duration-format used other than the canonical units. --- lisp/org-agenda.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

Re: [wip-cite-new] Exporting to pandoc md (and from there to zotero odt)

2021-07-02 Thread Anders Johansson
> Anders, I just want to say that I tested this out and it works great. It's > quite shocking, actually, to have such an easy path from org to odt with live > citations. I'd love to see this stuff in MELPA or otherwise made more > generally accessible, as i think it fills a substantial need.

[wip-cite-new] Exporting to pandoc md (and from there to zotero odt)

2021-06-23 Thread Anders Johansson
in org. Feel free to use it as suitable (I have FSF copyright assignment for emacs). Best, Anders Johansson ;;; oc-pandoc.el --- Export org to pandoc markdown with citations -*- lexical-binding: t; -*- ;; Copyright (C) 2021 Anders Johansson ;; Author: Anders Johansson ;; Created: 2021-06-23

[PATCH] Fix bug in org-num check for commented headlines

2020-08-25 Thread Anders Johansson
I found an easily solved bug in org-num. This happens when org-num-skip-commented is non-nil. When creating a new headline, often org-num--skip-value is invoked before any headline text is created. This means that ‘title‘ is nil and the string-match check breaks. Checking if title is non-nil

[O] [PATCH] Use regexp-opt in org-set-tag-faces

2019-01-31 Thread Anders Johansson
I just noticed a place where it would be appropriate to use regexp-opt instead of doing: (concat ":\\(" (mapconcat 'car value "\\|") "\\):" regexp-opt promises to be more efficient. -- Anders Johansson >From 2a70a709dcbdb1ff7d00b20de8410935d725ac70 Mon

Re: [O] Tracking Tags ??

2019-01-23 Thread Anders Johansson
helm that optionally fetches info from the codebook file. Another approach for keeping a sort of index is John Kitchin’s org-db http://kitchingroup.cheme.cmu.edu/blog/2017/01/03/Find-stuff-in-org-mode-anywhere/ Current code: https://github.com/jkitchin/scimax/blob/master/org-db.el -- Anders

[O] Better org-indent alignment when using variable-pitch-mode

2019-01-16 Thread Anders Johansson
/archive/html/emacs-orgmode/2014-12/msg00014.html -- Anders Johansson

[O] Bug? Encoding trouble in org-id-locations-load

2017-11-03 Thread Anders Johansson
unwanted effects from using ~insert-file-contents~, but otherwise this seems to me to be a more correct solution. Cheers, Anders Johansson

[O] [PATCH 1/1] org.el: Make faces org-quote and org-verse be appended

2017-02-22 Thread Anders Johansson
This means fontification of emphasis, links etc. is kept in quote and verse blocks even with org-fontify-quote-and-verse-blocks non-nil. TINYCHANGE --- lisp/org.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/org.el b/lisp/org.el index 3290a2b..282c078 100644

[O] Why does quote and verse block fontification have to override local fontification?

2017-02-22 Thread Anders Johansson
nce of org-quote and org-verse (I have them as font-lock-comment-face, just a slightly different colour, on top of which italics etc. look good). -- Anders Johansson

Re: [O] Some projects

2015-10-25 Thread Anders Johansson
Anders Johansson gmail.com> writes: > I hacked together something like this a while ago when I needed to add > inline-comments that would later be exported as odt-comments (but I also > made it work for latex). > > I chose to implement it via a unicode-bracket ❰❙❱, like

Re: [O] Some projects

2015-10-25 Thread Anders Johansson
I also made it work for latex). I chose to implement it via a unicode-bracket ❰❙❱, like this: ❰Simple comment❱ ❰Text that is commented on❙Comment❱ ❰[Author] Simple comment❱ ❰Commented text❙[Author] Comment❱ These are inserted with a custom command to make it easy (including an author-history-list selectable with helm). I've put it up in a gist if anyone finds it useful: https://gist.github.com/andersjohansson/6baa1e42ad4d7353e125 Cheers, Anders Johansson

Re: [O] Organizing and taming hectic Academia work (faculty viewpoint)? Tips or a good guides sought after :)

2015-08-26 Thread Anders Johansson
, and then the tool http://zotero-odf-scan.github.io/zotero-odf-scan/ to convert the generated citations like { | Smith, (2012) | | |zu:2433:WQVBH98K} to Zotero citation marks in the odt-file. Perhaps someone else will have use for this as well, Cheers, Anders Johansson

[O] Bug: Inlinetask bodies begun with a link (or other invisible elements) are not folded correctly

2015-05-17 Thread Anders Johansson
'outline (get-char-property (1+ start) 'invisible)) I don't know if this has any unwanted side-effects though. Or if this should be avoided for some reason. This is using the latest org from git. Cheers, Anders Johansson Emacs : GNU Emacs 24.4.1 (x86_64-pc-linux-gnu, GTK+ Version 3.14.9) of 2015-03

Re: [O] Bug? Changed behaviour makes tags in headlines without a title parsed as the title

2015-04-10 Thread Anders Johansson
Den 2015-04-10 18:24, Nicolas Goaziou skrev: Hello, Anders Johansson mejlaande...@gmail.com writes: I have been using degenerate inlinetasks with empty titles but many tags for implementing a kind of coding scheme for coding texts for qualitative data analysis. Like this: - Some text

[O] Bug? Changed behaviour makes tags in headlines without a title parsed as the title

2015-04-08 Thread Anders Johansson
Hi, I have been using degenerate inlinetasks with empty titles but many tags for implementing a kind of coding scheme for coding texts for qualitative data analysis. Like this: - Some text that I want to tag (The inlinetask in my scheme refers to the paragraph above it) ***

Re: [O] [Bug] org-indent-mode underindents body in variable-pitch-mode

2014-12-01 Thread Anders Johansson
Anders Johansson mejlaandersj at gmail.com writes: Anders Johansson mejlaandersj at gmail.com writes: Tobias Getzner tobias.getzner at gmx.de writes: Hello, After updating to Emacs 24.4 and org-mode 20141020, I’ve noticed that org-indent-mode now underindents item

Re: [O] [Bug] org-indent-mode underindents body in variable-pitch-mode

2014-11-27 Thread Anders Johansson
how this can have worked better before. Doesn't anyone else use variable-pitch-mode for org and suffer from this? Cheers, Anders Johansson

Re: [O] [Bug] org-indent-mode underindents body in variable-pitch-mode

2014-11-27 Thread Anders Johansson
Anders Johansson mejlaandersj at gmail.com writes: Tobias Getzner tobias.getzner at gmx.de writes: Hello, After updating to Emacs 24.4 and org-mode 20141020, I’ve noticed that org-indent-mode now underindents item bodies when variable-pitch-mode is used. I. e., in the following

[O] Suggestion, ox-latex: Perhaps a line break should be inserted into low-level headlines

2014-10-03 Thread Anders Johansson
HEADLINE-TEXT \label{sec-1-3}\\ CONTENTS Or: \item HEADLINE-TEXT \label{sec-1-3} CONTENTS The first variant means modifying the headline-label variable (or something like that) in org-latex-headline. The second is less messy to implement. Cheers, Anders Johansson

Re: [O] Suggestion, ox-latex: Perhaps a line break should be inserted into low-level headlines

2014-10-03 Thread Anders Johansson
Nicolas Goaziou writes: Hello, Anders Johansson mejlaande...@gmail.com writes: Currently low-level headlines in latex export to: \item HEADLINE-TEXT \label{sec-1-3} CONTENTS Not really. Export respects blank lines between the headline an its contents. So * Headline Contents

[O] Bug in org-paste-subtree

2014-06-19 Thread Anders Johansson
(point-at-bol) (point (- (match-end 1) (match-beginning 1))) ((and (bolp) (looking-at org-outline-regexp)) (- (match-end 0) (point) 1 Cheers, Anders Johansson

[O] Bug: ob-ditaa fails in generating pdf correctly

2014-05-22 Thread Anders Johansson
patch to fix it is attached (this is ugly because it repeats the line: (org-babel-process-file-name (concat in-file .eps)) ) Cheers, Anders Johansson --- /home/aj/H\303\244mtningar/ob-ditaa.el2014-05-22 17:15:35.489071991 +0200 +++ ob-ditaa.el 2014-05-22 17:08:46.617089186 +0200 @@ -90,6 +90,12

[O] Bug: org-beamer-select-environment (ox-beamer.el) should temporarily disable persistent tags

2014-05-19 Thread Anders Johansson
-environment: (org-tag-persistent-alist nil) Cheers, Anders Johansson

Re: [O] Bug? org-set-tags never uses ido

2014-04-02 Thread Anders Johansson
A hack to get ido selection for multiple tags. It uses ido-completing-read-multiple (available here and included below: https://gist.github.com/mgalgs/1329188) to allow for completing one tag at a time and ending it by typing :. I haven't tested it much and it might possibly break things (or

[O] org-entities: Another issue [was: org-entities: why \lang instead of \langle?]

2014-03-25 Thread Anders Johansson
\\slash nil / / / /) Could this be changed without breaking people's documents? Cheers, Anders Johansson

Re: [O] Bug: Problems with sub/super-script when using: org-cdlatex + org-pretty-entities + org-catch-invisible-edits

2014-03-15 Thread Anders Johansson
2014-02-23 16:20, Anders Johansson wrote: Hi, I used the configuration: org-catch-invisible-edits 'show org-pretty-entities t together with org-cdlatex. This breaks the insertion of subscripts and superscripts through org-cdlatex because _{} is fontified and the {} are hidden so typing

[O] Suggestion for improvement, org-read-date: prefer-closest-date instead of only prefer-future*

2014-03-15 Thread Anders Johansson
. Perhaps this would add to much complexity to org-read-date, with little gain, and there may certainly be complications I haven't thought of, but I think it would be an interesting option for many people. Cheers, Anders Johansson

Re: [O] Bug? org-set-tags never uses ido

2014-03-04 Thread Anders Johansson
-completion-function nil nil current 'org-tags-history) Cheers, Anders Johansson 2013-11-01 02:33, Eric Abrahamsen skrev: Anders Johansson mejlaande...@gmail.com writes: Greetings, I want to use ido everywhere and wanted to know why this doesn't seem to work for setting org-mode tags

Re: [O] Bug? org-set-tags never uses ido

2014-03-04 Thread Anders Johansson
or the inherit-input-method argument is non-nil or the collection argument is a function (which ido can't handle). which seems to suggest that passing 'org-tags-completion-function as the second argument (collection) to the advised completing-read wouldn't use ido in this case either Cheers, Anders

[O] org-entities: why \lang instead of \langle?

2014-02-23 Thread Anders Johansson
, like what is done for e.g. clubs: (langle \\langle t lang; ⟨) (rangle \\rangle t rang; ⟩) Cheers, Anders Johansson

[O] Bug: Problems with sub/super-script when using: org-cdlatex + org-pretty-entities + org-catch-invisible-edits

2014-02-23 Thread Anders Johansson
(or sometimes a_bc, but should be a_{bc}) and gives the message Unfolding invisible region around point before editing. Setting org-catch-invisible-edits to nil let's cdlatex do it's work so I guess an easy solution would be to let that in org-cdlatex-underscore-caret. Cheers, Anders Johansson

Re: [O] Bug: Problems with sub/super-script when using: org-cdlatex + org-pretty-entities + org-catch-invisible-edits

2014-02-23 Thread Anders Johansson
(or sometimes a_bc, but should be a_{bc}) and gives the message Unfolding invisible region around point before editing. Setting org-catch-invisible-edits to nil let's cdlatex do it's work so I guess an easy solution would be to let that in org-cdlatex-underscore-caret. Cheers, Anders Johansson Hi, I

Re: [O] Bug: Problems with sub/super-script when using: org-cdlatex + org-pretty-entities + org-catch-invisible-edits

2014-02-23 Thread Anders Johansson
/folding is done. I have no idea what should be done about this. Cheers, Anders Johansson

[O] Suggestion/bug: Parse inlinetask END with level sensitivity

2014-02-17 Thread Anders Johansson
) + limit t) (match-beginning 0 (contents-begin (progn (forward-line) (and task-end ( (point) task-end) (point But perhaps this is too unstable? (Although it could be expected from the comments above). Cheers, Anders Johansson

Re: [O] Suggestion/bug: Parse inlinetask END with level sensitivity

2014-02-17 Thread Anders Johansson
Great! Taking a look at your solution I realize where the bug lay as well. Level is unimportant, it just scanned too long previously (it should only look if the next headline contains END, not look for the next headline with END). Regards, Anders Johansson Den mån 17 feb 2014 23:05:02 skrev

[O] Bug: org-beamer-select-environment (ox-beamer.el) assumes org-use-fast-tag-selection is on

2014-01-07 Thread Anders Johansson
-fast-tag-selection to t in the let*-construct in org-use-fast-tag-selection, as is now done with org-fast-tag-selection-single-key. Greetings, Anders Johansson

[O] Bug? org-set-tags never uses ido

2013-10-31 Thread Anders Johansson
of this really. Is it a bug? Have I misunderstood something? Greetings, Anders Johansson

[O] Suggestion: Weektree

2013-10-01 Thread Anders Johansson
. If someone else thinks this is a good idea I think there are more people than me that would find it quite useful though. Greetings from Sweden, Anders Johansson

[O] Bug: Setting HTML_INCLUDE_STYLE: nil doesn't work [8.0.3 (8.0.3-32-g0c789f-elpa @ /home/aj/.emacs.d/elpa/org-20130617/)]

2013-06-20 Thread Anders Johansson
is interpreted as a string, nil, in the info-plist and therefore evaluates as true in the check in org-html--build-head: (when (plist-get info :html-head-include-default-style) (org-element-normalize-string org-html-style-default)) (from: ox-html.el:1448) Greetings, Anders Johansson

[O] Icalendar-export, priorities missing, possible bug

2013-02-10 Thread Anders Johansson
the case and fix it. I can provide more debugging output and examples if needed and if others can't reproduce this. Greetings, Anders Johansson

Re: [O] Icalendar-export, priorities missing, possible bug

2013-02-10 Thread Anders Johansson
Hi, 2013-02-10 20:31, Nicolas Goaziou skrev: Hello, Anders Johansson mejlaande...@gmail.com writes: When I'm exporting to icalendar, the priorities of todo items (or perhaps any items) don't get carried through correctly. It always falls back to priority 5 (the default). After doing some