[O] Org headings to HTML or Latex table?

2019-07-08 Thread Jay Iyer
Hi, would it be possible to collect org headlines/subtrees into a format
that allows for HTML or Latex tabular output (C-c C-e h or l)?  Is there
anything out-of-the-box that can be used for this?

Recently, Sacha Chua offered a way to collect headlines into a simple 2x2
HTML table (
sachachua.com/blog/2019/06/turning-an-org-mode-outline-into-an-html-table-with-a-column-for-more-notes/)
and I am curious whether this can be extended for any arbitrary table grid?

IMHO, the primary benefit of exporting trees this way could be to
accommodate the need for multi-line tables.

Thanks for your help.
-jay


[O] Applescript help

2017-11-11 Thread Jay Iyer
Hi, in my Org workflow, I am trying to use the do-applescript function to
hide an active Emacs session.  Can you tell me what I am doing wrong with
the following that I think should work but is not?  Thanks. -jay

(do-applescript "tell application \"Finder\" set visible of application
process \"Emacs\" to false")


Re: [O] Org-refile error - wrong # of arguments

2017-02-26 Thread Jay Iyer
Thanks a lot.  There was some leftover code in my .init file that caused
this weirdness and all is functional now.
I appreciate your prompt response.
-jay


On Sun, Feb 26, 2017 at 1:07 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Jay Iyer <jayiye...@gmail.com> writes:
>
> > Hi, since this morning I have been running into
> > a (wrong-number-of-arguments (0 . 1) 2) error while re-filing.  This is
> new
> > behavior, the Mac setup is unchanged, and I am unable to find a solution
> so
> > I am hoping you can point me in the right direction to fix this.  The
> > backtrace is pasted below.  Thanks, -jay
> >
> >>>>>>>>>>>>
> > Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 1) 2)
> >   org-refile-get-targets(nil nil)
> >   (setq org-refile-target-table (org-refile-get-targets default-buffer
> > excluded-entries))
>
> This code doesn't exist in actual code base. You may be experiencing
> a side-effect of a mixed installation. If that is the case, you can try
> to update Org in an otherwise clean environment (i.e., no other Org
> loaded whatsoever).
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Org-refile error - wrong # of arguments

2017-02-25 Thread Jay Iyer
Hi, since this morning I have been running into
a (wrong-number-of-arguments (0 . 1) 2) error while re-filing.  This is new
behavior, the Mac setup is unchanged, and I am unable to find a solution so
I am hoping you can point me in the right direction to fix this.  The
backtrace is pasted below.  Thanks, -jay

>>>
Debugger entered--Lisp error: (wrong-number-of-arguments (0 . 1) 2)
  org-refile-get-targets(nil nil)
  (setq org-refile-target-table (org-refile-get-targets default-buffer
excluded-entries))
  (let ((org-refile-targets org-refile-targets)
(org-refile-use-outline-path org-refile-use-outline-path) excluded-entries)
(if (and (derived-mode-p (quote org-mode)) (not org-refile-use-cache) (not
no-exclude)) (progn (org-map-tree (function (lambda nil (setq
excluded-entries (append excluded-entries ...))) (setq
org-refile-target-table (org-refile-get-targets default-buffer
excluded-entries)))
  org-refile-get-location("Refile subtree \"Heading 3a\" to" nil confirm)
  org-refile(nil)
  funcall-interactively(org-refile nil)
  call-interactively(org-refile nil nil)
  command-execute(org-refile)


[O] Code block eval scope - subtree only option ignored

2017-02-24 Thread Jay Iyer
Hi, evaluating a simple elisp code block in a subtree, called with C-c C-v
C-s or just C-c C-C, evaluates the entire Org buffer.  Is this expected
behavior?
How can I force the eval on the visible portion (with narrowing) of the
tree only?
Thanks,
-jay


Re: [O] Org-capture fails in Org 9.05

2017-02-16 Thread Jay Iyer
Thank you for pointing out the error source.  Capture is functional now.
-jay

On Wed, Feb 15, 2017 at 11:23 PM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> Jay Iyer <jayiye...@gmail.com> writes:
>
>
> > new Mac and encountered an error that prevents org-capture to complete
> the
> > refiling step.  I have attached a backtrace here for your review.
> > Please let me know if this is an installation error of some kind and how
> I
> > can fix it.
> >
> > ps: highly satisfied Org-moder for 4+ years now, haven't touched any
> other
> > organizer all that time!
> > Debugger entered--Lisp error: (void-function org-inhibit-invisibility)
>
> This function doesn't exist in the Org code base.
>
> >   (org-inhibit-invisibility)
>
> [...]
>
> >   wicked/org-update-checkbox-count(nil)
>
> You might want to look into this extension.
>
> Regards,
>
> --
> Nicolas Goaziou
>


[O] Org-capture fails in Org 9.05

2017-02-15 Thread Jay Iyer
Hi,
I installed Emacs 25.1 (Org 9.05 is built in to this version for Mac) on a
new Mac and encountered an error that prevents org-capture to complete the
refiling step.  I have attached a backtrace here for your review.
Please let me know if this is an installation error of some kind and how I
can fix it.
Thanks,
-jay

ps: highly satisfied Org-moder for 4+ years now, haven't touched any other
organizer all that time!
Debugger entered--Lisp error: (void-function org-inhibit-invisibility)
  (org-inhibit-invisibility)
  (let* ((buffer-invisibility-spec (org-inhibit-invisibility)) (beg 
(condition-case nil (progn (outline-back-to-heading) (point)) (error 
(point-min (end (move-marker (make-marker) (progn (or 
(outline-get-next-sibling) (goto-char (point-max))) (point (re 
"\\(\\[[0-9]*%\\]\\)\\|\\(\\[[0-9]*/[0-9]*\\]\\)") (re-box "^[
]*\\(*+\\|[-+*]\\|[0-9]+[.)]\\) +\\(\\[[- X]\\]\\)") b1 e1 f1 c-on c-off lim 
(cstat 0)) (if all (progn (goto-char (point-min)) (or 
(outline-get-next-sibling) (goto-char (point-max))) (setq beg (point) end 
(point-max (goto-char beg) (while (re-search-forward re end t) (setq cstat 
(1+ cstat) b1 (match-beginning 0) e1 (match-end 0) f1 (match-beginning 1) lim 
(cond ((org-on-heading-p) (or (outline-get-next-sibling) (goto-char 
(point-max))) (point)) ((org-at-item-p) (org-end-of-item) (point)) (t nil)) 
c-on 0 c-off 0) (goto-char e1) (if lim (progn (while (re-search-forward re-box 
lim t) (if (member (match-string 2) (quote ...)) (setq c-off (1+ c-off)) (setq 
c-on (1+ c-on (goto-char b1) (insert (if f1 (format "[%d%%]" (/ ... ...)) 
(format "[%d/%d]" c-on (+ c-on c-off (and (looking-at "\\[.*?\\]") 
(replace-match "") (if (interactive-p) (progn (message "Checkbox statistics 
updated %s (%d places)" (if all "in entire file" "in current outline entry") 
cstat
  (save-excursion (let* ((buffer-invisibility-spec (org-inhibit-invisibility)) 
(beg (condition-case nil (progn (outline-back-to-heading) (point)) (error 
(point-min (end (move-marker (make-marker) (progn (or 
(outline-get-next-sibling) (goto-char ...)) (point (re 
"\\(\\[[0-9]*%\\]\\)\\|\\(\\[[0-9]*/[0-9]*\\]\\)") (re-box "^[
]*\\(*+\\|[-+*]\\|[0-9]+[.)]\\) +\\(\\[[- X]\\]\\)") b1 e1 f1 c-on c-off lim 
(cstat 0)) (if all (progn (goto-char (point-min)) (or 
(outline-get-next-sibling) (goto-char (point-max))) (setq beg (point) end 
(point-max (goto-char beg) (while (re-search-forward re end t) (setq cstat 
(1+ cstat) b1 (match-beginning 0) e1 (match-end 0) f1 (match-beginning 1) lim 
(cond ((org-on-heading-p) (or (outline-get-next-sibling) (goto-char ...)) 
(point)) ((org-at-item-p) (org-end-of-item) (point)) (t nil)) c-on 0 c-off 0) 
(goto-char e1) (if lim (progn (while (re-search-forward re-box lim t) (if 
(member ... ...) (setq c-off ...) (setq c-on ...))) (goto-char b1) (insert (if 
f1 (format "[%d%%]" ...) (format "[%d/%d]" c-on ...))) (and (looking-at 
"\\[.*?\\]") (replace-match "") (if (interactive-p) (progn (message 
"Checkbox statistics updated %s (%d places)" (if all "in entire file" "in 
current outline entry") cstat)
  wicked/org-update-checkbox-count(nil)
  ad-Advice-org-update-checkbox-count((closure (t) ( all) "Update the 
checkbox statistics in the current section.\n\nThis will find all statistic 
cookies like [57%] and [6/12] and\nupdate them with the current 
numbers.\n\nWith optional prefix argument ALL, do this for the whole buffer." 
(interactive "P") (save-excursion (save-restriction (widen) (let* ((cookie-re 
"\\(\\(\\[[0-9]*%\\]\\)\\|\\(\\[[0-9]*/[0-9]*\\]\\)\\)") (box-re "^[ 
]*\\([-+*]\\|\\([0-9]+\\|[A-Za-z]\\)[.)]\\)[
]+\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][   ]*\\)?\\(\\[[- 
X]\\]\\)") (recursivep (or ... ...)) (within-inlinetask (and ... ... ...)) (end 
(cond ... ... ...)) (count-boxes (function ...)) cookies-list cache) (cond (all 
(goto-char ...)) (within-inlinetask (org-back-to-heading t)) (t (progn ... ... 
... ... ...))) (while (re-search-forward cookie-re end t) (let (...) (if ... 
...))) (let ((--dolist-tail-- cookies-list)) (while --dolist-tail-- (let ... 
... ...
  apply(ad-Advice-org-update-checkbox-count (closure (t) ( all) 
"Update the checkbox statistics in the current section.\n\nThis will find all 
statistic cookies like [57%] and [6/12] and\nupdate them with the current 
numbers.\n\nWith optional prefix argument ALL, do this for the whole buffer." 
(interactive "P") (save-excursion (save-restriction (widen) (let* ((cookie-re 
"\\(\\(\\[[0-9]*%\\]\\)\\|\\(\\[[0-9]*/[0-9]*\\]\\)\\)") (box-re "^[   
]*\\([-+*]\\|\\([0-9]+\\|[A-Za-z]\\)[.)]\\)[
]+\\(?:\\[@\\(?:start:\\)?\\([0-9]+\\|[A-Za-z]\\)\\][   ]*\\)?\\(\\[[- 
X]\\]\\)") (recursivep (or ... ...)) (within-inlinetask (and ... ... ...)) (end 
(cond ... ... ...)) (count-boxes (function ...)) cookies-list cache) (cond (all 
(goto-char ...)) (within-inlinetask (org-back-to-heading t)) (t (progn ... ... 
... ... ...))) (while (re-search-forward 

[O] Computing dates in properties?

2016-07-07 Thread Jay Iyer
Hi,
Is it possible to perform simple calculations in properties like in the
example below?  If so, please provide pointers.
Thanks,
-jay

** Headline 1
:PROPERTIES:
:CUSTOM_ID: headline_1
:DATE: [2016-07-07 Thu]
:END:

** Headline 2
:PROPERTIES:
:CUSTOM_ID: headline_2
*:DATE: [date from headline 1 + 3 days]*
:END:


[O] Archive search non-functional

2015-03-02 Thread Jay Iyer
Hi, are others able to search through the emacs-orgmode archives?  For some
reason, I haven't been able to search for the last several days.  Any
thoughts?
Thanks.
-jay


[O] Agenda capture possible to specific headlines?

2015-01-06 Thread Jay Iyer
Hi,
Is there a way to capture tasks/notes to a *specific headline* from the
agenda buffer?  I use the k command to invoke capture templates, and it
would be super helpful/efficient to create additional sub-headlines to a
headline presented in the agenda buffer.
Thank you for your time and ideas.
-jay


Re: [O] How to extract TODOs from date-tree

2014-10-29 Thread Jay Iyer
Thorsten Jolitz address@hidden writes:

* Jay Iyer address@hidden writes:*

* Hi Thorsten,*
* The file entries are as follows and the task/note/project sub-heads *
* generally don't have active/inactive timestamps except when a *
* scheduling/deadline is specified.  Thanks.*
* ** 2014-10 October*
* *** 2014-10-01 Wednesday*
*  TODO first task*
*  General note entry*
*  Project  :prj:*

* I just read the term 'datetree' again in another post, maybe I'm not*
* up-to-date and it is idiomatic Org-mode use, then sorry for the noise ...*

I don't think it's well documented (I couldn't find a reference in the
manual) or well supported. org-capture does provide for it (see the doc
for org-capture-templates) but afaict that's the only significant use of
it - org-agend uses it for diary-related stuff and org-archive has to be
able to archive it and that's it. The (rather thin) support for it is in
org-datetree.el.

If there are use cases out there, it might be worth collecting them and
then thinking about how to support them better. If there aren't, maybe
it should be thrown out.

-- 
Nick


I think removing support for date tree would be very disruptive, at
least for me. Datetree is the fundamental structure of my Org files (I
have two Org files: work and a personal journal) as I use capture
templates for almost everything with the captured items filed neatly
in the date trees and this structure provides a better sense of life
flow for me.  I rely on Agenda and sparse trees to extract the
info/tasks/projects list.  Please keep date tree intact.  Thank you.

-jay


On Tue, Oct 28, 2014 at 9:54 AM, Jay Iyer jayiye...@gmail.com wrote:

 Hi Thorsten,

 The file entries are as follows and the task/note/project sub-heads generally 
 don't have active/inactive timestamps except when a scheduling/deadline is 
 specified.  Thanks.

 ** 2014-10 October

 *** 2014-10-01 Wednesday

  TODO first task

  General note entry

  Project  :prj:


 Jay Iyer address@hidden writes:

 Hi,
 * I have my Org files set up as date-trees containing a mix of notes,*
 * tasks and projects. I now have a need to generate a list of projects*
 * and tasks filed under specific date-tree or in a range of dates. Is it*
 * possible to get this listing from the date-trees if the entries*
 * themselves don't have date/time in timestamps or in properties*
 * settings? I couldn't find a solution in the archives. Please advise.*
 * Thank you.*

 what is a date tree? This:

 ,
 | *  2014-10-28 Di
 `

 ?

 If the date-tree is the parent and has a timestamp, then the entries
 are part of the contents of parent, and you can use this function to
 map over the parents

 ,[ C-h f org-element-map RET ]
 | org-element-map is a compiled Lisp function in `org-element.el'.
 |
 | (org-element-map DATA TYPES FUN optional INFO FIRST-MATCH
 | NO-RECURSION WITH-AFFILIATED)
 |
 | Map a function on selected elements or objects. [...]
 `

 and this to get their contents

 ,[ C-h f org-element-contents RET ]
 | org-element-contents is a compiled Lisp function in `org-element.el'.
 |
 | (org-element-contents ELEMENT)
 |
 | Extract contents from an ELEMENT.
 `

 and then 'org-element-property' and 'org-element-put-property' to get
 and set timestamp info from the parent and any other info from the child
 entries.

 --
 cheers,
 Thorsten



 On Tue, Oct 28, 2014 at 8:53 AM, Jay Iyer jayiye...@gmail.com wrote:

 Hi,
 I have my Org files set up as date-trees containing a mix of notes, tasks
 and projects.  I now have a need to generate a list of projects and tasks
 filed under specific date-tree or in a range of dates.  Is it possible to
 get this listing from the date-trees if the entries themselves don't have
 date/time in timestamps or in properties settings?  I couldn't find a
 solution in the archives.  Please advise.
 Thank you.
 -jay





[O] How to extract TODOs from date-tree

2014-10-28 Thread Jay Iyer
Hi,
I have my Org files set up as date-trees containing a mix of notes, tasks
and projects.  I now have a need to generate a list of projects and tasks
filed under specific date-tree or in a range of dates.  Is it possible to
get this listing from the date-trees if the entries themselves don't have
date/time in timestamps or in properties settings?  I couldn't find a
solution in the archives.  Please advise.
Thank you.
-jay


Re: [O] How to extract TODOs from date-tree

2014-10-28 Thread Jay Iyer
Hi Thorsten,

The file entries are as follows and the task/note/project sub-heads
generally don't have active/inactive timestamps except when a
scheduling/deadline is specified.  Thanks.

** 2014-10 October

*** 2014-10-01 Wednesday

 TODO first task

 General note entry

 Project  :prj:


Jay Iyer address@hidden writes:

Hi,
* I have my Org files set up as date-trees containing a mix of notes,*
* tasks and projects. I now have a need to generate a list of projects*
* and tasks filed under specific date-tree or in a range of dates. Is it*
* possible to get this listing from the date-trees if the entries*
* themselves don't have date/time in timestamps or in properties*
* settings? I couldn't find a solution in the archives. Please advise.*
* Thank you.*

what is a date tree? This:

,
| *  2014-10-28 Di
`

?

If the date-tree is the parent and has a timestamp, then the entries
are part of the contents of parent, and you can use this function to
map over the parents

,[ C-h f org-element-map RET ]
| org-element-map is a compiled Lisp function in `org-element.el'.
|
| (org-element-map DATA TYPES FUN optional INFO FIRST-MATCH
| NO-RECURSION WITH-AFFILIATED)
|
| Map a function on selected elements or objects. [...]
`

and this to get their contents

,[ C-h f org-element-contents RET ]
| org-element-contents is a compiled Lisp function in `org-element.el'.
|
| (org-element-contents ELEMENT)
|
| Extract contents from an ELEMENT.
`

and then 'org-element-property' and 'org-element-put-property' to get
and set timestamp info from the parent and any other info from the child
entries.

-- 
cheers,
Thorsten



On Tue, Oct 28, 2014 at 8:53 AM, Jay Iyer jayiye...@gmail.com wrote:

 Hi,
 I have my Org files set up as date-trees containing a mix of notes, tasks
 and projects.  I now have a need to generate a list of projects and tasks
 filed under specific date-tree or in a range of dates.  Is it possible to
 get this listing from the date-trees if the entries themselves don't have
 date/time in timestamps or in properties settings?  I couldn't find a
 solution in the archives.  Please advise.
 Thank you.
 -jay



[O] How to export to S5 HTML presentation

2014-09-27 Thread Jay Iyer
Hi,
I would like to use the S5 backend for HTML presentations but I am not able
to figure out how: (1) to set up headlines for incremental slide builds and
(2) to add speaker notes.  I spent a lot of time on the mailing list
archive and other places but couldn’t find clear instructions on what
property values and/or tags are needed on the headlines and their
subheadings.  Are there any additional exporter settings needed in the
buffer?  I am using Org 8.2.5h on Emacs 24.3.1 (Apple build) and the built
in exporter engines.
Thank you in advance to this wonderful community.
-jay