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
>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
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
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
> 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
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
>
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
'
patch to `org-refile-get-targets' controlled by a new
type in `org-refile-targets' be welcome?
Thanks,
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
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
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
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
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
emented? I'd be
happy to submit a patch but I'm not sure of the best way to approach it.
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.
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
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
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
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
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
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
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
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
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
No problem, I actually just ran into the need to do this yesterday so your
question was very timely.
Kevin
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
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
`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
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-
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
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
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
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,
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
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
35 matches
Mail list logo