[PATCH] Org Capture Add Tags with org-toggle-tag

2022-02-02 Thread Kevin Foley
I have a capture template which utilizes %^g to prompt me for a tag to add to a headline which already has a tag. An example to demonstrate is: * TODO %? %^g :foo: If I call this template and give it "bar" when prompted for a tag, it results in (where

[PATCH] Add tests for org agenda bulk functions

2021-02-20 Thread Kevin Foley
>From 1f7bdcaa40ccb562c4a04bc1bd27517ca1e69bea Mon Sep 17 00:00:00 2001 From: "Kevin J. Foley" Date: Sat, 20 Feb 2021 13:42:44 -0500 Subject: [PATCH] test-org-agenda.el: Test bulk functions * testing/lisp/test-org-agenda.el (org-test-agenda-with-agenda): Create macro to setup agenda for tests. (t

Re: Assistance Writing Test for Org Agenda Custom Bulk Function

2021-02-18 Thread Kevin Foley
Kyle Meyer writes: > Unrelated note: there's a missing a space between the second "*" and > "TODO". Good catch, thank you. > Perhaps you're not capturing the environment due to your quoting: > > ;; -*- lexical-binding: t; -*- > > (let ((x 0)) > '(t (lambda () x))) ;; => (y (lambda nil

Assistance Writing Test for Org Agenda Custom Bulk Function

2021-02-15 Thread Kevin Foley
I'm trying write a test for a recently merged patch[1]. The patch adds the ability for users to specify a function to collect args to be passed to a custom bulk function. I'm trying to mock the argument collecting function and the custom bulk function and then test that the arguments returned fro

Re: [PATCH] Org Agenda Support Argument Collection for Custom Bulk Functions (was: Custom Bulk Functions With Prompt)

2021-02-15 Thread Kevin Foley
> Thanks again for the nice addition. My pleasure, thanks for all of your feedback. Also I took another look at adding a test around this, will hopefully have another patch to submit for that. Kevin

Re: [PATCH] Org Agenda Support Argument Collection for Custom Bulk Functions (was: Custom Bulk Functions With Prompt)

2021-02-14 Thread Kevin Foley
Kyle Meyer writes: > Kevin Foley writes: > >> Side note I'm not sure your example would render properly regardless >> since `my/bulk-action' and `my/args' aren't functions. > > I'm confused by this. They were defined just above the text you >

Re: [PATCH] Org Agenda Support Argument Collection for Custom Bulk Functions (was: Custom Bulk Functions With Prompt)

2021-02-13 Thread Kevin Foley
gt; (?F (my/bulk-action my/args > However, customize doesn't render the above value properly I believe I have the type correct for the new layout. For example the following renders correctly: (setq org-agenda-bulk-custom-functions '

Refile Targets Custom Function Support

2021-01-29 Thread Kevin Foley
patch to `org-refile-get-targets' controlled by a new type in `org-refile-targets' be welcome? Thanks, Kevin Foley

Re: [PATCH] Org Agenda Support Argument Collection for Custom Bulk Functions (was: Custom Bulk Functions With Prompt)

2021-01-27 Thread Kevin Foley
Kyle Meyer writes: Thanks for the review Kyle. > nit: No ":" after "lisp/org-agenda.el". Fixed. > Drop either "about" or "for"? Fixed. > In addition to the NEWS entry that Ihor mentioned, it looks like an > update to the manual is missing. NEWS entry added. With regard to the manual, the c

Re: [PATCH] Org Agenda Support Argument Collection for Custom Bulk Functions (was: Custom Bulk Functions With Prompt)

2021-01-21 Thread Kevin Foley
Attached patch should allow user to specify a function to collect arguments when calling a custom bulk function such that those arguments are only collected once and used for each entry. Kevin Foley >From dfab64f738f227691d84a2fdec5bba2cf4f1e3b0 Mon Sep 17 00:00:00 2001 From: "Kevin

Re: Custom Bulk Functions With Prompt

2021-01-19 Thread Kevin Foley
Ihor Radchenko writes: > You need to add extra matcher `(,_ ,argf ,f). My idea is to keep allow the user to optionally pass a list of argf and f instead of just a function. For example if no args need to be collected: '((?R set-category) (?C bulk-cut)) but if arguments needs to be collected

Re: Custom Bulk Functions With Prompt

2021-01-17 Thread Kevin Foley
Ihor Radchenko writes: > Note that attachment in the previous email appears to be empty. Can you > resend? I will take a look then. My mistake, populated file is attached. Thanks. Kevin diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index dedf7e5bb..1df99ec79 100644 --- a/lisp/org-agenda

Re: Custom Bulk Functions With Prompt

2021-01-17 Thread Kevin Foley
he custom function is a list then the first element is the bulk function and the second is the argument function. If that looks reasonable I can add some documentation and submit a proper patch. Kevin Foley

Custom Bulk Functions With Prompt

2021-01-16 Thread Kevin Foley
emented? I'd be happy to submit a patch but I'm not sure of the best way to approach it. Kevin Foley

Re: [PATCH] Org Refile Document RFLOC (was: Org Refile RFLOC and Struct Type)

2020-10-18 Thread Kevin Foley
Kyle Meyer writes: > I imagine tastes vary on whether using cl-defstruct here is an overkill. > (To my eyes, it is.) More importantly, though, I think changing it now > means we'd also need a compatibility layer, which doesn't seem worth the > trouble. I tried implementing it and realized: 1.

Org Refile RFLOC and Struct Type

2020-10-13 Thread Kevin Foley
I was recently working with `org-refile` and wanted to use a custom target. There is the `rfloc` argument which is documented as: > RFLOC can be a refile location obtained in a different way. There's no documentation as to how `rfloc` should be structured. To figure that out one has to read thr

[PATCH] test-ob-tangle.el: Fix dirty repo state caused by testing

2020-05-26 Thread Kevin Foley
The attached patch kills the buffer of the file modified during testing to prevent leaving the repo in a dirty state. Thanks to Kyle for seeing this and providing guidance on how to address. Thanks, Kevin >From 46dd1cf3c34a372612e4a67a79afd84ca3317500 Mon Sep 17 00:00:00 2001 From: "Kevin J. Fo

Re: [PATCH] Fix `org-babel-detangle' handling of false positives

2020-05-24 Thread Kevin Foley
Kyle Meyer writes: > Kevin, could you look into updating the test to avoid changing the repo > state? Sorry about that. Do you have any suggestions on how to avoid changing the state or any examples of similar tests? I tried the following to replace the file with it's original contents but it

Re: [PATCH] Fix `org-babel-detangle' handling of false positives

2020-05-24 Thread Kevin Foley
Hi Bastien, Bastien writes: > I tried to apply your patch but I was not able to apply it, perhaps > just a problem with extracting it from your email. > > Can you send an (perhaps updated) version as an attachment? What issue did you have? I was able to download and apply the original patch to

Re: [PATCH] Fix `org-babel-detangle' handling of false positives

2020-05-22 Thread Kevin Foley
Hi, I've completed the copyright assignment so should be good to go with this. Haven't had a chance to see if any conflicts have come up in the meantime but will try to take a look today. Kevin

Re: [PATCH] Fix `org-babel-detangle' handling of false positives

2020-02-09 Thread Kevin Foley
I've also included a regression >> test. >> >> This is my first contribution to Org Mode or Emacs and my first patch >> by mailing list so please let me know if I've overlooked anything. >> >> Also note I have not assigned

[PATCH] Fix `org-babel-detangle' handling of false positives

2020-01-29 Thread Kevin Foley
t patch by mailing list so please let me know if I've overlooked anything. Also note I have not assigned copyright to FSF at this time, however I believe this change should be small enough to not require it. Kevin Foley >From 82e2d108536101c5a5ff9f8a0009051e5a308a3a Mon Sep 17 00:00:00 2001 Fro

Re: [O] Bug: Removing and adding deadline bug in org agenda [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-09-18 Thread Kevin Foley
My mistake, I misread, thanks for the correction Robert. FWIW I also am unable to reproduce on 9.1.14 I would still suggest using C-c C-d with . as it seems like a simpler workflow. On Tue, Sep 18, 2018 at 10:32 AM Robert Pluim wrote: > Kevin Foley writes: > > > The issue is once

Re: [O] Bug: Removing and adding deadline bug in org agenda [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/share/emacs/26.1/lisp/org/)]

2018-09-18 Thread Kevin Foley
uot; :store org-w3m-store-link) ("file+sys") ("file+emacs") > ("doi" :follow org--open-doi-link) ("elisp" :follow org--open-elisp-link) > ("file" :complete org-file-complete-link) > ("ftp" :follow (lambda (path) (browse-url (concat "ftp:" path > ("help" :follow org--open-help-link) > ("http" :follow (lambda (path) (browse-url (concat "http:" path > ("https" :follow (lambda (path) (browse-url (concat "https:" path > ("mailto" :follow (lambda (path) (browse-url (concat "mailto:"; path > ("news" :follow (lambda (path) (browse-url (concat "news:"; path > ("shell" :follow org--open-shell-link)) > ) > > > -- Thanks, Kevin Foley

Re: [O] including the | character in a table

2018-07-25 Thread Kevin Foley
No problem, I actually just ran into the need to do this yesterday so your question was very timely. Kevin

Re: [O] including the | character in a table

2018-07-25 Thread Kevin Foley
You can use \vert to insert pipes in exported tables. Kevin On Wed, Jul 25, 2018, 6:21 AM Michel Schinz wrote: > Hello, > > On Wed, Jul 25, 2018, at 11:22, Alan Schmitt wrote: > > I'm writing a cheat sheet for a programming language, and I'm having > > trouble with operators that use |. For i

Re: [O] Babel Edit Code Whole Session Context

2018-06-24 Thread Kevin Foley
the section from the current code block. Then all features should work seamlessly. I'm not quite sure the best approach to do this but I'm going to start poking around in the source code to see if it's feasible. If anyone has a solution that's already available or any feedback on my proposed approach I'd greatly appreciate it. -- Thanks, Kevin Foley

[O] Babel Edit Code Whole Session Context

2018-06-24 Thread Kevin Foley
`elpy-company-backend` I get suggestions of all methods associated with strings in Python. However if I do the same in the second code block I get the message "No completion found". Is there any solution to this issue? -- Thanks, Kevin Foley

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "

2018-04-30 Thread Kevin Foley
I should add that one issue with org-tempo is it doesn't seem to be backwards compatible with old templates. For example packages such as ob-sql-mode and org-reveal have easy templates based on the old format such as : (add-to-list 'org-structure-template-alist `(,org-babel-

Re: [O] [POLL] Should Org tempo be enabled by default? (expand templates thru e.g. "

2018-04-30 Thread Kevin Foley
Bastien writes: > Here is what the experience can look like: > > - Upgrading Emacs or Org (hurray!!) > - Trying to hit - Thinking your stupid [...] I have to admit that Bastien's list describes my experience almost perfectly. It look me a long time to figure out something that in the end seem

Re: [O] No operator defined for property header-args

2017-06-07 Thread Kevin Foley
You're right, I thought because a refresh was needed for #+PROPERTY: it was also needed for property blocks. Thanks for your help. Thanks, Kevin Foley On Wed, Jun 7, 2017 at 12:20 PM, Nicolas Goaziou wrote: > Hello, > > Kevin Foley writes: > > > Ah okay it's my

Re: [O] No operator defined for property header-args

2017-06-07 Thread Kevin Foley
as Goaziou wrote: > Hello, > > Kevin Foley writes: > > > I've attached an ECM and below is my attempt at the backtrace. Let me > know > > if I missed something. > > > > * org-at-property-p() > > * #[0 "\301 \204 \302\303!\210\304\305!\306 \2

Re: [O] No operator defined for property header-args

2017-06-06 Thread Kevin Foley
g-property-action) call-interactively(org-property-action) org-ctrl-c-ctrl-c(nil) funcall-interactively(org-ctrl-c-ctrl-c nil) call-interactively(org-ctrl-c-ctrl-c nil nil) command-execute(org-ctrl-c-ctrl-c) Thanks, Kevin Foley On Mon, Jun 5, 2017 at 5:00 PM, Nicolas Goaziou wrote: > Hello,

[O] No operator defined for property header-args

2017-06-05 Thread Kevin Foley
I'm getting the error "No operator defined for property header-args" when trying to run `org-property-action` on the `header-args` property below: * outline header :PROPERTIES: :header-args:bash::tangle yes :END: I'm able to set the same properties using #+PROPERTY: heade

[O] Bug: Org Agenda Custom Search Excludes Non Active Keywords [9.0.5 (9.0.5-elpa @ c:/emacs/.emacs.d/elpa/org-20170210/)]

2017-03-05 Thread Kevin Foley
I set an agenda command to search for "DONE" todo items using "/DONE". This search works when selecting "t" from org-agenda, however when using a custom command with tags-todo it seems non active TODO keywords are excluded. Per the advanced searching page at http://orgmode.org/worg/org-tutorials/a