Bug: [PATCH] Use crm for tag completion [9.4.6 (9.4.6-gab9f2a @ /home/ionasal/.emacs.d/elpa/org-9.4.6/)]

2021-07-08 Thread Allen Li
Org mode's tag completion commands all use a custom completion function, which makes it difficult for alternative completion functions to support well. Emacs already has a function for reading multiple things, completing-read-multiple, which can be used for the tag completion use case. I have

Re: org-mode-map binds [tab]

2021-07-08 Thread Stefan Monnier
> Does outline.el need to be fixed too? [...] > ——snippet from outline.el > (defvar outline-mode-cycle-map > (let ((map (make-sparse-keymap))) >(let ((tab-binding `(menu-item > "" outline-cycle > ;; Only takes effect if point is on a heading. >

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread William Denton
On 8 July 2021, Bruce D'Arcus wrote: And the implementation challenges raised by John Kitchin and Joost Kremers (namely the candidate list is different) make this better to deal with using a different mechanism. As a package developer that supports org-cite, I really don't want to be worrying

Re: breakpoint in debugging org-table formulas

2021-07-08 Thread Nick Dokos
Uwe Brauer writes: > Hi > > I just started to use the formula debugger > (org-table-toggle-formula-debugger) which is quite nice. > > However for large tables with a lot of rows it would be more > convenient to use breakpoints and not start just in the first row. > > I can't find any reference

Re: how to document/comment a complex org table formula

2021-07-08 Thread Nick Dokos
Uwe Brauer writes: "GdaO" == General discussions about Org-mode writes: > >> Limbic answer : >> - create an emacs-lisp function doing what you want >> - comment /ad libitum/ >> - call this function in your spreadsheet. > > I hoped such a function already existed and somebody would

Re: A requires/provides approach to linking source code blocks

2021-07-08 Thread Tim Cross
Marko Schuetz-Schmuck writes: > [[PGP Signed Part:Undecided]] > Dear All, > > AFAIU in the current support for literate programming I can establish > sequence between blocks by either tangling the entire file whereby the > blocks are written to the source code file in the sequence in which

Re: [WDYT] org-attach-sync better remove an empty attachment directory?

2021-07-08 Thread Tim Cross
Marco Wahl writes: > Marco Wahl writes: > >> Marco> Please recall that only empty attachment directories would be >> Marco> removed, so removal of a directory--and in particular one >> Marco> that existed before its interpretation as Org >> Marco> attachment--wouldn't be a big

Re: [WDYT] org-attach-sync better remove an empty attachment directory?

2021-07-08 Thread Marco Wahl
Marco Wahl writes: > Marco> Please recall that only empty attachment directories would be > Marco> removed, so removal of a directory--and in particular one > Marco> that existed before its interpretation as Org > Marco> attachment--wouldn't be a big deal AFAICS. > > Tim> Not

clocktable: is there any ongoing effort on sum by tags funcionality ?

2021-07-08 Thread Pinmacs
Hi, I saw a lot of patches and isolated efforts to have the feature of summing time by tag on a clocktable (instead of a file) Is there any ongoing effort or motivation to include it in emacs orgmode? Cheers, Pinmacs

Re: [WDYT] org-attach-sync better remove an empty attachment directory?

2021-07-08 Thread Marco Wahl
Marco> Please recall that only empty attachment directories would be Marco> removed, so removal of a directory--and in particular one Marco> that existed before its interpretation as Org Marco> attachment--wouldn't be a big deal AFAICS. Tim> Not as confident here. I can

Re: Bug: Unexpected behavior marking recurring tasks as DONE

2021-07-08 Thread Bhavin Gandhi
Hello Alan, Thank you for sharing a detailed description. On Wed, 7 Jul 2021 at 23:52, Alan Ristow wrote: > […] > > > > First, if I do exactly the same as above, the time of completion is > > logged twice: > > > > ** TODO Daily review > >SCHEDULED: <2021-07-08 Thu .+1d> > >:PROPERTIES: >

Re: [PATCH] Allow tangling to a list of files

2021-07-08 Thread Jacopo De Simoi
Hi Doctor, It's good to have such constructive discussion here. I like your approach to tangle based on tags. I accomplish more or less the same in this (unfinished) literate config for zshrc https://gist.github.com/85c9b9c9ab151c5fd35bd761ef6ef569 Here the function `org-tags-to-filenames'

Re: [PATCH] Allow tangling to a list of files

2021-07-08 Thread Trust me I am a Doctor
Hi, I have no particular opinion for the patch proposed but wanted to share with you some reflections I had on the subject to use one org file to tangle to multiple setup. I use abundantly virtual machines and my emacs configurations have many bits that I don't want everywhere, be it a mail

A requires/provides approach to linking source code blocks

2021-07-08 Thread Marko Schuetz-Schmuck
Dear All, AFAIU in the current support for literate programming I can establish sequence between blocks by either tangling the entire file whereby the blocks are written to the source code file in the sequence in which they appear in the org-mode file or I can name the blocks and use noweb

[PATCH] bad table formula recorded in some cases

2021-07-08 Thread tbanelwebmin
Small bug, small fix. Suppose we have a table embedded in a begin-end block. #+begin: aaa :param value | a | b | | a | b | #+end: Suppose we want to add a formula, with C-c = We end up with an incorrect result: #+begin: aaa :param value | a | 33 | | a |  b |  :param value $2=33 #+end: The

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Eric S Fraga
Thank you for both the links and the suggestions! Very helpful. I will start playing. :-) -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-579-gfdb98a : Latest paper written in org: https://arxiv.org/abs/2106.05096

Re: [PATCH] Do not throw error when parameter of :tangle is not a string

2021-07-08 Thread Jacopo De Simoi
Hi Sébastien, ‐‐‐ Original Message ‐‐‐ On Thursday, July 8th, 2021 at 4:44 AM, Sébastien Miquel wrote: > Hi, > > Jacopo De Simoi writes: > > > in the current master branch, if the parameter :tangle of a src block is not > > > > a string, tangling fails by throwing an error when

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Nicolas Goaziou
Timothy writes: > Lastly, an example of what I’d expect when exporting to ascii (with three > example syntaxes): > > ┌ > │ #+name: sometab > │ #+caption: Some table > │ | a | b | > │ | c | d | > │ > │ Hey, look at [[sometab]]. (or) > │ Hey, look at [cite:#sometab]. (or) > │ Hey, look at

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Bruce D'Arcus
On Thu, Jul 8, 2021 at 9:43 AM Timothy wrote: > > Hi Nicolas, > > > At this point, I don’t have enough understanding of the problem to have > > an opinion. IIUC, your example does not even mention citations. How > > should it be used, what should be the output in LaTeX, and in UTF-8 > > export?

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Timothy
Hi Nicolas, > At this point, I don’t have enough understanding of the problem to have > an opinion. IIUC, your example does not even mention citations. How > should it be used, what should be the output in LaTeX, and in UTF-8 > export? This is not clear to me. > > What can I say however is: if

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Bruce D'Arcus
On Thu, Jul 8, 2021 at 7:46 AM Nicolas Goaziou wrote: > In this situation, the function I want to encourage re-using is > `org-cite-supported-styles'. `org-cite-basic--complete-style' is so > trivial that I didn't bother exporting it. Okay, I see now. So `org-cite-supported-styles' returns

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Bruce D'Arcus
On Thu, Jul 8, 2021 at 8:48 AM Eric S Fraga wrote: > ... I have lost track of what is going on in the emacs-sphere > when it comes to completion frameworks. I use ivy/counsel. Is there > somewhere a good summary of the state of play? Would I wish to move to > another framework? You're not the

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Eric S Fraga
On Thursday, 8 Jul 2021 at 07:41, Bruce D'Arcus wrote: > This was very helpful, so I just added a commit making use of it. > > https://github.com/bdarcus/bibtex-actions#org-cite Bruce, this looks very good. I know this is potentially off-topic for this list (not completely: searching for

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Eric S Fraga
Okay, thank you. I'll have to train myself to use C-c ' in more situations (as I didn't know it would work on #+include etc. lines). -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-579-gfdb98a : Latest paper written in org: https://arxiv.org/abs/2106.05096

Re: convert subtree or nested list to table

2021-07-08 Thread Christian Moe
Hi, Matt, Here's a version of this with a bit more processing. Define this somewhere in your document #+NAME: list2table #+BEGIN_SRC elisp :var order="columns" (let (longest) (setq data (map 'list 'flatten data)) (setq data (map 'list (lambda (x) (seq-difference x '(unordered

Re: STOP this patch for now.

2021-07-08 Thread Christian Hopps
stardiviner writes: On Jul 8, 2021, at 4:59 PM, Christian Hopps wrote: It may eventually be incorporated into the very popular emacs-mac port (railwaycat tap in homebrew); however, it will probably not be incorporated into the nextstep/emacs main code. I started

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Bruce D'Arcus
On Thu, Jul 8, 2021 at 7:46 AM Nicolas Goaziou wrote: > In this situation, the function I want to encourage re-using is > `org-cite-supported-styles'. `org-cite-basic--complete-style' is so > trivial that I didn't bother exporting it. OK, I'll take a closer look at that. Bruce

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Nicolas Goaziou
Hello, Eric S Fraga writes: > Why C-c ' and not C-c C-o to be consistent with the rest of org? For > me, it seems that in the rest of org, C-c ' is for editing something; > C-c C-o is for opening/visiting/following. Good question. is "remote editing", is "follow link". In this situation,

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Nicolas Goaziou
"Bruce D'Arcus" writes: > Just a little thing: > > Why is it: > > org-cite-basic--complete-style > > ... rather than: > > org-cite-basic-complete-style > > I thought you would want to encourage reuse of that one, in > particular? In this situation, the function I want to encourage re-using is

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Nicolas Goaziou
Hello, "Bruce D'Arcus" writes: > On Wed, Jul 7, 2021 at 6:59 PM Nicolas Goaziou wrote: > >> For a developer, there are now two ways to create an insert processor. >> >> 1. If you are happy with the global behaviour of "basic", but want to >>improve completion, I added the

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Eric S Fraga
On Thursday, 8 Jul 2021 at 02:17, Nicolas Goaziou wrote: > I think the "wip-cite-new" branch is in good shape now. As > a consequence, I'd like to merge it tomorrow. Yes please! I've been using it on and off (having to switch branches) for some time now and it is working very well. It needs to

Re: [wip-cite-new] Quick note about citation insertion

2021-07-08 Thread Bruce D'Arcus
On Wed, Jul 7, 2021 at 6:59 PM Nicolas Goaziou wrote: > For a developer, there are now two ways to create an insert processor. > > 1. If you are happy with the global behaviour of "basic", but want to >improve completion, I added the `org-cite-make-insert-processor' >tool. This was very

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Eric S Fraga
On Thursday, 8 Jul 2021 at 11:47, Timothy wrote: > wip-cite-new deals with citing from bibliographies, but I don't think it > deals with within-document referencing --- should it? Are these not orthogonal activities? Doesn't org already support in-document references? I may be missing

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread John Kitchin
My intuition is that crossrefs are separate from the citations. In org-ref, they are separate link types like ref:xxx, pageref:xxx. eqref:xxx, etc. They also use a different source of candidates than cites do. John --- Professor John Kitchin (he/him/his) Doherty

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Bruce D'Arcus
On Thu, Jul 8, 2021 at 6:26 AM Nicolas Goaziou wrote: > > Hello, > > Timothy writes: > > > Bruce D'Arcus writes: > > > >>> wip-cite-new deals with citing from bibliographies, but I don't think it > >>> deals with within-document referencing --- should it? > > > >> 1. Should it? > >> 1. Maybe. >

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Nicolas Goaziou
Hello, Timothy writes: > Bruce D'Arcus writes: > >>> wip-cite-new deals with citing from bibliographies, but I don't think it >>> deals with within-document referencing --- should it? > >> 1. Should it? >> 1. Maybe. > > I feel like it would fit. With everything that's been done for >

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Timothy
Bruce D'Arcus writes: >> wip-cite-new deals with citing from bibliographies, but I don't think it >> deals with within-document referencing --- should it? > 1. Should it? > 1. Maybe. I feel like it would fit. With everything that's been done for citations, this feels like it may be a rather

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Timothy
Matt Price writes: > Really, I feel like there should be a parade. There will be one in the next edition of This Month in Org . -- Timothy

STOP this patch for now.

2021-07-08 Thread stardiviner
> On Jul 8, 2021, at 4:59 PM, Christian Hopps wrote: > > It may eventually be incorporated into the very popular emacs-mac port > (railwaycat tap in homebrew); however, it will probably not be incorporated > into the nextstep/emacs main code. I started looking at doing a version for > the

Re: convert subtree or nested list to table

2021-07-08 Thread tbanelwebmin
When I run you example I get: #+RESULTS: | Category | (unordered (A) (B) (C) (D) (F)) | | Writing  | (unordered (great) (good) (ok) (lousy) (awful)) | To get your result I need to modify    :results table to    :results table code You may try    :results table raw Or try your

Re: [new patch] [PATCH] make org-notify support for macOS desktop notification

2021-07-08 Thread Christian Hopps
It may eventually be incorporated into the very popular emacs-mac port (railwaycat tap in homebrew); however, it will probably not be incorporated into the nextstep/emacs main code. I started looking at doing a version for the mainline code, but it’s hard to get motivated b/c using that version

Re: Bug: tab key no longer bound to org-cycle in commit 565361eb69 [9.4.6 (9.4.6-10-gee652a-elpaplus @ /Users/bartm002/.emacs.d/elpa/org-plus-contrib-20210705/)]

2021-07-08 Thread Nicolas Goaziou
Hello, Mark Barton writes: > So I put back the mapping in org-key.el to map TAB instead of in my > local copy and instead commented out line 185 in outline.el to get TAB to map > to org-cycle. > > ——snippet from outline.el > (defvar outline-mode-cycle-map > (let ((map

Re: [PATCH] Do not throw error when parameter of :tangle is not a string

2021-07-08 Thread Sébastien Miquel
Hi, Jacopo De Simoi writes: in the current master branch, if the parameter :tangle of a src block is not a string, tangling fails by throwing an error when calling `file-name- directory' This patch checks if the parameter is a string before calling `file-name-directory'. This makes

Re: [WDYT] org-attach-sync better remove an empty attachment directory?

2021-07-08 Thread Colin Baxter
I'm afraid I for one often have empty attach directories which I leave alone knowing that one day soon - sometimes very soon - they will be used again. Cannot the user be asked if he wants the directory removed? Best wishes,

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Greg Minshall
Matt Price wrote: > Really, I feel like there should be a parade. +1

Re: [WDYT] org-attach-sync better remove an empty attachment directory?

2021-07-08 Thread Tim Cross
Marco Wahl writes: >>> org-attach-sync can be used to "Synchronize the current outline node >>> with its attachments." Which is great AFAICT. >>> >>> What do you think about letting org-attach-sync remove the attachment >>> directory if it's empty? >>> >>> Rationale: Nobody needs an empty

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Jens Neuhalfen
Hi Nicolas, first: thank you for all the work, especially for thinking of documentation for end users. My biggest struggle with the current org (and emacs) documentation is the lack of end-to-end examples. This makes it incredibly difficult to get things working. It often is like „this is a

Re: [WDYT] org-attach-sync better remove an empty attachment directory?

2021-07-08 Thread Marco Wahl
>> org-attach-sync can be used to "Synchronize the current outline node >> with its attachments." Which is great AFAICT. >> >> What do you think about letting org-attach-sync remove the attachment >> directory if it's empty? >> >> Rationale: Nobody needs an empty attachment directory. >> > >

Re: [R example for org-table with ifs]

2021-07-08 Thread Greg Minshall
Uwe, > Thanks but I have to disappoint you the correct result should be 10.1 ah, well. :) i realized you probably wanted the table back. below it is, with your explanation of "@3$3". > Thanks I will play around a bit, but for the moment I think I have to > stick with calc well, takes all

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Joost Kremers
On Thu, Jul 08 2021, Bruce D'Arcus wrote: > On Wed, Jul 7, 2021 at 11:48 PM Timothy wrote: > >> wip-cite-new deals with citing from bibliographies, but I don't think it >> deals with within-document referencing --- should it? > > It doesn't now. > > I guess to break down the second question

Re: [wip-cite-new] Merging tomorrow?

2021-07-08 Thread Bruce D'Arcus
On Wed, Jul 7, 2021 at 11:48 PM Timothy wrote: > wip-cite-new deals with citing from bibliographies, but I don't think it > deals with within-document referencing --- should it? It doesn't now. I guess to break down the second question further: 1. Should it? 2. Can it? Could the design be

Re: [R example for org-table with ifs]

2021-07-08 Thread Uwe Brauer
>>> "GM" == Greg Minshall writes: Greg > Uwe, > well, *i* no longer remember how to read calc-like expressions. and, > i'm a notoriously poor R coders. assuredly the following is not doing > what you want, but possibly you'll get the idea. (if 102.01 is, indeed, > the correct answer, feel