[BUG] Capture fails condition-case: Capture template ‘i’: Wrong type argument: sequencep, org-display-buffer-split [9.6.15 (release_9.6.15 @ /home/torysa/emacs/.emacs.d/straight/build/org/)]

2024-05-03 Thread Tory S. Anderson


When I select any capture command, most crucially including the one from my 
gnus emails and most simply just my save my own text, I am blocked by the error

Capture template ‘i’: Wrong type argument: sequencep, org-display-buffer-split 
[9.6.15 (release_9.6.15 @ /home/torysa/emacs/.emacs.d/straight/build/org/)]

the template that causes the above error is this:

("i" "Icebox" entry (file+olp+datetree "~/org/icebox.org") "* TODO %U 
%^{prompt} %^g\n%?" :prepend t)

However, I seem to receive the same error on the rest of them.


 https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.




Emacs  : GNU Emacs 29.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.41, 
cairo version 1.18.0)
Package: Org mode version 9.6.15 (release_9.6.15 @ 
/home/torysa/emacs/.emacs.d/straight/build/org/)

current state:
==
(setq
 org-special-ctrl-o nil
 org-link-elisp-confirm-function 'yes-or-no-p
 org-agenda-diary-file "~/org/agenda.org"
 org-directory "~/org/"
 org-agenda-skip-deadline-prewarning-if-scheduled t
 org-agenda-start-with-clockreport-mode t
 org-bibtex-headline-format-function 'org-bibtex-headline-format-default
 org-agenda-custom-commands '(("l" . "schooL")
  ("ld" "schooL Day"
   ((agenda ""
 ((org-agenda-span 1) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset '("+:CLASS:" 
"-:TSA:")))
 )
)
   nil)
  ("lw" "schooL Week"
   ((agenda ""
 ((org-agenda-span 7) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset '("+:CLASS:" 
"-:TSA:")))
 )
)
   nil)
  ("lm" "schooL Month"
   ((agenda ""
 ((org-agenda-span 'month) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset '("+:CLASS:" 
"-:TSA:")))
 )
)
   nil)
  ("p" . "Priesthood")
  ("pd" "Priesthood Day"
   ((agenda ""
 ((org-agenda-span 1) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:PRIESTHOOD:" "-:TSA:")))
 )
)
   nil)
  ("pw" "Priesthood Week"
   ((agenda ""
 ((org-agenda-span 7) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:PRIESTHOOD:" "-:TSA:")))
 )
)
   nil)
  ("pm" "Priesthood Month"
   ((agenda ""
 ((org-agenda-span 'month) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:PRIESTHOOD:" "-:TSA:")))
 )
)
   nil)
  ("w" . "Work")
  ("wd" "Work Day"
   ((agenda ""
 ((org-agenda-span 1) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:ODH:\\|:AGENDA:\\|:CONFERENCE:" "-:TSA:\\|:PRIESTHOOD:")))
 )
)
   nil)
  ("ww" "Work Week"
   ((agenda ""
 ((org-agenda-span 7) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:ODH:\\|:AGENDA:\\|:CONFERENCE:" "-:TSA:\\|:PRIESTHOOD:")))
 )
)
   nil)
  ("wm" "Work Month"
   ((agenda ""
 ((org-agenda-span 'month) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:ODH:\\|:AGENDA:\\|:CONFERENCE:" "-:TSA:\\|:PRIESTHOOD:")))
 )
)
   nil)
 

Re: Tableofcontents

2024-01-13 Thread Tory S. Anderson
I was unaware of latexmk; installing now! Thanks! sad that the original problem 
is not helped by it, though.

Ihor Radchenko  writes:

> web...@toryanderson.com (Tory S. Anderson) writes:
>
>> I don't run the cutting-edge org, but I often have to run my export twice to 
>> get things like page numbers correct. Maybe it's not ideal, but if you run 
>> the export a second time does it change the result?
>
> When available, Org mode uses latexmk, which takes care about running
> LaTeX as many times as necessary.
>
> In this particular case, latexmk is used. The problem is with LaTeX
> throwing critical errors. Critical enough to not produce pdf in one of
> the iterations.



Re: Diary sexp and comparing dates, agenda

2024-01-12 Thread Tory S. Anderson
I don't have an answer -- my own use of diary-sexp is nothing more than 
standard holiday inclusion -- but I'm interested and watching for answers on 
the list. I personally didn't know that you could do such calculations the way 
you are, such as "too close to DATE", so I'm impressed!

- Tory



Re: Tableofcontents

2024-01-12 Thread Tory S. Anderson
Horst Leps  writes:

> (I use Emacs 28, Mac-Mini Apple M2, Sonoma 14.2.1)
> Since a few days: Orgmode export to Latex only creates one Latex run, so that 
> the table of contents remains empty and no longer shows any sections. -
> What to do? Horst

I don't run the cutting-edge org, but I often have to run my export twice to 
get things like page numbers correct. Maybe it's not ideal, but if you run the 
export a second time does it change the result?

- Tory



Re: is it possible to choose a completion engine?

2023-05-23 Thread Tory S. Anderson
Ah! Turns out I rely on the Fast completion more than I realized; I am used to 
hitting "t p" from the agenda to tag an item with a custom status I've created, 
as you guessed in your message. But untouched was the type of key-menu I really 
want to hide when, for example, I hit =C-c a= =org-agenda= and get a menu of 
agenda options to choose from, or =(org-clock-goto '(4))= and I get a big 
indexed list of clock items. I don't mind keeping the fast keys, but would love 
for the big screens of options to go away. The =org-use-fast-todo-selection= 
and =org-use-fast-tag-selection= variables do not effect the method used for 
those big index screens, which are the ones I actually care about and would 
like to use with standard completion.

Ihor Radchenko  writes:

> web...@toryanderson.com (Tory S. Anderson) writes:
>
>> Org currently stands out from my workflow because it does completions its 
>> own way, with lists and number/letter keys. It would be nice if I could 
>> instead have the benefit of vertico, or helm, or whatever else instead. Org 
>> would even benefit from marginalia and embark in some cases. Is there an 
>> easy variable I'm missing to make org use completing-reads instead of the 
>> indexing thing it does?
>
> This is because you customized your tags/todo keywords to have a quick
> key binding to set. By default, Org uses custom "fast" interface for
> completion in such cases. You can either remove the bindings to
> explicitly set `org-use-fast-tag-selection' and/or
> `org-use-fast-todo-selection' to nil.



Re: is it possible to choose a completion engine?

2023-05-23 Thread Tory S. Anderson
Samuel Wales  writes:

> i guess menu selection is a kind of completion and frameworks coud be
> used also.  a big thing for me that works with ido and ido-hacks and
> ido-clever-match is olpath completion for refile-goto and refile.

Thank you for the recommendation! I've never tried ido, having gone from Helm 
to Avy/Ivy to Selectrum to Vertico. IIRC, ido is built in to emacs, right? So 
that would be a big plus. It sounds like it finds a sweetspot for you.



is it possible to choose a completion engine?

2023-05-20 Thread Tory S. Anderson
Org currently stands out from my workflow because it does completions its own 
way, with lists and number/letter keys. It would be nice if I could instead 
have the benefit of vertico, or helm, or whatever else instead. Org would even 
benefit from marginalia and embark in some cases. Is there an easy variable I'm 
missing to make org use completing-reads instead of the indexing thing it does?

Thanks!
- Tory



Re: Org-mode notes about school lessons

2023-02-24 Thread Tory S. Anderson
Sébastien Gendre  writes:

> Hello everyone,
>
> I used Org-mode for taking notes in some school lessons, but it was a
> bit chaotic. I try to make it more efficient, easy to navigate and
> manage.
I used org notes heavily through more than two school degrees, and loved it. 
Definitely a sweet-spot in org use-cases.

> * What I need
You have a pretty comprehensive list of needs; that is a lot of useful 
information. 

>
> Secondly, I need a quick view on the week lessons schedule: For each day,
> what lesson I have, when and where.
I live in org agenda, even now. You can filter it by tag/keyword easily by =C-c 
/=, removing filters with =|= (pipe). Don't forget to add your class to the 
agenda list with =org-agenda-file-to-front= (C-x [)
>
> thirdly, I need to manage the projects that teachers ask us to do. With 
> deadlines.
Agenda is made for this. Just add a TODO to the headline =C-c C-t t= (org-todo) 
#+DEADLINE: =C-c d= (org-deadline) timestamp and see it in your agenda. You can 
modify how the notifications come for it. Also, make liberal use of org tags 
=org-agenda-set-tags= on headings, which you can use to filter your agenda view 
(eg by class).

> * What I plan to do
>
> As I need to write a lot for each lesson, and each lesson are mostly
> independent from each other, I plan to have 1 file per lesson.
This is a very stylistic, but I am a "all in one file" user, though I have a 
seperate directory and .org file per class, but no more split than that. I have 
always had =C-c s= bound in org files to something like =consult-org-heading= 
(or the helm equivalent, or selectrum equivalent, or even the vanilla emacs 
equivalent that I can't remember right now). To me, being able to easily go to 
headings/classes in one file fits my usage. I could see arguments for the 
other, though, since emacs is good at browsing/searching multiple files, too. 
And I suppose git version control might be more useful on the multiple-file 
setup.  

> In each file, I plan to have the same structure:
> - General information
> - Tasks and Projects
> - Distributed documents
> - Notes
>
> In "General information", I put the schedule of the lesson, the
> classroom, the teacher and assistant name and e-mail and the URL to our
> online platform.
#+URL, #+TEACHER, etc will be okay here. Though I would probably just put them 
in as plain text.

> In "Tasks and Projects", I put all work the teacher ask us to do. For
> each, an Org-mode sub-headline with a TODO status. A project is just a task
> with sub-tasks. Or maybe have a PROJECT status ?
>
How about both? Are projects seperate from other tasks, though? I would make 
heavy use of sub-tasks, with =[/]= in the headlines to give a count of 
sub-tasks completed.

> In "Distributed documents", I create a sub-headline for each document. I
> then attach a copy of the document to its sub-headline with org-attach.
> Finally, I took note with Org-noter.
I have not used org-attach, though I know I should learn it. I have just stored 
related docs in the folder for the class.

> In "Notes" I make a tree of sub-headline based on the lesson plan. And,
> when the teacher talk about a subject, I took a note in it's
> sub-headline.
>
>
> * What I miss
>
> First, the tasks. I don't know If it's better to keep them in the lesson
> org file or move them with all my other tasks (home and work). I think
> to include them in the org-agenda, so I can have global view of all ma
> tasks. From school, work and home.
I keep them in the class listing, then add that to my agenda, as described 
above. Add the class to your agenda files and you are set. 

> Second, the weekly schedule. Is it better to have a column view on a
> separate file or to see the all the lessons in my org-agenda ? In the
> first case, is it possible to build a column view from different file ?
> In the second case, how to do it and to manage vacations ?
Column view is another thing I have never intentionally used. I just filter my 
agenda to what I want. 

> Third, do I include my work notes inside the lesson file ? Or do I
> create a separate file for each works ? Some work asked to do are just
> exercise, but some are rated and in this case we are asked to write a
> report.
As mentioned above, I find putting them in the same file to be most useful. 
Even reports I put in the same file, using export to make them pdf or odt or 
docx or whatever the class needs. 

> Fourth, is it better to include my school notes into org-roam with other
> knowledge or keep them separate ? If I mix what I learn on my free time
> and what I learn on school time, it would make more to review before an
> exam.
I've been told that I should try org-roam. I never felt a need, though. Plain 
org does the trick for me.

org for class notes was a huge benefit to my quality of life for a lot of 
years, so I have some simple but opinionated takes on this. I hope this is 
useful, and I am always appreciative of any corrections.

- Tory



Re: Interest in an Org video meetup?

2022-10-06 Thread Tory S. Anderson
I would enjoy a video meetup on Orgmode, since it is the first and last program 
I interact with during my computing day.

--
Tory S. Anderson
Application & Web Developer
https://toryanderson.com



Re: The fate of ob-asymptote.el

2022-07-20 Thread Tory S. Anderson
Not a major contributor to Org yet, but I have been using it faithfully for a 
decade. Asymptote looks to be incredibly useful in my research! Thanks for 
making me aware of it! https://asymptote.sourceforge.io/index.html

- Tory



[RESOLVED] Re: gnus links not followed, also avl-tree error (org-capture issues)

2022-04-21 Thread Tory S. Anderson
The avl-tree error was an issue with vertico, which I updated and it went away.

The Gnus Links error seems to have gone away with that updgrade, too.

Thanks!
- Tory

Ihor Radchenko  writes:

> "Tory S. Anderson"  writes:
>
>>> Thanks for reporting! Are you able to reproduce with emacs -Q?
>>
>> Thanks! I am not sure what an emacs -Q would mean in cases like this, since 
>> they are custom written capture templates in the first place, so -Q would 
>> lose them.
>
> Please refer to https://orgmode.org/manual/Feedback.html
> Basically, you can create the minimal possible config containing your
> problematic custom capture template and whatever it takes to trigger the
> problem and share it + steps to reproduce.
>
> Otherwise, it is very difficult to debug the problem on our side.
>
>> Important update: By including all of org-contrib the two problems go away, 
>> although other problems are introduced. But trying to search the contrib for 
>> which things in particular are solving these errors has not been successful.
>
> You may try to bisect your config. I have recorded a video explaining
> how to do it:
> https://open.tube/videos/watch/4d819114-43bf-42df-af94-f94fc53dd0d9
>
> Best,
> Ihor



Re: gnus links not followed, also avl-tree error (org-capture issues)

2022-04-18 Thread Tory S. Anderson
Ihor Radchenko  writes:

> web...@toryanderson.com (Tory S. Anderson) writes:
>
>> Second, most of my plain (just me typing entries) captures fail to complete 
>> at all.
>>
>> =org-capture: Capture abort: Wrong type argument: avl-tree-, nil
>> This is sending me back years to before I developed a nicely tuned org 
>> workflow, and it isn't pleasant. Is there something I forgot to include, or 
>> have there been breaking syntax changes somewhere?
>
> Thanks for reporting! Are you able to reproduce with emacs -Q?

Thanks! I am not sure what an emacs -Q would mean in cases like this, since 
they are custom written capture templates in the first place, so -Q would lose 
them.

Important update: By including all of org-contrib the two problems go away, 
although other problems are introduced. But trying to search the contrib for 
which things in particular are solving these errors has not been successful.

- Tory



gnus links not followed, also avl-tree error (org-capture issues)

2022-04-18 Thread Tory S. Anderson
Org captures have become an intrinsic part of my daily workflow, but having 
just upgaded emacs and orgmode, I suddenly find two errors (which clearly have 
related causes, at least as far as the upgrades go).

First, when I create a new capture link from a Gnus message, it successfully 
creates the same orgmode link it ever did, eg:
=[[gnus:mail.pro#dm5pr0801mb3799d6bd01f4178ba5f89ebbf6...@dm5pr0801mb3799.namprd08.prod.outlook.com][Email
 from Bonnie Bingham: Fw: Moody approved to work]]
However, when attempting to FOLLOW that link it doesn't take me there, instead 
prompting me with =No match - create this as a new heading? (y or n)
Second, most of my plain (just me typing entries) captures fail to complete at 
all.

=org-capture: Capture abort: Wrong type argument: avl-tree-, nil
This is sending me back years to before I developed a nicely tuned org 
workflow, and it isn't pleasant. Is there something I forgot to include, or 
have there been breaking syntax changes somewhere?

Org mode version 9.5.2 (9.5.2-ga0755e @ 
/home/torysa/emacs/.emacs.d/straight/build/org/)

GNU Emacs 28.1 (build 1, x86_64-suse-linux-gnu, GTK+ Version 3.24.33, cairo 
version 1.16.0)

- Tory



Re: [BUG] error when saving a new capture [9.5.2 (9.5.2-g971eb6 @ /home/torysa/emacs/.emacs.d/straight/build/org/)]

2022-04-18 Thread Tory S. Anderson
Actually big thanks to your response; it prompted me to figure out how to 
update my emacs, which I built from source a year or two ago when I wanted to 
give native comp a whirl. It was a process, but was eventually successful.

The error was auto-reported when it popped up, and I decided to give the 
inviting "report" button a whirl, though I've never thought of it before. I 
don't even remember the context. But, per your advice, I have updated both 
emacs and orgmode. Maybe it's gone. Thanks!

- Tory

Tim Cross  writes:

> web...@toryanderson.com (Tory S. Anderson) writes:
>
>> 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
>>
>>  https://orgmode.org/manual/Feedback.html#Feedback
>>
>> Your bug report will be posted to the Org mailing list.
>> 
>>
>> I was just saving a capture, no link or anything else. It bound up the 
>> thread until I could C-g out of it.
>>
>> Emacs  : GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 
>> 3.24.29, cairo version 1.16.0)
>>  of 2021-09-01
>> Package: Org mode version 9.5.2 (9.5.2-g971eb6 @ 
>> /home/torysa/emacs/.emacs.d/straight/build/org/)
>>
>
> My first suggestion would be to do an Emacs upgrade. Your running a
> pre-release version (Emacs 28.0.50) which for a development version is
> extremely old (over 6 months and isn't even one of the release candidate
> builds for Emacs 28). Note also that Emacs 28.1 has been released.
>
> The second thing I would do following upgrade is to try and reproduce
> the issue using emacs -Q.
>
> Finally, you need to provide more specific details. In order for anyone
> to help or debug any issue, the first critical step is to be able to
> reproduce it. As it stands now, there is nowhere near sufficient
> information to do that. The best thing you can do to help is try to
> reproduce the issue in a default configuration (i.e. emacs -Q), which
> will help ensure the issue has not been introduced by additional
> packages you have installed or any customisation you have done and
> providing a minimal recipe to reproduce the issue. Generally, if someone
> is able to provide a simple recipe which reliably reproduces the issue,
> the issue will be resolved very quickly. If on the other hand, nobody can
> reproduce the issue, it probably won't ever be fixed.



Re: [BUG] Off-by-one error in width of Agenda window? [9.5.2 (release_9.5.2-25-gaf6f12 @ /data/installs/snapshots/emacs-28.1/lisp/org/)]

2022-04-18 Thread Tory S. Anderson
"N. Jackson"  writes:

> Recently it seems as if Org Agenda thinks its window is one
> character wider than it actually is. The incorrect behaviour I
> observe is:
>
> 1. Tags in Agenda are all wrapped to the next line even though there
> is plenty of space to display them on the same
> line. (org-agenda-tags-column is set to its default value of `auto'
> so I expect tags to be right aligned to the right edge of the
> window.)

Can confirm. I have had this same error for at least a year, and just upgraded 
my emacs and orgmode and still have it as well. I almost don't notice it 
anymore. I work on three monitors and see the error when I refresh my agenda on 
another monitor. I haven't attempted to debug it though.

- Org mode version 9.5.2 (9.5.2-ga0755e @ 
/home/torysa/emacs/.emacs.d/straight/build/org/)
- Emacs 28.1 (repo)



[SOLVED] Re: How can I get capture-link to stop bugging me about mairix?

2022-04-06 Thread Tory S. Anderson
web...@toryanderson.com (Tory S. Anderson) writes:

> I upgraded orgmode recently and added org-contrib to my loading. I'm not sure 
> if that's related or not, but suddenly, when I invoke org-capture on a Gnus 
> message (which used to happen seamlessly) suddenly I am getting the following 
> selection message, asking me whether I want org-mairix-store-gnus-link or the 
> old working default org-gnus-store-link . This is the first time I have ever 
> heard of Mairix, and I can't find any customizations to set to get it to stop 
> asking me.
>
> http://images.toryanderson.com/org-link-mairix.png
>
> How can I get it to stop asking me to select org-gnus-store-link?
>
> - Tory

I found and customized =org-link-parameters= to no longer include the Mairix 
lines, which were probably created when I included all the contrib with 
straight. The problem is gone now.

By the way, it would be nice if there were a compliment to =org-add-link-type= 
like =org-remove-link-type=. I was surprised to have one but not the other.

- Tory



[BUG] error when saving a new capture [9.5.2 (9.5.2-g971eb6 @ /home/torysa/emacs/.emacs.d/straight/build/org/)]

2022-04-06 Thread Tory S. Anderson


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

 https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.


I was just saving a capture, no link or anything else. It bound up the thread 
until I could C-g out of it. 

Emacs  : GNU Emacs 28.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, 
cairo version 1.16.0)
 of 2021-09-01
Package: Org mode version 9.5.2 (9.5.2-g971eb6 @ 
/home/torysa/emacs/.emacs.d/straight/build/org/)

current state:
==
(setq
 org-special-ctrl-o nil
 org-link-elisp-confirm-function 'yes-or-no-p
 org-agenda-diary-file "~/org/agenda.org"
 org-directory "~/org/"
 org-agenda-skip-deadline-prewarning-if-scheduled t
 org-agenda-start-with-clockreport-mode t
 org-after-todo-state-change-hook '(org-checklist)
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-agenda-custom-commands '(("l" . "schooL")
  ("ld" "schooL Day"
   ((agenda ""
 ((org-agenda-span 1) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset '("+:CLASS:" 
"-:TSA:")))
 )
)
   nil)
  ("lw" "schooL Week"
   ((agenda ""
 ((org-agenda-span 7) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset '("+:CLASS:" 
"-:TSA:")))
 )
)
   nil)
  ("lm" "schooL Month"
   ((agenda ""
 ((org-agenda-span 'month) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset '("+:CLASS:" 
"-:TSA:")))
 )
)
   nil)
  ("p" . "Priesthood")
  ("pd" "Priesthood Day"
   ((agenda ""
 ((org-agenda-span 1) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:PRIESTHOOD:" "-:TSA:")))
 )
)
   nil)
  ("pw" "Priesthood Week"
   ((agenda ""
 ((org-agenda-span 7) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:PRIESTHOOD:" "-:TSA:")))
 )
)
   nil)
  ("pm" "Priesthood Month"
   ((agenda ""
 ((org-agenda-span 'month) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:PRIESTHOOD:" "-:TSA:")))
 )
)
   nil)
  ("w" . "Work")
  ("wd" "Work Day"
   ((agenda ""
 ((org-agenda-span 1) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:ODH:\\|:AGENDA:\\|:CONFERENCE:" "-:TSA:\\|:PRIESTHOOD:")))
 )
)
   nil)
  ("ww" "Work Week"
   ((agenda ""
 ((org-agenda-span 7) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:ODH:\\|:AGENDA:\\|:CONFERENCE:" "-:TSA:\\|:PRIESTHOOD:")))
 )
)
   nil)
  ("wm" "Work Month"
   ((agenda ""
 ((org-agenda-span 'month) 
(org-agenda-start-on-weekday nil)
  (org-agenda-regexp-filter-preset 
'("+:ODH:\\|:AGENDA:\\|:CONFERENCE:" "-:TSA:\\|:PRIESTHOOD:")))
 )
)
   nil)
  ("n" . "Non-work")
  ("nd" "Non-work Day"
   ((agenda ""
 ((org-agenda-span 1) 

How can I get capture-link to stop bugging me about mairix?

2022-04-06 Thread Tory S. Anderson
I upgraded orgmode recently and added org-contrib to my loading. I'm not sure 
if that's related or not, but suddenly, when I invoke org-capture on a Gnus 
message (which used to happen seamlessly) suddenly I am getting the following 
selection message, asking me whether I want org-mairix-store-gnus-link or the 
old working  default org-gnus-store-link . This is the first time I have ever 
heard of Mairix, and I can't find any customizations to set to get it to stop 
asking me.

http://images.toryanderson.com/org-link-mairix.png

How can I get it to stop asking me to select org-gnus-store-link?

- Tory



[FIXED] Re: org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-31 Thread Tory S. Anderson
> Ignacio Casso  writes:
 I can't reproduce this bug in Emacs 27.2.
>>> I'm on orgmode 9.4.6, with emacs 28.0.50.

Verified: This is fixed in the latest orgmode version (problem is gone in 
9.5.2). It now clocks into different things without forgetting the rest of the 
action after leaving the note.




Re: org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-17 Thread Tory S. Anderson
Ignacio Casso  writes:

>>> I can't reproduce this bug in Emacs 27.2.
>>
>> This is good news: it means I can probably proceed with bisection and 
>> debugging after updating to see if the issue persists. Thanks!
>>
>> I'm on orgmode 9.4.6, with emacs 28.0.50.
>
> On second though I realize I should have told you my org version, not
> Emacs. It's 9.5.2. And I have checked it in my org built-in version,
> 9.4.4, and there I can reproduce the bug, so it's not your
> configuration's fault and it was a bug that has already been fixed. I
> suggest you upgrade to a later org version to fix the issue.

Excellent news! That saves me hours of bisection! (as long as those hours 
aren't spent fixing things after an orgmode upgrade)
- Tory



Re: org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-17 Thread Tory S. Anderson
Ignacio Casso  writes:

>> Anyone else duplicating this error would be useful to know.
>
> I can't reproduce this bug in Emacs 27.2.

This is good news: it means I can probably proceed with bisection and debugging 
after updating to see if the issue persists. Thanks!

I'm on orgmode 9.4.6, with emacs 28.0.50.



org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-16 Thread Tory S. Anderson
This is regarding the behavior of =org-log-note-clock-out=. When =nil= I can 
just be clocked in to A and then when I clock in to B it stops A, starts B. 
This is nice. However, when  =org-log-note-clock-out= is true, I get prompted 
for a note --  which is what I want -- but it stops there. So, if I was 
repeating the above action of clocking from A to B, it clocks out of A, asks 
for a note, but does NOT clock in to B.

This discrepancy is annoying; while I am adapting to remember to clock out 
before clocking in to another item (so I can get my note), it would be nice if 
it remembered that it was supposed to be clocking in to that other thing AFTER 
the note finishes.

Anyone else duplicating this error would be useful to know. Let me know if 
there is somewhere else I should report this issue.

- Tory



org-log-note-clock-out ends action after note, forgetting to clock in to something

2022-03-16 Thread Tory S. Anderson
This is regarding the behavior of =org-log-note-clock-out=. When =nil= I can 
just be clocked in to A and then when I clock in to B it stops A, starts B. 
This is nice. However, when  =org-log-note-clock-out= is true, I get prompted 
for a note --  which is what I want -- but it stops there. So, if I was 
repeating the above action of clocking from A to B, it clocks out of A, asks 
for a note, but does NOT clock in to B.

This discrepancy is annoying; while I am adapting to remember to clock out 
before clocking in to another item (so I can get my note), it would be nice if 
it remembered that it was supposed to be clocking in to that other thing AFTER 
the note finishes.

Anyone else duplicating this error would be useful to know. Let me know if 
there is somewhere else I should report this issue.

- Tory



Org agenda width is one char-column too short

2021-09-23 Thread Tory S. Anderson
As seen in the linked image, my agenda width is a single char too short so it 
clips the last : of the tags. I always use truncate-lines-mode, so this is a 
minor inconvenience but might be something easily fixed for new users? I think 
it has always done this for me.

https://i.imgur.com/RFRhLMT.png

Here are my configurations for agenda in Straight; if I'm not mistaken, there 
is nothing here that should effect things. Everything else is still at the 
default. I only got to thinking about this because agenda does such an 
admirable job of fitting to screens (something not easy in many emacs 
situations).

--8<---cut here---start->8---
   (use-package org-agenda
 :straight (:type built-in)
 :after org
 :custom
 (org-agenda-restriction-lock-highlight-subtree nil)
 (org-agenda-show-outline-path nil)
 (org-agenda-fontify-priorities nil)
 (org-agenda-restriction-lock-highlight-subtree nil)
 :custom-face
 (org-agenda-clocking ((t (:background "gold" :foreground "black"
 (org-agenda-dimmed-todo-face ((t (:foreground "dimgray"
 (org-agenda-calendar-event ((t (:inherit default
 (org-agenda-clocking ((t (:background "gold" :foreground "black"
 (org-agenda-current-time ((t (:background "blue2" :foreground "white 
smoke" :weight ultra-bold
 (org-agenda-dimmed-todo-face ((t (:foreground "dimgray"
 (org-agenda-done ((t (:inherit org-done :box (:line-width 2 :color 
"#00ff00" :style released-button)
 :bind (:map org-agenda-mode-map
 ("p" . org-agenda-show-clocking-issues)
 ("P" . tsa/org-appts))
 :config
 (add-hook 'org-agenda-mode-hook (lambda () (toggle-truncate-lines 1)))
 )
--8<---cut here---end--->8---



Re: org-agenda no longer clocks out then in

2021-06-25 Thread Tory S. Anderson
After some exploration I found that it appears to be the result of the setting 
org-log-note-clock-out . It I switch this off, switching tasks works as 
expected. It used to  be that having it on didn't cause the bug of failing to 
switch to a new task immediately. Can anyone else please verify that having the 
note pop up with (org-log-note-clock-out t) causes it not to successfully clock 
in to the new item when previously clocked in to a different item, when 
switching via the org agenda? It looks that way to me.

- Tory

Marco Wahl  writes:

> torys.ander...@gmail.com (Tory S. Anderson) writes:
>
>> For years my workflow has centered in org-agenda and I would go from
>> one clocked item to the next.  For instance, I would be clocked into
>> my "Emails" task, which never closes, and then eventually move down in
>> the agenda to "Task B". Then I hit C-x TAB to clock in. It correctly
>> queries for a comment on the task I'm leaving but no longer clocks me
>> in to the new task as I'd asked. Is this a bug or am I missing a new
>> setting?
>
> This should work AFAICT and it does for me.  (With key {I} or {C-c C-x
> TAB} in the agenda opposed to your setting with {C-x TAB}.)
>
> Could you provide a complete mini example?  Possibly this helps to see
> more clearly.
>
>
> Best regards,



Re: org-agenda no longer clocks out then in

2021-06-24 Thread Tory S. Anderson
My minimal loadup doesn't exhibit the problem. So, tracing the function 
"org-agenda-clock-in" that my =C-x TAB= is bound to, I see this.

On the broken one I see the following:

#+begin_src lisp
  =1 -> 
(org-agenda-clock-in nil)
1 <- org-agenda-clock-in: !non-local\ exit!
#+end_src

Whereas on the clean working one I see:

#+begin_src lisp
  =1 -> 
(org-agenda-clock-in nil)
1 <- org-agenda-clock-in: 0
#+end_src

But find-grep doesn't find anything in my dependencies that matches 
"non-local". This looks likely to be related to the original problem. Any idea 
how I can find the source of this !non-local? This is my first time using emacs 
function tracing.


Marco Wahl  writes:

> torys.ander...@gmail.com (Tory S. Anderson) writes:
>
>> For years my workflow has centered in org-agenda and I would go from
>> one clocked item to the next.  For instance, I would be clocked into
>> my "Emails" task, which never closes, and then eventually move down in
>> the agenda to "Task B". Then I hit C-x TAB to clock in. It correctly
>> queries for a comment on the task I'm leaving but no longer clocks me
>> in to the new task as I'd asked. Is this a bug or am I missing a new
>> setting?
>
> This should work AFAICT and it does for me.  (With key {I} or {C-c C-x
> TAB} in the agenda opposed to your setting with {C-x TAB}.)
>
> Could you provide a complete mini example?  Possibly this helps to see
> more clearly.
>
>
> Best regards,



org-agenda no longer clocks out then in

2021-06-23 Thread Tory S. Anderson
For years my workflow has centered in org-agenda and I would go from one 
clocked item to the next.  For instance, I would be clocked into my "Emails" 
task, which never closes, and then eventually move down in the agenda to "Task 
B". Then I hit C-x TAB to clock in. It correctly queries for a comment on the 
task I'm leaving but no longer clocks me in to the new task as I'd asked. Is 
this a bug or am I missing a new setting?

Org mode version 9.4.6 (9.4.6-gf70e36

Thanks!

- Tory



Bug: clock-in from org-agenda freezes thread when enforce + todo keywords [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]

2021-06-10 Thread Tory S. Anderson
After long bisection and suffering for a while from this issue, I have narrowed 
down an issue that is breaking my workflow. I noticed that some time recently 
orgmode has begun freezing my system (as an exwm user, this is serious) when I 
attempt to clock in to certain tasks from the agenda. Clocking in from their 
actual orgmode file works just fine, but sometimes then even checking the 
agenda causes thread freezing (I see my CPU spike to maximum on that thread, 
and emacs becomes unresponsive). In my minimal reproducable version, no 
packages are loaded other than org-mode and use-package. Here is my current 
version, although I've been encountering this problem for longer than I've been 
using this version, probably.

Besides all the details included below by the bug report, Here is the 
use-package declaration that produces the frozen thread when you attempt to 
clock in to the "parent" item in your agenda (it may be important that the 
dates/deadlines are "today"; I don't know). In this toy example you can recover 
with C-g a time or two, but in my full setup even c-g can take up to 30 seconds 
to register.

Steps to reproduce:

1. load emacs with the use-package declaration below
2. visit =M-x org-agendaa3. Clock in to the "Parent" item on the agenda by 
highlighting it and doing =C-c C-x-- thread will freeze indefinitely, 
although in toy example you can break free with C-g

#+begin_src lisp
  (use-package org
  :straight (:type built-in)
  :demand t
  :custom
  (org-enforce-todo-dependencies t)

  (org-agenda-files
   '("~/org/nested.org"))

  (org-todo-keywords
   '((type "TODO(t)" "STARTED(s)" "UNSTARTED(u)" "|" "DONE(d)")
 (type "PENDING(p)" "HOLD(h)" "ONGOING(o)" "|" "DONE(d)")
 (sequence "|" "CANCELED(c)" "ABSTAINED(a)"
#+end_src

Here is nested.org : https://gitlab.com/-/snippets/2133558



Emacs  : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.29, 
cairo version 1.16.0)
 of 2021-06-03
Package: Org mode version 9.4.4 (release_9.4.4 @ 
/usr/local/share/emacs/28.0.50/lisp/org/)

current state:
=(setq
 org-link-elisp-confirm-function 'yes-or-no-p
 org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn 
ENTRY)"]
 org-agenda-files '("~/org/nested.org")
 org-export-before-parsing-hook '(org-attach-expand-links)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines org-optimize-window-after-visibility-change)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-all append local] 5]
 #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5] 
org-babel-result-hide-spec
 org-babel-hide-all-hashes)
 org-confirm-shell-link-function 'yes-or-no-p
 outline-isearch-open-invisible-function 'outline-isearch-open-invisible
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-todo-keywords '((type "TODO(t)" "STARTED(s)" "UNSTARTED(u)" "|" "DONE(d)") 
(type "PENDING(p)" "HOLD(h)" "ONGOING(o)" "|" "DONE(d)")
 (sequence "|" "CANCELED(c)" "ABSTAINED(a)"))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent)
 org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
 org-enforce-todo-dependencies t
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
 org-link-shell-confirm-function 'yes-or-no-p
 org-babel-pre-tangle-hook '(save-buffer)
 org-agenda-loop-over-headlines-in-active-region nil
 org-occur-hook '(org-first-headline-recenter)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-link-parameters '(("attachment" :follow org-attach-follow :complete 
org-attach-complete-link) ("id" :follow org-id-open)
   ("eww" :follow org-eww-open :store org-eww-store-link) 
("rmail" :follow org-rmail-open :store org-rmail-store-link)
   ("mhe" :follow org-mhe-open :store org-mhe-store-link) 
("irc" :follow org-irc-visit :store org-irc-store-link :export org-irc-export)
   ("info" :follow org-info-open :export org-info-export 
:store org-info-store-link)
   ("gnus" :follow org-gnus-open :store org-gnus-store-link)
   ("docview" :follow org-docview-open :export 
org-docview-export :store org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store 
org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export 
:complete org-bbdb-complete-link :store 

Big problem: org agenda freezes my process

2021-04-30 Thread Tory S. Anderson
I've been trying to debug a nearly show-stopping issue for a few weeks now; the 
next step is a more thorough bisection of my setup, but I wanted to send this 
in case anyone else experiences this or already knows the solution.

Lately, when I try to view an orgmode agenda it seems that two things make it 
cause my emacs CPU threat to spin to max and freeze up, which is a huge problem 
since I'm an exwm user and live in my agenda view. As far as I've been able to 
tell, when an item from today is clocked into multiple times in the same day, 
it prompts most agenda actions to result in a freeze and some kind of loop that 
is binding up my system. It has some gaps, so if I spam C-g I will eventually, 
usually, escape given 30 seconds to 2 minutes.

I first ran into this problem thinking it was because I had an entry with a 
"+1d" note on it, so it would always show up; but inconsistent results led me 
to the more precise discovery that it's apparently when it is logged in to 
multiple times in the day AND when it is shown with =(org-agenda-show-log t)=, 
which I had on my default. At its worst, even moving the cursor in the agenda 
buffer would trigger the freezing, let alone actually clocking in/out of 
anything. However, when I am not showing the log, it seems like it's ok. I've 
tried =toggle-debug-on-quit" but I don't recognize anything in the stack trace 
that actually tells me what it is doing when it spins to a halt.

I'm currently on org mode version 9.3.7. I've tried with different versions but 
without a change in behavior. This, combined with the fact that the issues seem 
to have begun in the past month, indicates that it probably isn't orgmode 
itself causing this issue, but I haven't located what it IS yet. If anyone has 
ideas on how to debug this without a bisection, or an has dealt with this 
before, I'm more than eager to hear it; in the meanwhile, I'll perform a more 
thorough bisection of my init file as time permits.

- Tory



Agenda clock-report-mode doesn't observe agenda filters

2020-12-14 Thread Tory S. Anderson
I love org-agenda-clockreport-mode . However, I have several files that include 
my work projects, and they all have my :WORK: tag on them. I want to get the 
number of hours put into :WORK: for the period and understand that the way is 
supposed to be to just filter my agenda view to be what I am interested in, 
then look at the associated clockreport at the bottom. However, the clockreport 
seems to always calculate everything, regardless of my agenda filters (showing 
time results for things NOT showing with my current filters). Looks like a bug, 
unless I misunderstood something.

- Tory



Re: Reply-All noise

2020-10-09 Thread Tory S. Anderson
I do use reply-to-all (gnus-style), but I don't notice doubles. It might be 
because I have my client set up to do deduping, though.

 writes:

> Hi,
>
> I had this discussion in several mailinglists but gave up.
>
> But I am suprised to see this phenomenon in a emacs related (means:
> "super nerdy") mailinglist, too.
>
> So tell me please how do you handle this "problem"? Or do I setup
> something wrong with my list account?
>
> From my point of view, the problem is that most of you press "Reply
> All" when answering to a mailinglist posting. But that is IMO wrong
> because you answer to the list AND to the thread opener in that case.
>
> So the thread opener receive two (nearly) identical messages.
>
> Do you receive double mails? Doesn't it bother you?



Re: recursive checkbox counting

2020-10-01 Thread Tory S. Anderson
The way I've made this work is with the following property:

   :COOKIE_DATA: ALL

But I suppose I haven't tried if that's fully recursive.

HTH,
- Tory

Alan Schmitt  writes:

> Hello,
>
> I'm trying to recursively count checkboxes, with intermediate counting:
>
> * [0/0] 2020
> :PROPERTIES:
> :COOKIE_DATA: checkbox recursive
> :END:
> ** [1/1] Week 39
> - [X] [[file:2020-09-29.org][§:2020-09-29 (Tuesday)]]
> ** [2/2] Week 36
> - [X] [[file:2020-09-08.org][§:2020-09-08 (Tuesday)]]
> - [X] [[file:2020-09-07.org][§:2020-09-07 (Monday)]]
>
> Unfortunately I don't know what property I need to set on the top-level
> node to recursively count everything. I would like to see [3/3] there.
> Is there a way to do it?
>
> Thanks,
>
> Alan



Re: Problem in 9.3: (next-error) broken

2020-08-29 Thread Tory S. Anderson
Perhaps I was on an old version, although I don't think it was that old.

In any case, I keep having org-occur-next-match set away from nil, and I'm 
actually having trouble figuring out which hook will fix it, since 
org-mode-hook doesn't seem to be doing it. Instead I end up manually evaluating 
=(setq next-error-function nil)= every time I need next-error.

Any suggestions?

Kyle Meyer  writes:

> Tory S. Anderson writes:
>
>> I discovered teh cause of this error is that new versions of orgmode
>> sets next-error-function and so breaks the. I've added a hook to clear
>> this in orgmode and I can navigate my grep properly again.
>
> I'm not having any luck triggering the issue, but in any case there
> seems to be something missing from that explanation.  Org has set
> next-error-function to org-occur-next-match since dd2346134 (Implement
> next-error and previous-error functionality for sparse trees,
> 2011-01-06), and the definition of org-occur-next-match hasn't changed
> substantially since.



Re: Problem in 9.3: (next-error) broken

2020-08-24 Thread Tory S. Anderson
I discovered teh cause of this error is that new versions of orgmode sets 
next-error-function and so breaks the. I've added a hook to clear this in 
orgmode and I can navigate my grep properly again.

"Tory S. Anderson"  writes:

> Running 9.3 as included in emacs 27, I have found a breaking error that I am 
> not sure how to debug any further. Here's my workflow:
>
> 1 or 2. Execute (find-grep) for something that brings results
> 1 or 2. Switch to an orgmode buffer
> 3. Attempt C-` (next-error)
>
> Result: user-error: No more matches
>
> Switch to a non-org buffer and try again -- it works properly, even without 
> re-grepping.
>
> This error DID occur in emacs -Q, so it shouldn't be the result of any 
> competing packages.
>
> Any suggestions to recover my workflow?
>
> Thanks,
>
> - Tory



Problem in 9.3: (next-error) broken

2020-08-22 Thread Tory S. Anderson
Running 9.3 as included in emacs 27, I have found a breaking error that I am 
not sure how to debug any further. Here's my workflow:

1 or 2. Execute (find-grep) for something that brings results
1 or 2. Switch to an orgmode buffer
3. Attempt C-` (next-error)

Result: user-error: No more matches

Switch to a non-org buffer and try again -- it works properly, even without 
re-grepping.

This error DID occur in emacs -Q, so it shouldn't be the result of any 
competing packages.

Any suggestions to recover my workflow?

Thanks,

- Tory



begin_quote

2020-06-06 Thread Tory S. Anderson
A couple questions here.

when I type =

How to annotate past clock entries so the note shows in agenda?

2020-06-05 Thread Tory S. Anderson
Hello all,

When I clock out of an entry I have a pop up from (org-add-log-note); I can add 
a note which will appear in my agenda right after the clock item. Often times, 
though, I want to go back through my day's agenda and add these; for example, 
upon marking "done" on a task it automatically clocks me out and does not 
invite me to take a note. Or at journaling time at day's end I'd like to add 
such a note that would be visible in my agenda.

The prompt comes from org-store-log-note called by org-add-log-note. The latter 
checks org-log-note-purpose. That's as far as my sleuthing has been able to go, 
though; I can manually call the function to receive the prompt for adding a 
clock-out note, but it doesn't stick it anywhere useful.

How can I add clock-out notes after the event? Must I manually go to the clock 
event and type in my note there, or can I utilize the same prompt somehow?

Thanks for any help!

- Tory



org-clip-link should be included in core

2020-05-16 Thread Tory S. Anderson
Per alphapapa's suggestion to bring this up to this list, it seems that 
everyone (doom, spacemacs, and individuals) are rolling their own of a 
functionality that should be included in core: the ability to de-linkify text 
at point, leaving just the text without orgmode surroundings. One person claims 
it's already in there, but I don't see anything like =clip-link= in the actual 
code from https://code.orgmode.org/bzg/org-mode/src/master/lisp.

Discussion happening here:
https://www.reddit.com/r/emacs/comments/gjm8q6/delinking_orgmode_text/



Re: [O] Orgmode repeater intervals with end date

2018-01-30 Thread Tory S. Anderson
I was very pleased to find, when browsing the manual for a 
different reason, the 'orgmode' solution to the problem, which 
provides daily customization ability and also maintains 
exportability: `org-clone-subtree-with-timeshift`[1], with which I 
can easily accomplish my goals and even consolidate my 
notes-for-that-event-instance. I'm just writing this here because 
it has totally upgraded my planning experience and I wish I'd 
known about it sooner!


Thanks all!

- Tory

Footnotes: 
[1]  https://orgmode.org/manual/Structure-editing.html





Re: [O] Orgmode repeater intervals with end date

2018-01-17 Thread Tory S. Anderson

Thanks; oddly, that works.

--8<---cut here---start->8---
*** TODO Personal Meeting
   DEADLINE: <2018-01-10 Wed 16:00 .+2w>--<2018-04-18 Wed>
--8<---cut here---end--->8---

I still get a daily count on every day in the interim:

--8<---cut here---start->8---
(8/99):  TODO Personal Meeting
--8<---cut here---end--->8---

But I suppose I can work around that. Oddly, it doesn't seem to 
work with plain dates or with SCHEDULED: . Any idea why?


"numbch...@gmail.com" <numbch...@gmail.com> writes:


You can try this:
```
* Test repeat time range with end date
DEADLINE: <2018-01-01 Mon 12:00 .+2d>--<2018-01-13 Sat>
```
This will repeat, and end on the day 13. Also deadline works 
fine.


[stardiviner]     GPG key ID: 
47C32433
IRC(freeenode): stardiviner     Twitter:  
@numbchild
Key fingerprint = 9BAA 92BC CDDD B9EF 3B36  CB99 B8C4 B8E5 47C3 
2433

Blog: http://stardiviner.github.io/

On Thu, Jan 11, 2018 at 7:37 PM, <li...@wilkesley.net> wrote:

On 2018-01-10 18:24, ed...@openmail.cc wrote:
   
Message: 8

Date: Tue, 09 Jan 2018 22:16:56 -0700
From: torys.ander...@gmail.com (Tory S. Anderson)
To: orgmode list <emacs-orgmode@gnu.org>
Subject: [O] Orgmode repeater intervals with end 
date

Message-ID: <87incamgxj@byu.edu>
Content-Type: text/plain; format=flowed
   
Hi all,
   
When repeater intervals are set on on org dates (eg 
=

<2018-01-10
                                                    
Wed
16:00 +2w>=) the output is exported nicely to ical 
and

appears
nicely in agenda. Is there anyway to put an end-date 
on

org dates
so that the +2w will not just continue forever?
   
I could use org-class, but then it wouldn't be 
exported

to ical
nicely. I was hopefully with <2018-01-10 Wed 16:00
+2w>--<2018-04-10 Wed 16:00 +2w> but this just put 
the

range as
counting every day in the interim. Is there an 
existing

way to
have an end-date on a repeating cycle?
   
- Tory
   
   
Have you tried with DEADLINE:? I seem to remember to 
have

read
something like that somewhere. Don't trust me. If it 
helps, I

am glad,
but I am not sure.
   
   
   
Have a look at https://www.gnu.org/software/emacs/manual/
html_node/emacs/Sexp-Diary-Entries.html However, I am not 
sure if

you can use an Emacs sexp to specify an end date.
   
Ian.
   




Re: [O] Orgmode repeater intervals with end date

2018-01-10 Thread Tory S. Anderson

I just tried

--8<---cut here---start->8---
   DEADLINE: <2018-04-19 Thu>
   <2018-01-10 Wed 16:00 +2w>
--8<---cut here---end--->8---

But unfortunately entries were still appearing after the 
deadline. 


ed...@openmail.cc writes:


Message: 8
Date: Tue, 09 Jan 2018 22:16:56 -0700
From: torys.ander...@gmail.com (Tory S. Anderson)
To: orgmode list <emacs-orgmode@gnu.org>
Subject: [O] Orgmode repeater intervals with end date
Message-ID: <87incamgxj@byu.edu>
Content-Type: text/plain; format=flowed

Hi all,

When repeater intervals are set on on org dates (eg 
=<2018-01-10
Wed 16:00 
+2w>=) the 
output is 
exported 
nicely to 
ical and 
appears
nicely in agenda. Is there anyway to put an end-date on org 
dates

so that the +2w will not just continue forever?

I could use org-class, but then it wouldn't be exported to ical
nicely. I was hopefully with <2018-01-10 Wed 16:00
+2w>--<2018-04-10 Wed 16:00 +2w> but this just put the range as
counting every day in the interim. Is there an existing way to
have an end-date on a repeating cycle?

- Tory


Have you tried with DEADLINE:? I seem to remember to have read 
something like that somewhere. Don't trust me. If it helps, I am 
glad, but I am not sure.


-

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email 
out of the NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features!  15GB 
disk! No bandwidth quotas!
Commercial and Bulk Mail Options!  




[O] Orgmode repeater intervals with end date

2018-01-09 Thread Tory S. Anderson

Hi all,

When repeater intervals are set on on org dates (eg =<2018-01-10 
Wed 16:00 +2w>=) the output is exported nicely to ical and appears 
nicely in agenda. Is there anyway to put an end-date on org dates 
so that the +2w will not just continue forever?


I could use org-class, but then it wouldn't be exported to ical 
nicely. I was hopefully with <2018-01-10 Wed 16:00 
+2w>--<2018-04-10 Wed 16:00 +2w> but this just put the range as 
counting every day in the interim. Is there an existing way to 
have an end-date on a repeating cycle?


- Tory



Re: [O] Org citations, CSL and citeproc-el

2018-01-05 Thread Tory S. Anderson
Just a second on this; it's a fantastic and useful idea. 


Richard Lawrence  writes:


Dear Simonyi,

Simonyi András  writes:

a few days ago I've released the first public version of 
citeproc-el (https://github.com/andras-simonyi/citeproc-el), a 
CSL 1.01 citation processor library for Emacs.


Wow!  I don't know if you are aware, but we had discussed the 
possibility of building something like this on the list a few 
years back.  At the time it seemed like a lot more work than 
anyone was willing to do, and so the effort stalled.  Thanks so 
much for working on this -- it looks like you've done a ton of 
work!


The resulting link syntax is rather cumbersome so I'd like to 
ask your opinion about introducing an alternative org-mode 
citation syntax that handles all of these elements.  One option 
would be to use something very similar to pandoc's citation 
syntax (which I tried to follow as much as possible in the cite 
link descriptions of citeproc-orgref). 


We had a (very) long discussion about implementing a new 
citation syntax for Org in the spring of 2015.  Most of it took 
place in February and March; see:


https://lists.gnu.org/archive/html/emacs-orgmode/2015-02/threads.html
https://lists.gnu.org/archive/html/emacs-orgmode/2015-03/threads.html 

And here is how I summarized the state of that discussion in 
June:


https://lists.gnu.org/archive/html/emacs-orgmode/2015-06/msg00426.html

The upshot was that we came to agreement on quite a few points 
about what citation syntax should look like, and those points 
have been implemented in Org syntax in the wip-cite branch of 
the Org repo.  (This branch is now long out of date and at the 
very least in need of a rebase onto current master, I suspect.) 
It would be really great to get things moving again.  Using your 
code to provide citation processing during Org export for the 
syntax that's already been implemented would be the place to 
start.


There are other aspects of the syntax we agreed on that are not 
implemented yet; as I recall, the idea was to get a minimal 
agreeable subset working, and then add to it based on real-world 
experience and feedback.


A more general question I'd like to raise how (or whether) you 
see citeproc-el's (and CSL's) potential place in the org-mode 
ecosystem.  There are a lot of directions which the further 
development could take (BibLaTeX support, citeproc-YAML 
bibliographies, CSL editing and CSL extensions etc.) and I'd be 
grateful to receive your input on which ones I should focus 
on. 


Here's my two cents on this. From what I recall about the 
discussion (it's hard to believe it's already been almost three 
years...), I would focus on two things:


1) BibLaTeX support.  Most Org users who want citation support 
want it primarily for LaTeX export, and BibLaTeX provides a good 
model of what we should try to achieve in Org citation support.


2) org-bibtex support.  Org-bibtex is a library that represents 
citation data via Org's property syntax.  Some people use this 
and it would be great to have it integrated with the new 
citation syntax and export.  That would provide an end-to-end 
citation solution that is completely native to Org and Emacs. 

Again, thanks for jump-starting this effort!  I look forward to 
contributing to it this spring.




Re: [O] org to static site?

2017-12-01 Thread Tory S. Anderson
I've got a single-chord setup with Hugo, adapted from: 
http://www.holgerschurig.de/en/emacs-blog-from-org-to-hugo/


I'm very pleased with it.

- Tory

George myglc2 Clemmer  writes:


On 05/31/2017 at 12:00 Matt Price writes:

I'm trying to wean myself off of Wordpress for next year's 
teaching websites, and am wondering what solutions other people 
are using for turning a collection of org pages and/or subtrees 
into a static html site. I am leaning towards Hugo but honestly 
not for any sensible reason; I've seen other people use Jekyll,
though the fact that Github doesn't support direct conversion 
from org-mode removes some of Jekyll's appeal; and I know there 
are a number of other solutions too. 


So, I would love to hear what you all recommend.

[...]

No doubt too late for your teaching website, but you may find 
this interesting ...


https://github.com/myglc2/emacsite

HTH - George




Re: [O] Footnotes-per-element?

2017-11-01 Thread Tory S. Anderson
THanks for this; it may be a workable solution. The trick is, I 
didn't generate the footnotes myself -- I have concatenated a 
bunch of html -> orgmode pandoc outputs. Still an elisp 
find-and-replace might do what I need. I was just hoping for a 
quick switch to flip for localized footnotes.


Thanks!
- Tory

Kaushal Modi <kaushal.m...@gmail.com> writes:


On Fri, Oct 27, 2017 at 8:12 AM Tory S. Anderson <
torys.ander...@gmail.com> wrote:

I have a single org file that represents a collection of
articles;
each article starts with a first-level heading and includes 
its
own footnotes, always restarting from 0. I have a ** 
Footnotes
section in each article with the appropriate footnotes, but 
it
isn't respected when I follow one of the footnote 
references;
following [fn:3] in the any article, for example, will take 
me to

[fn:3] of the first article's footnotes. What's the best way
around this, so that each article will use its own footnotes
section?


I just increment the footnotes across all the articles. So, for
example, if article 1 has footnotes 1 and 2, article 2 will 
continue
from footnote number 3. The beauty is that if you export article 
2,

it will auto-reset the footnote reference to number 1.

The key is to not manually number the footnotes and let C-c C-x 
f

(bound to org-footnote-action) do its thing.

Hope that helps. 
--

Kaushal Modi




[O] Footnotes-per-element?

2017-10-27 Thread Tory S. Anderson
I have a single org file that represents a collection of articles; 
each article starts with a first-level heading and includes its 
own footnotes, always restarting from 0. I have a ** Footnotes 
section in each article with the appropriate footnotes, but it 
isn't respected when I follow one of the footnote references; 
following [fn:3] in the any article, for example, will take me to 
[fn:3] of the first article's footnotes. What's the best way 
around this, so that each article will use its own footnotes 
section?


Thanks in advance,
- Tory



Re: [O] Ediff org files starts folded

2017-10-25 Thread Tory S. Anderson
I've wondered the same thing. Normally I just manually  and 
open all bullets before ediffing, but this assumes, of course, 
that the file is already open. 


Alex Branham  writes:


Hello -

Whenever I ediff an org file, the three windows start with the 
content folded and out of site. I have to navigate to windows A, 
B, and C and hit S- until everything is visible. Does 
anyone know a way to start org mode files unfolded when ediffing 
them?


Thanks!
Alex




Re: [O] helm-org-clock for using helm rather than orgmode select menu

2016-11-10 Thread Tory S. Anderson
Are you sure? In my org 9.0 box, I still see a non-helm 
"org-agenda" menu (one of the things I haven't gotten around to 
helm-ifying yet). 


cesar mena <cesar.m...@gmail.com> writes:


"Tory S. Anderson" <torys.ander...@gmail.com> writes:

I've made the following adjustment to org-clock-select-task 
that 
allows you to (optionally) use helm to select, rather than 
orgmode's built in screens. Eventually I'd like to see all 
orgmode 
commands have the option of using helm rather than their custom 
screens, as Helm is a great package. Until then, hopefully you 
can 
find this useful or give useful suggestions.


https://github.com/WorldsEndless/helm-org-clock


from the 9.0 changelog it looks like this was done?

 Remove all options related to ido or iswitchb

 This includes org-completion-use-iswitchb and
 org-completion-use-ido. Instead Org uses regular functions, 
 e.g.,

 completion-read so as to let those libraries operate.

best,
- cm




[O] helm-org-clock for using helm rather than orgmode select menu

2016-11-10 Thread Tory S. Anderson
I've made the following adjustment to org-clock-select-task that 
allows you to (optionally) use helm to select, rather than 
orgmode's built in screens. Eventually I'd like to see all orgmode 
commands have the option of using helm rather than their custom 
screens, as Helm is a great package. Until then, hopefully you can 
find this useful or give useful suggestions.


https://github.com/WorldsEndless/helm-org-clock



[O] Specifing an agenda org-class time without hours in headline

2016-11-10 Thread Tory S. Anderson
The documentation [1] says that hour times can be specified on a 
recurring object with a given syntax, but I have never been able 
to make it work. Is the documentation wrong? I try:


--8<---cut here---start->8---
** [#A] 17:30 Parent Time
  <%%(org-class 2016 2 7 2016 12 31 4)> 5:30pm-8:30pm Parent Time
--8<---cut here---end--->8---

but if I remove the 17:30 from the title, it receives no time at 
all. Any help? 



Footnotes: 
[1]  http://orgmode.org/worg/org-faq.html#org-class





Re: [O] org-contacts bug when completing tags in gnus

2016-11-10 Thread Tory S. Anderson
Yeah, I dodge around these sort of problems a lot with 
org-contacts. It is in need of a curator and probably a rewritten 
version; it also doesn't play nice with Helm. I haven't tried it 
with org 9.0 yet, though. 


Alan Schmitt  writes:


Hello,

I'm giving org-contacts a try, and I'm having an error when I'm 
trying
to complete a tag (something should be a sequence but it's a 
number).

Digging a little into it, it seems that the problem is during
hilighting, where a fontified string is returned by 
all-completions
instead of a list (in `completion-pcm--all-completions' in 
minibuffer.el),
which then make `completion-hilit-commonality' fail because it 
expects a
list. I'm only seeing this problem with org-contacts, so I'm 
wondering

if it might be the reason for this problem in emacs code.

My contacts file looks like this:

* Test 
:test:

:PROPERTIES:
:EMAIL: alan.schm...@polytechnique.org
:END:

To reproduce, save this in some path/contacts.org file, do the 
following


  (require 'org-contacts)
  (org-contacts-gnus-insinuate)
  (setq org-contacts-files (list "path/contacts.org"))
  
then start an email in gnus, in the To field write +, then hit 
TAB.


I'm using org-mode 9 and emacs 25.1.1. Is this a known problem 
with

them?

Thanks,

Alan




[O] Useful Org Agenda Function: Add "Today" to event

2016-10-27 Thread Tory S. Anderson
My regular org workflow often sees me having unfinished tasks 
during a day (be it an email request, a phone call, a 
long-standing one-off, etc). In these cases I find it useful to 
add a timestamp for "today" to the item so that I still have 
original scheduling/deadline information, but it shows up on 
today's daily view. This is especially handy since timestamp 
entries can be stacked without interfering with each other, so I 
can keep a record of all past instances as well. I have this 
working fine for me via a keyboard macro to be used in agenda 
mode, which goes to the org file of the event, moves to the 
heading, moves down a couple lines, and inserts the deadline, and 
returns. Certainly a non-macro way would be fine here, but this 
was the easiest and fastest for me and meets my 
needs. Improvements are welcome! Otherwise, hopefully this 
function is useful. (Please let me know if some other function 
already does this)


--8<---cut here---start->8---
(fset 'tsa/org-agenda-add-today
 (lambda ( arg) "Keyboard macro." (interactive "p")
   (kmacro-exec-ring-item (quote ([return 3 16 14 5 return 21 
   3 46 return 24 98 return] 0 "%d")) arg)

   (message "Gave event \"TODAY\" date")))
(with-eval-after-load 'org-agenda (define-key org-agenda-mode-map 
(kbd "C-c .") 'tsa/org-agenda-add-today))
(with-eval-after-load 'org-agenda (define-key org-agenda-mode-map 
(kbd "C-c C-.") 'tsa/org-agenda-add-today))

--8<---cut here---end--->8---

- Tory



[O] Why does Helm break org-contact group add?

2016-09-06 Thread Tory S. Anderson
I thoroughly enjoy Org Contact for managing my contacts. One of 
its features is the ability to enter + and have an 
entire group of contacts added to the To: or Cc: . Unfortunately, 
when global-helm-mode is enabled, it doesn't work; when `+ 
TAB` is entered, an error occurs:


Lisp error: (wrong-type-argument sequencep 65)

I'm new enough to debugging elisp that the lengthy error trail 
isn't very decipherable. Can anyone give me a hand on how to get 
the TAB working with the contact-fill? 



[O] Duplicating DEADLINE and date in capture templates

2016-05-03 Thread Tory S. Anderson
I have some capture templates that supply both a deadline and a 
regular date. This is because I want the days-in-advance notice of 
deadlines when I view in my agenda, but deadlines are not exported 
to ICAL so I need a regular date as well. However, these two are 
always the same value. Any suggestions on how to clone them so I 
only need to enter them once?


--8<---cut here---start->8---
;; in my setq org-capture-templates
("tT" "Soon (tomorrow) TODO" entry (file+headline 
"/home/torysa/emacs/org/td.org" "Tomorrow")

 "* TODO %^{prompt}
			%^{Insert}T	DEADLINE: %^{Deadline}T%?" 
:prepend t)

--8<-------cut here---end--->8---

--
Tory S. Anderson
Computational Cognitive Narratologist & Application Developer
http://toryanderson.com



Re: [O] tables, comment in one line, export to html

2016-04-26 Thread Tory S. Anderson
Second the suggestion to make | / | columns ignored for export in 
mainstream orgmode. 


Uwe Brauer <o...@mat.ucm.es> writes:


> Hi Uwe
> On Tue, Apr 19, 2016 at 1:08 PM, Uwe Brauer 
> <o...@mat.ucm.es> wrote:



> I have the same need now and just hacked something simple 
> together to

> export

> | / | /  ||  |
> |   | 1n | 2y |  3y |

Great!! thanks, I just tested it. So all columns having a / 
header are
ignored, at least for html and latex export. This is really 
great.
Thanks again. I'd say that code should be somehow included in 
mainstream

orgmode, if you don't mind?

regards

Uwe





--
Tory S. Anderson
Computational Cognitive Narratologist & Application Developer
http://toryanderson.com



Re: [O] State of things: Email with orgmode?

2016-04-26 Thread Tory S. Anderson
Gnorb looks really interesting, but is lacking a crucial "using 
it" section on the github [1], so I don't know what it can 
actually do or what a use-case would be. Does it do what org-mime 
does? 


Eric Abrahamsen <e...@ericabrahamsen.net> writes:


torys.ander...@gmail.com (Tory S. Anderson) writes:

For ages I've been hearing about people doing or wanting email 
with
orgmode. I've been using gnus for years, but am curious as to 
what is

possible with orgmode. My search engines aren't revealing any
explanations, but orgmode navigation combined with the 
composition
possiblities with things like html export and integration with 
orgmode
power seems like  nice potential. Orgmode already has a very 
useful
facility with taking links to Gnus messages, and the highly 
useful org
contacts; what else is out there? Is there a way to write and 
send
emails from orgmode, without just doing copy/paste/attach? 


I've got a package in Elpa called Gnorb, that provides some 
integration

between Org and Gnus. It also includes a function
`gnorb-org-email-subtree' that lets you export a subtree as a 
text or

file, and send it as an email. That might also be useful.






Footnotes: 
[1]  https://github.com/girzel/gnorb


--
Tory S. Anderson
Computational Cognitive Narratologist & Application Developer
http://toryanderson.com



[O] State of things: Email with orgmode?

2016-04-25 Thread Tory S. Anderson
For ages I've been hearing about people doing or wanting email 
with orgmode. I've been using gnus for years, but am curious as to 
what is possible with orgmode. My search engines aren't revealing 
any explanations, but orgmode navigation combined with the 
composition possiblities with things like html export and 
integration with orgmode power seems like  nice potential. Orgmode 
already has a very useful facility with taking links to Gnus 
messages, and the highly useful org contacts; what else is out 
there? Is there a way to write and send emails from orgmode, 
without just doing copy/paste/attach? 



[O] Duplicating Capture Times

2016-03-21 Thread Tory S. Anderson
I use orgmode capturing to schedule events. The date ends up going 
in to three places: since my agenda file has things scheduled in a 
tree, it asks where in the tree to put it. Then it asks, what 
regular date to insert for the schedule; then it asks what date to 
use for the deadline. I use deadlines because of how they function 
in orgmode, and I use regular dates so they are exported properly 
for Google Calendar. But how can I cause two or even all three of 
these to use the answer from just one prompting of the date, so I 
don't have to specify so many times?


Thanks,
- Tory



Re: [O] TODO items which do not appear in the agenda?

2015-10-30 Thread Tory S. Anderson
I'm a little confused; for me, by default, TODO items do NOT 
appear in the agenda. They only appear if connected to a deadline, 
date, or schedule item. I have files of hundreds of TODO items 
that don't appear in agenda unless I give them a date. I think 
this is the default behavior. 


Marcin Borkowski  writes:


Hi all,

I would like to have some TODO items, so that I can mark some 
tasks as
incomplete; however, I don't want them to appear in the agenda, 
so that

it's not too cluttered.  Use case:

* Blog
** DONE Blog post idea 1
** TODO Blog post idea 2

I know about (setq org-agenda-todo-list-sublevels nil). 
However,
marking the whole "Blog" headline as DONE only so that I don't 
see the

individual post ideas in my agenda seems hackish.

I also know that I could define my own TODO items and use 
filtering
(maybe even with a custom agenda command).  Maybe this is the 
way to go,

but somehow I'd prefer a simple set of TODO keywords
(TODO/DONE/CANCELED, for instance).

So, does the Org hive mind have any other ideas how to implement 
"TODO

items which do not appear in the agenda"?

TIA




Re: [O] Favorite way of syncing?

2015-09-11 Thread Tory S. Anderson
At the moment I'm using a self-hosted OwnCloud to do syncing; it's 
super easy (takes care of itself), but sometimes conflicts are a 
problem (particularly when I forget to save my buffers before 
leaving work); if you notice it, though, it provides a conflict 
version (and has automatic versioning a la Dropbox). 


Eric Abrahamsen <e...@ericabrahamsen.net> writes:


jorge.alfaro-muri...@yale.edu (Jorge A. Alfaro-Murillo) writes:


Tobias Frischholz writes:

I was wondering what is your favorite way of syncing your org 
files
and everything. 
[...] 
I’ve also read about org-sync and magit (git is an option for 
me).

And now I’m starting the get confused.


magit is just the emacs mode for git, if you don't have it and 
use git
you should really install it. But it does not sync anything you 
still
have to M-x magit  F F and M-x magit  P P, for 
pull and

push.

I have several computers and synchronize my org files with 
git. I
think it is the best option because I do not have to worry 
about the
sync not working (for example when I do not have a connection) 
and

conflicts in the files.


I do this, too. I don't think Magit helps much, in fact I'd be 
better
off writing functions for `emacs-startup-hook' and 
`kill-emacs-hook'

that do my pushes and pulls for me.

But for now, I just try to remember to commit and push before I 
leave a

machine.

This way, you also really learn to appreciate using "git fetch" 
and "git

status", rather than doing a blind "git pull".

Eric





--
Tory S. Anderson
Computational Cognitive Narratologist
http://toryanderson.com



[O] Org-Contacts skip archived contacts

2015-09-01 Thread Tory S. Anderson
It would be useful to mark a contact as "archived" so that it 
won't auto-fill in an email, as when I may want to look someone up 
in the future but don't need to contact them now. Judging by the 
docstring I thought the answer would be with 
`org-contacts-matcher` but I can't quite make sense of how this 
thing works. Is there a line I should add to this to tell it to 
ignore `:archive:` tags, or can someone think of an easier way? 


--8<---cut here---start->8---
(defcustom org-contacts-matcher
 (mapconcat 'identity (list org-contacts-email-property
 org-contacts-alias-property
 org-contacts-tel-property
 org-contacts-address-property
 org-contacts-birthday-property)
 "<>\"\"|")
 "Matching rule for finding heading that are contacts.
This can be a tag name, or a property check."
 :type 'string
 :group 'org-contacts)
--8<---cut here---end--->8---




[O] Suggestions on sync algorithms

2015-09-01 Thread Tory S. Anderson
I'm planning to make a mode that allows me to manage my Pivotal 
Tracker projects from orgmode; Pivotal Tracker exposes a rich JSON 
API and the basic task of mapping Pivotal data types to Org syntax 
is conceptually straight forward. But I'm trying to decide on the 
best way to perform syncronization so that changes on pivotal 
(which may be made by team members) are correctly synced with my 
local changes, and vice versa. I'm hoping for suggestions (links 
OK) on a clean way to perform this synchronization. One option 
would be to convert local and remote to org and then ediff the 
products; is there a more automatic way of which I should be 
aware?


- Tory



[O] Collaborative Team Project Management with Orgmode?

2015-08-21 Thread Tory S. Anderson
I've relied on Orgmode heavily for over half a decade, and I'm 
loathe to leave it. But what solutions have been found out there 
for using it collaboratively (where others are not using emacs), 
rather than just for personal task management (where it excels)? 
It has some integration with Trello, I know; some of my co-workers 
are advocating BaseCamp (...) and PivotalTracker. PivotalTracker 
looks pretty good, but I would rather find a way to leverage 
orgmode in a way that facilitates collaboration. What has worked 
for you? 



[O] org-agenda-custom-commands with org-agenda-filter-by-regexp

2015-08-20 Thread Tory S. Anderson
I've previously had success with using 
`org-agenda-tag-filter-preset` in `org-agenda-custom-commands` but 
I wanted to include OR logic on two different tags, which seemed 
beyond th tag-filter (which seems to use AND logic). In my agenda 
view I can use `=` to use a conditional on two tags, but I can't 
seem to duplicate that behavior in a custom command. With no 
errors it simply doesn't seem to work, and googling around has 
proved fruitless for giving examples; I've tried a number of 
different syntax without effect.


--8---cut here---start-8---
(setq org-agenda-custom-commands
 '((w.Work)
(wd Work Day
	 ((agenda  ((org-agenda-span 1) 
	 (org-agenda-start-on-weekday nil) 
	 (org-agenda-filter-by-regexp 
	 '(:\\(ODH\)\\|\\(AGENDA\\):

--8---cut here---end---8---


What's the proper way to get a working regexp filter in my 
custom-command? Thanks!




Re: [O] org-ref helm-bibtex notes

2015-06-16 Thread Tory S. Anderson
Yeah, helm bibtex is awesome. This has been a major topic of discussion in the 
module development. See: https://github.com/tmalsburg/helm-bibtex/issues/40

Last I talked with the developer, he was thinking hard about it and had maybe 
even started development on single-note file options. 

Julian Burgos jul...@hafro.is writes:

 Dear list,

 I have been using org-ref for a while, using reftex to insert citations in
 my org documents.  Now I am switching to helm-bibtex, which is pretty
 awesome.  I have a couple of question about the note files.  Org-ref uses
 a single file to keep notes (e.g. notes.org), but helm-bibtex assumes that
 notes are kept in separate files, one per article.  My questions are:

 a) Do you have a preference in the single file vs multiple files question?
  Are advantages/disadvantages?  I tend to prefer the single file option,
 it makes search easy and also I can add TODO items that later I can pull
 out in the agenda view.  With multiple files this would not be as easy. 
 Do you agree?

 b) Helm-bibtex identifies which references have a note file, adding a
 symbol on the reference list.  Can we make helm-bibtex look into a single
 file (say the notes.org file), look for the :Custom_ID: properties of
 the entries, and use that to mark the reference list?  I am teaching
 myself emacs-lisp but this is above my capacity right now.

 Many thanks,

 Julian



Re: [O] Javascript syntax highlighting?

2015-05-25 Thread Tory S. Anderson
I use somethign similar for blogs I write in orgmode. In my case, it depends on 
having a server-side library for syntax highlighting: I use 
google-code-prettify[1] on the server side and then just paste the exported 
code from orgmode, and it works for me. 

Peter Davis p...@pfdstudio.com writes:

 If I edit a JavaScript file in emacs, I get beautiful syntax 
 highlighting. However, if I put the same code in a .org file between

 #+BEGIN_SRC Javascript
 ...
 #+END_SRC

 I get nothing but plain black text. Is there any way to get the syntax 
 highlighting in HTML output, so I can use it in a blog post?

 Thanks,
 -pd

Footnotes: 
[1]  https://code.google.com/p/google-code-prettify/




Re: [O] org-clock-persistence-insinuate not working anymore (25.0.5)

2015-05-25 Thread Tory S. Anderson
How about any suggestions on how to debug this, since it isn't actually 
throwing any errors (and I'm a novice emacs-debugger)? The tasks  list will 
contain interrupted task and recent task but none of the actual task names. 
(this comes from passing a single arg to org-clock-in)

torys.ander...@gmail.com (Tory S. Anderson) writes:

 I've been using the following code for several months to make it easy to 
 clock back in to my frequent tasks as I track my time usage:

 (org-clock-persistence-insinuate)
 (setq org-clock-persist t)

 A few days ago I updated emacs to the dev master and my clock is no longer 
 persisting; the list of recent tasks is perpetually nil. Any ideas on how 
 to fix this, or what happened?



[O] org-clock-persistence-insinuate not working anymore (25.0.5)

2015-05-23 Thread Tory S. Anderson
I've been using the following code for several months to make it easy to clock 
back in to my frequent tasks as I track my time usage:

--8---cut here---start-8---
(org-clock-persistence-insinuate)
(setq org-clock-persist t)
--8---cut here---end---8---

A few days ago I updated emacs to the dev master and my clock is no longer 
persisting; the list of recent tasks is perpetually nil. Any ideas on how to 
fix this, or what happened?




[O] completing-read for org-clock-select-task: It works!

2015-03-24 Thread Tory S. Anderson
In my first attempt at actually adding functionality to an existing emacs 
library, I've written some code to make `org-clock-select-task' use 
completing-read instead of the built-in org menu if you set 
`org-select-task-completing', for those who would find this useful (it now 
works with Helm). It seems like my functions, which are backed by a hash table, 
ought to be more capable of removing (non-adjacent) duplicates from the list 
since the table keys are the strings themselves, but I still see them 
appearing. Why doesn't the hash table merge the entries (they seem to have 
identical keys)?

Should this adjustment be useful to anyone else, what would I do next to 
contribute? As this is a first forray into more public-use elisp, I'm also open 
to any other suggestions or tips. 

Code at: 
http://www.toryanderson.com/files/helm-org-clock.el



[O] Org-Timer has nice popups; how can I use them elsewhere?

2015-03-23 Thread Tory S. Anderson
So, orgmode timers have a nice popup when they run out; on my KDE, it's gentle 
GUI-box (not emacs) that nicely rises and falls. I would love to have this as 
how my appt reminders work, instead of the ugly minibuffer screeching; but 
looking through the org-timer code didn't give me any ideas. How can I achieve 
this? 



[O] Footnotes as links?

2015-03-21 Thread Tory S. Anderson
I guess this is either a feature request or a discussion point, but is there a 
good reason that footnotes aren't considered as links for the purposes of 
things like `org-next-link` (despite being displayed like links)? From where 
I'm sitting, this would be very useful for the sake of things like ace-links, 
which allows you to quickly navigate to on-screen links. 



Re: [O] Bug: message after org-clock-in [8.2.10 (8.2.10-34-gc41bbc-elpa @ /home/torys/.emacs.d/elpa/org-20150223/)]

2015-03-07 Thread Tory S. Anderson
I'd love to. Unfortunately, search engines were unable to give me decisive 
answer on what an ECM is. 

Nicolas Goaziou m...@nicolasgoaziou.fr writes:

 Hello,

 torys.ander...@gmail.com (Tory S. Anderson) writes:

 After I use `org-clock-in` (using a C-u modifier and keyed globally), I 
 receive a message like the following: 
 Entry repeats: DEADLINE: 2015-03-04 Wed 14:00 +1w

 This message does not correspond to either the task I clocked out from or 
 the task I clocked in to. I assume this is a (minor) bug.

 Could you provide an ECM for this?

 Thank you.


 Regards,



Re: [O] Bug: message after org-clock-in [8.2.10 (8.2.10-34-gc41bbc-elpa @ /home/torys/.emacs.d/elpa/org-20150223/)]

2015-03-07 Thread Tory S. Anderson
Alright; because of the need for a fully loaded agenda (which probably needs to 
include periodic appointments), I've been unable to duplicate this from `emacs 
-Q`. However, I can toggle it's happening in my working setup.

With a functional agenda including periodic files, with `(setq 
org-log-note-clock-out t)`, upon completing a note after clock-out I receive 
unidentified messages such as,
Entry repeats: DEADLINE: 2015-03-13 Fri 20:00 +1w 

This seems to occur regardless of the buffer I am accessing at the time of 
clock-out.
Can anyone else verify this happening in their working setup when clocking 
notes are enabled, as per above? 

Brett Viren b...@bnl.gov writes:

 torys.ander...@gmail.com (Tory S. Anderson) writes:

 I'd love to. Unfortunately, search engines were unable to give me
 decisive answer on what an ECM is.

 Heh.  I guessed what it meant, but not what it stood for, and found:

   http://orgmode.org/worg/org-faq.html

 Some users call this an ECM, a French acronym that means a
 minimal complete example.

 Cheers,
 -Brett.



Re: [O] What to use for tables with lengthy text in cells?

2015-03-05 Thread Tory S. Anderson
Not a bad idea, but this would be incompatible with the existing useof 
horizontal lines to separate sections and export to visual lines, right? 

Skip Collins skip.coll...@gmail.com writes:

 Here's another suggestion. There could be an optional org table mode
 in which horizontal lines are used to separate rows:

 | Lorem ipsum dolor sit amet,         | foo |
 | consectetur adipiscing elit. Sed    |     |
 | sit amet luctus sapien. Phasellus   |     |
 | malesuada, ipsum et hendrerit       |     |
 | mattis, neque neque sodales risus,  |     |
 | hendrerit consectetur enim ipsum eu |     |
 | felis.                              |     |
 |-+-|
 | Vestibulum ante ipsum primis in     | bar |
 | faucibus orci luctus et ultrices    |     |
 | posuere cubilia Curae; Nulla dictum |     |
 | iaculis sodales. Sed elementum      |     |
 | semper leo, venenatis lacinia odio  |     |
 | eleifend vitae. Aliquam lectus      |     |
 | felis, tempor nec lacus ut,         |     |
 | consequat tincidunt nisl.           |     |
 |-+-|
 | Fusce eu nunc sit amet orci         | baz |
 | lobortis accumsan. Vivamus laoreet  |     |
 | ante pellentesque, scelerisque      |     |
 | tellus nec, ultrices nibh. Etiam    |     |
 | scelerisque lobortis erat, in       |     |
 | consectetur nisi tincidunt a. Duis  |     |
 | eu est elit. Pellentesque fringilla |     |
 | gravida ligula, non convallis       |     |
 | ligula viverra sollicitudin.        |     |

 Perhaps adding the required machinery to allow in-cell paragraph
 filling would not be too difficult?



Re: [O] clocktables include \emsp - how to get rid of that?

2015-03-04 Thread Tory S. Anderson
This effect has been discussed here: 
http://comments.gmane.org/gmane.emacs.orgmode/90292

It exports nicely, so I believe that's the reason it was made this way. You can 
replace them with spaces using `org-toggle-pretty-entities`, although it will 
throw off the width of your table. Otherwise you can edit the code that inserts 
them, which is mentioned in the linked thread.

- Tory

Rainer Stengele rainer.steng...@online.de writes:

 Hi,

 I am getting \emsp in my clocktable reports.
 I use

 #+BEGIN: clocktable :maxlevel 4 :fileskip0 t :tcolumns 0 :level nil :scope 
 agenda-with-archives :timestamp nil :block 2015-03 :step day :link t  
 :stepskip0 t
 #+END:

 to create these clocktable


 Daily report: [2015-03-02 Mo]
 | File  | Headline
  |   Time |
 |---+--+|
 |   | ALL *Total time*
  | *9:00* |
 |---+--+|
 | Projectmanagement.org | *File time* 
  | *2:45* |
 |   | \emsp [[..][Project Managament: Weekly meetings 
 etc.]]   |   2:45 |
 |   | \emsp\emsp [[..][TODO *00 - Project Managament 
 -...]]|   2:45 |

 Anybody has an idea where this comes from and how to get rid of it?

 Thank you.
 Regards, Rainer



Re: [O] What to use for tables with lengthy text in cells?

2015-03-03 Thread Tory S. Anderson
It's not a perfect solution (many of us have wished for some way of doing 
multi-line cells in orgmode, but there's no clear solution...) but I use a 
combination of width restraints[1] and toggle-truncate-lines, which I've bound 
to F5. If it comes to the worst, I would probably pull out csv-mode and use a 
CSV file. I think the problem is that there's no simple way to wrap within just 
a cell in Emacs. 

Charles C. Berry ccbe...@ucsd.edu writes:

 On Mon, 2 Mar 2015, Charles C. Berry wrote:

 On Mon, 2 Mar 2015, Matt Price wrote:

 I have a project which will require me to enter about a paragraph in each
 of 5 fields several times a day. I would use org tables, but I need to be
 able to see the table contents in the buffer, and org hides long lines. I
 tried using table.el but it feels incredibly clumsy - for instance, I can't
 find a way to add a row to the end of the table, which seems crazy.
 
 I am wondering  what other people do in this situation - I guess I could
 use a spreadsheet or an odt document but I would much rather stay in emacs
 if I can.

 I sometimes use babel blocks for this purpose.


 But I did not give an example of filling in a table using that
 strategy.

 So here is an example of how you would use that strategy to fill out a
 table with fields that get edited. Obviously, you can use the string
 resulting from org-fill-template in other ways than in the example
 below.


 * Not exported   
 :noexport:

 Define a table template (and put it out of the way in a subtree that
 is not exported)

 #+name: tmplt
 #+BEGIN_SRC org
| Never change me | %a|
| %b  | Dont modify me either |
 #+END_SRC

 Define the fill-in cells and be sure they are not exported:

 #+name: pcta
 #+BEGIN_SRC org
 this is ~a~.
 #+END_SRC

 #+name: pctb
 #+BEGIN_SRC org
 this is *b*.
 #+END_SRC


 * This gets exported

 #+HEADER: :var a=pcta() :var b=pctb() :var tm=tmplt() 
 #+BEGIN_SRC emacs-lisp :wrap latex :exports results
(org-export-string-as
 (org-fill-template tm `((a . ,a)(b . ,b)))
 'latex t)
 #+END_SRC

 #+RESULTS:
 #+BEGIN_latex
 \begin{center}
 \begin{tabular}{ll}
 Never change me  this is \verb~a~.\\
 this is \textbf{b}.  Dont modify me either\\
 \end{tabular}
 \end{center}
 #+END_latex

 HTH,

 Chuck

Footnotes: 
[1]  
http://orgmode.org/manual/Column-width-and-alignment.html#Column-width-and-alignment




Re: [O] Notifications-notify for org-mode scheduled items?

2015-03-02 Thread Tory S. Anderson
I was actually just playing with this. If you don't mind adding your whole 
daily schedule to the notify list, you can use

(org-agenda-to-appt)

Unrelated to agenda, there is (appt-add)

As far submitting just a single item from the agenda for a pop-up reminder, I'm 
still at a loss.
- Tory

Leo Ufimtsev lufim...@redhat.com writes:

 Hello folks,

 I would like to receive desktop notifications (1* e.g below) for scheduled 
 items. 
 E.g if I schedule like this:

 * Make Coffee 
   SCHEDULED: 2015-03-02 Mon 01:30

 Then I would like a desktop notification to pup up at 1:30 telling me to make 
 coffee.

 I saw the org-notify package, but besides this post:
 http://permalink.gmane.org/gmane.emacs.orgmode/59339
 I didn't see any documentation on it, making it somewhat tricky to configure. 

 I'd be willing to spend time figuring out the package, but I'm wondering, has 
 someone got something like this to work already?
 And if so, would you be willing to share a 'high-level' overview? (I'd be 
 happy to figure out the details).

 Thank you


 1* I get a desktop notification if I run this command:
 (notifications-notify
:title Title
:body This is bimportant/b.
:actions '(Confirm I agree Refuse I disagree)
:on-action 'my-on-action-function
:on-close 'my-on-close-function)
 ref:
 https://www.gnu.org/software/emacs/manual/html_node/elisp/Desktop-Notifications.html


 Leo Ufimtsev | Intern Software Engineer @ Eclipse Team



[O] Bug: message after org-clock-in [8.2.10 (8.2.10-34-gc41bbc-elpa @ /home/torys/.emacs.d/elpa/org-20150223/)]

2015-02-26 Thread Tory S. Anderson
-on-weekday nil)
  (org-agenda-tag-filter-preset (quote 
(+THESIS
 )
)
   )
  )
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-default-notes-file ~/org~/Work/nrl_notes.org
 org-capture-templates '((c Contacts entry (file ~/contacts.org)
  * %(org-contacts-template-name)\n  
:PROPERTIES:\n  :EMAIL: %(org-contacts-template-email)\n
  :END:)
 )
 org-drawers '(PROPERTIES HIDDEN NOTE COMMENT CODE CLOCK LOGBOOK)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-latex-format-drawer-function '(lambda (name contents) contents)
 org-odt-format-headline-function 'ignore
 org-from-is-user-regexp \\Tory S\\. Anderson\\
 org-icalendar-timezone America/New_York
 org-html-postamble nil
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-babel-pre-tangle-hook '(save-buffer)
 org-html-head-include-default-style nil
 org-mode-hook '(org-clock-load
 #[nil \300\301\302\303\304$\207 [org-add-hook 
change-major-mode-hook org-show-block-all append local] 5]
 #[nil \300\301\302\303\304$\207 [org-add-hook 
change-major-mode-hook org-babel-show-result-all append local] 5]
 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-ascii-format-drawer-function '(lambda (name contents width) contents)
 org-odt-format-inlinetask-function 'ignore
 org-clock-persist t
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-agenda-finalize-hook '(org-agenda-property-add-properties)
 org-export-before-parsing-hook '((lambda (backend)
   (if (eq backend (quote odt))
(progn (goto-char (point-min))
 (if
  (re-search-forward
   (rx-to-string
(quote
 (one-or-more
  (or (in (0 . 8)) (in (11 . 12)) (in 
(14 . 31)) (in (55296 . 57343)) (in (65534 . 65535))
   (in (1114112 . 4194303)))
  )
 )
)
   nil t)
  (progn (replace-match  t t)))
 )
)
   )
  )
 org-html-text-markup-alist '((bold . strong%s/strong) (code . 
code%s/code) (italic . i%s/i)
  (strike-through . del%s/del) (underline . 
span class=\underline\%s/span)
  (verbatim . kbd%s/kbd))
 org-cycle-include-plain-lists integrate
 org-modules '(habits org-w3m org-bbdb org-bibtex org-docview org-gnus org-info 
org-irc org-mhe org-rmail)
 org-agenda-window-setup 'current-window
 org-agenda-span 'day
 org-catch-invisible-edits 'smart
 org-confirm-elisp-link-function 'yes-or-no-p
 org-html-preamble nil
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-odt-format-drawer-function '(lambda (name contents) contents)
 org-html-head style type=\text/css\\n !--/*--![CDATA[/*!--*/\n  
.title  { text-align: center; }\n  .todo   { font-family: monospace; color: 
red; }\n  .done   { color: green; }\n  .tag{ background-color: #eee; 
font-family: monospace;\npadding: 2px; font-size: 80%; font-weight: 
normal; }\n  .timestamp { color: #bebebe; }\n  .timestamp-kwd { color: #5f9ea0; 
}\n  .right  { margin-left: auto; margin-right: 0px;  text-align: right; }\n  
.left   { margin-left: 0px;  margin-right: auto; text-align: left; }\n  .center 
{ margin-left: auto; margin-right: auto; text-align: center; }\n  .underline { 
text-decoration: underline; }\n  #postamble p, #preamble p { font-size: 90%; 
margin: .2em; }\n  p.verse { margin-left: 3%; }\n  pre {\nborder: 1px solid 
#ccc;\nbox-shadow: 3px 3px 3px #eee;\npadding: 8pt;\nfont-family: 
monospace;\noverflow: auto;\nmargin: 1.2em;\n  }\n  pre.src {\n
position: relative;\noverflow: auto;\npadding-top: 1.2em;\n  }\n  
pre.src:before {\ndisplay: none;\nposition: absolute;\n
background-color: white;\ntop: -10px;\nright: 10px;\npadding: 
3px;\nborder: 1px solid black;\n  }\n  pre.src:hover:before { display: 
inline

[O] org-agenda-to-appt interactively with multiple args?

2015-02-24 Thread Tory S. Anderson
So I've been playing around with org appointments and found the 
org-agenda-to-appt function; but upon calling it, it loads my whole day into 
the appointment queue. I have various questions, such as how I can view and 
edit the current queue, but more importantly, I read the following as part of 
the doc string:

(org-agenda-to-appt optional REFRESH FILTER rest ARGS)

Activate appointments found in `org-agenda-files'.
With a C-u prefix, refresh the list of
appointments.

If FILTER is t, interactively prompt the user for a regular
expression, and filter out entries that don't match it.

If FILTER is a string, use this string as a regular expression
for filtering entries out.

Now, is this function not primarily meant to be called interactively? Or, after 
all these years in emacs, am I going to learn how to pass multiple args to an 
interactive function? Because the fact is, I don't always want EVERYTHING in 
the appointment list. I just want an alarm for those one or two things...

Sheepishly yours,
- Tory



Re: [O] Org mode for the new guy.

2015-02-21 Thread Tory S. Anderson
I think you might like the orgmode reference cards (pick your format):

http://orgmode.org/worg/orgcard.html
http://orgmode.org/orgcard.pdf
http://orgmode.org/orgcard.txt

shameless-plug You might also be interested in my screencast/blog series, 
NOn-Programmer's Emacs
https://www.youtube.com/watch?v=Q8AqHdZTgNIindex=1list=PLGSBMyq5kLRZOPH4GlMqwskuyQ8AHmUwL

Welcome to Emacs for study; for university, I've lived on it.
- Tory

Garrett Fuller garrett...@gmail.com writes:

 I am still learning how to use emacs. When I was learned about org
 mode, I was really excited. I found it very difficult to extract the
 basic usage of org mode from the resources available on the website.
 The resources available are both plentiful and VERY thorough, but all
 I wanted was a rundown of basic use commands so I could play with it
 and get comfortable.

 I eventually got there, and wrote myself a little ,org cheat sheet of
 controls and commands. I wanted to share what I worked out with other
 beginners somehow, but I have absolutely no idea how to go about
 that.

 So, I figured I would share it with you guys. Maybe you can make it
 available for beginners? 

 Org mode is cooler than sliced bread, btw. Love it. I am now taking
 notes in all of my classes with it. Thanks alot!

 --
 The more I learn, the more I know I don't know.
 Garrett Fuller



Re: [O] orgmode-contacts wrong type arguments

2015-02-17 Thread Tory S. Anderson
Thanks Nick for the tip; I've recently learned about debug-on-entry, which I 
attempted to use to no avail last night, but the functions listed in the info 
manual you cited are useful. Following them I have found that the problem seems 
to be a conflict bewteen Org-Contacts and Helm; loading without helm enabled 
fixes the problem. Unfortunately, this seems like a lose-lose tradeoff to 
disable helm or go without mailing list functionality. I'm open to any 
suggestions, now that I know that a Helm conflict is apparently causing the 
listp error. 

Nick Dokos ndo...@gmail.com writes:

 torys.ander...@gmail.com (Tory S. Anderson) writes:

 Presumably this is related to my having upgraded to:
 Org-mode version 8.2.10 (8.2.10-33-g880a2b-elpa)
 GNU Emacs 25.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 
 2015-02-10 on localhost.localdomain

 I use org-contacts[1] to autofill addresses in GNUs. Normally can use
 +CATEGORY to add all names in a category; but now that particular
 functionality seems to be broken (although the package is otherwise
 functional). In my efforts to improve my elisp, can anyone tell me why
 the code doesn't work, and what might have changed to cause it to
 break?

 Error: 
 completion-in-region: Wrong type argument: listp, #(NAME
 addr...@gmail.com, NAME addr...@aol.com, NAME addr...@gmail.com,
 NAME addr...@gatech.edu 0 15 (fontified nil org-category
 contacts) 44 65 (fontified nil org-category contacts) 88 99
 (fontified nil org-category contacts) 127 141 (fontified nil
 org-category contacts))

 Footnotes: 
 [1]  https://julien.danjou.info/projects/emacs-packages#org-contacts


 When you get an error, the first thing you should do is get a backtrace:

(info (org) Feeback) 

 It's far more likely that you can find the error (or somebody can find
 it for you) with a backtrace in hand.



[O] Org open link in new window

2015-02-17 Thread Tory S. Anderson
Navigating through the labyrinth of org commands and wrappers, I've not been 
able to find out if there's already a way to open a link (particularly a 
footnote link) in a new window, so that I could retain my in-line location and 
context while reading the linked/footnoted text. I realize this functionality 
is probably out there, but I'm not seeing it in the manual section on links. 
How can I open links in new window (splitting my screen)? 



[O] orgmode-contacts wrong type arguments

2015-02-16 Thread Tory S. Anderson
Presumably this is related to my having upgraded to:
Org-mode version 8.2.10 (8.2.10-33-g880a2b-elpa)
GNU Emacs 25.0.50.6 (x86_64-unknown-linux-gnu, GTK+ Version 3.10.9) of 
2015-02-10 on localhost.localdomain

I use org-contacts[1] to autofill addresses in GNUs. Normally can use 
+CATEGORY to add all names in a category; but now that particular 
functionality seems to be broken (although the package is otherwise 
functional). In my efforts to improve my elisp, can anyone tell me why the code 
doesn't work, and what might have changed to cause it to break?

Error: 
completion-in-region: Wrong type argument: listp, #(NAME addr...@gmail.com, 
NAME addr...@aol.com, NAME addr...@gmail.com, NAME addr...@gatech.edu 0 
15 (fontified nil org-category contacts) 44 65 (fontified nil org-category 
contacts) 88 99 (fontified nil org-category contacts) 127 141 (fontified 
nil org-category contacts))

Footnotes: 
[1]  https://julien.danjou.info/projects/emacs-packages#org-contacts




Re: [O] Citation syntax: a revised proposal

2015-02-15 Thread Tory S. Anderson
+1

Thanks for the work substantiating the idea. 

Richard Lawrence richard.lawre...@berkeley.edu writes:

 Hi everyone,

 Since discussion seems to have petered out on the previous thread (see:
 http://thread.gmane.org/gmane.emacs.orgmode/94524), I took some time to
 go back over the discussion and write up a concrete proposal for
 citation syntax.

 This proposal represents my attempt to formulate a syntax that is easy
 to read, easy to parse, and covers all the use-cases that people
 mentioned as being important.  It is surely not perfect, but I learned a
 lot from the previous thread, and I hope something like this will serve
 the community's needs.

 The proposal is below, both inline (for easy quoting) and attached (for
 easy reading).  To keep it relatively short, I have mostly not explained
 my reasoning for the choices I made, but I am happy to do so here if
 anyone has questions.

 I welcome feedback, comments, criticisms, and objections on any point.
 However, since we've already had a long discussion about this, I
 respectfully request that we try to keep this thread focused.  To that
 end, I suggest:

   1) If you have criticisms or objections, please try to indicate
  whether you think they are `substantive' (e.g., you see a problem
  that would prevent you from using this syntax, or prevent Org from
  implementing it) or not (e.g., you would prefer a slightly
  different but equivalent way of expressing something).

   2) If you wish to express an opinion about the proposal without
  offering further comments, let us know by just replying with +1
  (meaning you'd like to see this syntax, or something reasonably
  similar to it, be adopted), 0, or -1 (meaning you'd prefer not to
  see this syntax or anything similar to it adopted).

 I guess this is my Valentine to the Org community. :) Thanks for reading!

 Best,
 Richard

 #+TITLE: Citation syntax, a revised proposal
 #+DATE: 2015-02-14 Sat

 #+AUTHOR: Richard Lawrence
 #+EMAIL: richard.lawre...@berkeley.edu

 #+LANGUAGE: en
 #+SELECT_TAGS: export

 #+EXCLUDE_TAGS: noexport

 * Citation syntax
 ** Requirements
 A citation is a textual reference to one or more individual works,
 together with other information about those works, grouped together in
 a single place.  

 Within a citation, each reference to an individual work needs to be
 capable of containing:
   1) a database key that references the cited work
   2) prefix / pre-note
   3) suffix / post-note
  
 Whole citations also need:
   4) [@4] a way of specifying whether the citation is in-text or
  parenthetical
   5) a way of representing a common prefix and suffix, if the citation
  is a multi-cite
   6) a way of specifying whether the citation should produce a
  complete bibliography entry in-place
   7) an extensible way of specifying formatting properties to export
  filters and/or specific export backends 
  
 ** Citation definitions
 *** Citation keys; bibliography references vs. complete entries 
 A citation key consists of a unique label preceded by a flag, which is
 optionally preceded by a hyphen.

 The flag is either `@' or `'.  `@' indicates that the citation should
 produce a normal reference to the bibliography entry for the cited
 work (in whatever style the document uses), located elsewhere.

 The `' flag indicates that the citation should produce a complete
 bibliography entry for the cited work in the place where the citation
 appears.

 The optional hyphen (`-') indicates that the author's name should be
 suppressed from the rendered citation.  (Note that this is only useful
 in author-X citation styles; it should have no effect in numeric
 styles.)

 *** Basic citations: Parenthetical vs. in-text 
 There are two basic types of citation: /parenthetical/ and /in-text/.
 Each of these may contain references to one or more individual works.

 The difference between parenthetical and in-text citations is
 expressed using parentheses around the /first/ citation key.  A
 parenthetical citation has such parentheses around the first citation
 key; an in-text citation lacks them.  (Parentheses around non-initial
 keys are permitted for visual consistency and to keep the grammar
 simple, but have no meaning.)

 A citation thus consists in general of a bracketed list, beginning
 with `cite:', of one or more individual references, each of which:
   - may contain a prefix,
   - must contain a citation key, which may or may not be surrounded by `(...)'
   - and may contain a suffix
 Individual references are separated by semi-colons.

 There are also two special cases to make simple-but-common uses very
 easy to type and read:
   1) a parenthetical citation for a single work with no prefix and
  suffix may be written by just surrounding the key with brackets,
  like: [@Doe99].
   2) an in-text citation for a single work with no prefix and suffix
  may be written as a /bare/ key, without brackets, like: @Doe99.
 

Re: [O] navigating org-clock-in recent work list

2015-02-14 Thread Tory S. Anderson
So being new to elisp, I'm hoping there's a simple hack to disable the 
org-clock-select-task menu and go to a default (e.g. `C-x b' or `C-x f') style 
type your option interface that will would be populated with and return the 
same thing as the select-task-menu? 

I've been looking at the elisp behind the buffer switching functions and I'm 
afraid it's beyond me; perhaps the default of invoking a prompt and passing 
autocompletion values isn't as simple as I'd hoped? 

torys.ander...@gmail.com (Tory S. Anderson) writes:

 As per a recent discussion on the mailing list, I'm using the following to 
 enable persistence and extended length of the clock history:

 ;; Org clock-in
 (org-clock-persistence-insinuate)
 (setq org-clock-persist t)
 ;;; * Orgmode Modules
 (add-to-list 'org-modules 'habits)
 ;; Number of clock tasks to remember in history.
 (setq org-clock-history-length 35)  ; 1 to 9 + A to Z

 It works great, with one annoying problem: now that I have a list that goes 
 to M, it can be hard to figure out which shortcut goes to which item. I can 
 think of two possible solutions:

 1. Alternately highlight lines, or underline (spreadsheet/table style)
 2. Preferably, since I use Helm, if there were simply an autocomplete prompt 
 (like switch-buffer; no shortcut keys) this would actually be easiest.

 Can I disable the special pop-up screen (i.e. `org-clock-select-task') and 
 just use an shortcut-less autocomplete prompt (which, with helm will be 
 facilitated)? 



[O] Orgmode → ODT: Certain chars break export

2015-02-13 Thread Tory S. Anderson
While we're on the topic of ODT export problems: I was in the process of 
converting PDF to Text to Org to ODT/DocX and discovered that certain 
characters seem to break exported odt documents, which fail with a line and col 
number. So far the only one I know for sure is the  (Char: C-l (12, #o14, 
#xc)). Hopefully a single fix can handle all such cases. 

You probably don't need it, but I verified with the following file:
http://toryanderson.com/files/breakorg.org

Org-mode version 8.2.10 (8.2.10-32-gddaa1d-elpa)



Re: [O] Orgmode → ODT: Certain chars break export

2015-02-13 Thread Tory S. Anderson
From a user perspective just stripping the characters seems best to me, but 
finding out what the characters seems obnoxious. Neither a quick search nor 
skimming the ODT doc specification[1][2] seem to give any insight into a set 
of illegal characters. Does elisp have anything similar to Java's 
isWhitespace[3] that could be used to check character features? 

Rasmus ras...@gmx.us writes:

 torys.ander...@gmail.com (Tory S. Anderson) writes:

 While we're on the topic of ODT export problems: I was in the process
 of converting PDF to Text to Org to ODT/DocX and discovered that
 certain characters seem to break exported odt documents, which fail
 with a line and col number. So far the only one I know for sure is the
  (Char: C-l (12, #o14, #xc)). Hopefully a single fix can handle
 all such cases.

 You probably don't need it, but I verified with the following file:
 http://toryanderson.com/files/breakorg.org

 The export is fine, but the produced XML is invalid since it contains an
 illegal character.  But how to resolve this?  Should ox strip illegal
 charterers (if so what are they)?  If so, could they be used for entities?

 —Rasmus

Footnotes: 
[1]  https://www.oasis-open.org/committees/tc_home.php?wg_abbrev=office
[2]  
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415196_253892949
[3]  http://www.fileformat.info/info/unicode/char/000c/index.htm




[O] navigating org-clock-in recent work list

2015-02-13 Thread Tory S. Anderson
As per a recent discussion on the mailing list, I'm using the following to 
enable persistence and extended length of the clock history:

--8---cut here---start-8---
;; Org clock-in
(org-clock-persistence-insinuate)
(setq org-clock-persist t)
;;; * Orgmode Modules
(add-to-list 'org-modules 'habits)
;; Number of clock tasks to remember in history.
(setq org-clock-history-length 35)  ; 1 to 9 + A to Z
--8---cut here---end---8---

It works great, with one annoying problem: now that I have a list that goes to 
M, it can be hard to figure out which shortcut goes to which item. I can think 
of two possible solutions:

1. Alternately highlight lines, or underline (spreadsheet/table style)
2. Preferably, since I use Helm, if there were simply an autocomplete prompt 
(like switch-buffer; no shortcut keys) this would actually be easiest.

Can I disable the special pop-up screen (i.e. `org-clock-select-task') and just 
use an shortcut-less autocomplete prompt (which, with helm will be 
facilitated)? 



Re: [O] Orgmode → ODT: Certain chars break export

2015-02-13 Thread Tory S. Anderson
There is a helpful wiki page now that you found XML; it even mentions my 
specific character.[1] The main source seems to be at the w3.org spec.[2]

Rasmus ras...@gmx.us writes:

 torys.ander...@gmail.com (Tory S. Anderson) writes:

 From a user perspective just stripping the characters seems best to
 me, but finding out what the characters seems obnoxious. 

 But maybe there is a valid way to represent such characters in XML?  At
 the very least entities must be replaced before stripping these...

 Neither a quick search nor skimming the ODT doc specification[1][2] seem
 to give any insight into a set of illegal characters. Does elisp have
 anything similar to Java's isWhitespace[3] that could be used to check
 character features?

 It's an XML thing.  When I tried to open the contents.xml with Firefox it
 also says broken XML.  But I also don't know which are the characters that
 are not supported by XML.

 —Rasmus

Footnotes: 
[1]  https://en.wikipedia.org/wiki/Valid_characters_in_XML#XML_1.1

[2]  http://www.w3.org/TR/xml11/#charsets




[O] Table formulas: daily hour * rate = cost

2015-02-12 Thread Tory S. Anderson
I have the followign table, which should speak for itself. First the cost 
column needs to be calculated, which is hours * rate, and then the hrs and 
ttl fields should be filled in based on sums of their columns. However, I'm 
not sure why $cost isn't being evaluated; I've tried it with column names as 
well as indices but unless I specify each field individually (e.g. @3$5) I 
can't get a result here. Formula debugging seems to ignore it, too. But I've 
been trying to follow the example on the advanced feature page[1] as closely 
as possible; what's the problem?

--8---cut here---start-8---
   |   | Date| Hours | Rate | Cost |
   | ! | | hours | rate | cost |
   |---+-+---+--+--|
   |   | February 9  |  4.00 |   38 |0 |
   |   | February 10 |  4.00 |   38 |0 |
   |   | February 11 |  4.00 |   38 |0 |
   |   | February 12 |  4.00 |   38 |0 |
   |   | February 13 |  4.00 |   38 |0 |
   |---+-+---+--+--|
   |   | |   20. |  |0 |
   | ^ | |   hrs |  |  ttl |
   #+TBLFM: $5=$hours*$rate::$hrs=vsum(@I..@II)::$ttl=vsum(@I..@II)
--8---cut here---end---8---

Footnotes: 
[1]  http://orgmode.org/org.html#Advanced-features




[O] [DONE] Re: Org Linking to Bookmark [+]

2015-02-11 Thread Tory S. Anderson
Thanks, Drew; I have it now. To all concerned, it's easy to add bookmark+ link 
support to org-mode with the following:

--8---cut here---start-8---
;;; * bmkp links http://orgmode.org/manual/Adding-hyperlink-types.html
 (org-add-link-type bmkp 'org-bmkp-open)
 (add-hook 'org-store-link-functions 'org-bmkp-store-link)
 
 (defcustom org-bmkp-command 'bookmark-jump
   The Emacs command to be used to display a bmkp page.
   :group 'org-link
   :type '(choice (const bookmark-jump) (const bookmark-jump-other-window)))

 (defun org-bmkp-open (path)
   Visit the bmkppage on PATH.
 PATH should be a bookmark name that can be thrown at the `bookmark-jump' 
function.
   (funcall org-bmkp-command path))
 
 (defun org-bmkp-store-link ()
   Store a link to a bmkp bookmark.
   (when (memq major-mode '(bookmark-bmenu-mode))
 (let* ((bookmark (bookmark-bmenu-bookmark))
(link (concat bmkp: bookmark))
(description (format Bookmark: %s bookmark)))
   (org-store-link-props
:type bmkp
:link link
:description description
--8---cut here---end---8---




Drew Adams drew.ad...@oracle.com writes:

  (defun org-bmkp-store-link ()
Store a link to a bmkp bookmark.
(when (memq major-mode '(bookmark-bmenu-mode))
  (let* ((bookmark (org-bmkp-get-bookmark-name))
 
   |
   v
  (bookmark-bmenu-bookmark)

 It looks like you are trying to get the name of the bookmark at
 point in buffer `*Bookmark List*'.  To do that, just evaluate
 (bookmark-bmenu-bookmark).

 For Bookmark+, if you pass that function a non-nil arg then you
 get the full bookmark record, not just the name.  (But anyway,
 most bookmark functions accept either the name or the bookmark.)

 (No relation with Org links, but you can also create simple, 
 non-persistent bookmark links using `bmkp-insert-bookmark-link'.
 Dunno whether that will help with what you want to do.
 http://www.emacswiki.org/emacs/BookmarkPlus#BookmarkLinks)



[O] With Sticky Agenda, org-calendar-goto-agenda doesn't work

2015-02-11 Thread Tory S. Anderson
Bug, I suppose. If I have sticky agenda mode enabled, later going to my 
calendar and pressing c (`org-calendar-goto-agenda') on a date just takes me 
to whatever date is currently displayed in my agenda. I have to 
`org-toggle-sticky-agenda' before it it will work. 



[O] Org Linking to Bookmark [+]

2015-02-11 Thread Tory S. Anderson
I have weekly TODO items that link to something that needs to be updated; for 
instance, I write a weekly letter to my daughter where  each week the actual 
file for the letter will change. Right now I have to manually update that link 
in the org file, which is quite cumbersome. If I could just link to a bookmark 
then periodic updates of the bookmark would take care of any problem with 
updating the todo item. So, I've been tryin to kludge a solution based on the 
orgmode manual; while any suggestions would be useful for my budding elisp 
skills, in particular I'm not sure how to write the last function 
(org-bmkp-get-bookmark-name). Any suggestions? 

--8---cut here---start-8---
;;; * bmkp links http://orgmode.org/manual/Adding-hyperlink-types.html
 (org-add-link-type bmkp 'org-bmkp-open)
 (add-hook 'org-store-link-functions 'org-bmkp-store-link)
 
 (defcustom org-bmkp-command 'bmkp
   The Emacs command to be used to display a bmkp page.
   :group 'org-link
   :type '(choice (const bookmark-jump) (const bookmark-jump-other-window)))
 
 (defun org-bmkp-open (path)
   Visit the bmkppage on PATH.
 PATH should be a bookmark name that can be thrown at the `bookmark-jump' 
function.
   (funcall org-bmkp-command path))
 
 (defun org-bmkp-store-link ()
   Store a link to a bmkp bookmark.
   (when (memq major-mode '(bookmark-bmenu-mode))
 (let* ((bookmark (org-bmkp-get-bookmark-name))
(link (concat bmkp: bookmark))
(description (format Bookmark)))
   (org-store-link-props
:type bmkp
:link link
:description description
 
 (defun org-bmkp-get-bookmark-name () ;; TODO
   Get the bookmark name at point (from bookmark list).
   (if (string-match  \\(\\S-+\\)\\* (buffer-name))
   (match-string 1 (buffer-name))
 (error Cannot create link to this bmkp bookmark)))
--8---cut here---end---8---



Re: [O] Simple in-buffer links?

2015-02-09 Thread Tory S. Anderson
Hi Lawrence, 

Welcome to org-mode! I think what you're looking for is footnote 
funcationality[1]. To get started, just use `C-c C-x f' in your orgmode 
document. Then use it again to go back to where you were. There's more you can 
do and the page I've cited will get you started. 

HTH,
- Tory

Lawrence Bottorff borg...@gmail.com writes:

 I'm a beginner and I can't figure out how to build a simple link. All
 I want to do is have numbered footnotes throughout my org file that,
 when clicked, jump down to that footnote. Eg:

 -- This is in my org file and I'm describing Emacs fill (1). You can
 also do auto-fill (2)

 .
 .
 .

 (1) A fill is text formatting to look like a block.
 (2) Auto-fill sets fill for the whole life of the buffer.

 This is all I want to do. I might also like these footnote
 elaborations at the bottom to be in another location (another file).

 LB

Footnotes: 
[1]  http://orgmode.org/manual/Footnotes.html




[O] Automatically entering org blocks?

2015-02-09 Thread Tory S. Anderson
Is there a command for automatically entering org blocks (such as for quotes or 
src), the same way there's a command for inserting drawers? I'm sure there must 
be, but I've searched the block and insert command lists and don't see 
anything that seems promising.

--8---cut here---start-8---
#+BEGIN_QUOTE
Deeply insightful quotation!
#+END_QUOTE
--8---cut here---end---8---

I'm sure I'm missing something; it's a pain to have to manually begin and close 
these things every time. I guess I'm getting spoiled by so much of the org mode 
goodness that makes things easier. 



[O] Adding Google Code Prettify support to exported code blocks

2015-02-07 Thread Tory S. Anderson
I've started using Google Code Prettify on my blog and needed to add better 
support in the exports I'm getting out of org-mode. In particular, on my block 
prettify seems to do a poor job of guessing the language; so I've edited 
org-html-src-block to add the prettify tags (which are similar to the already 
exported src tags). But, ever the lisp learner, I'm open to suggestions for 
improvements. Following are code and an example. 

--8---cut here---start-8---
;; Exporting code blocks suitable for google code prettify 
(https://code.google.com/p/google-code-prettify/)
(defun org-html-src-block (src-block contents info)
  Transcode a SRC-BLOCK element from Org to HTML.
CONTENTS holds the contents of the item.  INFO is a plist holding
contextual information.
Modified to work with google code prettify (if installed on site)
  (if (org-export-read-attribute :attr_html src-block :textarea)
  (org-html--textarea-block src-block)
(let ((lang (org-element-property :language src-block))
  (caption (org-export-get-caption src-block))
  (code (org-html-format-code src-block info))
  (label (let ((lbl (org-element-property :name src-block)))
   (if (not lbl) 
 (format  id=\%s\
 (org-export-solidify-link-text lbl))
  (if (not lang) (format pre class=\example\%s\n%s/pre label code)
(format
 div class=\org-src-container\\n%s%s\n/div
 (if (not caption) 
   (format label class=\org-src-name\%s/label
   (org-export-data caption info)))
 ;; add prettyprint and lang- tags to exports
 (format \npre class=\prettyprint lang-%s src src-%s\%s%s/pre 
lang lang label code))
--8---cut here---end---8---

This allows this org block: 
--8---cut here---start-8---
#+BEGIN_SRC lisp
;; saving views
(setq org-agenda-custom-commands
  '((c . Weekly class agendas 2015-S)
(c6 LMC 6215
 ((agenda  ((org-agenda-span 7) (org-agenda-start-on-weekday nil) 
(org-agenda-tag-filter-preset '(+LMC_6215 -SCHEDULE))
(c8 CS 8803
 ((agenda  ((org-agenda-span 7) (org-agenda-start-on-weekday nil) 
(org-agenda-tag-filter-preset '(+CS_8803 -SCHEDULE
#+END_SRC
--8---cut here---end---8---

to produce this (prettifiable) output: 

--8---cut here---start-8---
div class=org-src-container
pre class=prettyprint lang-lisp src src-lisp
!-- you get the idea; code ommitted --
/pre
/div
--8---cut here---end---8---

Upon pasting, it looks good on my blog. 



[O] Auto-complete overrides org-contacts for address fields

2015-02-07 Thread Tory S. Anderson
I use the excellent org-mode contacts module[1] for auto-completion of 
addresses in my messages. Now I'm starting to play around with 
autocomplete-ispell and would like to use it in message mode, but I find it 
overrides the suggestions for my address fields. Does anyone know a way around 
this, so that addresses are still handled by org-contacts and not 
auto-complete? 

Footnotes: 
[1] https://julien.danjou.info/projects/emacs-packages#org-contacts




Re: [O] Help: Saving Agenda Views

2015-02-05 Thread Tory S. Anderson
That's the winner! I was able to get exactly what I wanted with the prefilter 
option: 

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((c . Weekly class agendas 2015-S)
(c6 LMC 6215
 ((agenda  ((org-agenda-span 7) (org-agenda-tag-filter-preset 
'(+LMC_6215 -SCHEDULE))
(c8 CS 8803
 ((agenda  ((org-agenda-span 7) (org-agenda-tag-filter-preset 
'(+CS_8803 -SCHEDULE
--8---cut here---end---8---

Thanks! Somehow I wasn't even checking that variable; preset turned me off of 
it. 
- Tory

Subhan Michael Tindall subh...@familycareinc.org writes:

 -Original Message-
 From: Tory S. Anderson [mailto:torys.ander...@gmail.com]
 Sent: Thursday, February 05, 2015 3:39 AM
 To: Subhan Michael Tindall
 Cc: orgmode list
 Subject: Re: [O] Help: Saving Agenda Views
 
 THanks for the good tips and examples; I'll keep them handy. So, listing the
 org-agenda variables the one I want to edit is org-agenda filter; however,
 changing this in my function does NOT change my agenda view the way it
 should. Here's what I'm trying:
 
 --8---cut here---start-8---
 ;; saving views
 (setq org-agenda-custom-commands
   '((c Class agendas
 ; ((agenda  ((org-agenda-span 7) (org-agenda-tag-filter
 +LMC_6215))) ;; No different results
   ((agenda  ((org-agenda-span 7) (org-agenda-tag-filter
 '(+LMC_6215 ;; in the agenda, org-agenda-tag-filter remains nil no
 matter what --8---cut here---end---8---
 
 Why is `org-agenda-tag-filter` being ignored when `org-agenda-span` is
 working?

 Hard to say, it appears org-agenda-tag-filter is an undocumented variable, 
 which I've never used. Glancing through the code it looks like an internal 
 variable that will likely have any externally set values overwritten

 You might try org-agenda-tag-filter-preset instead:
 (defvar org-agenda-tag-filter-preset nil)

   A preset of the tags filter used for secondary agenda filtering.
 This must be a list of strings, each string must be a single tag preceded
 by \+\ or \-\.
 This variable should not be set directly, but agenda custom commands can
 bind it in the options section.  The preset filter is a global property of
 the entire agenda view.  In a block agenda, it will not work reliably to
 define a filter for one of the individual blocks.  You need to set it in
 the global options and expect it to be applied to the entire view.

 Note that this will need to go in a different position syntactically to be a 
 global option for the view


 
 Subhan Michael Tindall subh...@familycareinc.org writes:
 
  Well, to start with your syntax is WAY off. Org custom agendas can be
 pretty arcane.
  I'd start with setting up some custom agendas using the customizer, saving
 them, and then looking at how they are structured.
  Next,  C-h v org-agenda TAB in an org buffer should get you a list of the
 various settings you can use in a custom block.  Note that not all variables 
 are
 valid in all types of blocks.
  And finally, take a look at the documentation for
  org-agenda-skip-function, as I believe this is what you will need to
  use to accomplish the goals you set below
 
  And, as a bonus, here's a snippet out of my emacs showing a couple of
 different custom agendas with mulitiple blocks.
  ;;This one does a sorted list of all my TODOs, followed by an agenda
  block for 1 day (D Todos+Clock ((alltodo  ((org-agenda-sticky nil)

  (org-agenda-sorting-strategy (quote
 ((agenda category-up todo-state-up deadline-up time-up))
   (agenda  
  ((org-agenda-sticky nil)
   
  (org-agenda-sorting-strategy (quote
 ((agenda habit-down time-up priority-down category-keep
   
  (org-agenda-span 1)
   
  (org-agenda-use-time-grid t)
   
  (org-agenda-show-log (quote
 clockcheck))
 
  (org-agenda-clockreport nil)
 
  ;; this one does all todos of type RECURRING, then a tags search for
  everything with a STYLE property (tags does many things), followed by a 
  list
 of all my todos using alltodo, using a skip function to screen out anything 
 not
 matching the regex , followed by a list of TODOs from a specific file (I use
 multiple project files for most things) (R Recuring+Habits
 
((todo RECURRING)
 
 (tags STYLE={.+})
 
 (alltodo  (
 
  (org-agenda-skip-function (lambda nil
 (org-agenda-skip-entry-if
 
 
 (quote

Re: [O] Help: Saving Agenda Views

2015-02-05 Thread Tory S. Anderson
)
   
 
 Hope this helps, there are not that many good complex agenda examples out 
 there


 -Original Message-
 From: emacs-orgmode-bounces+subhant=familycareinc@gnu.org
 [mailto:emacs-orgmode-bounces+subhant=familycareinc@gnu.org] On
 Behalf Of Tory S. Anderson
 Sent: Wednesday, February 04, 2015 1:28 PM
 To: orgmode list
 Subject: Re: [O] Help: Saving Agenda Views
 
 Okay, I've attempted to use my newbie elisp skills to hack together a 
 solution
 but it doesn't work, yelling at me about wrong number of arguments (why?).
 Here's what I've put together (clearly inspired by the `org-agenda-filter-by-
 tag` function). Can anyone help me piece together what's wrong here?
 
 --8---cut here---start-8---
 ;; saving views
 (setq org-agenda-custom-commands
   '((x agenda)
  (y agenda*)
  (c Class agendas
   ((agenda  ((org-agenda-span 7)))
(my-org-agenda-filter-by-tag LMC_6215 -))
   ;;(org-agenda-filter-apply +LMC_6215 tag) ;; This one doesn't
 work because I can't see what  tag should be
   ;; (org-agenda-redo)) ;; would be needed after org-agenda-filter-
 apply
   )
   ))
 
 ;; For my usage
 (defun my-org-agenda-filter-by-tag (tag char)
   A non-interactive version for use in custom commands.  Keep only those
 lines in the agenda buffer that have a specific tag. Char should be + or -,
 filtering or narrowing.
 ;  (interactive P)
   (let* ((alist org-tag-alist-for-agenda)
   (tag-chars (mapconcat
   (lambda (x) (if (and (not (symbolp (car x)))
(cdr x))
   (char-to-string (cdr x))
 ))
   alist ))
   (efforts (org-split-string
 (or (cdr (assoc (concat org-effort-property _ALL)
 org-global-properties))
 0 0:10 0:30 1:00 2:00 3:00 4:00 5:00 6:00 7:00 8:00
 )))
   (effort-op org-agenda-filter-effort-default-operator)
   (effort-prompt )
   (inhibit-read-only t)
   (current org-agenda-tag-filter)
   maybe-refresh a n tag)
 (when (member char '(?+ ?-))
   ;; Narrowing down
   (cond ((equal char ?-) (setq strip t narrow t))
  ((equal char ?+) (setq strip nil narrow t
 (cond
  ((equal char ?/)
   (org-agenda-filter-show-all-tag)
   (when (get 'org-agenda-tag-filter :preset-filter)
  (org-agenda-filter-apply org-agenda-tag-filter 'tag))
   (setq maybe-refresh t))
 
 
  ((equal char ?. )
   (setq org-agenda-tag-filter
  (mapcar (lambda(tag) (concat + tag))
  (org-get-at-bol 'tags)))
   (org-agenda-filter-apply org-agenda-tag-filter 'tag)
   (setq maybe-refresh t))
  ((or (equal char ?\ )
(setq a (rassoc char alist))
(and (= char ?0) (= char ?9)
 (setq n (if (= char ?0) 9 (- char ?0 1))
   tag (concat effort-op (nth n efforts))
   a (cons tag nil)))
(and (= char ??)
 (setq tag ?eff)
 a (cons tag nil))
(and tag (setq a (cons tag nil
   (org-agenda-filter-show-all-tag)
   (setq tag (car a))
   (setq org-agenda-tag-filter
  (cons (concat (if strip - +) tag)
(if narrow current nil)))
   (org-agenda-filter-apply org-agenda-tag-filter 'tag)
   (setq maybe-refresh t))
  (t (error Invalid tag selection character %c char)))
 (when maybe-refresh
   (org-agenda-redo
 --8---cut here---end---8---
 
 
 
 
 torys.ander...@gmail.com (Tory S. Anderson) writes:
 
  I'm trying to save an agenda view that I can arrive at in the following 
  way:
 
  1. Load agenda (default 1-day view)
  2. / TAB English_Class   (reduce to only entries tagged English_Class)
 
  3. \ - TAB schedule  (further reduce by removing entries 
  having a
 :schedule tag)
  4. w   (load a 7-day span, week-view)
 
  However, I've been unable to grok the directions at
  http://orgmode.org/worg/org-tutorials/org-custom-agenda-
 commands.html
 
  The closest I've come is this:
 
  --8---cut here---start-8---
  (setq org-agenda-custom-commands
'((c Class agendas agenda 
 ((org-agenda-tag-filter '(+LMC_6215))
  (org-agenda-span 7)
  --8---cut here---end---8---
 
  But while this successfully sets the span, it fails to filter the buffer 
  (let alone
 getting to my second filter). Where am I going wrong?


 This message is intended for the sole use of the individual and entity to 
 which it is addressed and may contain information that is privileged, 
 confidential and exempt from disclosure under applicable law. If you

[O] Help: Saving Agenda Views

2015-02-04 Thread Tory S. Anderson
I'm trying to save an agenda view that I can arrive at in the following way: 

1. Load agenda  (default 1-day view)
2. / TAB English_Class(reduce to only entries tagged English_Class)   
3. \ - TAB schedule   (further reduce by removing entries having a 
:schedule tag)
4. w(load a 7-day span, week-view)

However, I've been unable to grok the directions at 
http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.html 

The closest I've come is this: 

--8---cut here---start-8---
(setq org-agenda-custom-commands
  '((c Class agendas agenda  
((org-agenda-tag-filter '(+LMC_6215))
 (org-agenda-span 7)
--8---cut here---end---8---

But while this successfully sets the span, it fails to filter the buffer (let 
alone getting to my second filter). Where am I going wrong? 



  1   2   >