Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier
>>>>> Ihor Radchenko writes: IR> Ihor Radchenko writes: >>> I've sent in the assignment, but I'm waiting on the FSF's response & a >>> waiver/documentation from my employer. >> >> Good to hear. Note that FSF should reply within 5 working days. IR> May I know if you got any reply from FSF? I'm still waiting for final confirmation. Having some issues getting confirmation from the University. Sam IR> -- IR> Ihor Radchenko // yantar92, IR> Org mode contributor, IR> Learn more about Org mode at <https://orgmode.org/>. IR> Support Org development at <https://liberapay.com/org-mode>, IR> or support my work at <https://liberapay.com/yantar92> -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Re: [PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier
>>>>> Ihor Radchenko writes: IR> "Samuel W. Flint" writes: >> * lisp/org-clock.el (org-clock-in-switch-to-state, >> org-clock-out-switch-to-state): Allow >> `org-clock-{in,out}-switch-to-state` to be an alist of >> current/next-state pairs. >> >> (org-clock-in, org-clock-out): Add logic to handle >> `org-clock-{in,out}-switch-to-state` as alists. IR> Thanks! IR> Before we continue, could you please confirm if you have FSF copyright IR> assignment? My records show that you have made two commits to Org mode IR> previously, and they total LOC is 15, which is maximum allowed IR> contribution that does not require copyright assignment. See IR> https://orgmode.org/worg/org-contribute.html#copyright I've sent in the assignment, but I'm waiting on the FSF's response & a waiver/documentation from my employer. >> "Set task to a special todo state while clocking it. >> The value should be the state to which the entry should be >> -switched. If the value is a function, it must take one >> -parameter (the current TODO state of the item) and return the >> -state to switch it to." >> +switched. It may also be an alist of `(CURRENT . NEXT)' pairs. IR> Maybe "`(CURRENT . NEXT)' TODO state pairs"? It will be slightly more IR> clear. >> (defcustom org-clock-out-switch-to-state nil >> "Set task to a special todo state after clocking out. >> The value should be the state to which the entry should be >> -switched. If the value is a function, it must take one >> -parameter (the current TODO state of the item) and return the >> -state to switch it to." IR> Same here. I can adjust that as well. That would definitely clarify the documentation IR> The rest looks good. IR> If you can, please also add tests. I'll try my hand at it! IR> -- IR> Ihor Radchenko // yantar92, IR> Org mode contributor, IR> Learn more about Org mode at <https://orgmode.org/>. IR> Support Org development at <https://liberapay.com/org-mode>, IR> or support my work at <https://liberapay.com/yantar92> Sam -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
[PATCH v2 2/2] doc/org-manual.org: Document org-clock-{in,out}-switch-to-state
* doc/org-manual.org (Clocking commands): Document operation of org-clock-{in,out}-switch-to-state. --- doc/org-manual.org | 25 + 1 file changed, 25 insertions(+) diff --git a/doc/org-manual.org b/doc/org-manual.org index ad584d7a5..95acf9170 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -6583,6 +6583,27 @@ about what to do with it. C-u C-u)}}} prefixes, force continuous clocking by starting the clock when the last clock stopped. + #+vindex: org-clock-in-switch-to-state + The variable ~org-clock-in-switch-to-state~ controls how a current + task's TODO state is changed on clock-in. No change (a ~nil~) is + the default. A specific state may be forced with a string value. + Additionally, a function which takes a current state and returns + either a new state or ~nil~ for no change may be used. Finally, an + alist may be used to provide a mapping from state to state. + Consider the following example, where ~TODO~ becomes ~WORKING~, and + ~WAITING~ becomes ~WORKING~ on clock-in. + + #+begin_src emacs-lisp + (setf org-clock-in-switch-to-state '(("TODO" . "WORKING") + ("WAITING" . "WORKING"))) + #+end_src + + The + ~org-clock-in-next-state~ alist may be utilized by setting it to + ~org-clock-in-next-state-function~, or a custom function may be + used. This custom function should take the current state, and + return either a new state or ~nil~ to keep the current state. + #+cindex: @samp{CLOCK_MODELINE_TOTAL}, property #+cindex: @samp{LAST_REPEAT}, property #+vindex: org-clock-mode-line-total @@ -6618,6 +6639,10 @@ about what to do with it. timestamp[fn:: The corresponding in-buffer setting is: =#+STARTUP: lognoteclock-out=.]. + #+vindex: org-clock-out-switch-to-state + The variable ~org-clock-out-switch-to-state~ may be configured + similarly to ~org-clock-in-switch-to-state~. + - {{{kbd(C-c C-x C-x)}}} (~org-clock-in-last~) :: #+kindex: C-c C-x C-x -- 2.37.0 -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
[PATCH v2 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier
(org-todo new-state))) ((functionp org-clock-out-switch-to-state) (let ((case-fold-search nil)) (looking-at org-complex-heading-regexp)) @@ -1728,10 +1746,10 @@ to, overriding the existing value of `org-clock-out-switch-to-state'." (when newstate (org-todo newstate ((and org-clock-out-switch-to-state (not (looking-at - (concat -org-outline-regexp "[ \t]*" - org-clock-out-switch-to-state - "\\>" + (concat + org-outline-regexp "[ \t]*" + org-clock-out-switch-to-state + "\\>" (org-todo org-clock-out-switch-to-state)) (force-mode-line-update) (message (if remove -- 2.37.0 -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Re: [PATCH 2/2] doc/org-manual.org: Document org-clock-{in,out}-switch-to-state
>>>>> Ihor Radchenko writes: IR> "Samuel W. Flint" writes: >> + #+vindex: org-clock-in-switch-to-state >> + #+vindex: org-clock-in-next-state >> + #+findex: org-clock-in-next-state-function >> + The variable ~org-clock-in-switch-to-state~ controls if and how a >> + current task's TODO state is changed. No change (a ~nil~) is the >> + default. A specific state may be forced with a string value. The >> + ~org-clock-in-next-state~ alist may be utilized by setting it to >> + ~org-clock-in-next-state-function~, or a custom function may be >> + used. This custom function should take the current state, and >> + return either a new state or ~nil~ to keep the current state. IR> First of all, thanks for the patch! IR> However, it is not clear for me what is the purpose of this new feature IR> (even after reading the proposed patch to the manual). IR> Could you please explain in simple words when your new feature can be IR> useful? The variable `org-clock-in-switch-to-state` can be really handy, however, it wasn't documented in the manual which made discovery somewhat difficult. The manual patch documents the variable, as well as a new variable exposed through customize to describe how states should change on clock-in/clock-out. This means that instead of having to write a custom function to do this, it's provided and exposed through customize and thus should be more discoverable and hopefully usable. Patch 1/2 provides the implementation. Consider, for example, the following settings: (setf org-clock-in-switch-to-state 'org-clock-in-next-state-function org-clock-in-next-state '(("TODO" . "WORKING") ("WAITING" . "WORKING"))) And the following heading: * TODO Do a thing When clocking in, it will become: * WORKING Do a thing On the next clock-in, it will stay at "WORKING". Consider instead: * WAITING Waiting to do a thing On clock-in to this heading, it becomes * WORKING Waiting to do a thing This can be applied similarly for org-clock-out, though I'm not sure how useful that will be. hth, Sam -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
[PATCH 2/2] doc/org-manual.org: Document org-clock-{in,out}-switch-to-state
* doc/org-manual.org (Clocking commands): Document operation of org-clock-{in,out}-switch-to-state, org-clock-{in,out}-next-state, and org-clock-{in,out}-next-state-function. --- doc/org-manual.org | 22 ++ 1 file changed, 22 insertions(+) diff --git a/doc/org-manual.org b/doc/org-manual.org index ad584d7a5..600690da2 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -6583,6 +6583,17 @@ about what to do with it. C-u C-u)}}} prefixes, force continuous clocking by starting the clock when the last clock stopped. + #+vindex: org-clock-in-switch-to-state + #+vindex: org-clock-in-next-state + #+findex: org-clock-in-next-state-function + The variable ~org-clock-in-switch-to-state~ controls if and how a + current task's TODO state is changed. No change (a ~nil~) is the + default. A specific state may be forced with a string value. The + ~org-clock-in-next-state~ alist may be utilized by setting it to + ~org-clock-in-next-state-function~, or a custom function may be + used. This custom function should take the current state, and + return either a new state or ~nil~ to keep the current state. + #+cindex: @samp{CLOCK_MODELINE_TOTAL}, property #+cindex: @samp{LAST_REPEAT}, property #+vindex: org-clock-mode-line-total @@ -6618,6 +6629,17 @@ about what to do with it. timestamp[fn:: The corresponding in-buffer setting is: =#+STARTUP: lognoteclock-out=.]. + #+vindex: org-clock-out-switch-to-state + #+vindex: org-clock-out-next-state + #+findex: org-clock-out-next-state-function + The variable ~org-clock-out-switch-to-state~ controls if and how a + current task's TODO state is changed. No change (a ~nil~) is the + default. A specific state may be forced with a string value. The + ~org-clock-out-next-state~ alist may be utilized by setting it to + ~org-clock-out-next-state-function~, or a custom function may be + used. This custom function should take the current state, and + return either a new state or ~nil~ to keep the current state. + - {{{kbd(C-c C-x C-x)}}} (~org-clock-in-last~) :: #+kindex: C-c C-x C-x -- 2.37.3 -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
[PATCH 1/2] lisp/org-clock.el: Make switching states on clock-in/-out easier
* lisp/org-clock.el (org-clock-in-next-state, org-clock-out-next-state): Define and document customizeable variables to describe the "next state" on clock-in/-out. (org-clock-in-switch-to-state, org-clock-out-switch-to-state): Add options to use the `org-clock-{in,out}-next-state' variables to change on clock-in/-out. (org-clock-in-next-state-function, org-clock-out-next-state-function): Define functions which can be used to select the next TODO state on clock-in/-out. --- lisp/org-clock.el | 48 +-- 1 file changed, 46 insertions(+), 2 deletions(-) diff --git a/lisp/org-clock.el b/lisp/org-clock.el index 6332399bb..18cd83988 100644 --- a/lisp/org-clock.el +++ b/lisp/org-clock.el @@ -145,6 +145,16 @@ out time will be 14:50." :group 'org-clock :type 'boolean) +(defcustom org-clock-in-next-state nil + "Alist of next TODO states for clocking out. +The symbol `error' may be used to prevent clocking out on tasks." + :group 'org-clock + :group 'org-todo + :type '(alist :key-value (string :tag "Current State:") +:value-type (choice :tag "Next State :" +(string :tag "TODO Keyword") +(const :tag "Block Clock-In" 'error + (defcustom org-clock-in-switch-to-state nil "Set task to a special todo state while clocking it. The value should be the state to which the entry should be @@ -156,7 +166,18 @@ state to switch it to." :type '(choice (const :tag "Don't force a state" nil) (string :tag "State") - (symbol :tag "Function"))) + (const :tag "Use `org-clock-in-next-state'" 'org-clock-in-next-state-function) + (symbol :tag "Function"))) + +(defcustom org-clock-out-next-state nil + "Alist of next TODO states for clocking out. +The symbol `error' may be used to prevent clocking in on tasks." + :group 'org-clock + :group 'org-todo + :type '(alist :key-value (string :tag "Current State:") +:value-type (choice :tag "Next State :" +(string :tag "TODO Keyword") +(const :tag "Block Clock-Out" 'error (defcustom org-clock-out-switch-to-state nil "Set task to a special todo state after clocking out. @@ -169,7 +190,8 @@ state to switch it to." :type '(choice (const :tag "Don't force a state" nil) (string :tag "State") - (symbol :tag "Function"))) + (const :tag "Use `org-clock-out-next-state'" 'org-clock-out-next-state-function) + (symbol :tag "Function"))) (defcustom org-clock-history-length 5 "Number of clock tasks to remember in history. @@ -1256,6 +1278,17 @@ so long." (defvar org-clock-out-time nil) ; store the time of the last clock-out (defvar org--msg-extra) +(defun org-clock-in-next-state-function (state) + "Change state to the next logical TODO STATE on clock-in. + +Use `org-clock-in-next-state'." + (when-let ((state-pair (assoc state org-clock-in-next-state)) + (next-state (cdr state-pair))) +(if (and (symbolp next-state) + (eq 'error next-state)) +(user-error (format "Cannot clock into %s task, change to a valid TODO state." state)) + next-state))) + ;;;###autoload (defun org-clock-in ( select start-time) "Start the clock on the current item. @@ -1650,6 +1683,17 @@ and current `frame-title-format' is equal to `org-clock-frame-title-format'." (equal frame-title-format org-clock-frame-title-format)) (setq frame-title-format org-frame-title-format-backup))) +(defun org-clock-out-next-state-function (state) + "Change state to the next logical TODO STATE on clock-out. + +Use `org-clock-out-next-state'." + (when-let ((state-pair (assoc state org-clock-out-next-state)) + (next-state (cdr state-pair))) +(if (and (symbolp next-state) + (eq 'error next-state)) +(user-error (format "Cannot clock into %s task, change to a valid TODO state." state)) + next-state))) + ;;;###autoload (defun org-clock-out ( switch-to-state fail-quietly at-time) "Stop the currently running clock. -- 2.37.3 -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
Re: [PATCH] Add %L (the link content *not* as a full link) to Capture expansions
>>>>> Bastien writes: B> Hi Samuel, "Samuel W. Flint" writes: >> Marked as TINYCHANGE. B> Applied as d06aa486d, thanks! Thanks! B> Can you provide a patch to announce this in etc/ORG-NEWS? Please see the attached patch. B> -- Bastien Sam -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) >From b1242c2af3d5ab16ddcec52d3b3f47bb60895d9a Mon Sep 17 00:00:00 2001 From: "Samuel W. Flint" Date: Thu, 24 Sep 2020 17:57:32 -0500 Subject: [PATCH] Describe new %L formatting for org-capture * etc/ORG-NEWS (New formatting directive ~%L~ for org-capture): Describe new %L formatting for org-capture TINYCHANGE --- etc/ORG-NEWS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index eed3871d4..f036aa6a5 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -11,6 +11,12 @@ See the end of the file for license conditions. Please send Org bug reports to mailto:emacs-orgmode@gnu.org. * Version 9.5 (not yet released) +** New options and settings +*** New formatting directive ~%L~ for org-capture + +The new ~%L~ formatting directive contains the bare link target, and +may be used to create links with programmatically generated +descriptions. * Version 9.4 ** Incompatible changes *** Possibly broken internal file links: please check and fix -- 2.18.1
Re: [PATCH] Add %L (the link content *not* as a full link) to Capture expansions
Is there anything I can do to move this forward? Thanks, Sam >>>>> Samuel W Flint writes: SWF> Marked as TINYCHANGE. Sam >>>>> Samuel W Flint writes: >>>>> Bastien writes: B> Hi Samuel, swfl...@flintfam.org (Samuel W. Flint) writes: >>>> In an attempt at automating a part of my workflow, I found that >>>> org-capture's %l didn't quite fit what I needed. Normally, >>>> org-store-link does the right thing, but for some capture >>>> tasks, I want to custom generate the description, so %l doesn't >>>> work. I've attached a patch that adds %L, a version that >>>> doesn't add the link brackets. B> It looks good to me for Org 9.5. Can you add a Changelog entry B> to your patch and also patch the tests and the manual, if needed? SWF> Apologies for spamming you with multiple copies Bastien. SWF> Certainly! Hopefully this looks better. I didn't see any SWF> tests for %a, %A or %l already, and I don't have time atm to SWF> write them, otherwise I'd have done so. SWF> I can mark this as TINYCHANGE, if necessary, as I don't have a SWF> copyright assignment on file, though I'm willing to do so. SWF> Thanks, SWF> Sam B> See B> <https://orgmode.org/worg/org-contribute.html#commit-messages> B> for the format of the Changelog. B> Thanks, B> -- Bastien SWF> -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 SWF> EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) SWF> -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 SWF> EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s)
Re: [PATCH] Add %L (the link content *not* as a full link) to Capture expansions
Marked as TINYCHANGE. Sam >>>>> Samuel W Flint writes: >>>>> Bastien writes: B> Hi Samuel, swfl...@flintfam.org (Samuel W. Flint) writes: >>> In an attempt at automating a part of my workflow, I found that >>> org-capture's %l didn't quite fit what I needed. Normally, >>> org-store-link does the right thing, but for some capture tasks, >>> I want to custom generate the description, so %l doesn't work. >>> I've attached a patch that adds %L, a version that doesn't add >>> the link brackets. B> It looks good to me for Org 9.5. Can you add a Changelog entry B> to your patch and also patch the tests and the manual, if needed? SWF> Apologies for spamming you with multiple copies Bastien. SWF> Certainly! Hopefully this looks better. I didn't see any SWF> tests for %a, %A or %l already, and I don't have time atm to SWF> write them, otherwise I'd have done so. SWF> I can mark this as TINYCHANGE, if necessary, as I don't have a SWF> copyright assignment on file, though I'm willing to do so. SWF> Thanks, SWF> Sam B> See B> <https://orgmode.org/worg/org-contribute.html#commit-messages> B> for the format of the Changelog. B> Thanks, B> -- Bastien SWF> -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 SWF> EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) >From 02de43c3457419f1031f4988d6c95fac535134e7 Mon Sep 17 00:00:00 2001 From: "Samuel W. Flint" Date: Mon, 14 Sep 2020 09:07:07 -0500 Subject: [PATCH] Add in support for filling in the bare link in org capture * doc/org-manual.org: Document new %L capture template formatting directive. * lisp/org-capture.el: (org-capture-templates) Document new %L capture template formatting directive. * lisp/org-capture.el: (org-capture-fill-template) Add in support for %L, bare link formatting, in org-capture-fill-template. TINYCHANGE --- doc/org-manual.org | 4 lisp/org-capture.el | 7 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 7ab7d1c94..229575b13 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -7799,6 +7799,10 @@ here: Like =%a=, but only insert the literal link. +- =%L= :: + + Like =%l=, but without brackets (the link content itself). + - =%c= :: Current kill ring head. diff --git a/lisp/org-capture.el b/lisp/org-capture.el index d73e927fc..2ef55cd5c 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -315,6 +315,7 @@ be replaced with content and expanded: %a Annotation, normally the link created with `org-store-link'. %A Like %a, but prompt for the description part. %l Like %a, but only insert the literal link. + %L Like %l, but without brackets (the link content itself). %c Current kill ring head. %x Content of the X clipboard. %k Title of currently clocked task. @@ -1592,6 +1593,9 @@ The template may still contain \"%?\" for cursor positioning." (v-l (if (and v-a (string-match l-re v-a)) (replace-match "[[\\1]]" nil nil v-a) v-a)) + (v-L (if (or v-a (string-match l-re v-a)) + (replace-match "\\1" nil nil v-a) + v-a)) (v-n user-full-name) (v-k (if (marker-buffer org-clock-marker) (org-no-properties org-clock-heading) @@ -1644,7 +1648,7 @@ The template may still contain \"%?\" for cursor positioning." ;; Mark %() embedded elisp for later evaluation. (org-capture-expand-embedded-elisp 'mark) ;; Expand non-interactive templates. - (let ((regexp "%\\(:[-A-Za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlntTuUx]\\)")) + (let ((regexp "%\\(:[-A-Za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlLntTuUx]\\)")) (save-excursion (while (re-search-forward regexp nil t) ;; `org-capture-escaped-%' may modify buffer and cripple @@ -1681,6 +1685,7 @@ The template may still contain \"%?\" for cursor positioning." (?k v-k) (?K v-K) (?l v-l) + (?L v-L) (?n v-n) (?t v-t) (?T v-T) -- 2.18.1
Re: [PATCH] Add %L (the link content *not* as a full link) to Capture expansions
>>>>> Bastien writes: B> Hi Samuel, swfl...@flintfam.org (Samuel W. Flint) writes: >> In an attempt at automating a part of my workflow, I found that >> org-capture's %l didn't quite fit what I needed. Normally, >> org-store-link does the right thing, but for some capture tasks, >> I want to custom generate the description, so %l doesn't work. >> I've attached a patch that adds %L, a version that doesn't add >> the link brackets. B> It looks good to me for Org 9.5. Can you add a Changelog entry B> to your patch and also patch the tests and the manual, if needed? Apologies for spamming you with multiple copies Bastien. Certainly! Hopefully this looks better. I didn't see any tests for %a, %A or %l already, and I don't have time atm to write them, otherwise I'd have done so. I can mark this as TINYCHANGE, if necessary, as I don't have a copyright assignment on file, though I'm willing to do so. Thanks, Sam B> See B> <https://orgmode.org/worg/org-contribute.html#commit-messages> B> for the format of the Changelog. B> Thanks, B> -- Bastien -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) λs.(s s) λs.(s s) >From 02de43c3457419f1031f4988d6c95fac535134e7 Mon Sep 17 00:00:00 2001 From: "Samuel W. Flint" Date: Mon, 14 Sep 2020 09:07:07 -0500 Subject: [PATCH] Add in support for filling in the bare link in org capture * doc/org-manual.org: Document new %L capture template formatting directive. * lisp/org-capture.el: (org-capture-templates) Document new %L capture template formatting directive. * lisp/org-capture.el: (org-capture-fill-template) Add in support for %L, bare link formatting, in org-capture-fill-template. --- doc/org-manual.org | 4 lisp/org-capture.el | 7 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/org-manual.org b/doc/org-manual.org index 7ab7d1c94..229575b13 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -7799,6 +7799,10 @@ here: Like =%a=, but only insert the literal link. +- =%L= :: + + Like =%l=, but without brackets (the link content itself). + - =%c= :: Current kill ring head. diff --git a/lisp/org-capture.el b/lisp/org-capture.el index d73e927fc..2ef55cd5c 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -315,6 +315,7 @@ be replaced with content and expanded: %a Annotation, normally the link created with `org-store-link'. %A Like %a, but prompt for the description part. %l Like %a, but only insert the literal link. + %L Like %l, but without brackets (the link content itself). %c Current kill ring head. %x Content of the X clipboard. %k Title of currently clocked task. @@ -1592,6 +1593,9 @@ The template may still contain \"%?\" for cursor positioning." (v-l (if (and v-a (string-match l-re v-a)) (replace-match "[[\\1]]" nil nil v-a) v-a)) + (v-L (if (or v-a (string-match l-re v-a)) + (replace-match "\\1" nil nil v-a) + v-a)) (v-n user-full-name) (v-k (if (marker-buffer org-clock-marker) (org-no-properties org-clock-heading) @@ -1644,7 +1648,7 @@ The template may still contain \"%?\" for cursor positioning." ;; Mark %() embedded elisp for later evaluation. (org-capture-expand-embedded-elisp 'mark) ;; Expand non-interactive templates. - (let ((regexp "%\\(:[-A-Za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlntTuUx]\\)")) + (let ((regexp "%\\(:[-A-Za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlLntTuUx]\\)")) (save-excursion (while (re-search-forward regexp nil t) ;; `org-capture-escaped-%' may modify buffer and cripple @@ -1681,6 +1685,7 @@ The template may still contain \"%?\" for cursor positioning." (?k v-k) (?K v-K) (?l v-l) + (?L v-L) (?n v-n) (?t v-t) (?T v-T) -- 2.18.1
[PATCH] Add %L (the link content *not* as a full link) to Capture expansions
Hello, In an attempt at automating a part of my workflow, I found that org-capture's %l didn't quite fit what I needed. Normally, org-store-link does the right thing, but for some capture tasks, I want to custom generate the description, so %l doesn't work. I've attached a patch that adds %L, a version that doesn't add the link brackets. Thanks, Sam Flint -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704) diff --git i/lisp/org-capture.el w/lisp/org-capture.el index 2cc1ce394..e638eabfa 100644 --- i/lisp/org-capture.el +++ w/lisp/org-capture.el @@ -308,6 +308,7 @@ be replaced with content and expanded: %a Annotation, normally the link created with `org-store-link'. %A Like %a, but prompt for the description part. %l Like %a, but only insert the literal link. + %L Like %l, but no brackets (the link content itself). %c Current kill ring head. %x Content of the X clipboard. %k Title of currently clocked task. @@ -1574,6 +1575,9 @@ The template may still contain \"%?\" for cursor positioning." (v-l (if (and v-a (string-match l-re v-a)) (replace-match "[[\\1]]" nil nil v-a) v-a)) + (v-L (if (or v-a (string-match l-re v-a)) + (replace-match "\\1" nil nil v-a) + v-a)) (v-n user-full-name) (v-k (if (marker-buffer org-clock-marker) (org-no-properties org-clock-heading) @@ -1626,7 +1630,7 @@ The template may still contain \"%?\" for cursor positioning." ;; Mark %() embedded elisp for later evaluation. (org-capture-expand-embedded-elisp 'mark) ;; Expand non-interactive templates. - (let ((regexp "%\\(:[-A-Za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlntTuUx]\\)")) + (let ((regexp "%\\(:[-A-Za-z]+\\|<\\([^>\n]+\\)>\\|[aAcfFikKlLntTuUx]\\)")) (save-excursion (while (re-search-forward regexp nil t) ;; `org-capture-escaped-%' may modify buffer and cripple @@ -1663,6 +1667,7 @@ The template may still contain \"%?\" for cursor positioning." (?k v-k) (?K v-K) (?l v-l) + (?L v-L) (?n v-n) (?t v-t) (?T v-T)
[O] Feature Request: Use ~org-set-tags-command~ for ~%^g~ in capture
Hello! Is there a way to use the ~org-set-tags-command~ function to complete tags during capture? It currently uses whatever my normal completion method is, but this means that I can't use the faster tag-selection method that I'm used to otherwise. Thanks, Sam Flint -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704)
[O] Feature Request: Use ~org-set-tags-command~ for ~%^g~ in capture
Hello! Is there a way to use the ~org-set-tags-command~ function to complete tags during capture? It currently uses whatever my normal completion method is, but this means that I can't use the faster tag-selection method that I'm used to otherwise. Thanks, Sam Flint -- Samuel W. Flint 4096R/FA13D704 (F50D 862B 4F65 5943 A8C2 EF0E 86C9 3E7A FA13 D704)
Re: [O] Org Publish Error
>>>>> Nicolas Goaziou writes: NG> swfl...@flintfam.org (Samuel W. Flint) writes: >> Not to my knowledge. NG> ... OK. In `org-publish-project-alist', do you set :exclude-tags NG> to t? I do. I'll go ahead and fix that then. Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Org Publish Error
>>>>> Nicolas Goaziou writes: NG> swfl...@flintfam.org (Samuel W. Flint) writes: >>>>>>> Nicolas Goaziou writes: >> NG> swfl...@flintfam.org (Samuel W. Flint) writes: Could you provide NG> an uncompiled backtrace, i.e., calling `C-u M-x org-reload' NG> first? >> >> >> >> Here you go. >> NG> (plist-get :exclude-tags info) seems to evaluate to t, which is NG> invalid. What is the value for `org-export-exclude-tags'? >> >> '("noexport") NG> Then do you have any idea why (plist-get info :exclude-tags) NG> returns t? E.g., do you use an options filter? Not to my knowledge. Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Org Publish Error
>>>>> Nicolas Goaziou writes: NG> swfl...@flintfam.org (Samuel W. Flint) writes: Could you provide NG> an uncompiled backtrace, i.e., calling `C-u M-x org-reload' NG> first? >> >> Here you go. NG> (plist-get :exclude-tags info) seems to evaluate to t, which is NG> invalid. What is the value for `org-export-exclude-tags'? '("noexport") Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
[O] Org Publish Error
Hello all! I'm currently getting the following error upon HTML export in publish projects: cl-mapcar: Wrong type argument: sequencep, t It appears it's coming up somewhere in the following: mapcar(#[257 "\300^A\301\"\207" [org-tags-expand t] 4 "\n\n(fn TAG)"] t) cl-mapcar(#[257 "\300^A\301\"\207" [org-tags-expand t] 4 "\n\n(fn TAG)"] t) apply(cl-mapcar #[257 "\300^A\301\"\207" [org-tags-expand t] 4 "\n\n(fn TAG)"] t nil) cl-mapcan(#[257 "\300^A\301\"\207" [org-tags-expand t] 4 "\n\n(fn TAG)"] t) org-export--prune-tree((org-data nil (section (:begin 1 :end 330 :contents-begin 1 Currently on GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.26) of 2018-01-07, with Org mode version 9.1.6 (release_9.1.6-462-gb505a5 @ /home/swflint/.emacs.d/org-mode/lisp/) Any/all help is appreciated. Thanks, Sam Flint -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Preventing noweb substitution during export
Nicolas, my apologies for sending this twice. >>>>> Nicolas Goaziou writes: NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes: >> I used to be able to prevent noweb substitution during export by >> setting noweb to tangle, now it's only a yes/no option. When was >> this feature removed, and what can I do to get it back? NG> I don't think that was intended. Would you have an ECM NG> demonstrating the issue? It didn't get removed, though no-export is now the correct value. Neither, however, are currently documented in the manual. NG> Regards, NG> -- Nicolas Goaziou And the following should demonstrate how they currently behave: #+BEGIN_EXAMPLE #+PROPERTY: :noweb tangle #+name: a #+begin_src python def foo(): print "foo" #+end_src #+name: b #+begin_src python <> foo() #+end_src #+name: c #+begin_src python :tangle "test.py" import bar <> #+end_src #+END_EXAMPLE The file 'test.py' will contain: import bar <> foo() If noweb is set to no-export, the <> will be resolved. However, with tangle, the block is included during export. HTH, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
[O] Preventing noweb substitution during export
I used to be able to prevent noweb substitution during export by setting noweb to tangle, now it's only a yes/no option. When was this feature removed, and what can I do to get it back? Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Git repository error
Works for me too! Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Git repository error
>>>>> Colin Baxter writes: >>>>> Marco Wahl <marcowahls...@gmail.com> writes: >> Jack Kamm <jackk...@gmail.com> writes: >>> I'm having the same issue as Josiah, are others able to pull >>> from the git repo? >> git pull works for me. >> Maybe the following questions lead to a better understanding. >> What about performing a plain >> git pull >> instead of make update? >> What about a fresh git clone? CB> I've just entered "git pull" and I get the same "Connection CB> reset by peer" error as before. I'm still having this problem CB> -- Colin Baxter m43...@yandex.com CB> - CB> GnuPG fingerprint: 68A8 799C 0230 16E7 BF68 2A27 BBFA 2492 91F5 CB> 41C8 CB> ----- CB> The sole cause of all human misery is the inability of people to CB> sit quietly in their rooms. Blaise Pascal, 1670 -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Possible bug: Headings greater than level 2 stars not showing -- unable to navigate with normal commands
>>>>> Samuel W Flint writes: >>>>> Kyle Meyer writes: KM> "Samuel W. Flint" <swfl...@flintfam.org> writes: >>> Any idea what might be causing this? I checked >>> org-bullets-mode, but that doesn't seem to be it. KM> No, sorry. Hopefully others might have a hunch. I'd suggest KM> that you first verify that you don't see the issue when you use KM> Org without your configuration. Assuming the problem depends on KM> your config, you could then do a bisect-like debugging of your KM> config to try to pinpoint the problematic part. SF> Well, hopefully it doesn't come to that (too damn large a SF> config). And it didn't quite! Turns out that setting org-hide-emphasis-markers to a non-nil value was the problem. Sam KM> -- Kyle SF> Thanks, SF> Sam SF> -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 SF> 68E5 318E 2665 96F4) λs.(s s) λs.(s s) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Possible bug: Headings greater than level 2 stars not showing -- unable to navigate with normal commands
>>>>> Kyle Meyer writes: KM> "Samuel W. Flint" <swfl...@flintfam.org> writes: >> Any idea what might be causing this? I checked org-bullets-mode, >> but that doesn't seem to be it. KM> No, sorry. Hopefully others might have a hunch. I'd suggest KM> that you first verify that you don't see the issue when you use KM> Org without your configuration. Assuming the problem depends on KM> your config, you could then do a bisect-like debugging of your KM> config to try to pinpoint the problematic part. Well, hopefully it doesn't come to that (too damn large a config). KM> -- Kyle Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Possible bug: Headings greater than level 2 stars not showing -- unable to navigate with normal commands
>>>>> Kyle Meyer writes: First, sorry about accidentally sending nearly the same email twice. KM> "Samuel W. Flint" <swfl...@flintfam.org> writes: >> Hey -- I'm at Org mode version 9.1.3 (release_9.1.3-185-g579fa1 @ >> /home/swflint/.emacs.d/org-mode/lisp/), and GNU Emacs 25.2.1 >> (x86_64-unknown-linux-gnu, GTK+ Version 3.22.18) of 2017-08-29, >> and on my files with level 3 headings and greater, the stars >> aren't showing, and I'm unable to use the normal commands to >> navigate by structure. KM> FWIW I'm unable to reproduce this running 'emacs -Q' (version KM> 25.3) and loading Org at the commit you reference (579fa12f5). Any idea what might be causing this? I checked org-bullets-mode, but that doesn't seem to be it. KM> -- Kyle Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
[O] Possible bug: Headings greater than level 2 stars not showing -- unable to navigate with normal commands
Hey -- I'm at Org mode version 9.1.3 (release_9.1.3-185-g579fa1 @ /home/swflint/.emacs.d/org-mode/lisp/), and GNU Emacs 25.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.22.18) of 2017-08-29, and on my files with level 3 headings and greater, the stars aren't showing, and I'm unable to use the normal commands to navigate by structure. Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Org Protocol error, does not recognize template
> On Jun 14, 2017, at 08:58, Nicolas Goaziou <m...@nicolasgoaziou.fr> wrote: > > Hello, > > swfl...@flintfam.org (Samuel W. Flint) writes: > >> I'm aware. The second (file path) is the capture template. All other >> templates work, except for b for some reason. > > Isn't the capture template supposed to be a string? That format is documented in the docstring for org-capture-templates. > Anyway, I'm not able to reproduce your problem. Could you post a more > precise recipe? That's the most precise recipe I have. For some reason that specific template cannot be found. > Regards, > > -- > Nicolas Goaziou >
Re: [O] Org Protocol error, does not recognize template
First, my apologies for sending directly to you and not the list the first time. >>>>> Nicolas Goaziou writes: NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes: >> (setq org-capture-templates `(("a" "Create Appointment" entry >> (file+olp "~/org/agenda.org" "Main Agenda, including diary" >> "Current") (file >> "~/.emacs.d/org-capture-templates/appointment-template.org") NG> You cannot have more than one target in the same template. Ditto NG> for the other templates. I'm aware. The second (file path) is the capture template. All other templates work, except for b for some reason. NG> Regards, NG> -- Nicolas Goaziou Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
Re: [O] Org Protocol error, does not recognize template
>>>>> Samuel W Flint writes: SF> Hello, I have an issue with org-protocol at the moment. If SF> using new-style links, one of my templates is not recognized. SF> If I try the following link: SF> org-protocol://capture?template=b=FlintFam.org+Home=http%3A%2F%2Fflintfam.org SF> I get an error: SF> *ERROR*: Capture template ‘b’: nil As it turns out, it can't find that template in any situation (including if it's called accurately). org-capture-templates is set as follows: (setq org-capture-templates `(("a" "Create Appointment" entry (file+olp "~/org/agenda.org" "Main Agenda, including diary" "Current") (file "~/.emacs.d/org-capture-templates/appointment-template.org") :empty-lines 1 :prepend nil) ("t" "TODO Items") ("tt" "Standard TODO" entry (file+headline "~/org/main.org" "To Do") (file "~/.emacs.d/org-capture-templates/todo-template.org") :empty-lines 1) ("td" "Deadline TODO" entry (file+headline "~/org/main.org" "To Do") (file "~/.emacs.d/org-capture-templates/todo-deadline-template.org") :empty-lines 1) ("tl" "Linked TODO" entry (file+headline "~/org/main.org" "To Do") (file "~/.emacs.d/org-capture-templates/todo-link-template.org") :empty-lines 1) ("n" "Notes") ("nn" "General Notes" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/notes-journal-template.org") :empty-lines 1) ("nl" "Linked Note" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/linked-note-journal-template.org") :empty-lines 1) ("nq" "Quoting Note" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/quoting-note-journal-template.org") :empty-lines 1) ("nt" "Linked/Quoted Notes" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/technical-journal-template.org") :empty-lines 1) ("nd" "Note on Date" entry (file+datetree+prompt ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/notes-journal-template.org") :empty-lines 1) ("nc" "Clocking Notes") ("ncn" "General Notes" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/notes-journal-template-clocking.org") :empty-lines 1) ("ncl" "Linked Note" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/linked-note-journal-template-clocking.org") :empty-lines 1) ("ncq" "Quoting Note" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/quoting-note-journal-template-clocking.org") :empty-lines 1) ("nct" "Linked/Quoted Notes" entry (file+datetree ,(format-time-string "~/org/notes/%Y.org")) (file "~/.emacs.d/org-capture-templates/technical-journal-template-clocking.org") :empty-lines 1) ("A" "Assignment" entry (file "~/org/school.org") (file "~/.emacs.d/org-capture-templates/assignment-template.org") :empty-lines 1) ("j" "Journal Entry" entry (file+datetree ,(format-time-string "~/org/journal/%Y.org.gpg")) (file "~/.emacs.d/org-capture-templates/journal-template.org") :empty-lines 1) ("c" "calfw2org" entry (file+olp "~/org/agenda.org" "Main Agenda, including diary" "Current") (file "~/.emacs.d/org-capture-templates/clfw-template.org") :empty-lines 1) ("b" "Bookmark" item (file+olp "~/org/bookmarks.org" "Unsorted Bookmarks") "%a" :immediate-finish t) ("m" "Mail Message Follow-up" entry (file+olp "~/org/agenda.org" "Main Agenda, including diary" "Mail Message Follow-up") (file "~/.emacs.d/org-capture-templates/mail-followup-template.org") :immediate-finish t :empty-lines 1))) SF> What can I do to fix this? SF> Thanks, SF> Sam Flint SF> -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 SF> 68E5 318E 2665 96F4) λs.(s s) λs.(s s) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
[O] Org Protocol error, does not recognize template
Hello, I have an issue with org-protocol at the moment. If using new-style links, one of my templates is not recognized. If I try the following link: org-protocol://capture?template=b=FlintFam.org+Home=http%3A%2F%2Fflintfam.org I get an error: *ERROR*: Capture template ‘b’: nil What can I do to fix this? Thanks, Sam Flint -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) λs.(s s) λs.(s s)
[O] Bug: M-RET not working as expected [9.0.2 (release_9.0.2-101-ge31598 @ /home/swflint/.emacs.d/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. Say I have the following buffer, with '|' representing my cursor: * foo ** foo ** aoeu | - aoeu - aoeu If I press M-RET there, I get the following: * foo ** foo ** aoeu * | - aoeu - aoeu When I would expect to get: * foo ** foo ** aoeu ** | - aoeu - aoeu This is in both my normal setup and the vanilla setup. Emacs : GNU Emacs 25.1.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.20.9) of 2016-09-19 Package: Org mode version 9.0.2 (release_9.0.2-101-ge31598 @ /home/swflint/.emacs.d/org-mode/lisp/) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] Importing ODT/libreoffice into Org
Export to docx and use pandoc? Something like `pandoc input.doc -o output.org` should work. HTH, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
[O] Bug: Noweb references do not expand when tangled [8.3.4 (release_8.3.4-1037-gf38f83 @ /home/swflint/.emacs.d/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. In any of my documents which I use Noweb, and have the noweb property set to tangle using `#+PROPERTY: noweb tangle`, when I go to tangle using C-c C-v C-t, the files that are tangled to leave only the Noweb references. I have no idea why this is or what to do, but this feature is a very important part of my workflow. Thanks, Sam Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.9) of 2016-04-11 on buildvm-25.phx2.fedoraproject.org Package: Org-mode version 8.3.4 (release_8.3.4-1037-gf38f83 @ /home/swflint/.emacs.d/org-mode/lisp/) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
[O] As of 2016-07-03, Noweb no longer seems to work.
As of tonight, when I updated Org, Noweb References no longer seem to resolve during the tangle process, when "#+PROPERTY: noweb tangle" is set. Any idea why or what I can do to get this fixed? Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] Programmatically constructing org documents
Does something like this do what you're looking for? https://github.com/tj64/org-dp HTH, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] Changing org-block background with org-src-fontify-natively
>>>>> Rasmus writes: R> swfl...@flintfam.org (Samuel W. Flint) writes: >> How exactly do you get the pencil instead of the #+BEGIN_SRC and >> #+END_SRC? R> Prettify-symbols-mode, I'm using the version that will be shipped R> with Emacs 25.1. Details here: R> https://pank.eu/blog/pretty-babel-src-blocks.html Thank you!! Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] Changing org-block background with org-src-fontify-natively
>>>>> Rasmus writes: R> Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: >> My Org mode experience would also benefit a lot from having >> source block backgrounds again and with per-language configurable >> background colour. R> That’s possible with the attache patch. An example of the R> horrors you can subject yourself to is also attached. How exactly do you get the pencil instead of the #+BEGIN_SRC and #+END_SRC? Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] colored code background in org 8.3
:: Rasmus writes: Rasmus> Sebastien Vauban <sva-n...@mygooglest.com> writes: >> Hello all, >> >> Rasmus <ras...@gmx.us> writes: >>> John Kitchin <jkitc...@andrew.cmu.edu> writes: >>> >>>> I am finally getting around to switching over to org 8.3... One >>>> thing I miss already is the colored background in the code >>>> blocks. I recall that was removed. Has anyone looked into a way to >>>> put it back? >>> >>> I use the attached patch for some "interactive slides" with babel. >> >> Could it be put into the official code base, for all users to enjoy >> colored backgrounds without having to patch their Org by hand? Rasmus> Sure, eventually. Let me know if you have tested the patch and Rasmus> it works for you. Rasmus> I don’t know much about faces, but it should work across all Rasmus> relevant versions of Emacs. Rasmus> Aside: Speaking of prettifying src blocks, with Rasmus> prettify-symbols-mode I managed to make src-blocks look like Rasmus> this when the cursor is somewhere else Rasmus> λ LANGUAGE ☰ Rasmus> and like this otherwise Rasmus> #+begin_src LANGUAGE :keyword₁ value₁ ⋯ :keywordₙ valueₙ How do you do this? Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] [SPAM] Re: Disabling completion during capture
:: Samuel W Flint writes: :: Eric S Fraga writes: ESF> On Thursday, 12 May 2016 at 23:10, Samuel W. Flint wrote: >>> OK, so I have an issue with capture and completion. On the >>> following ESF> What version of org are you using? The bug you mention is one that ESF> existed a while ago but was fixed... SWF> Org-mode version 8.3.4 (release_8.3.4-778-g8127b3 @ SWF> /home/swflint/.emacs.d/org-mode/lisp/). now on Org-mode version 8.3.4 (release_8.3.4-790-g1fd6f2 @ /home/swflint/.emacs.d/org-mode/lisp/), but I still have the same problem. Any suggestions? Thanks, Sam ESF> -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org ESF> release_8.3.4-775-g3308a5 SWF> -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 SWF> 68E5 318E 2665 96F4) (λs.s s) λs.s s -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] [SPAM] Re: Disabling completion during capture
:: Eric S Fraga writes: ESF> On Thursday, 12 May 2016 at 23:10, Samuel W. Flint wrote: >> OK, so I have an issue with capture and completion. On the following ESF> What version of org are you using? The bug you mention is one that ESF> existed a while ago but was fixed... Org-mode version 8.3.4 (release_8.3.4-778-g8127b3 @ /home/swflint/.emacs.d/org-mode/lisp/). ESF> -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org ESF> release_8.3.4-775-g3308a5 -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
[O] Disabling completion during capture
OK, so I have an issue with capture and completion. On the following template: #+BEGIN_SRC org * %^{Subject?} :PROPERTIES: :CREATED: %T :END: %? #+END_SRC When I go to capture, and I enter my value for the ~%^{Subject?}~ prompt, as soon as I hit "space", I get an window pop-up about "No Completions". As of now, the only way to put a space in as I enter it is to use C-q. What can I do to fix this. Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] [SPAM] Re: adding a new org-element?
:: Eric S Fraga writes: ESF> On Tuesday, 22 Mar 2016 at 13:59, Samuel W. Flint wrote: [...] >> I agree, this does sound useful, but I think some other syntax would >> be more useful (LaTeX Equations are kinda important to me). ESF> I'm not sure what you mean. LaTeX equations are already available ESF> and the mhchem package is particularly good for typesetting ESF> reactions etc. The '$()$' syntax is too close to LaTeX equation syntax for my liking. Yes, I'm aware of \(\) and \[\], but the $$ and syntax is much faster. ESF> -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org ESF> release_8.3.4-668-g809a83 -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] adding a new org-element?
:: Eric S Fraga writes: ESF> On Monday, 21 Mar 2016 at 21:51, John Kitchin wrote: >> Suppose one wanted to add a new org-element/syntax to org-mode. Where >> would one start? ESF> I cannot help but I am curious: >> I am interested in something like the following syntax: $(arbitrary >> stuff inside the sexp)$ ESF> Given the power of lisp, can't you almost already do this using ESF> [[elisp:(almost arbitrary stuff inside the sexp)]] ESF> ? My curiousity is piqued, wondering what interesting capabilities ESF> you are thinking of adding to org! I agree, this does sound useful, but I think some other syntax would be more useful (LaTeX Equations are kinda important to me). Sam ESF> -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org ESF> release_8.3.4-626-gb62d55 -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] A proposed enhancement in entering timestamps
:: Marcin Borkowski writes: MB> On 2016-03-18, at 14:34, Nicolas Goaziou <m...@nicolasgoaziou.fr> MB> wrote: >> Hello, >> >> Marcin Borkowski <mb...@mbork.pl> writes: >> >>> Papers signed. >> >> OK. Applied. Thank you. MB> Great, thanks! (This is my first contribution to Org-mode!) MB> I'm now reading org-read-date-analyze to be able to enable US MB> military format for hours (e.g., 2100 instead of 21:00). This is MB> potentially very useful (at least for me), since I'll be able to MB> enter the hour with one hand (colon is on shift-semicolon on my MB> keyboard). Another idea would be to enable 21.00 (this notation is MB> sometimes used in Poland). Would there be demand for such a MB> feature? Yes! This would be great, especially the no-separator US military format, it would allow me to be much faster entering times! Sam >> Regards, MB> Best, MB> -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski MB> Faculty of Mathematics and Computer Science Adam Mickiewicz MB> University -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] Bug: Habits will not correctly reset timestamp [8.3.2 (release_8.3.2-570-gc17fcc @ /home/swflint/.emacs.d/org-mode/lisp/)]
:: Nicolas Goaziou writes: NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes: >> With -Q, I still have the same problem. It is not a top level >> heading, but even as a top level heading, this doesn't happen. The >> SCHEDULED line is removed, rather than updated. NG> Very strange. At this point, I suggest to debug the functions to NG> know where and why this is happening. As a starting point, you may NG> want to look into `org-auto-repeat-maybe'. It removes it in the last iteration of the ~while~ loop. I couldn't point out exactly when, but at some point, it gets removed. HTH, Sam NG> Regards, NG> -- Nicolas Goaziou -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] Bug: Habits will not correctly reset timestamp [8.3.2 (release_8.3.2-570-gc17fcc @ /home/swflint/.emacs.d/org-mode/lisp/)]
:: Nicolas Goaziou writes: NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes: >> See my previous bug report. This still happens. >> >> If I have a heading like so: >> >> * TODO Something SCHEDULED: <2016-01-17 Sun .+1w/2w> :PROPERTIES: >> :STYLE: habit :END: >> >> And execute C-c C-t d on the heading, the following appears: >> >> * TODO Something :PROPERTIES: :STYLE: habit :END: >> >> This is incorrect behavior, and I'm unable to use org-habits >> correctly. NG> I cannot reproduce it. With -Q, I get NG> * TODO Something SCHEDULED: <2016-02-04 jeu. .+1w/2w> :PROPERTIES: NG> :STYLE: habit :LAST_REPEAT: [2016-01-28 jeu. 09:03] :END: - State NG> "DONE" from "TODO" [2016-01-28 jeu. 09:03] With -Q, I still have the same problem. It is not a top level heading, but even as a top level heading, this doesn't happen. The SCHEDULED line is removed, rather than updated. Thanks, Sam NG> Regards, NG> -- Nicolas Goaziou -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
[O] Bug: Habits will not correctly reset timestamp [8.3.2 (release_8.3.2-570-gc17fcc @ /home/swflint/.emacs.d/org-mode/lisp/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. See my previous bug report. This still happens. If I have a heading like so: * TODO Something SCHEDULED: <2016-01-17 Sun .+1w/2w> :PROPERTIES: :STYLE: habit :END: And execute C-c C-t d on the heading, the following appears: * TODO Something :PROPERTIES: :STYLE: habit :END: This is incorrect behavior, and I'm unable to use org-habits correctly. Thanks, Sam Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.17.8) of 2015-09-11 on buildvm-21.phx2.fedoraproject.org Package: Org-mode version 8.3.2 (release_8.3.2-570-gc17fcc @ /home/swflint/.emacs.d/org-mode/lisp/) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] Why does evaluating a piece of Elisp code seemingly not expand a macro?
>>>>> Marcin Borkowski writes: MB> This piece of code: #+BEGIN_SRC elisp :results value verbatim MB> :exports both (defmacro forty-two () (* 6 7)) That is not a macro. That's a function. The return value of a macro (the result of the last expression in the implicit progn) needs to be a (quasi-)quoted expression. This macro simply evaluates to 42. This should be a function. If you want a macro, you could have: #+BEGIN_SRC: emacs-lisp (defmacro forty-two () '(* 6 7)) #+END_SRC For what you want, you could have it be: #+BEGIN_SRC: emacs-lisp (defmacro forty-two () `,(* 6 7)) #+END_SRC [...] HTH, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] Bug: Habit Logging in incorrect place [8.3.2 (release_8.3.2-490-g157f91 @ /home/swflint/.emacs.d/org-mode/lisp/)]
>>>>> Nicolas Goaziou writes: NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes: >> I use habits, and until recently, there was a problem with habit >> repeaters. Now that this is fixed, there's a new problem. When I >> try to set a habit's TODO state to DONE, aside from correctly setting >> the SCHEDULED line, and the TODO state back to TODO, the logging is >> done incorrectly. >> >> The buffer starts out as so: * TODO Weekly Review SCHEDULED: >> <2016-01-17 Sun .+1w/2w> :PROPERTIES: :STYLE: habit :CREATED: >> <2015-12-21 Mon 17:42> :LAST_REPEAT: [2016-01-10 Sun 19:23] :END: - >> State "DONE" from "TODO" [2016-01-10 Sun 19:23] - State "DONE" from >> "TODO" [2016-01-02 Sat 00:05] - State "DONE" from "TODO" [2015-12-29 >> Tue 18:22] >> >> When I run C-c C-t d on the headline, changing the TODO state to >> DONE, the following occurs: >> >> - State "DONE" from "TODO" [2016-01-10 Sun 19:34] * TODO Weekly >> Review SCHEDULED: <2016-01-17 Sun .+1w/2w> :PROPERTIES: :STYLE: habit >> :CREATED: <2015-12-21 Mon 17:42> :LAST_REPEAT: [2016-01-10 Sun 19:34] >> :END: - State "DONE" from "TODO" [2016-01-10 Sun 19:23] - State >> "DONE" from "TODO" [2016-01-02 Sat 00:05] - State "DONE" from "TODO" >> [2015-12-29 Tue 18:22] >> >> I have no idea why this is. NG> FWIW I cannot reproduce it. Could you try again with a minimal NG> configuration? Sure, with emacs -q -Q, the same thing happens. I also get the following error: Error in post-command-hook (org-add-log-note): (error "Before first headline at position 1 in buffer test.org") I have absolutely no idea why this happens. NG> Regards, NG> -- Nicolas Goaziou Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
[O] Bug: Habit Logging in incorrect place [8.3.2 (release_8.3.2-490-g157f91 @ /home/swflint/.emacs.d/org-mode/lisp/)]
enu org-defkey [mouse-3] org-mouse-show-context-menu [down-mouse-3] org-mouse-move-tree-start [C-mouse-4] org-agenda-earlier [C-mouse-5] org-agenda-later [drag-mouse-3] #[(event) "\302!.\303 \304\"\203. \305\306!\202. \303 \307\"\205. \310\306!)\207" [event --cl-var-- org-mouse-get-gesture eql :left org-agenda-earlier 1 :right org-agenda-later] 3 nil "e"] ] 4] ) org-agenda-files '("/home/swflint/org/test.org" "/home/swflint/org/main.org" "/home/swflint/org/carnegie-books.org" "/home/swflint/org/recipes.org" "/home/swflint/org/dcm-notes.org" "/home/swflint/org/bookmarks.org" "/home/swflint/org/euler.org" "/home/swflint/org/snips.org" "/home/swflint/org/quotes.org" "/home/swflint/org/sicp.org" "/home/swflint/org/notes.org" "/home/swflint/org/college.org" "/home/swflint/org/travel-list.org" "/home/swflint/org/agenda.org" "/home/swflint/org/school.org" "/home/swflint/org/library.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-src-fontify-natively nil org-publish-project-alist '(("website" :base-directory "~/website/" :publishing-directory "/ssh:swfl...@flintfam.org:/var/web/samflint.com/test" :base-extension "org\\|png\\|\\jpg\\|css" :recursive t :auto-sitemap t :sitemap-title "Sitemap" :sitemap-filename "sitemap.org" :sitemap-sort-files (quote anti-chronologically) :htmlized-source t :publishing-function (org-html-publish-to-html org-publish-attachment) :exclude-tags t :section-numbers nil :html-head "http://www.pirilampo.org/styles/readtheorg/css/htmlize.css\"/>\nhttp://www.pirilampo.org/styles/readtheorg/css/readtheorg.css\"/>\n\nhttps://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"</a>;>\nhttps://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js\"</a>;>\nhttp://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js\"</a>;>\nhttp://www.pirilampo.org/styles/readtheorg/js/readtheorg.js\"</a>;>") ("cons-dev" :base-directory "~/cons-dev/" :publishing-directory "/ssh:swfl...@flintfam.org:/var/web/consultingdevelopers.info/test" :base-extension "org\\|png\\|\\jpg\\|css" :recursive t :auto-sitemap t :sitemap-title "Sitemap" :sitemap-filename "sitemap.org" :sitemap-sort-files (quote anti-chronologically) :htmlized-source t :publishing-function (org-html-publish-to-html org-publish-attachment) :exclude-tags t :section-numbers nil :html-head "http://www.pirilampo.org/styles/readtheorg/css/htmlize.css\"/>\nhttp://www.pirilampo.org/styles/readtheorg/css/readtheorg.css\"/>\n\nhttps://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"</a>;>\nhttps://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js\"</a>;>\nhttp://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js\"</a>;>\nhttp://www.pirilampo.org/styles/readtheorg/js/readtheorg.js\"</a>;>") ) org-after-todo-statistics-hook '(org-summary-todo) org-tag-alist '((:startgroup) ("work" . 119) ("school" . 115) ("home" . 104) (:endgroup) (:startgroup) ("projects" . 112) ("paper" . 114) ("misc" . 109) (:endgroup) (:startgroup) ("code" . 99) ("writing" . 119) ("other" . 111) (:endgroup) (:startgroup) ("noexport" . 88) ("export" . 120) (:endgroup) ("notes" . 110) ("nonum" . 78) ("drill" . 100) ("assignment" . 97) ("book" . 98) ("crypt" . 67)) ) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] Bug: Org Habits does not recalculate the "Scheduled:" line [8.3.2 (release_8.3.2-441-ga87dea @ /home/swflint/.emacs.d/org-mode/lisp/)]
>>>>> Nicolas Goaziou writes: NG> swfl...@flintfam.org (Samuel W. Flint) writes: >>>>>>> Nicolas Goaziou writes: >> NG> Hello, swfl...@flintfam.org (Samuel W. Flint) writes: >> >>>> I use Org's habit feature. I expect that when I mark a task such >>>> as the following as done: >>>> >>>> * TODO Weekly Review SCHEDULED: <2016-01-01 Fri .+1w/2w> >>>> :PROPERTIES: :STYLE: habit :END: >>>> >>>> The SCHEDULED line should change, to reflect the new date. As of >>>> right now, it doesn't, and instead, the SCHEDULED line is removed, >>>> rendering the "habit" useless. >> NG> I cannot reproduce your problem. Could you try again without any NG> configuration on your side ? >> >> I went ahead and tried that, no configuration other than (require >> 'org) and (require 'org-habit), and I had that same issue. I then >> tried removing my TODO states configuration (stored in the file), and >> still have the same problem. NG> Then I may be misunderstanding the issue. Would you mind describing NG> it step by step (as a sequence of small buffer contents and NG> keypresses) ? Sure. The buffer starts out like so: * TODO Weekly Review SCHEDULED: <2016-01-01 Fri .+1w/2w> :PROPERTIES: :STYLE:habit :END: With the point on any part of the headline, C-c C-t switches to DONE, and the SCHEDULED line is updated, as long as there isn't any customization of TODO states, and is updated to look like so: * TODO Weekly Review SCHEDULED: <2016-01-09 Sat .+1w/2w> :PROPERTIES: :STYLE:habit :LAST_REPEAT: [2016-01-02 Sat 15:14] :END: - State "DONE" from "TODO" [2016-01-02 Sat 15:14] If I have other TODO states setup, such as: #+TODO: TODO(t) WORKING(w) | DONE(d!) #+TODO: | CANCELED(c!) the SCHEDULED line is not updated, but rather removed. NG> Regards, Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
[O] Bug: Org Habits does not recalculate the "Scheduled:" line [8.3.2 (release_8.3.2-441-ga87dea @ /home/swflint/.emacs.d/org-mode/lisp/)]
+ASCII: ") ("i" "#+INDEX: ?") ("I" "#+INCLUDE: %file ?")) org-export-with-smart-quotes t org-babel-load-languages '((C . t) (calc . t) (dot . t) (emacs-lisp . t) (haskell . t) (latex . t) (lilypond . t) (lisp . t) (maxima . t) (octave . t) (ocaml . t) (perl . t) (plantuml . t) (python . t) (shell . t) (sql . t) (R . t)) org-reveal-start-hook '(org-decrypt-entry) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-agenda-mode-hook '(#[nil "\302\303 \304\305#\210\303 \306\307#\210\303 \310\311#\210\303 \312\313#\210\303 \314\315#\207" [org-mouse-context-menu-function org-agenda-mode-map org-mouse-agenda-context-menu org-defkey [mouse-3] org-mouse-show-context-menu [down-mouse-3] org-mouse-move-tree-start [C-mouse-4] org-agenda-earlier [C-mouse-5] org-agenda-later [drag-mouse-3] #[(event) "\302!\303 \304\"\203\305\306!\202\303 \307\"\205\310\306!)\207" [event --cl-var-- org-mouse-get-gesture eql :left org-agenda-earlier 1 :right org-agenda-later] 3 nil "e"] ] 4] #[nil "\302\303 \304\305#\210\303 \306\307#\210\303 \310\311#\210\303 \312\313#\210\303 \314\315#\207" [org-mouse-context-menu-function org-agenda-mode-map org-mouse-agenda-context-menu org-defkey [mouse-3] org-mouse-show-context-menu [down-mouse-3] org-mouse-move-tree-start [C-mouse-4] org-agenda-earlier [C-mouse-5] org-agenda-later [drag-mouse-3] #[(event) "\302!\303\304\"\203\305\306!\202\303 \307\"\205\310\306!)\207" [event --cl-var-- org-mouse-get-gesture eql :left org-agenda-earlier 1 :right org-agenda-later] 3 nil "e"] ] 4] ) org-agenda-files '("/home/swflint/org/main.org" "/home/swflint/org/carnegie-books.org" "/home/swflint/org/recipes.org" "/home/swflint/org/notes.org" "/home/swflint/org/college.org" "/home/swflint/org/travel-list.org" "/home/swflint/org/bookmarks.org" "/home/swflint/org/quotes.org" "/home/swflint/org/snips.org" "/home/swflint/org/agenda.org" "/home/swflint/org/sicp.org" "/home/swflint/org/school.org" "/home/swflint/org/library.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-src-fontify-natively nil org-after-todo-statistics-hook '(org-summary-todo) org-tag-alist '((:startgroup) ("work" . 119) ("school" . 115) ("home" . 104) (:endgroup) (:startgroup) ("projects" . 112) ("paper" . 114) ("misc" . 109) (:endgroup) (:startgroup) ("code" . 99) ("writing" . 119) ("other" . 111) (:endgroup) (:startgroup) ("noexport" . 88) ("export" . 120) (:endgroup) ("notes" . 110) ("nonum" . 78) ("drill" . 100) ("assignment" . 97) ("book" . 98) ("crypt" . 67)) ) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
[O] Bug: org-babel-tangle error. org-babel-get-header undefined [8.3.2 (release_8.3.2-317-gbd921f @ /home/swflint/.emacs.d/org-mode/lisp/)]
t;\205 \310\306!)\207" [event --cl-var-- org-mouse-get-gesture eql :left org-agenda-earlier 1 :right org-agenda-later] 3 nil "e"] ] 4] #[nil "\302\303 \304\305#\210\303 \306\307#\210\303 \310\311#\210\303 \312\313#\210\303 \314\315#\207" [org-mouse-context-menu-function org-agenda-mode-map org-mouse-agenda-context-menu org-defkey [mouse-3] org-mouse-show-context-menu [down-mouse-3] org-mouse-move-tree-start [C-mouse-4] org-agenda-earlier [C-mouse-5] org-agenda-later [drag-mouse-3] #[(event) "\302!\303\304\"\203 \305\306!\202 \303 \307\"\205 \310\306!)\207" [event --cl-var-- org-mouse-get-gesture eql :left org-agenda-earlier 1 :right org-agenda-later] 3 nil "e"] ] 4] ) org-agenda-files '("/home/swflint/.emacs.d/my-init.org" "/home/swflint/org/main.org" "/home/swflint/org/agenda.org" "/home/swflint/org/snips.org" "/home/swflint/org/music-stuff/music-theory-based-generation.org" "/home/swflint/org/bookmarks.org" "/home/swflint/org/notes.org" "/home/swflint/org/recipes.org" "/home/swflint/org/rules-application.org" "/home/swflint/org/school.org" "/home/swflint/org/sicp.org" "/home/swflint/org/quotes.org" "/home/swflint/org/my-notes.org" "/home/swflint/org/links.org" "/home/swflint/org/library.org" "/home/swflint/org/euler.org" "/home/swflint/org/esperanto.org" "/home/swflint/org/diary.org" "/home/swflint/org/derivatives.org" "/home/swflint/org/college.org") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-src-fontify-natively nil org-publish-project-alist '(("website" :base-directory "~/website/" :publishing-directory "/ssh:swfl...@flintfam.org:/var/web/samflint.com/test" :base-extension "org\\|png\\|\\jpg\\|css" :recursive t :auto-sitemap t :sitemap-title "Sitemap" :sitemap-filename "sitemap.org" :sitemap-sort-files (quote anti-chronologically) :htmlized-source t :publishing-function (org-html-publish-to-html org-publish-attachment) :exclude-tags t :section-numbers nil :html-head "http://www.pirilampo.org/styles/readtheorg/css/htmlize.css\"/>\nhttp://www.pirilampo.org/styles/readtheorg/css/readtheorg.css\"/>\n\nhttps://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"</a>;>\nhttps://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js\"</a>;>\nhttp://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js\"</a>;>\nhttp://www.pirilampo.org/styles/readtheorg/js/readtheorg.js\"</a>;>") ("cons-dev" :base-directory "~/cons-dev/" :publishing-directory "/ssh:swfl...@flintfam.org:/var/web/consultingdevelopers.info/test" :base-extension "org\\|png\\|\\jpg\\|css" :recursive t :auto-sitemap t :sitemap-title "Sitemap" :sitemap-filename "sitemap.org" :sitemap-sort-files (quote anti-chronologically) :htmlized-source t :publishing-function (org-html-publish-to-html org-publish-attachment) :exclude-tags t :section-numbers nil :html-head "http://www.pirilampo.org/styles/readtheorg/css/htmlize.css\"/>\nhttp://www.pirilampo.org/styles/readtheorg/css/readtheorg.css\"/>\n\nhttps://ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js\"</a>;>\nhttps://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js\"</a>;>\nhttp://www.pirilampo.org/styles/lib/js/jquery.stickytableheaders.js\"</a>;>\nhttp://www.pirilampo.org/styles/readtheorg/js/readtheorg.js\"</a>;>") ) org-after-todo-statistics-hook '(org-summary-todo) org-freemind-style-map-function 'org-freemind-style-map--automatic org-tag-alist '((:startgroup) ("work" . 119) ("school" . 115) ("home" . 104) (:endgroup) (:startgroup) ("projects" . 112) ("paper" . 114) ("misc" . 109) (:endgroup) (:startgroup) ("code" . 99) ("writing" . 119) ("other" . 111) (:endgroup) (:startgroup) ("noexport" . 88) ("export" . 120) (:endgroup) ("notes" . 110) ("nonum" . 78) ("drill" . 100) ("assignment" . 97) ("book" . 98) ("crypt" . 67)) ) -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] Bug: org-babel-tangle error. org-babel-get-header undefined [8.3.2 (release_8.3.2-317-gbd921f @ /home/swflint/.emacs.d/org-mode/lisp/)]
On Thu, November 12, 2015 11:36 am, Kyle Meyer wrote: > Hello, > > swfl...@flintfam.org (Samuel W. Flint) writes: > >> Hey all! >> >> In an attempt to keep my config file organized, I've been using org. As >> of a fairly recent update, when I tangle the document (C-c C-v C-t), I >> get the following error "Symbol's function definition is void: >> org-babel-get-header". I have no idea why this is happening. I've >> attached a backtrace. >> >> TIA, >> >> Sam > > In your org-babel-do-load-languages call, try to changing > > (sh . t) > > to > > (shell . t) > > -- > Kyle > > I went ahead and tried that. I still get that error. Thanks, Sam
[O] Repeat only a certain number of times
I was wondering, is there a way to set a date-stamp so that it only repeats a certain number of times? If not, what would it take to add it? Thanks, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s
Re: [O] org-element approach to modify or add ID to every headline
Grant Rettke g...@wisdomandwonder.com writes: On Sun, Aug 9, 2015 at 2:44 AM, Nicolas Goaziou m...@nicolasgoaziou.fr wrote: Anyway, the following should do: That works perfectly. Thank you. Tempted to run it in a on-save hook just to ensure that the document *always* has IDs. At least for tangle comments. You might try setting `org-id-link-to-org-use-id' to either t or 'create-if-interactive. I believe I have it set to t, and I get ids generated when I tangle. HTH, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.s s) λs.s s signature.asc Description: PGP signature
Re: [O] records/diary/journal?
Peter Davis p...@pfdstudio.com writes: Over time, I keep finding more and more uses for org-mode. It's now my main tool for keeping an agenda/todo list, and for writing informal documents including images, GraphViz diagrams, etc. And I still haven't scratched the surface. Years ago, I used records-mode as a quick way to keep notes about what I did each day, so I could refer to them later. I haven't found an org-mode substitute for that. Is there some feature of combination of features that let's me enter notes arranged by date, create links to earlier notes referencing the same terms, etc.? Capture! This is what it's meant for! I'd use the Date-tree style templates. And don't forget about tags/categories for searching. Thank you. -pd HTH, Sam -- Samuel W. Flint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) (λs.(s s) λs.(s s)) signature.asc Description: PGP signature
Re: [O] [OT] wildcards in autocorrect?
There's something on endless parentheses that will let you generate a correction abbrev with a keystroke. Samuel W. Flint Please forgive any typos as this was composed on a screen keyboard. On Mar 28, 2015, at 9:19 AM, Matt Price mopto...@gmail.com wrote: I make a lot of typing errors (I have an injury to one hand, which impedes bilateral cooperation). In Libreoffice I am able to define wildcard autocorrect objects, e.g.: oc.* --- co.* This will correct ocrrect, ocmputer, ocndition, etc. Does anyone know a way to do something similar in Emacs? Right now I am using abbrev mode and defining my errors one by one -- it is a very slow process since I make so many mistakes and have a moderately large vocabulary. I am sure this is possible somehow, I just don't know how. thanks as always, m
Re: [O] How to extract raw link and description from the link element?
Marcin Borkowski mb...@wmi.amu.edu.pl writes: Hi all, so I have this: [[file:whatever.org][Some link]] How do I extract bith parts of this link programmatically? My use case is that I have an Org tree of links, and I want to export them to certain XML format. TIA, Have you considered a custom exporter? Just a little thought. Sam -- Samuel W. Flint swfl...@flintfam.org (402) 517-8468 XMPP freenode: swflint http://flintfam.org/~swflint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) The most dangerous phrase in the language is, 'We've always done it this way'. -- Grace Hopper
Re: [O] How to extract raw link and description from the link element?
Marcin Borkowski mb...@wmi.amu.edu.pl writes: On 2015-02-24, at 21:50, Samuel W. Flint swfl...@flintfam.org wrote: Marcin Borkowski mb...@wmi.amu.edu.pl writes: Hi all, so I have this: [[file:whatever.org][Some link]] How do I extract bith parts of this link programmatically? My use case is that I have an Org tree of links, and I want to export them to certain XML format. TIA, Have you considered a custom exporter? Just a little thought. That's exactly what I'm writing. It just hadn't occured to me to use the parsed version in the element tree – I just concentrated on exporting the headlines (which contain the links). Stupid me. Thanks for this (obvious) tip! You are welcome! Glad I could help! Sam -- Samuel W. Flint swfl...@flintfam.org (402) 517-8468 XMPP freenode: swflint http://flintfam.org/~swflint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) The most dangerous phrase in the language is, 'We've always done it this way'. -- Grace Hopper
[O] Including files, a question
When including org files, is there a way to ignore the #+TITLE: directives, and such? I have several separate org files, which contain different things, which can be kept separate, but would also be nice together, and would like to only have a single title. Is there any way to do this? Thanks. Sam -- Samuel W. Flint swfl...@flintfam.org (402) 517-8468 XMPP swfl...@teamlogicomaha.com(402) 431-2755 x215 XMPP freenode: swflint http://flintfam.org/~swflint 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) The most dangerous phrase in the language is, 'We've always done it this way'. -- Grace Hopper pgpAApKK7LmjD.pgp Description: PGP signature
Re: [O] How can I autorun M-x linum-mode when file is opened?
On 10 Aug 2014, Sharon Kimble wrote: [Edited for the sake of brevity] How can I have a command auto-run when a file is opened from 'desktop recovery' please? I want to auto-run M-x linum-mode when I open my daily journal, which stays open all the time. Running that command will switch off linum-mode for that file, which may stop file-rot that I have observed in the past. This can, at present, only be resolved by shutting down emacs for half an hour or so, and then restarting it, and normal functionality will have been restored. Have you considered using a hook? That is what they are for, and generally, I’ve found that linum mode in an org file can be annoying, so in my init file I have =(add-hook ‘org-mode-hook #’(lambda () (linum-mode -1)))=, and, while I have Linum on globally, this disables it for all org mode files. Sam -- Samuel W. Flint swfl...@flintfam.org (402) 517-8468 XMPP sip: swfl...@ekiga.net http://flintfam.org/~swflint http://samflint.com 4096R/266596F4 (9477 D23E 389E 40C5 2F10 DE19 68E5 318E 2665 96F4) Why is this email likely less than five sentences? http://five.sentenc.es pgpmH4z4gapCl.pgp Description: PGP signature
Re: [O] Using MobileOrg w/ Dropbox from multiple systems
On Mon, February 24, 2014 4:18 pm, Brian Whitehead wrote: I'm finally spending some time trying to implement using org-mode and mobileorg. I need to use it from multiple systems. Does anyone have some recommendations on doing this? The issues I can see are having to sync the files between the ~/Dropbox/Apps/MobileOrg/ directory âand ~/org/ directories on different systems. I want to be able to carry a laptop to a meeting and take notes, then go back to my desk and use a desktop with multiple screens for efficiency. For this to work, any changes made on one system have to be pushed to the dropbox folder and then pulled in to the ~/org/ folder on the other system. Keep both the mobileorg and normal org files in dropbox. MobileOrg syncs with your phone, not your computers. âAny insights or recommendations would be appreciated. Thanks, Brianâ -- Sam Flint swfl...@flintfam.org freenode: swflint (402) 517-8468 http://flintfam.org/~swflint BAFBF3FF
[O] Timestamp repeaters
I've been looking through the manual about timestamp repeaters, and I see no way of specifying it repeating only a certain number of times. Is there a way to do this? Sam -- Sam Flint swfl...@flintfam.org freenode: swflint (402) 517-8468 http://flintfam.org/~swflint BAFBF3FF
Re: [O] Most Recent Org Update
On Mon, November 4, 2013 1:59 pm, Achim Gratz wrote: Sam Flint writes: I pulled org from git just now, restarted Emacs, and got this error: Symbol's function definition is void: org-element-chache reset Any ideas why? You probably meant to type org-element-cache-reset... my guess is you didn't actually re-load Org after the Git pull. No, org-element-cache-reset isn't even in my .emacs. And yes, I did reload org, I did say I restarted emacs, now, didn't I? Sam -- Sam Flint swfl...@flintfam.org freenode: swflint (402) 517-8468 http://flintfam.org/~swflint BAFBF3FF
Re: [O] Most Recent Org Update
On Mon, November 4, 2013 7:13 pm, Samuel W. Flint wrote: On Mon, November 4, 2013 1:59 pm, Achim Gratz wrote: Sam Flint writes: I pulled org from git just now, restarted Emacs, and got this error: Symbol's function definition is void: org-element-chache reset Any ideas why? You probably meant to type org-element-cache-reset... my guess is you didn't actually re-load Org after the Git pull. No, org-element-cache-reset isn't even in my .emacs. And yes, I did reload org, I did say I restarted emacs, now, didn't I? I neglected to mention the fact that switching to the maint branch fixed the problem. Sam -- Sam Flint swfl...@flintfam.org freenode: swflint (402) 517-8468 http://flintfam.org/~swflint BAFBF3FF