Re: [O] streamlined capture on iphone

2016-02-25 Thread John Rakestraw

Hi, Skip —

On 24 Feb 2016, at 17:59, Skip Collins wrote:


If anyone is interested in the Drafts action, Gmail filter, Google
script, and org-feed configuration that make this work, I would be
happy to share. This setup can easily be adapted for Android phones.


I’m an iphone (and Drafts) user interested in more details about your 
set-up.


Thanks —

John



Re: [O] Hiding cells in org table

2013-07-17 Thread John Rakestraw

Hi, David --

On 17.07.2013 14:02, da...@adboyd.com wrote:

I've scanned through the manuals, and see no way to do this, but.

Is there anyway to block out the contents of a result field in a 
table, until

I export it into an html file?

I'm keeping track of my hours worked, with the dollar amounts paid 
calculated,
and I don't want anyone wandering by my desk to be able to see how 
much I am

being paid.

Then I want the amount to show in the .html file that I export to 
have signed

off on.


I can't tell you how to hide the contents of a field, but this might 
serve your purpose, assuming that you're paid a regular hourly wage. How 
about setting a constant (see http://orgmode.org/org.html#References and 
search for Named References)? You can do this in a property in the 
table. Have a column formula that multiplies the number of hours worked 
times the constant.


For day-to-day purposes, you'd define the constant as 0 or 1. When 
it's time to export and print your html file, change the constant to 
your actual hourly rate and recalculate.


--
John Rakestraw



Re: [O] Help with new exporter

2013-07-12 Thread John Rakestraw

Success!

Thanks to all for your help. I really do appreciate your time.

I cannot figure out why I'm getting the brackets that no one else is
getting (Rasmus -- my problem is that they're there and I don't want
them), but I now have a filter that will take them out:

--8---cut here---start-8---
 (defun jr-org-delete-brackets-from-tex-file
   (text backend info)
   (replace-regexp-in-string \\[\\]  text))

 (add-to-list 'org-export-filter-final-output-functions
  'jr-org-delete-brackets-from-tex-file)
--8---cut here---end---8---

Now to explore how to implement this only when I'm using the exam 
document
class, perhaps by using a derived backend. (It may be that it won't 
cause

any problems with other classes, but it seems sloppy to have it working
all the time, no?)

Thanks to Robert for the detailed and careful responses, to Charles for
suggesting the filters, and to Rasmus for the example that helped me
straighten me out at the end.

And I can't resist an aside to Nick -- I've really appreciated both the
tone and the content of your detailed contributions to this list over 
the
years. I find it difficult to believe that you're more pessimistic than 
I
am, but I take some odd pleasure in making something work that you 
thought

wouldn't work. ;-)

--John

--
John Rakestraw



Re: [O] Help with new exporter

2013-07-12 Thread John Rakestraw

On 12.07.2013 11:27, Rasmus wrote:

 1. You'd want to check for the backend.
 2. To add a two tests use and and check that the correct document
class is being used with string-match.

Untested:

 (when (and ;; check that it's a LaTeX backend
(org-export-derived-backend-p backend 'latex)
(string-match \\documentclass?[.*?]{exam} (downcase 
string)))

   (replace-match  nil nil headline))

Most document will fail the second test and those that don't are
probably the ones you want to target.

–Rasmus


Thanks for this.

--
John Rakestraw



Re: [O] Help with new exporter

2013-07-12 Thread John Rakestraw

On Fri, 12 Jul 2013, Nick Dokos wrote:

You underestimate my pessimism :-) I had no doubt that you can get 
rid
of specific artifacts using specific filters like this - you could 
after
all, run a sed script on the latex output and get rid of this stuff - 
it

wouldn't be an org-only solution, but that's OK in my book.


Yes, I already had a sed script that would work -- just doggedly trying 
to do it all in one org step.



I hope you are ultimately successful in producing exams that look
exactly like you want them, using these mechanisms. But I have my 
doubts

- you have won a battle, but the war is still raging afaict. OTOH, if
you prove me wrong, I would be delighted!


Perhaps I'm misunderstanding something (if so, please leave me alone in 
my ignorance at least for a bit), but I'm thinking I've won this 
particular war -- at least, I'm now able to use the exam document class 
to produce an exam formatted to match my expectations.


--John

--
John Rakestraw



Re: [O] Help with new exporter

2013-07-11 Thread John Rakestraw

Hi, Robert --

This gets me still closer. Using the revised class definition, I get 
exactly what I need except that I'm still left with square brackets in 
tex file. That is, I want this:


\begin{questions} or \begin{parts}

but instead I get this:

\begin[]{questions} or \begin[]{parts}

(Those two places are now the only places where the empty square 
brackets show up, and I don't have any of the empty curly brackets.)


If I remove those square brackets and run latex on the changed file, 
then I get what I want in the pdf.


I was using a fairly recent version (8.0.3) from git; I've now upgraded 
to 8.0.5 from git and get the same result.


I see Charles's suggestion to define a filter to take out the brackets 
(thanks for that) -- I'm afraid I'm on the edge of my knowledge so I'll 
need more time to sort that one out.


Thanks for your help.

--
John Rakestraw



Re: [O] Help with new exporter

2013-07-11 Thread John Rakestraw

Hi, list --

I understand the value of working on this myself -- what better way to 
learn? -- but after a few hours of reading the docs and scouring the 
list, I've reached the point of seeking at least a hint for where to go. 
(There's much more information higher in this thread, but I'm trying to 
focus rather narrowly on the problem here to keep the email relatively 
short.)


I'm trying to export to a pdf, using Phil Hirschhorn's exam.cls. The 
document class definition I have (thanks, Robert!) gets me almost to 
where I need to be. However, it leaves me with square brackets at 
several points in the tex file. I need to delete those brackets.


That is, I need to change \begin[]{questions} to 
{\begin{questions}.


Following Charles's advice, I'm trying to define and use a filter. 
However, I know little enough about LaTeX and lisp that I can't figure 
out why what I have isn't working. At the risk of making it very clear I 
know even less than nothing, here's what I've worked up:


--8---cut here---start-8---
  (defun jr-org-delete-brackets-from-tex-file
 (text backend info)
 (while (re-search-forward \\[] nil t)
 (replace-match ))
 text)

   (add-to-list 'org-export-filter-final-output-functions
 'jr-org-delete-brackets-from-tex-file)
--8---cut here---end---8---

This doesn't work.

Can someone at least give me a hint on what I need to do differently?

Thanks very much.

--
John Rakestraw



[O] Help with new exporter

2013-07-10 Thread John Rakestraw

Greetings, list --

I've been using Philip Hirschhorn's exam documentclass 
(http://www-math.mit.edu/~psh/#ExamCls) for several years to produce my 
exams. I've been writing the exams in org-mode and using the exporter to

produce the pdf.

I've recently moved to org 8.0. (I like it!) I've successfully 
converted all of my other export class definitions, but I can't figure 
out how to define the exam class so that I can export my exams. I've 
pasted below the class definition that worked with the previous exporter 
(I know it's clumsy, but it worked) and also a sample version of what I 
need in the tex file.


(I know I could just write the tex file directly, but it's nice to have 
all of the course materials included in human-readable form in the 
course org file.)


My problem is that I can't get the exporter to produce chunks like 
this:


\begin{questions}
\question
A paragraph describing how the students should answer the following 
questions.

\begin{parts}
\part
A multi-line question
\part
Another multi-line question
\end{parts}
\end{questions}

Thanks for whatever advice anyone can offer.

--John


Old template:
--8---cut here---start-8---
  (setq org-export-latex-classes (cons '(exam
### I know that in the new exporter I need to change this variable 
to

org-latex-classes ###
  % BEGIN exam Defaults
  [NO-DEFAULT-PACKAGES]
  [PACKAGES]
  \\documentclass[12pt]{exam}
  \\usepackage{palatino}
  \\extrawidth{.5in}
  \\extraheadheight{-.75in}
  \\extrafootheight[-3in]{-.75in}
  \\pagestyle{headandfoot}
  \\NoKey
  \\NumberOfVersions{1}
  \\renewcommand\\thequestion{\\Roman{question}}
  \\renewcommand\\thepartno{\\arabic{partno}}
  \\renewcommand\\partlabel{\\thepartno.}


  % END exam Defaults

  
 (\\begin{questions} \\end{questions} 
\\begin{questions} \\end{questions})

 (\\question . \\question*)
 (\\begin{parts} \\end{parts} \\begin{parts} 
\\end{parts})

 (\\part . \\part*))

  org-export-latex-classes))

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

An example of what I need the exporter to produce:

--8---cut here---start-8---
\documentclass[letterpaper]{exam}
\extrawidth{.5in}
\extraheadheight[.3in]{-.75in}
\extrafootheight{-.25in}
\raggedright
\renewcommand\thequestion{\Roman{question}}
\renewcommand\thepartno{\arabic{partno}}
\renewcommand\partlabel{\thepartno.}
\firstpageheader{Name: \enspace\makebox[3in]{\hrulefill}\\Exam 
1\\}{}{Introductory Class \\May 7, 2013\\}

\begin{document}

\begin{coverpages}
text describing how the exam should be printed and prepared for 
distribution.

\end{coverpages}



\begin{questions}
\question
A paragraph here describes this section and tells students how many 
terms to

identify.
\begin{parts}
\part
term 1
\vspace*{\fill}
\part
term 2
\vspace*{\fill}
\part
term 3
\vspace*{\fill}
\part
term 4
\vspace*{\fill}
\part
term 5
\vspace*{\fill}
\part
term 6
\vspace*{\fill}
\part
term 7
\vspace*{\fill}
\part
term 7
\vspace*{\fill}
\part
term 8
\end{parts}
\end{questions}
\newpage
\fillwithdottedlines{\fill}
\newpage
\begin{questions}
\question
Short Answer. A paragraph describing how I want students to respond to 
the
following questions. I want to leave vertical space filled with dotted 
lines

between the questions, and I want two questions on each page.
\begin{parts}
\part
This is the first question. It will be several lines long, so I'm 
writing enough

filler here to add at least a second line.
\fillwithdottedlines{\fill}
\part
This is the second question. It will also be several lines long, so I 
need

filler enough to get to the second line for this example.
\fillwithdottedlines{\fill}

\newpage
\fillwithdottedlines{\fill}
\newpage
\part
This is the 3d question.
\fillwithdottedlines{\fill}
\end{parts}
\end{questions}
\newpage
\fillwithdottedlines{\fill}
\newpage
\begin{questions}
\question
Essay Question. This is a section of essay questions. Students will 
answer only
one of these questions, so I don't need to leave space between the two 
questions.

\begin{parts}
\part
The first of the essay questions goes here. It will be several lines 
long, so I

want enough text in the example to provide a line break.
\part
The second essay question. It is also several lines long, so I'll add 
some

rambling text here for the second line.
\end{parts}
\end{questions}
\fillwithdottedlines{\fill}
\newpage
\fillwithdottedlines{\fill}
\end{document}

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


--
John Rakestraw



Re: [O] Help with new exporter

2013-07-10 Thread John Rakestraw

Hi, Robert --


would you mind posting an example of the org file, too?  It would be
easier for me to wrap my thoughts about this..  (The gurus probably
don't it...)


Sure. (I should have included it earlier; I was worried that my message 
was already too long.) Here's one that worked with the old exporter. 
(Note that I had to leave many of the actual header lines blank -- or, 
rather, with only an empty space.)


--John

--8---cut here---start-8---
#+LaTeX_CLASS: exam
#+LaTeX_CLASS_OPTIONS: [10pt]
#+LATEX_HEADER: \extrawidth{.5in}
#+LATEX_HEADER: \extraheadheight[.3in]{-.75in}
#+LATEX_HEADER: \extrafootheight{-.25in}
#+LATEX_HEADER: \raggedright
#+LaTeX: \renewcommand\thequestion{\Roman{question}}
#+LaTeX: \renewcommand\thepartno{\arabic{partno}}
#+LaTeX: \renewcommand\partlabel{\thepartno.}
#+OPTIONS: toc:nil num:y timestamp:nil creator:nil H:4
#+TITLE:
#+LaTeX: \firstpageheader{Name:\enspace\makebox[3in]{\hrulefill}\\Exam 
1\\}{}{Theo 001 -- Rakestraw\\February 14, 2013\\}

#+LaTeX: \begin{coverpages}
this is just some text
#+LaTeX: \end{coverpages}

* Meaningless header
**
*Identification of Terms*. Identify/define and give the significance
of *six* of the following. If you identify/define more than six
without indicating clearly which six you want me to grade, I will
grade your first six answers (18 points).
*** Terms

term 1
#+LaTeX: \vspace*{\fill}

term 2
#+LaTeX: \vspace*{\fill}

term 3
#+LaTeX: \vspace*{\fill}

term 4
#+LaTeX: \vspace*{\fill}

term 5
#+LaTeX: \vspace*{\fill}

term 6
#+LaTeX: \vspace*{\fill}

term 7
#+LaTeX: \vspace*{\fill}

term 8
#+LaTeX: \vspace*{\fill}

term 9
#+LaTeX: \newpage
#+LaTeX: \fillwithdottedlines{\fill}
#+LaTeX: \newpage

**
*Short Answer*. Answer *two* of the following in a paragraph. If you
attempt to answer more than two without indicating clearly which two 
you

intend me to grade I will grade your first two answers (36 points).
*** Questions

Question one goes on for more than one line. (I mention that because I 
want to

be clear that I can't put a question in a heading.)

#+LaTeX: \fillwithdottedlines{\fill}


Question 2 goes here.
#+LaTeX: \fillwithdottedlines{\fill}

#+LaTeX: \newpage
#+LaTeX: \fillwithdottedlines{\fill}
#+LaTeX: \newpage


Question 3 goes here.
#+LaTeX: \fillwithdottedlines{\fill}


Question 4 goes here.
#+LaTeX: \fillwithdottedlines{\fill}

#+LaTeX: \newpage
#+LaTeX: \fillwithdottedlines{\fill}
#+LaTeX: \newpage

**
*Essay Question*. Answer *one* of the following as fully as you are 
able.
If you attempt to answer more than one without indicating clearly which 
one

you intend me to grade I will grade your first answer (40 points).
*** Questions


here's the first essay question.

here's the second essay question.
#+LaTeX: \fillwithdottedlines{\fill}

#+LaTeX: \newpage
#+LaTeX: \fillwithdottedlines{\fill}
--8---cut here---end---8---


--
John Rakestraw



Re: [O] Help with new exporter

2013-07-10 Thread John Rakestraw

Hi, Robert --

Thanks very much for your work on this. I'm now *much* closer than I 
was. However, I'm not there yet.


Here's a snippet of the tex file that I need:

--8---cut here---start-8---
\begin{questions}
\question
A paragraph here describes this section and tells students how many 
terms to

identify.
\begin{parts}
\part
term 1
\vspace*{\fill}
\part
term 2
\vspace*{\fill}
\part
term 3
\vspace*{\fill}
\part
term 4
\vspace*{\fill}
\part
term 5
\vspace*{\fill}
\part
term 6
\vspace*{\fill}
\part
term 7
\vspace*{\fill}
\part
term 7
\vspace*{\fill}
\part
term 8
\end{parts}
\end{questions}
--8---cut here---end---8---

However, if I use the org-latex-class definition that you suggested, 
this is what I get:


--8---cut here---start-8---
\begin[]{questions}{}
\label{sec-1}
\question[]{}
\label{sec-1-1}
A paragraph here describes this section and tells students how many 
terms to

identify.
\begin[]{parts}{}
\label{sec-1-1-1}
\part[]{}
\label{sec-1-1-1-1}
term 1
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-2}
term 2
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-3}
term 3
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-4}
term 4
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-5}
term 5
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-6}
term 6
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-7}
term 7
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-8}
term 8
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-9}
term 9
\newpage
\fillwithdottedlines{\fill}
\newpage
\end{parts}

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


The additional lines in the tex file add numbers and oddly formatted 
text to the pdf. The numbering scheme is also off -- these lines in the 
class definition:


\renewcommand\thequestion{\Roman{question}}
\renewcommand\thepartno{\arabic{partno}}
\renewcommand\partlabel{\thepartno.}

are supposed to have to have the question-level headings numbered with 
Roman numerals and the part-level headings numbered with Arabic numbers. 
But for some reason that numbering scheme isn't imposed.


Perhaps I need either just to write in latex or to work with what 
Rasmus is suggesting; I've not had time yet to digest his suggestions. 
I'm floating on the edge of my knowledge here


Thanks again.

--John

--
John Rakestraw



Re: [O] Help with new exporter

2013-07-10 Thread John Rakestraw
Apologies for responding to myself, but I realized after writing the 
message below that if I use sed to remove the lines with the word 
label and all of the empty brackets (i.e., =[]= and ={}= ) in the tex 
file, then I'm very, very close to what I need. I assume I could write a 
function and then call it in the publishing routine?


--John

On 10.07.2013 16:46, John Rakestraw wrote:

Hi, Robert --

Thanks very much for your work on this. I'm now *much* closer than I
was. However, I'm not there yet.

Here's a snippet of the tex file that I need:

--8---cut here---start-8---
\begin{questions}
\question
A paragraph here describes this section and tells students how many 
terms to

identify.
\begin{parts}
\part
term 1
\vspace*{\fill}
\part
term 2
\vspace*{\fill}
\part
term 3
\vspace*{\fill}
\part
term 4
\vspace*{\fill}
\part
term 5
\vspace*{\fill}
\part
term 6
\vspace*{\fill}
\part
term 7
\vspace*{\fill}
\part
term 7
\vspace*{\fill}
\part
term 8
\end{parts}
\end{questions}
--8---cut here---end---8---

However, if I use the org-latex-class definition that you suggested,
this is what I get:

--8---cut here---start-8---
\begin[]{questions}{}
\label{sec-1}
\question[]{}
\label{sec-1-1}
A paragraph here describes this section and tells students how many 
terms to

identify.
\begin[]{parts}{}
\label{sec-1-1-1}
\part[]{}
\label{sec-1-1-1-1}
term 1
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-2}
term 2
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-3}
term 3
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-4}
term 4
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-5}
term 5
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-6}
term 6
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-7}
term 7
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-8}
term 8
\vspace*{\fill}

\part[]{}
\label{sec-1-1-1-9}
term 9
\newpage
\fillwithdottedlines{\fill}
\newpage
\end{parts}

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


The additional lines in the tex file add numbers and oddly formatted
text to the pdf. The numbering scheme is also off -- these lines in
the class definition:

\renewcommand\thequestion{\Roman{question}}
\renewcommand\thepartno{\arabic{partno}}
\renewcommand\partlabel{\thepartno.}

are supposed to have to have the question-level headings numbered
with Roman numerals and the part-level headings numbered with Arabic
numbers. But for some reason that numbering scheme isn't imposed.

Perhaps I need either just to write in latex or to work with what
Rasmus is suggesting; I've not had time yet to digest his 
suggestions.

I'm floating on the edge of my knowledge here

Thanks again.

--John


--
John Rakestraw



Re: [O] How can I set an event to occur every day except Saturday and Sunday between two given dates?

2012-06-14 Thread John Rakestraw
apologies -- neglected to include the list.

 Start of forwarded message 
From: li...@johnrakestraw.com
To: Enda enda...@yahoo.com
Subject: Re: [O] How can I set an event to occur every day except Saturday and 
Sunday between two given dates?
Fcc: ~/spool/sent.spool
Bcc: homes...@johnrakestraw.com, mobiles...@johnrakestraw.com
Date: Thu, 14 Jun 2012 13:04:37 -0400

Hi, Enda --

    %%(memq (calendar-day-of-week date) '(1 2 3 4 5))

 How can I set an event to occur every day except Saturday and Sunday
 between two given dates?


org-class should do what you want --

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

--John
 End of forwarded message 



Re: [O] org-odt: protected (ie non-breakable) space

2012-03-19 Thread John Rakestraw
Hi, Martin --


 is it possible to have protected spaces in an odt exported from
 org.-mode? I tried ~ and \nbsp, but both come out literally. 

I just tried inserting the non-breaking space in emacs with C-x, 8,
space. It shows up as a non-breaking space in the odt file.

-- 
John Rakestraw



Re: [O] Editing using emacs-lisp after export

2011-12-02 Thread John Rakestraw
Hi, Rajat --

-Original Message-
  From: John Rakestraw [mailto:li...@johnrakestraw.com] 
  Sent: mercredi 30 novembre 2011 21:48
  To: Mukherjee,Rajat,LAUSANNE,Clinical Operations
  Cc: emacs-orgmode@gnu.org
  Subject: Re: [O] Editing using emacs-lisp after export

  Hi, Rajat --

   I use org-mode to generate documents with latex and R codes. I also
   use some R function (package: Hmisc) to generate latex tables. One
   of the functions produces a blank line with-in the table environment
   which causes a fatal error in the .tex file. Is there a way that I
   can use emacs-lisp commands like replace-string from within the
   .org file to act on the .tex file that is exported or other
   #+options: for export that will do this edit without having to
   open the .tex file? Thank you for your help.

  I definitely don't consider myself a guru, but I had a similar
  problem. I built a function that finds and removes the empty line and
  then added this via add-hook to org-export-latex-final-hook. I suspect
  one of the real gurus can suggest a better way to do this, but this
  works for me.

  Here's my code that you can adapt as necessary.

  (defun remove-line-from-exam.tex ()

  (if (search-forward-regexp \\documentclass\[[0-9]+pt]{exam} nil t nil)
  (while (re-search-forward question\n\n nil t)
(replace-match question\n

  (add-hook 'org-export-latex-final-hook (function
  remove-line-from-exam.tex))

 Hi John,
 Many thanks for the hint. I tried something similar, it works when I
 export (using L) to temporary buffer but not when I use the usual [l] or
 [d] export options. Is there a different hook that needs to be used
 here? Many thanks.

My set-up works when I export to pdf (using the [d] export option).
Perhaps you could post your adaptation and someone can figure out why your
function doesn't work. 

--John
-- 
John Rakestraw



Re: [O] Editing using emacs-lisp after export

2011-11-30 Thread John Rakestraw
Hi, Rajat --

 I use org-mode to generate documents with latex and R codes. I also use
 some R function (package: Hmisc) to generate latex tables. One of the
 functions produces a blank line with-in the table environment which
 causes a fatal error in the .tex file. Is there a way that I can use
 emacs-lisp commands like replace-string from within the .org file to
 act on the .tex file that is exported or other #+options:  for export
 that will do this edit without having to open the .tex file? Thank you
 for your help.

I definitely don't consider myself a guru, but I had a similar problem. I
built a function that finds and removes the empty line and then added this
via add-hook to org-export-latex-final-hook. I suspect one of the real
gurus can suggest a better way to do this, but this works for me.

Here's my code that you can adapt as necessary.

--8---cut here---start-8---
(defun remove-line-from-exam.tex ()

(if (search-forward-regexp \\documentclass\[[0-9]+pt]{exam} nil t nil)
(while (re-search-forward question\n\n nil t)
  (replace-match question\n
  
(add-hook 'org-export-latex-final-hook (function remove-line-from-exam.tex))
--8---cut here---end---8---

-- 
John Rakestraw



Re: [O] do it today, or well, tomorrow

2011-10-12 Thread John Rakestraw
On Wed, 12 Oct 2011, Brian van den Broek wrote:
 All too often, I reschedule from the agenda. On an item, C-c C-s, the use
 the calendar to pick the new day. Does that not do what you are after?

Even more simply, Shift-right arrow while sitting on the task in the
agenda moves it ahead by a day.

-- 
John Rakestraw



Re: [O] Suppressing DONE notes per-item?

2011-10-04 Thread John Rakestraw
Hi, Dave --

On Tue, 04 Oct 2011, Dave Abrahams wrote:
 I have a number of repeating items (habits especially) where it's very
 very rare that I have anything to say upon completion.  I'd like to
 suppress Org's prompt for a DONE note on those items.  Is that possible
 somehow?

From the doc string for org-log-done:

--8---cut here---start-8---
You can have local logging settings for a subtree by setting the LOGGING
property to one or more of these keywords.

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

-- 
John Rakestraw



[O] Re: [Orgmode] org export not working

2011-03-13 Thread John Rakestraw
Hi, David --

On Sun, 13 Mar 2011, David Maus wrote:
 Too late for your student but does this problem still persists?

It was user error. I found an old copy of org-export.el lurking in my load
path.

-- 
John Rakestraw



[Orgmode] org export not working

2011-02-27 Thread John Rakestraw
Hi, list --

Just finished grading exams, writing student comments in org-mode. I've
attempted to export the comments to pdf so that I can print and distribute
to the class, and when I export I get this error message:

--8---cut here---start-8---
Symbol's function definition is void: org-search-forward-unenclosed
--8---cut here---end---8---

C-h f org-search-forward-unenclosed confirms that there's no such function
defined. 

I get the same error message when I export to html and to ascii. It
doesn't seem to matter what I'm trying to export (nor what document class
I use), but here's a dummy sample file that won't export:

--8---cut here---start-8---
* John Doe
  :PROPERTIES:
  :COLUMNS:  %ITEM %Grade{+}
  :END:
#+BEGIN: columnview :hlines 2 :vlines t :id local
#+END
** Credit for name
   :PROPERTIES:
   :Grade:6
   :END:
** Terms
   :PROPERTIES:
   :Grade: 16.5
   :END:

** Student 101, Question: 2-1
  :PROPERTIES:
  :Grade: 13.5
  :END:
   - Comments on this student's response to this question on the
 exam. More comments. 
** Student 101, Question: 2-4
  :PROPERTIES:
  :Grade: 16.5
  :END:
   - More comments here. Still more comments.
** Student 101, Question: 3-2
  :PROPERTIES:
  :Grade: 35
  :END:
   - Here we have some numbered comments on the essay. 
 1. This is the first of the numbered comments.
 2. This is the second numbered comment.

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

So far as I know, I've changed nothing in my set-up since last week, when
I successfully exported the exam that I just finished grading. I have,
however, upgraded org in the meantime. 

I realize that this could well be user error, but I can't find what it is.
And my students are going to be pretty unhappy if I don't return these
exams tomorrow. Can someone suggest what I might check?

GNU Emacs 23.2.1
latest git version of org

-- 
John Rakestraw

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org export not working

2011-02-27 Thread John Rakestraw
Hi, Anthony --

On Sun, 27 Feb 2011, Anthony Lander wrote:
 You might consider temporarily rolling back your org-mode. The
 function was defined in org-list.el a few weeks ago (my latest pull).

D'oh. Why didn't I think of that?

It worked. Thanks.

-- 
John Rakestraw

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] checkbox trouble

2010-12-16 Thread John Rakestraw
Hi, Manuel --

On Thu, 16 Dec 2010, Manuel Panea-Doblado wrote:

 So the presence of the - State ... line messes everything up.

 Any ideas?

You can put the state note into a drawer. Check out the variable
org-log-into-drawer. 


-- 
John Rakestraw

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Subtle bug with capture and refile

2010-10-21 Thread John Rakestraw
Hi, list --

On Thu, 21 Oct 2010, Christopher Witte wrote:

 The new org capture has been working great but I have just come across a
 subtle bug that has taken me a while to reliably reproduce. I have org set
 up to add TODO captures to the top of my organiser.org file. If you try and
 refile the capture TODO and the cursor is at the bottom of the capture
 buffer, it will refile the next item in organiser.org and not the capture
 TODO.  

Two points --

- First, thanks to Christopher for diagnosing this bug, which has been
  biting me, but only occasionally (and now I see why)

- Second, to add the additional data point that if I'm trying to refile to
  the item following the point where the new captures are added, I get the
  error message Cannot refile to position inside the tree or region.

Thanks --

-- 
John Rakestraw

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Subtle bug with capture and refile

2010-10-21 Thread John Rakestraw
Hi, Carsten --

On Thu, 21 Oct 2010, Carsten Dominik wrote:
 Hi Christopher,

 thank you for taking the time to isolate this bug.  Could
 you please try the following patch?


Your patch seems to fix the problem.

Thanks --

John

 Thanks.

 - Carsten

   Modified lisp/org-capture.el
 diff --git a/lisp/org-capture.el b/lisp/org-capture.el
 index 7915f7f..537f1a4 100644
 --- a/lisp/org-capture.el
 +++ b/lisp/org-capture.el
 @@ -548,6 +548,7 @@ already gone.
   (unless (eq (org-capture-get :type 'local) 'entry)
 (error
  Refiling from a capture buffer makes only sense for `entry'-
 type templates))
 +  (if (and (bolp) (eobp)) (backward-char 1))
   (let ((pos (point))
   (base (buffer-base-buffer (current-buffer)))
   (org-refile-for-capture t))


-- 
John Rakestraw

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: refiling

2010-06-25 Thread John Rakestraw
On Fri, 25 Jun 2010, Carsten Dominik wrote:
 When refiling an already existing note (using C-c C-w), then RET works.
 However, when filing a new note created by org-remember (using C-c C-
 c),
 RET merely prompts me with the possible next-level headings. Pressing
 SPACE and then RET files the new note under the first-level heading.

 Hi John,

 I think this issue is obsolete with the new capture interface.

 - Carsten

Indeed it is. Thanks. (And thanks also for remembering to close such a
small loop -- tell me, what PIM do you use to keep track of all the
things that you do? ;-)

-- 
John Rakestraw

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Linking Mail ?

2010-04-29 Thread John Rakestraw

On Thu, 29 Apr 2010, Rémi Vanicat wrote:

 A good solution for gnus+imap is
 http://sachachua.com/wp/2008/05/geek-how-to-use-offlineimap-and-the-dovecot-mail-server-to-read-your-gmail-in-emacs-efficiently/
  

 Of course, it's way to much complicated, but it work.

I'm by no means a techie. First I used emacs occasionally as a simple text
editor. Then I stumbled onto org-mode (by way of Planner). Then I wanted
what David wants -- an integration of email with org-mode. 

After some investigation, I went with gnus and a local imap server.
(Remember -- I'm not a techie.)

This howto made the process relatively painless for me:

http://jfm3-repl.blogspot.com/2008/10/no-seriously-use-gnus-for-email.html

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Fwd: Re: [Orgmode] Re: Organizing a students live

2010-02-10 Thread John Rakestraw
Sorry -- neglected to cc the list.

---BeginMessage---
 Daniel Martins writes:

 Someone could send me an example of the use of the org-diary-class ?? 

*** 12:15-13:05 Class 
%%(org-diary-class 1 13 2010 5 3 2010 1 3 7 10 14)
%%(org-diary-class 1 13 2010 5 3 2010 3 10)
%%(org-diary-class 1 13 2010 5 3 2010 5 10 13)

Class meets Mon-Wed-Fri from Jan 13 to May 3 from 12:15 to 13:05, with
holidays as indicated. Friday's class, for example, doesn't meet in weeks
10 and 13.

--
John Rakestraw
---End Message---
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Fwd: Re: [Orgmode] Re: Repeater Options

2010-01-17 Thread John Rakestraw

neglected to cc the list .

---BeginMessage---
 Ben Finney writes:

 How does one make these into a date+time specification, so they will
 show up at the correct place in the agenda?

* 12:00-13:00 This meets from noon to 1 on the 3d monday
  %%(diary-float t 1 3)

-- 
John Rakestraw
---End Message---
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: refiling

2010-01-15 Thread John Rakestraw
 Carsten Dominik writes:

 Do you need to press SPACE, or does RET also do the trick? Because, as
 Manish points out in another message, SPC should really be allowed as
 a character in a new headline you define. Apparently right now it is
 not allowed as it is treated as a completion command.

When refiling an already existing note (using C-c C-w), then RET works.
However, when filing a new note created by org-remember (using C-c C-c),
RET merely prompts me with the possible next-level headings. Pressing
SPACE and then RET files the new note under the first-level heading. 

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Repeating dates on named weekdays

2010-01-15 Thread John Rakestraw

 every third Monday of each month

I'm by no means the org/emacs expert, but here's what I'd do:

* Meeting on 3d Monday of each month
  %%(diary-float t 1 3)

(see
http://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html
and http://orgmode.org/manual/Weekly_002fdaily-agenda.html)

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: refiling

2010-01-13 Thread John Rakestraw
 Richard Riley writes:

 That is fine and as expected. My point is more that I am unable to
 file to linux.org/general since it has elements filed there. It offers
 me to select an actual existing org item as opposed to letting me
 store the rewritten item to linux.org/general.

Not sure I understand you here, so this might not be helpful. However,
when I do what I think you're trying to do, hitting the space bar after
linux.org/general is in the mini-buffer allows me to save directly to
linux.org/general. This assumes that :level and/or :maxlevel are set
appropriately in the org-refile-targets variable.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] question about export to latex

2009-11-25 Thread John Rakestraw
Hi --

I'm trying to construct an org-export-latex-class to use with Philip
Hirschhorn's exam.cls (http://www-math.mit.edu/~psh/#ExamCls). The
basic structure required in the tex file is this:

\begin{questions}
\question
Here's question 1.
\begin{parts}
\part
Here's part a of question 1.
\part
Here's part b of question 1.
\end{parts}
\question
Here's question 2.
\end{questions}

My question is how do I write the class to account for the opening and
closing of the question/part environments and also designate each
individual question/part element. I'm now working with this:


   (\\begin{questions} \\end{questions} \\begin{questions} \\
\\end{questions}) (\\question . \\question*)
   (\\begin{parts} \\end{parts} \\begin{parts} \\
   \\end{parts}) (\\part . \\part*))


but that (a) seems inelegant and (b) introduces a problematic blank
line in the resulting tex file that messes up the numbering scheme in
the resulting pdf.

I'd appreciate any advice and/or pointers to help on this one.

Thanks.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] iPhone app for Org view and capture

2009-09-08 Thread John Rakestraw
 Here is a teaser video of the app running in the simulator:
 http://ncogni.to/mobileorg-demo1.mov

For some reason I can't get to the video just now, but I'll still say
that this is really good news. Looking forward to the app.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] bug in org-latex.el

2009-08-31 Thread John Rakestraw
Hi, List --

I'm reluctant to post this to the list, because I know next to nothing
about lisp. But here goes.

I'm writing in org and exporting to pdf via C-C C-E d. The exporter was
stumbling over a URL in the text, with the error message indicating
that org-export-latex-protect-special is void. I made two small
changes in org-export.el; now the export works and the URL is indeed
clickable in the pdf. See the patch below.

Of course, I could well have broken something

Org-mode version 6.29trans (release_6.29c.110.gca19.dirty)
GNU Emacs 23.1.1 (x86_64-redhat-linux-gnu

--John

***
--- org-latex.el2009-08-31 11:58:39.576924147 -0400
+++ org-latex.el_new2009-08-31 12:00:12.642986362 -0400
@@ -1572,7 +1572,7 @@
  (insert (format \\hyperref[%s]{%s}
  (org-remove-initial-hash
   (org-solidify-link-text raw-path))
- (org-export-latex-protect-special
desc
+ (org-export-latex-protect-string desc
 (path 
  (when (org-at-table-p)
;; There is a strange problem when we have a link in a
table, @@ -1581,7 +1581,7 @@
(setq path (org-export-latex-protect-amp path)
  desc (org-export-latex-protect-amp desc)))
  (insert (format \\href{%s}{%s} path
- (org-export-latex-protect-special
desc
+ (org-export-latex-protect-string desc
 (t (insert \\texttt{ desc })))
 
 (defun org-export-latex-protect-amp (s)
***

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Use remember to file an item to a list

2009-08-20 Thread John Rakestraw
Hi Alan --

 I have found a need for a remember template to add a row to a table
 in which I have been keeping a series of data on (for what it's
 worth) CPU and GPU temperatures.  This could be useful in a number of
 contexts.  A remember template would save some time, each time data
 is entered.

Not sure this is the best way, but I do this with a remember template
including prompts for properties (so, for example, you would have a
template prompting you for CPU temps Nd GPU temps), and then use
columnview to display the relevant information in columns.

See
http://orgmode.org/manual/Capturing-column-view.html#Capturing-column-view

Someday (When I Have Time) I'm going to investigate org-collector.el,
which I think might be better. But this is working for me now.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: orgmode opening source file from agenda when marking as done

2009-08-17 Thread John Rakestraw
Hi Michael --

 On Aug 17,2009, at 12:31 PM, Samuel Wales wrote:
 
  A long shot: check the value of your after todo state change hook.
 
 Sorry. Noob still. What does that mean?
 
 -- M

I agree that this is a long shot, but I think he was suggesting that
you check the org-after-todo-state-change-hook to see if it's been
changed from the default, which is nil.

You can check this in emacs this way --

C-h v org-after-todo-state-change-hook enter

When I do this in my emacs session I get this:

**
org-after-todo-state-change-hook is a variable defined in `org.el'.
Its value is nil

Documentation:
Hook which is run after the state of a TODO item was changed.
The new state (a string with a TODO keyword, or nil) is available in the
Lisp variable `state'.

You can customize this variable.
**

The question is whether you also get Its value is nil

--John

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] correction in org.el

2009-08-15 Thread John Rakestraw
Hi --

After a git update this morning, several remember templates failed with
the error Symbol's function definition is void:
org-completing-read-no-ido. The failure occurred at points using
%^{Request for info} formulation.

I think the patch included below fixes the problem. 

--John

--- lisp/org.el 2009-08-15 16:08:26.109093816 -0400
+++ lisp/org.el_new 2009-08-15 16:08:53.640094201 -0400
@@ -7652,7 +7652,7 @@ Use TAB to complete link prefixes, then 
 (org-defkey minibuffer-local-completion-map ?
'self-insert-command) (apply 'org-icompleting-read args)))
 
-(defun org-completing-read-no-i (rest args)
+(defun org-completing-read-no-ido (rest args)
   (let (org-completion-use-ido org-completion-use-iswitchb)
 (apply 'org-completing-read args)))

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Sourceforge community award

2009-06-11 Thread John Rakestraw
Hi Carsten and the list --

I really like the ideas, and I'm trying merely to shorten -- see
suggestions below.

--John

 
 I also do like Brian's description a lot.  But it is 190 characters,
 I am not sure if we can stretch the about 140 this much?  I have
 been trying to shorten it a bit - please check if it still captures
 the essence.
 
 Here is the current state of our reply to Sourceforge - please comment
 
  1. Complete this sentence in about 140 characters: Our project is
  [-foo-].  For example, Our project is a tool that helps you wash  
  your
  car.
 
 
 Org-mode masters personal/project information your way, in plain  
 text,
 with features out of your way until you want them, backed by the
 power of Emacs.

Org-mode masters personal/project information your way, in plain  
text, with features hidden until needed, backed by the power of Emacs.

 
 
  2. Complete this sentence, also in about 140 characters: We
  should win
  because [-bar-].  For example, We should win because we have a  
  strong
  community and we solve a universal problem.
 
 We should win because by allowing people to evolve their
 productive selves, org-mode has created one of the best
 communities in the open-source world.

We should win because org-mode, by making users more productive, has
spawned one of the best communities in the open-source world. 

  3. Please provide a logo (or screenshot, if you'd prefer) for your
  project.  It should be at least 640x480, but we'll also be showing
  it as a thumbnail.
 
 I am attaching the picture to this email, you can also retrieve it
 from
 
 http://orgmode.org/Org-mode-scc.png
 
 (((Thanks to Greg Newman for fixing up the unicorn and pasting it
 nicely into the screenshot - any objections against this picture?
 Note that it needs to work as a thumbnail as well, which this one
 will, I believe.)))
 
 For the time being, I am sending you this link, which is a Google
 Tech Talk
 by me (Carsten Dominik, main author of Org-mode).
 
 http://www.youtube.com/watch?v=oJTwQvgfgMM
 
 Before the deadline you should get another email from Bastien Guerry,
 with a link to a new video which we made just for this occasion.
 If so, please link to that video instead.
 
  5. In some cases, I'm mailing several people in your community
  because I don't know who the right person is.  If you're not the
  right person for me to be dealing with, please let me know.
  I certainly don't want to be irritating.
 
 Main address:   carsten.domi...@gmail.com
 Secondary address:  bastiengue...@googlemail.com
 
  6. Our finalists are usually pretty interesting people.  Are you
  willing to be contacted by our public relations team about
  interviews with the press?
 
 Yes.
 
 
 
 
 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode



-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-feed broken?

2009-05-13 Thread John Rakestraw
Hi --

Emacs 22.3.1
Org-mode latest fetch from git repository

Several weeks ago I tested org-feed.el. I suppose I could be losing
my mind, but I'm quite sure I had it working. I'm only now getting
around to integrating the use of reQall into my regular practice, and
I've discovered that the attempt to update the feed yields the error
message invalid function: ignore-errors.

C-h v indeed indicates that ignore-errors is not defined.

ignore-errors is called three times in org-feed.el (lines 317, 558, and
562). Each of the lines is identical:

  (ignore-errors (kill-buffer feed-buffer))

If I comment out these lines, then the rss feed from reQall is
downloaded successfully. 

I don't know lisp (or any programming language). Can someone give me an
idea whether I'm running any risk of data loss by running org-feed.el
without these calls?

And am I correct in assuming that ignore-errors is a function
introduced in emacs 23? If so, can I get the definition and install it
in my .emacs configuration as a holdover until I upgrade to emacs 23?

Thanks.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-feed broken?

2009-05-13 Thread John Rakestraw
Thanks to Carsten and Magus for prompt replies.

 It seems that in Emacs 22, ignore-errors is defined in cl-macs.el,
 in Emacs 23 it has moved to subr.el.
 
 Try adding
 
 (eval-when-compile
(require 'cl)
(require 'cl-macs))
 
 early on in org-feed.el, does that help?
 

Adding the above lines to org-feed.el yields the following error
message when I run make: 

   Error: Required feature 'cl-macs' was not provided

Shortening the additional code to this:

   (eval-when-compile (require 'cl))

as Magnus suggested, seems to work.

Thanks. 

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-protocol and missing server-delete-client function

2009-04-16 Thread John Rakestraw
Hi --

I'm a simple guy, not a coder, and only a little emacs-savvy. However,
this post might save some people some frustration. (And it might prompt
someone more emacs-savvy than I to teach me something.)

I faced a challenge getting org-protocol to work.

I'm running the latest org-mode from git on a Fedora 10 box. Emacs
version 22.3.1. I set up for org-protocol in emacs and in firefox
(following the instructions at
http://orgmode.org/worg/org-contrib/org-protocol.php). Then when I
tried to execute the org-protocol-remember handler, emacs pitched back
this error message:

***
error in process filter: symbol's function definition is void:
server-delete-client
***

I looked in server.el, and didn't find server-delete-client defined
there. I found a copy of server.el for emacs 23 online at
http://zchan.homeunix.net/pub/Nevada.APP/Build/emacs-23.0.60/lisp/server.el/server.
It includes this definition of server-delete-client:

***
(defun server-delete-client (proc optional noframe)
  Delete CLIENT, including its buffers, terminals and frames.
If NOFRAME is non-nil, let the frames live.  (To be used from
`delete-frame-functions'.)
  (server-log (concat server-delete-client (if noframe  noframe))
  proc)
  ;; Force a new lookup of client (prevents infinite recursion).
  (when (memq proc server-clients)
(let ((buffers (process-get proc 'buffers)))

  ;; Kill the client's buffers.
  (dolist (buf buffers)
(when (buffer-live-p buf)
  (with-current-buffer buf
;; Kill the buffer if necessary.
(when (and (equal server-buffer-clients
  (list proc))
   (or (and server-kill-new-buffers
(not server-existing-buffer))
   (server-temp-file-p))
   (not (buffer-modified-p)))
  (let (flag)
(unwind-protect
(progn (setq server-buffer-clients nil)
   (kill-buffer (current-buffer))
   (setq flag t))
  (unless flag
;; Restore clients if user pressed C-g in
  `kill-buffer'. (setq server-buffer-clients (list proc)

  ;; Delete the client's frames.
  (unless noframe
(dolist (frame (frame-list))
  (when (and (frame-live-p frame)
 (equal proc (frame-parameter frame 'client)))
;; Prevent `server-handle-delete-frame' from calling us
;; recursively.
(set-frame-parameter frame 'client nil)
(delete-frame frame

  (setq server-clients (delq proc server-clients))

  ;; Delete the client's tty.
  (let ((terminal (process-get proc 'terminal)))
;; Only delete the terminal if it is non-nil.
(when (and terminal (eq (terminal-live-p terminal) t))
  (delete-terminal terminal)))

  ;; Delete the client's process.
  (if (eq (process-status proc) 'open)
  (delete-process proc))

  (server-log Deleted proc
***

When I add this definition to my config files and reload, then
org-protocol-remember works as expected. 

Surely there are still others using emacs 22.3? Is there another way
around this (short of upgrading to emacs 23 -- I might do that, but I'm
so swamped with other things right now and I know so little about
what I'm doing that I don't want to move on that yet)?

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Record extra info for each time block

2009-04-06 Thread John Rakestraw
Hi --

 I'm still wondering how to do several things... like this one:
 regarding a headline, it is possible to clock the amount of time
 you worked on it. But sometimes, you also need to record some
 other information related to that time block, for example, the
 distance you had to drive to go to the meeting or some costs
 (like parking costs) that you had to pay for it.
 
 Example:
 
 * Project1
   ** Meetings
  :LOGBOOK:
  CLOCK: [2009-03-02 mon. 10:00]--[2009-03-02 mon. 12:30] =  2:30
  15 kilometers
  CLOCK: [2009-03-03 tue. 09:30]--[2009-03-03 tue. 12:30] =  3:00
  15 kilometers + 12,00 EUR
  :END:
 
 Is there a way to record this information? If not, what is your
 advice?

Check out the variable org-log-note-clock-out. Set it to t and it
you'll be asked for a note each time you clock out. The note is
recorded just after the time block.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] iPhone ---- org-mode

2009-03-25 Thread John Rakestraw
-add-items) feed-pos new-selected) (if
org-feed-assume-stable (apply ... feed-pos ... entries) (apply ...
feed-pos nil new)) (goto-char feed-pos) (show-children) (when
org-feed-save-after-adding (save-buffer)) (message Added %d new item%s
from feed %s to file %s, heading %s (length new) (if ... s )
feed-name (file-name-nondirectory feed-file) feed-headline) (run-hooks
(quote org-feed-after-adding-hook)) (length new))
(save-window-excursion (setq feed-pos (org-feed-goto-inbox-internal
feed-file feed-headline)) (setq old-guids (org-feed-get-old-guids
feed-pos)) (while (setq e ...) (unless ... ...)) (if (not new)
(progn ... 0) (run-hooks ...) (setq new-selected new) (when
feed-filter ...) (setq new-selected ...) (apply ... feed-pos
new-selected) (if org-feed-assume-stable ... ...) (goto-char feed-pos)
(show-children) (when org-feed-save-after-adding ...) (message Added
%d new item%s from feed %s to file %s, heading %s ... ...
feed-name ... feed-headline) (run-hooks ...) (length new)))
(save-excursion (save-window-excursion (setq feed-pos ...) (setq
old-guids ...) (while ... ...)
(if ... ... ... ... ... ... ... ... ... ... ... ... ... ...))) (let
((feed-name ...) (feed-url ...) (feed-file ...) (feed-headline ...)
(feed-filter ...) (feed-template ...) feed-buffer feed-pos entries
entries2 old-guids current-guids new new-selected e) (setq feed-buffer
(org-feed-get-feed feed-url)) (unless (and feed-buffer ...) (error
Cannot get feed %s feed-name)) (setq entries (org-feed-parse-feed
feed-buffer) entries2 entries) (ignore-errors (kill-buffer
feed-buffer)) (save-excursion (save-window-excursion ... ... ... ...)))
org-feed-update((ReQall
http://www.reqall.com/user/feeds/rss/8dc53e3aff648650b9996a61717a75adf27c54dc;
~/Dropbox/plans/feeds.org ReQall Entries :filter my-reqall-filter))
mapcar(org-feed-update ((ReQall
http://www.reqall.com/user/feeds/rss/8dc53e3aff648650b9996a61717a75adf27c54dc;
~/Dropbox/plans/feeds.org ReQall Entries :filter
my-reqall-filter))) (apply (quote +) (mapcar (quote org-feed-update)
org-feed-alist)) (let ((nfeeds ...) (nnew ...)) (message %s from %d
%s (cond ... ... ...) nfeeds (if ... feed feeds)))
org-feed-update-all() call-interactively(org-feed-update-all)
execute-extended-command(nil)
call-interactively(execute-extended-command)

So where did I go wrong?


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] list of todo entries without tags

2009-03-24 Thread John Rakestraw
On Tue, 24 Mar 2009 21:38:52 +0100
Carsten Dominik carsten.domi...@gmail.com wrote:

  And what do you get for
  coming up with it in the first place ?-)  
 
 I'll accept gifts :-)

I'm not a coder, but it seems to me that if the person who solves the
puzzle gets a free download, then the person who came up with the
puzzle should get to provide a free upload. How would that be?

;-)

--John


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] iPhone ---- org-mode

2009-03-22 Thread John Rakestraw
On Sun, 22 Mar 2009 03:38:24 -0700
Brad Bozarth prettyg...@cs.stanford.edu wrote:

 Hi! I'm new to org-mode, but knew I had to use it when I combined a
 desire to try GTD with my ctrl-s view of the world.
 
 I'm ok with processing tethered to a computer, but wanted an easy way
 to capture on the move, without adding anything to my pocket. A couple
 days of hacking later (with some real *hacks*, but they work), and
 I've got something I really like.
 
 I can now, using either the iphone keyboard or my voice, quickly
 capture something, and know that it will shortly be sitting as a TODO
 under iPhone inbox in my gtd.org file that is git synchronized
 between all my computers. I put it together with a cron'd shell
 script, two awk scripts, and the free Reqall iPhone app. Could be
 done more elegantly, but then I wouldn't be Getting (other) Things
 Done :). I can share the hacks if anyone is interested.
 
 -brad

Consider me (very!) interested.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] agenda formatting

2009-02-09 Thread John Rakestraw
Hi --

I'd like to export my agenda to an html page, and I'd like to do
regularly with a cron job. I've set up the custom agenda view, and
use the batch processing described here:

http://orgmode.org/manual/Using-the-agenda-elsewhere.html#Using-the-agenda-elsewhere

When I export the custom agenda using C-c a e interactively from within
emacs, the agenda.html file has all the formatting of the usual agenda
within org -- colored and bold fonts as I expect them to be. However,
when I create the agenda using this command from the command line:

emacs -batch -l ~/.emacs -eval '(org-batch-agenda e)'

all of the text in agenda.html is the same color. In addition, much of
the text in the html version is italicized.

Looking at the html source of the two different versions, I see that
the CSS style settings are different, so the export process of the
batch file is picking up a different css style sheet than the one
picked up by the export process called within emacs. (I found the file
org.css in my org git directory, but that seems to have still different
settings for faces.)

I've not changed any of the default face settings.

Should the formatting in the html file produced by the batch process be
the same as the formatting produced using C-c a e within emacs. Or, in
other words, is there a problem with my set-up? 

Apologies if there's an obvious answer to this -- my searches haven't
turned up anything.

Thanks --

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] agenda formatting

2009-02-09 Thread John Rakestraw
Replying to myself, just in case others have this question...

 Hi --
 
 I'd like to export my agenda to an html page, and I'd like to do
 regularly with a cron job. I've set up the custom agenda view, and
 use the batch processing described here:
 
 http://orgmode.org/manual/Using-the-agenda-elsewhere.html#Using-the-agenda-elsewhere
 
 When I export the custom agenda using C-c a e interactively from
 within emacs, the agenda.html file has all the formatting of the
 usual agenda within org -- colored and bold fonts as I expect them to
 be. However, when I create the agenda using this command from the
 command line:
 
 emacs -batch -l ~/.emacs -eval '(org-batch-agenda e)'
 
 all of the text in agenda.html is the same color. In addition, much of
 the text in the html version is italicized.
 
 Looking at the html source of the two different versions, I see that
 the CSS style settings are different, so the export process of the
 batch file is picking up a different css style sheet than the one
 picked up by the export process called within emacs. (I found the file
 org.css in my org git directory, but that seems to have still
 different settings for faces.)
 
 I've not changed any of the default face settings.
 
 Should the formatting in the html file produced by the batch process
 be the same as the formatting produced using C-c a e within emacs.
 Or, in other words, is there a problem with my set-up? 
 
 Apologies if there's an obvious answer to this -- my searches haven't
 turned up anything.
 
 Thanks --
 

With a little more digging, I've solved my problem. Not sure that this
is the best solution, because I still don't understand why running
org-batch-agenda from the command line wasn't picking up the same style
sheet as the export agenda command run interactively from within emacs.

However, inserting this in my org config file has agenda.htm looking
the same as it looks in the org buffer no matter agenda.htm is
generated:

***code starts here
(setq org-agenda-export-html-style 

style
  body {
color: #daa520;
background-color: #00;
  }
  .org-agenda-date {
/* org-agenda-date */
color: #87cefa;
  }
  .org-agenda-structure {
/* org-agenda-structure */
color: #87cefa;
  }
  .org-scheduled {
/* org-scheduled */
color: #98fb98;
  }
  .org-scheduled-previously {
/* org-scheduled-previously */
color: #ff7f24;
  }
  .org-scheduled-today {
/* org-scheduled-today */
color: #98fb98;
  }
  .org-tag {
/* org-tag */
font-weight: bold;
  }
  .org-todo {
/* org-todo */
color: #ffc0cb;
font-weight: bold;
  }

  a {
color: inherit;
background-color: inherit;
font: inherit;
text-decoration: inherit;
  }
  a:hover {
text-decoration: underline;
  }
/style
)
***code ends here


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] auto-fill-mode bug?

2009-02-06 Thread John Rakestraw
On Fri, 6 Feb 2009 00:38:07 +0100
Christopher Kuettner ckuett...@gmail.com wrote:

 Using org together with auto-fill.  Whenever I hit (C-c c) to update
 my file-specific #+TAGS: settings, org exits auto-fill.  I than have
 to re-enter auto-fill.  Why?  Is this a bug?

hmm. doesn't happen here. I use org with auto-fill, and routinely
refresh settings with C-c C-c (not with C-c c, but I assume that was a
typo?). Auto-fill remains active.

(emacs 22.2.1; org updated via git just this moments ago)

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Can't make TODO dependencies work

2009-02-01 Thread John Rakestraw
Hi --

I'm eager to use the TODO dependencies feature, but I can't make it
work. In my usual set-up, I (think I) have it set up correctly. (C-h
C-v indicates that org-enforce-todo-dependencies is set to t.) However,
the dependency simply isn't enforced. Nor is the ordered dependency
enforced. 

I understand that it's likely a problem in my set-up, but I don't know
where to check. However, after hours (literally -- yes, I'm a slow
learner), I discovered what I hope is a clue to someone more
knowledgeable than I. Given this simple test file:


#+ARCHIVE: archive_cndls.org::* Finished Tasks and Projects
#+SEQ_TODO: TODO STARTED  DELEGATED AGENDA WATCH READ APPT | DONE \
DEFERRED CANCELED WAITING MAYBE 
#+TAGS: Placeholder(p) ATProgram(A) FacProgramming(F) ULI(U)Grants(G)\
Consultations (C) Supervisions(S) Misc(M) Teaching(T) ExCo(E) 
#+STARTUP: lognotestate 
#+Category: CNDLS
#+ARCHIVE: archive_cndls.org::
#+LaTeX_CLASS: report
# Time-stamp: 2009-02-01 11:26:41 jrake

* TODO Main task
  :PROPERTIES:
  :ORDERED: t
  :END:

** TODO Subtask 1

** TODO Subtask 2
+

Dependencies work in one instance (#2 below), but they don't work in
instances 1 and 3 -- 

  1. If I start emacs/org-mode with a minimal configuration and
 then open this file, dependencies still don't work.

  2. If I start emacs/org-mode with a minimal configuration, open
 this file, then delete the header line beginning #+SEQ_TODO
 and refresh the settings, dependencies work.

  3. If I start emacs/org-mode with my usual configuration,
 dependencies still don't work in this simple test file, even
 if I delete the SEQ_TODO line in its header.

I set up my TODO list in each file, and there's no general set-up for
these in my ordinary configuration. Any clues where else I should look?

Emacs 22.2.1, org 6.20i, Linux (Fedora 10)

Thanks --

John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Can't make TODO dependencies work

2009-02-01 Thread John Rakestraw
Hi Carsten --

On Sun, 1 Feb 2009 18:21:49 +0100
Carsten Dominik domi...@science.uva.nl wrote:

 What is the value of org-blocker-hook?

In the minimal configuration:

(org-block-todo-from-checkboxes
org-block-todo-from-children-or-siblings)

In my usual configuration, its value is nil.

--John


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Can't make TODO dependencies work

2009-02-01 Thread John Rakestraw
A clarification re this part of my initial message:
 
   2. If I start emacs/org-mode with a minimal configuration, open
  this file, then delete the header line beginning #+SEQ_TODO
  and refresh the settings, dependencies work.

This is misleading. I realized that dependencies *do* work consistently
in the minimal configuration. With the header line in the test file, I
can change the main task from TODO to STARTED (or to any of the other
non-done states), but I'm blocked from changing it to DONE.

But they still don't work with my usual configuration.

Apologies.

--John


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Can't make TODO dependencies work

2009-02-01 Thread John Rakestraw
On Sun, 1 Feb 2009 19:03:46 +0100
Carsten Dominik domi...@science.uva.nl wrote:

  This is misleading. I realized that dependencies *do* work  
  consistently
  in the minimal configuration. With the header line in the test
  file, I can change the main task from TODO to STARTED (or to any of
  the other non-done states), but I'm blocked from changing it to
  DONE.  
 
 This is how it should be.

I agree -- that's why I apologized for introducing that point.
 
  But they still don't work with my usual configuration.  
 
 Well, if the value of org-blocker-hook is nil in this case, I
 am not surprised!   Why is it nil?  If you set the
 org-enforce... variables, the hook should be filled
 with the two functions.

I don't know why it's nil. However, I've discovered a bit more. It
seems that the problem is that my settings in my org-config file:

(setq org-enforce-todo-dependencies t)
(setq org-agenda-dim-blocked-tasks 'invisible)
(setq org-enforce-todo-checkbox-dependencies t)

didn't prompt the required change in the value of org-blocker-hook.
With these lines in my org config file, the values of the three
variables are as expected, but the value of org-blocker-hook remains
nil, even if I stop and re-start emacs.

When I change the value of org-enforce-todo-dependencies using
customize, then the value of org-blocker-hook is what it should be, and
the dependencies work, even if I stop and re-start emacs.

So presumably something else in my config file is keeping
org-blocker-hook from being re-set?

I'd prefer not to use the customize function, so I'd hoped to set it in
my config file.

Thanks, and apologies for not sorting through this a bit more before
the initial post.

--John




___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Can't make TODO dependencies work

2009-02-01 Thread John Rakestraw
Hi Carsten --

Thanks for the troubleshooting, and thanks also for this write-up. In
particular ---

 However, org.el will also get loaded when you require some
 other org-... file, for example an add-on from the contrib
 directory.

I was setting the variables before (require 'org-install), but I found
an earlier instance of (require 'org-xxx). It's inspired me to clean up
and organize my init files.

--John


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] checkboxes and agenda invisibility

2009-02-01 Thread John Rakestraw
I noticed today that, at least in my set-up, setting these variables
this way:

(setq org-agenda-dim-blocked-tasks 'invisible)
(setq org-enforce-todo-checkbox-dependencies t)

means that a TODO task with checkboxes doesn't get included in the
agenda. However, the sub-tasks in the checkbox list don't get included,
either. So the TODO task with checkboxes doesn't show up in the agenda.

It makes sense given the way the variables work. However, I wonder if
it makes more sense for a task with checklisted sub-tasks to be
included in the agenda so that the tasks and sub-tasks don't get lost.
Or, to put the point slightly differently, I think that a TODO that's
blocked because it has dependent TODOs might be treated differently in
agenda listings than a TODO that's blocked because it has dependent
checklist items. 

Not a big deal to me because I don't typically use checkboxes for TODO
items. But I thought I'd raise it for consideration.

--John


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] bug in org-remember?

2008-12-22 Thread John Rakestraw
))
 '(org-remember-store-without-prompt nil)
 '(org-refile-targets '((org-agenda-files . (:maxlevel . 2
 '(org-remember-templates
   (quote ((task-cndls 116 * TODO %?\n  SCHEDULED: %^T\n  :PROPERTIES: \n  
:Entered: %U\n  :END: \n  \n ~/Dropbox/plans/work.org Unfiled Tasks)
   (read-file 114 * READ %?\n  %a \n  :PROPERTIES: \n  :Entered: %U 
\n  :END: \n   ~/Dropbox/plans/work.org Unfiled Tasks)
   (email 101 * TODO Reply to %?\n  SCHEDULED: %^T\n  :PROPERTIES: 
\n  :Entered: %U \n  :END: \n  :EMAIL:\n %^C\n :END: ~/plans/work.org 
Unfiled Tasks)
   (agenda 97 * AGENDA %?\n   :PROPERTIES: \n  :Entered: %U\n  
:Program: Agenda\n  :Contact: %^{Agenda Item for?}\n  :END:\n  \n 
~/plans/work.org Unfiled Tasks) 
   (home task 104  * TODO %?\n  SCHEDULED: %^T\n  :PROPERTIES: \n  
:Entered: %U \n  :END: \n  \n ~/plans/home.org Unfiled Tasks)
   (journal entry 106 ** %U\n   %? ~/plans/journal.cpt Entries)
   (web-clip ?w * %c \n  :PROPERTIES: \n  :Entered: %U \n  :END: \n  
- Quote from web page starts here\n- %:region\n  - Quote from web 
page ends here\n\n  %?\n ~/plans/webclips.org Unfiled Clips) 
   (software tip ?s * %c \n  :PROPERTIES: \n  :Entered: %U \n  :END: 
\n  - Quote from web page starts here\n- %:region\n  - Quote from 
web page ends here\n\n  %?\n ~/plans/webclips.org Software Tips)
   (software Tip ?T * Tip about %?\n  :PROPERTIES: \n  :Entered: %U 
\n  :END: \n  - Quote from email message starts here\n- %^C\n  - 
Quote from email ends here\n\n  %?\n ~/plans/webclips.org Software 
Tips)  
   (fun_email 102 * TODO Reply to %?\n  :PROPERTIES: \n  :Entered: 
%U \n  :END: \n  %:location  \n  %:message\n ~/plans/work.org Unfiled 
Tasks)
   (grocery ?g * %? :groc: \n  %u\n  :PROPERTIES: \n  :END: 
~/plans/grocery.org Items to Buy)
   (note 110 * %u %?\n  \n ~/plans/notes.org Notes)


(setq org-show-hierarchy-above nil
   org-show-following-heading nil
   org-show-siblings nil)

;;; Uncomment the following if I want a default empty line between headings. 
;; (setq org-blank-before-new-entry
;;   '((heading . t) (plain-list-item . nil)))

(setq org-drawers '(PROPERTIES BACKGROUND CLOCK HIDDEN EMAIL))

(setq org-log-note-clock-out t)

(setq org-special-ctrl-a/e t)




-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] bug in org-remember?

2008-12-21 Thread John Rakestraw
Hi --

When I do C-c C-c to file away a note created with C-c r, I get the
error message Wrong type argument: stringp, nil. The filing hints at
the top of the remember template disappear, leaving only the TODO I've
just created, but the note isn't filed away.

I get the same response when doing C-u C-c C-c. the other three options
(C-0 C-c C-c, C-1 C-c C-c, and C-2 C-c C-c) work as expected.

(Apologies if I've missed a recent change to the code that requires a
change in config; I've been swamped and haven't followed the release
notes as closely as I often do, but didn't find anything about this in
a search just now.)

org-mode version 6.16a, emacs 22.2.1 x86_64, Fedora 10

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] OT?: viewing pdf as attachment

2008-11-18 Thread John Rakestraw
Hi --

I think this is not specifically an org-mode issue, but it shows up in
org.

I've started using the file attachment feature. I really like the way
it works, except that it doesn't work consistently with pdf files on
one of my computers. I can attach a pdf easily, but when I try to open
the attachment from org-mode, acroread opens as expected but it doesn't
open the file -- instead, I have an empty acroread window (the same
window I get if I open acroread from the command line with no file
specified). The program is run, but somehow the file name isn't passed
to the program.

I'm puzzled because it works as expected on my other primary computer,
and both computers have basically the emacs and org-mode same set-up --
i.e., .emacs and the org-configuration files are identical. (I know
they're identical because they're synched between computers.) So there's
some other setting that's off. I'm hoping that someone can give me a
hint where to look. I've come up empty in my searches.

Set-up on both computers:
 - emacs 22.2.1
 - org 6.12trans
 - Fedora 8
 - fvwm window manager

Thanks.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] OT?: viewing pdf as attachment

2008-11-18 Thread John Rakestraw
 Hi --
 
 I think this is not specifically an org-mode issue, but it shows up in
 org.
 
 I've started using the file attachment feature. I really like the way
 it works, except that it doesn't work consistently with pdf files on
 one of my computers. I can attach a pdf easily, but when I try to open
 the attachment from org-mode, acroread opens as expected but it
 doesn't open the file -- instead, I have an empty acroread window
 (the same window I get if I open acroread from the command line with
 no file specified). The program is run, but somehow the file name
 isn't passed to the program.
 
 I'm puzzled because it works as expected on my other primary computer,
 and both computers have basically the emacs and org-mode same set-up
 -- i.e., .emacs and the org-configuration files are identical. (I know
 they're identical because they're synched between computers.) So
 there's some other setting that's off. I'm hoping that someone can
 give me a hint where to look. I've come up empty in my searches.
 
 Set-up on both computers:
  - emacs 22.2.1
  - org 6.12trans
  - Fedora 8
  - fvwm window manager

Apologies for replying to my own message, but I forgot to say that when
I run acroread some_file.pdf from a terminal, acroread opens the file
as expected.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] OT?: viewing pdf as attachment

2008-11-18 Thread John Rakestraw
Hi --

 there have been several threads to this concern. Maybe searching them
 helps a little (http://lists.gnu.org/archive/html/emacs-orgmode/).
 This here seemed to help in a similar case (~/.mailcap):
 

Thanks, Sebastian and Bernt. It didn't occur to me that it could be a
mailcap issue because the system knows which application to use -- it
opens acroread, but for some reason doesn't open the pdf file. I'll
check ~./mailcap (and /etc/mailcap) when I'm back on that machine
tomorrow.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] additional bugs in latex export

2008-10-21 Thread John Rakestraw
Hi --

I'm starting to use latex export more, and noticed three problems
related to tables:

  - If the first column in a table has an inactive time stamp, then
strange things happen -- in various tests, I've seen only
seemingly random cells from a long table exported, or sometimes
only the header row (that doesn't have the time stamp in it) and
no other rows exported.
  - If the text in the first column begins with a left bracket, then
the first cell in each row is blank.
  - If a table is long enough that it should continue on a following
page, there's no page break -- instead, lines continue into the
bottom margin. What fits on that page prints, but nothing else
prints. If I break the table at the bottom of the page with an
empty line, the rest of the table continues as expected on the
following page.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] firefox urls

2008-05-21 Thread John Rakestraw
On Wed, 21 May 2008 07:28:58 +0200
Carsten Dominik [EMAIL PROTECTED] wrote:

 This seems to be a bug in org-annotation-helper.el.
 org-remember must be called like this:
 
 (org-remember nil ?w)
 
 instead of like this:
 
 (org-remember ?w)

Thanks, Carsten. That fixed it.

--John


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] firefox urls

2008-05-21 Thread John Rakestraw
On Wed, 21 May 2008 13:06:53 +0200
Richard G Riley [EMAIL PROTECTED] wrote:

 Has anyone else had success following Nick's new instructions to get
 this working? I just tried from scratch and am seeing the same issues.

It's working for me. I should admit (for those who have not been
following this thread) that I had this working in Bastien's earlier
version, so following Nick's new instructions (and Ben's
instructions) means looking through those instructions to make the
requisite changes to Bastien's earlier version.

Three points that might be relevant:

  - my org-annotation-helper.el file incorporates the change suggested
by Carsten's recent email in this thread:
- (org-remember nil ?w) instead of (org-remember ?w)
  - my template uses %:region instead of %i to set the location
for the region copied in the browser to be inserted.
  - I updated my system this week from Fedora 7 to Fedora 9. It
appears that he new version of Firefox (3.0b5) changes the naming
convention for the network.protocol-handler inserted in
about.config:
  - network.protocol-handler.app.remember instead of
network.protocol-handler.remember (I can't verify this
because I can't figure out how to delete the
network.protocol-handler to start from scratch, but it appears
that if you just set up the bookmarklet and then click on it,
Firefox 3 will ask you for the application -- you then
navigate to the shell script, double-click on it, and firefox
sets up network.protocol-handler for you.)

If it's not working for you, then I think (though remember I'm not a
programmer ;-) that the problem is likely either in your template or
in the bookmarklet set-up. You might start troubleshooting by
following Dan's suggestion to test your template by starting emacs and
then running this command from a shell prompt:

  org-annotation-helper 'remember://http%3A//orgmode.org/ \
  ::remember::Org-Mode%20Homepage::remember::Notes' 

If that opens up your template with the proper insertions, then check
out the bookmarklet.

Hope that helps -- or at least that it doesn't introduce further
confusions.

--John


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] firefox urls

2008-05-20 Thread John Rakestraw
On Tue, 20 May 2008 16:46:37 -0400
Nick Dokos [EMAIL PROTECTED] wrote:

 when bzg/org-annotation-helper calls org-remember with argument ?w, I
 expect this template to pop up in a *Remember* buffer. Instead, I get
 asked which template I want to use (I have three more templates in
 org-remember-templates). 

I get the same thing -- in fact, org-annotation-helper has *never*
forced the selection of the template for me in the months I've been
using it; I've always had to select it by pressing w. Even more
puzzling (to me, anyway), is that occasionally when I press w the
first time, I get nothing, but when I press it the second time, I get
the template, complete with a w keyed in at point.

 When I say w and force the choice, the
 contents of the buffer are not what I expect: I get the time stamp
 from %u, and the link from %c, but *not* the selection from %i. 

When I use the %i variable in the template, I get the same thing you
describe -- the selection doesn't show up in the note created from the
template. When I use %:region instead of %i, it does show up as
expected.

--John

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] org-annotation-helper

2008-05-18 Thread John Rakestraw
Hi Dan, Carsten, Alan and others --

Dan, thanks for following up on this.

Carsten, I'm happy to have this added to the contrib/lisp directory.
However, I really shouldn't be listed in the code as an author. Bastien
did the initial adaptations of the code from the emacs-planner list. I
sent it to the list in response to Dan's query, but I think the only
tweak I added to the code (it's been months, so I'm not sure) was to
comment out one line that seemed redundant to me. These other guys are
the coders.

Alan, just to reinforce Dan's encouragement -- I remember being a
little puzzled when I first tried to set this up, but the perseverance
was well worth it -- it's been a great tool to get annotated links into
an org file collection. You're right, there are three bits of code --
the bookmarklets added to your browser, the shell script that Dan
calls the handler, and the org-annotation-helper.el module. Then you
have your org-remember template, but you don't even have to write that
-- just use Dan's. To set it all up, just work through Dan's
step-by-step listed in the commentary on the code. It's not nearly as
complicated as you might think -- and you can come back with particular
questions if you encounter problems. (Don't mean to be pushy or glib --
just a satisfied user)

--John



 Hi,
 
 I have now added this file to the contrib/lisp directory.  If
 any of the authors does not agree with thi, please let me know.
 
 - Carsten
 
 On May 17, 2008, at 2:16 AM, Daniel M German wrote:
 
  hi everybody,
 
  I took the liberty of updating the elisp file that John Rakestraw
  sent last week. I (think) have improved a bit and the description
  should be easier to follow. I have also made it possible to insert
  the selected text into the current buffer (the code was there, I
  just had to grab it).
 
  One major change: i have replaced the separator from %1C to
  ::remember:: (the %1C never worked for me).
 
  Let me know if you have questions/problems.
 
  http://turingmachine.org/~dmg/temp/org-annotation-helper.el
 
 
  -- 
  --
  Daniel M. German
  http://turingmachine.org/
  http://silvernegative.com/
  dmg (at) uvic (dot) ca
  replace (at) with @ and (dot) with .
 
 
  ___
  Emacs-orgmode mailing list
  Remember: use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
 
 ___
 Emacs-orgmode mailing list
 Remember: use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] firefox urls

2008-05-14 Thread John Rakestraw
Hi Daniel and the list --

On Tue, 13 May 2008 21:12:13 -0700
Daniel M German [EMAIL PROTECTED] wrote:

 I got everything to work, except that the link that it is passed to
 remember contains a %3A instead of :: (i.e. http%3A//slashdot.org/)

I'm afraid this is way beyond my expertise. I know only that 3A is
the hex code for a colon, so at some point the colon that exists in
the url in the browser is translated into the hex code. I don't know
whether that translation happens in the javascript processing or what.
I'm using firefox/fedora, and things work well. (I'm not a programmer,
not even a hacker [in the good sense]. More of a tweaker.) So I'm afraid
I'm not any help here. 

More response to you and Carsten about documenting/publishing this
later (today, I hope).

--John


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] firefox urls

2008-05-12 Thread John Rakestraw
  (cons (list url title) org-stored-links))
;; FIXME can't access %a in the template -- how to set
annotation? (raise-frame)
(cond ((equal proto remember)
   (kill-new orglink)
   (org-remember ?w))
;; (yank)) I don't think I need this yank
  ((equal proto annotation)
   (message Copied '%s' to the kill-ring. orglink)
   (kill-new orglink))
  (t (error unrecognized org-helper protocol
  (error could not parse argument
)


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bock quotes or indented quotes in org text

2008-04-29 Thread John Rakestraw
On Tue, 29 Apr 2008 11:09:05 -0600
Charles Martin [EMAIL PROTECTED] wrote:

 It seems like I *much* just be having a senior moment, but I can't
 figure how to get a block quote or indented text in org mode.

There may be some better ways to do these things, but here's how I do
it -- 

With an initial indentation, I just insert spaces to set the indentation
when I start typing a paragraph and each following line wraps to map
that indentation.

If a new line follows an indented line, tab will move the new line to
the same indentation as the indented line it follows.

Or if you're finishing a paragraph that's indented and want the next
paragraph indented the same amount, use M-j instead of return to start
the new paragraph.

If it's text that's already typed and you want to indent it, use
indent-region. (But again, this doesn't work for me unless it follows a
paragraph that's indented.)

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Add to do item in the Org Agenda Day Grid

2008-03-26 Thread John Rakestraw


On Wed, 26 Mar 2008 10:54:55 -0400
Xin Shi [EMAIL PROTECTED] wrote:

 I'm wondering if there's a way to add todo item in the buffer Org 
 Agenda on its Day Grid? Since there are frequently something jumps
 up and I want to keep it in the schedule.

While in the agenda buffer, I call one of my remember templates, add
the TODO, schedule it (using ctrl-c ctrl-s), and then refresh the agenda
buffer. The new TODO shows up on the scheduled date.

-- 
John Rakestraw


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: [Org-mode 5.14] -- org-remember

2007-11-29 Thread John Rakestraw
Hi Carsten --

 I cannot reproduce this, can you make me a backtrace, please?

Sure. (I should also say I'm using Fedora 7, emacs 22.1.1, and org
5.15.)

I entered C-u C-c r

Backtrace --

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p
nil) buffer-substring(312400 nil)
  (progn (buffer-substring (point) (mark)))
  (if current-prefix-arg (progn (buffer-substring ... ...)))
  (when current-prefix-arg (buffer-substring (point) (mark)))
  (list (when current-prefix-arg (buffer-substring ... ...)))
  call-interactively(remember)


-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: [Org-mode 5.14] -- org-remember

2007-11-28 Thread John Rakestraw
Hi --

 For example, if you have `org-remember' bound to `C-c r',
   then `C-u C-c r n' will get you to the file and headline
   given in the template associated with the letter n.

Just tried this out. When I do 'C-u C-c r' I get this in the minibuffer:

Wrong type argument: integer-or-marker-p, nil

When I do 'C-c r' I get the selection list of remember templates as 
expeted.

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: Org-mode 5.14

2007-11-27 Thread John Rakestraw
Hi --

 Did you forget to (provide 'org-install)?
 my emacs stopped telling me thet org-install was not provided.

I ran into that as well, and then noted this in the documentation's
installation instructions:

 Then add to .emacs:
 
  ;; This line only if org-mode is not part of the X/Emacs
 distribution. 
 (require 'org-install)

Perhaps a line in the change notes would be good?

(Thanks for all the development, Carsten -- and that non-developer
Bastien as well.)

-- 
John Rakestraw



signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Remember idea

2007-11-08 Thread John Rakestraw
On Thu, 08 Nov 2007 03:57:40 +
Bastien [EMAIL PROTECTED] wrote:

 I tried to do that.  Here's an updated version of
 org-annotation-helper.

Thanks very much -- it's working nicely for me, and I'm hoping I've
learned enough from your example to rig up something similar that I can
use with claws-mail.

I know you're not reading this until next week, Bastien -- but thanks
for your efforts.

And thanks again to Carsten.

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Remember idea

2007-11-08 Thread John Rakestraw
On Thu, 08 Nov 2007 04:59:09 +
Bastien [EMAIL PROTECTED] wrote:

 Thinking of this again: this is exactly the kind of functionnality
 that could easily be demonstrated in a screencast.  Would you
 consider doing one?  

Yes, I'll do something with this -- either in a screencast or a simple
howto -- once I tweak things a bit more and settle into regular use of
this. It would be a small way to give back to the community.


-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Remember idea

2007-11-07 Thread John Rakestraw
On Wed, 07 Nov 2007 12:29:00 +
Bastien [EMAIL PROTECTED] wrote:

 Hope this will work correctly...

Yes, it works great. However, to make the remember function work I had
to add a line to the lisp, so that the relevant section now reads:

(cond ((equal proto remember)
(kill-new orglink) ;; added to put the link in the kill-ring  
(org-remember ?w))
  ((equal proto annotation)
   (message Copied '%s' to the kill-ring. orglink)
   (kill-new orglink))

I don't fully understand why I needed to add the line -- all I know is
that without it the link isn't in the kill-ring when I yank it.

I couple this with this template:

(web-clip ?w * %^{Paste page title/URL}\n %u\n  :PROPERTIES:
\n  :END: \n  %? ~/plans/webclips.org) 

I suspect I'll use this a lot -- thanks for setting it up. (And I
understand that once we have the functionality in the template to yank
the kill-ring to a point indicated by %c it will be simpler still.)

The next question is whether the link and perhaps other bits of
information can be passed as variables instead of via the kill-ring. I
ask because it would be great to block (and perhaps copy) a section of
a web page, click on the bookmarklet, and then see a template with the
link/title and the section of text that I blocked/copied already
entered. Something like this:


* link:[[http://www.nytimes.com/2007/11/07/][A news article]]
  [2007-11-07 Wed]
  :PROPERTIES:
  Here is the text I blocked/copied from the web page. It might be 3 or
  4 sentences, and it might be set off somehow either by quotation
  marks or perhaps a different indent level.

  point is here for any notes I want to add to the entry


I don't know whether others will use this functionality. I confess that
part of my interest stems from my experience with the only program I
miss from my days using windows software -- a program called Zoot
(http://www.zootsoftware.com/). Zoot does many things, but one thing I
really like is that it makes it very easy to store, annotate, and
organize links to web pages. 

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Org Remember idea

2007-11-06 Thread John Rakestraw
 I've started using Remember mode more and more, and it has given me an
 idea for new piece of functionality.
 
 %c - insert clipboard/kill-ring at point
 
 This is for 'auto' pasting links or snippets of text from my browser
 into an org file.
 

I used planner mode for a while before switching to org mode, and still
occasionally look in on planner to see what they're doing. A couple of
weeks ago I stumbled on this in the list planner-el-discuss:

 Ever wanted to create a planner annotation or start remember directly
 from within an external web browser, say Firefox?  Here's how I do it.
 
 I've registered special protocol handlers in the browser,
 remember:// and annotation://.  I've configured these handlers to
 call a script that passes the information to a running Emacs session
 using emacsclient/gnuclient.  The remember/annotation handlers are
 invoked through bookmarklets (bookmarks which execute JavaScript
 code).
 
 The remember:// protocol starts M-x remember with a planner link for
 the current website filled in, using the document title as the
 description of the link, just like planner-w3m does.
 
 The annotation:// protocol handler works similar to
 `planner-annotation-as-kill': it puts a planner link in the kill ring.

I would really like to have something like this for org. The poster
actually included the lisp code, the browser protocols, and the script
that did all this. I know next to nothing about lisp so was unable to
do anything with it, but is it possible that it could be easy for
someone who knows this stuff to adapt it to org?

In hopes that someone will look at it, I've posted the code below.
Apologies for the length of the post.

--John

;;; gjk-planner-annotation-helper.el --- start remember from a web
browser

;; Author: Geert Kloosterman [EMAIL PROTECTED]
;; Created: Sat Nov 19 22:33:18 2005
;; Updated: Thu Oct 25 17:48:41 2007
;; Keywords: planner remember

;;; Commentary:

;; We want to be able to pass a URL and document title directly from a
;; web browser to Emacs.
;;
;; We define a remember:// url handler in the browser and use a shell
;; script to handle the protocol.  This script passes the information
;; to a running Emacs process (using emacsclient/gnuclient).  We use 
;; bookmarklets to create the remember:// urls dynamicly.
;;
;; The protocol types currently recognized are:
;; 
;; remember:// start `remember' with the url and title filled in
;; annotation://   similar to `planner-annotation-as-kill'.
;;
;; The urls used internally will have the following form:
;;
;;   remember://the web page url%1Cthe title
;;
;; The title will be url-hex-encoded.  %1C is the (url-encoded) low
;; ascii value for the field separator.
;;

;; The bookmarklets:
;;
;; javascript:location.href='remember://' + location.href + '%1C' +
escape(document.title) ;; javascript:location.href='annotation://' +
location.href + '%1C' + escape(document.title)

;; The helper script:
;;
;; #!/bin/sh
;; # planner-annotation-helper -- pass a remember-url to emacs
;; #
;; # Author: Geert Kloosterman [EMAIL PROTECTED]
;; # Date: Sat Nov 19 22:33:18 2005
;; 
;; if [ -z $1 ]; then
;; echo $0: Error: no arguments given! 12
;; exit 1
;; fi
;; 
;; # For years I've been using Martin Schwenke's dtemacs script to start
;; # Emacs.  The script uses gnuclient to connect to Emacs and starts a
;; # new Emacs process when necessary.
;; # See http://www.meltin.net/hacks/emacs/
;; #
;; # dtemacs -batch -eval (progn (gjk/planner-annotation-helper
\$1\ ) \\) ;; 
;; # As of Emacs 22 emacsclient will work too
;; emacsclient --eval (progn (gjk/planner-annotation-helper \$1\ )
nil) ;; 
;; # EOF

;; Adding a protocol handler
;; -
;;
;; Firefox
;;
;; To add a protocol handler (eg: remember://) in Firefox, take the
;; following steps:
;;
;; - type in about:config in the location bar
;; - right click, select New -- String
;; - the name should be network.protocol-handler.app.remember 
;; - the value should be the executable, eg.
planner-annotation-helper. ;;   At least under Linux this does not
need to be the full path to ;;   the executable.
;;
;; See http://kb.mozillazine.org/Register_protocol for more details.
;;
;; Opera
;;
;; In Opera add the protocol in the Preferences-Advanced-Programs
;; dialog.


;;; Code:

(autoload 'url-unhex-string url)

(defun gjk/planner-annotation-helper (urlstring)
  Process an externally passed remember:// style url.

URLSTRING consists of a protocol part and a url and title,
separated by %1C.

The protocol types currently recognized are:

remember:// start `remember' with the url and title
annotation://   similar to `planner-annotation-as-kill'.

  (let ((remember-annotation-functions nil))
;; The `parse-url' functions break on the embedded url,
;; since our format is fixed we'll split the url ourselves.
(if (string-match  ^\\([^:]*\\):\\(/*\\)\\(.*\\) urlstring)
  (let* ((proto (match-string 1 urlstring))
(url+title (match-string 

Re: [Orgmode] Org Remember idea

2007-11-06 Thread John Rakestraw
Hi Bastien --

 Please tell me if the code above is working for you.  As I said, I
 didn't test it enough.

Thanks very much for this. I'm not sure that I have it working as you
intended. 

When I click on the annotate bookmarklet in firefox pops me into emacs
(into an already existing buffer) with a message that the link and page
title are in the kill-ring. Yanking gives me a nice link to the web
page, with the page title as the link text.

When I click on the remember bookmarklet, I'm taken to my standard
org-remember template screen asking me to select one of my templates.
The page link and title don't show up -- can I write a template that
incorporates this information?

I fear that I'm just being dense and that there's something obvious
that I'm not seeing. Any hints?

Thanks again.

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] request re default year in date

2007-10-17 Thread John Rakestraw
Hi --

As I begin to schedule meetings and tasks for the next calendar year, I
find that the default year (if I say, for example, jan 7) is the
current calendar year. Of course, that's what the documentation says it
will be, but 

I wonder if we could have at least an option for the default year to be
the next year if one is inserting a date that's already past for this
calendar year -- in my case, at least, if I'm now inserting the date jan
7 -- or even sep 30 -- it's much more likely that I'm wanting the date
from 2008 than from 2007.

I know that the 2008 date is only two keystrokes away -- i.e., I can
type sep 30 8 at the prompt and get 2008-09-30 Tue -- so I can live
with it the way it is. Just looking to have the program think the way i
think, I guess ;)

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] request re default year in date

2007-10-16 Thread John Rakestraw
Hi --

[[resending because I sent earlier from different email address.]]

As I begin to schedule meetings and tasks for the next calendar year, I
find that the default year (if I say, for example, jan 7) is the
current calendar year. Of course, that's what the documentation says it
will be, but 

I wonder if we could have at least an option for the default year to be
the next year if one is inserting a date that's already past for this
calendar year -- in my case, at least, if I'm now inserting the date jan
7 -- or even sep 30 -- it's much more likely that I'm wanting the date
from 2008 than from 2007.

I know that the 2008 date is only two keystrokes away -- i.e., I can
type sep 30 8 at the prompt and get 2008-09-30 Tue -- so I can live
with it the way it is. Just looking to have the program think the way i
think, I guess ;)

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] relative scheduling

2007-10-09 Thread John Rakestraw

 However, a different question pops up here.  When rescheduling,
 should the +Nd be relative to today, or relative to
 the currently scheduled date?

Perhaps this is personal preference, but somehow it seems more
reasonable to me to reschedule from today. This not only avoids
problems if (I don't know that) an event is already scheduled, but it
also fits in better with my thinking about tasks. Even if it's Monday
and I'm thinking about rescheduling a task that's now scheduled for
Wednesday, I'm still inclined to think about the new date relative to
today rather than relative to Wednesday.

So, even if it's merely my personal preference, that's my vote ;).

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Moving an item to a precise place

2007-09-19 Thread John Rakestraw

 A really stupid solution is also to promote the entry to
 top level with M-left, then to move it down with M-down,
 then to demote it again with M-right.  For short distances
 this requires the lease amount of thinking.

I found this stupid solution appealing (not sure what this says about
me ;), but learned that in my set-up M-up performs the same action as 
M-S-up -- i.e, it moves an entire tree rather than just a heading.

So I have this --

* Heading 1
** Subheading 1

* Heading 2
** Subheading 1a
** Subheading 2a

If I put point on **Subheading 1a and do M-left, I have this:

* Heading 1
** Subheading 1

* Heading 2
* Subheading 1a
** Subheading 2a

If I then have point on * Subheading 1a and do M-up, I get this:

* Heading 1
** Subheading 1
* Subheading 1a
** Subheading 2a

* Heading 2

Emacs 22.1.1
Org 5.09

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Feature request: Selective encryption

2007-08-31 Thread John Rakestraw
Hi --

On Thu, 30 Aug 2007 23:10:55 -0400
John Wiegley [EMAIL PROTECTED] wrote:

 I'm not sure if anyone has mentioned this, but one feature I'd like
 to see is the ability to hit a keystroke and have the current outline
 entry encrypted or decrypted.  allout.el does this now (although I
 find the implementation somewhat horrendous).
 
 Would others like to see this?  How would you like it to work?

I'd like to see this. Right now I'm using ccrypt
(http://ccrypt.sourceforge.net/) with the accompanying emacs package
jka-compr-ccrypt. My set-up is definitely workable, but it would be
nice to have something integrated within emacs.

As for how I'd like it to work, I'd like more or less what John W
describes -- encryption and decryption by a keystroke or short series
of keystrokes. I'd like to be prompted twice for a password or pass
phrase the first time I encrypt a file, and then to be asked for a
password or pass phrase when I open an encrypted file. I'd like it
to remember that password (assuming it's encrypted) so that I don't
have to re-enter it when I re-save an encrypted file. Of course, I'm
largely ignorant of how encryption works -- the FAQ on the ccrypt page
addresses some of the concerns knowledgeable people have. So I don't
know how easy/hard it is to do these things.

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] problem with export to html

2007-08-24 Thread John Rakestraw
Hi all --

I'm sure I'm this is operator error, but I can't track it down.

I'm no longer able to export html versions of org files. 

I've not had to export recently, so it's been a while -- at least a
month -- since I've done this. I've been through several upgrades of
org-mode since I've done it. The most drastic change came when I moved
to emacs 22 with my move from Fedora Core 6 to Fedora 7. When I made
that move I started using the org mode that came with emacs
(in /usr/local/share/emacs/site-lisp) instead of org mode that I placed
myself in ~/elisp/org/.

Any ideas how I can export to html again?

Thanks -- 

John

Here's a backtrace:

Debugger entered: nil
  (let* ((opt-plist ...) (style ...) (link-validate ...) valid thetoc
have-headings first-heading-pos (odd org-odd-levels-only)
(region-p ...) (subtree-p ...) (org-current-export-dir ...)
(org-current-export-file buffer-file-name) (level 0) (line )
(origline ) txt todo (umax nil) (umax-toc nil) (dummy ...)
(filename ...) (current-dir ...) (buffer ...) (org-levels-open ...)
(date ...) (time ...) (author ...) (title ...) (quote-re0 ...)
(quote-re ...) (inquote nil) (infixed nil) (in-local-list nil)
(local-list-num nil) (local-list-indent nil) (llt
org-plain-list-ordered-item-terminator) (email ...) (language ...)
(lang-words nil) (target-alist nil) tg (head-count 0) cnt (start 0)
(coding-system ...) (coding-system-for-write ...)
(save-buffer-coding-system ...) (charset ...) (region ...)
(lines ...) ...) (let (...) (org-unmodified ...)) (message
Exporting...) (setq org-min-level (org-get-min-level lines)) (setq
org-last-level org-min-level) (org-init-section-numbers) (setq
lang-words (or ... ...)) (set-buffer buffer) (erase-buffer)
(fundamental-mode) (and (fboundp ...) (set-buffer-file-coding-system
coding-system-for-write)) (let (... ...) (mapcar ...
org-export-plist-vars) (setq umax ...) (setq umax-toc ...) (unless
body-only ... ... ...) (if ... ...) (setq head-count 0)
(org-init-section-numbers) (while ... ...) (when inquote ...) (when
in-local-list ... ...) (org-html-level-start 1 nil umax ... head-count)
(unless body-only ... ... ... ...) (normal-mode) (if ... ...)
(goto-char ...) (when thetoc ... ...) (goto-char ...) (while ... ...)
(goto-char ...) (while ... ...) (or to-buffer ...) (goto-char ...)
(message Exporting... done) (if ... ... ...))) org-export-as-html(nil
hidden) org-export-as-html-and-open(nil)
call-interactively(org-export-as-html-and-open) (if (setq ass (assq r2
cmds)) (call-interactively (cdr ass)) (error No command associated
with key %c r1)) (let ((help [t]   insert the export option
template\n[v]   limit export to visible part of outline tree\n\n[a]
export as ASCII\n\n[h] export as HTML\n[H] export as HTML to temporary
buffer\n[R] export region as HTML\n[b] export as HTML and browse
immediately\n[x] export as XOXO\n\n[l] export as LaTeX\n[L] export as
LaTeX to temporary buffer\n\n[i] export current file as iCalendar
file\n[I] export all agenda files as iCalendar files\n[c] export agenda
files into combined iCalendar file\n\n[F] publish current file\n[P]
publish current project\n[X] publish... (project will be prompted
for)\n[A] publish all projects) (cmds ...) r1 r2 ass)
(save-window-excursion (delete-other-windows)
(with-output-to-temp-buffer *Org Export/Publishing Help* ...)
(message Select command: ) (setq r1 ...)) (setq r2 (if ... ... r1))
(if (setq ass ...) (call-interactively ...) (error No command
associated with key %c r1))) org-export()
call-interactively(org-export)


-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Bug fix release

2007-08-24 Thread John Rakestraw
On Fri, 24 Aug 2007 23:00:41 +0200
Carsten Dominik [EMAIL PROTECTED] wrote:

 Version 5.06b fixes the bugs mentioned here in the last few hours.
 
 http://www.astro.uva.nl/~dominik/Tools/org

I've downloaded the file at this link. However, I still get the same
error (on export to html) that I reported earlier today. I noticed that
the file I downloaded just now is still called org-5.06.tar.gz (instead
of 5.06b) and even after compiling it and re-starting emacs org-version
still reports 5.06. Should the latter say 5.06b?

I re-loaded the web page just to be sure I wasn't dealing with a cached
page.

--John


 
 Thanks for keeping the quality control up!  I could not do this
 without you all.
 
 - Carsten
 
 
 
 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Fw: [Orgmode] an annoying indentation

2007-06-15 Thread John Rakestraw
forwarded to the list (because I mistakenly sent it first only to
Carsten).

Begin forwarded message:

Date: Fri, 15 Jun 2007 11:25:27 -0400
From: John Rakestraw [EMAIL PROTECTED]
To: Carsten Dominik [EMAIL PROTECTED]
Subject: Re: [Orgmode] an annoying indentation


Hi Carsten --

Carsten Dominik [EMAIL PROTECTED] wrote:

 Note that this will also imply that a list like
 
 - item 1
 - item 2
- item 2a
- item 2b
 - item 3
 
 would be flattened by TAB presses going from top to bottom.

This is where my ignorance gets in the way. I'd assumed that the
leading hyphens would mean that the tab would preserve the
additional indentation of the nested items 2a and 2b. But I think I'd
still prefer it.

Thanks again for org -- it's great.

-- 
John Rakestraw


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] an annoying indentation

2007-06-14 Thread John Rakestraw
 - Carsten Dominik (2007-06-14) wrote:-
 
  *** headline
  - item 1
  - item 2
here we have some text
- item 3

In response to which, Leo [EMAIL PROTECTED] wrote:

 I think '- item 3' still should be aligned to '- item 2'. If user want
 to move the item deeper, 'M-right' can be used.
 

I agree with Leo -- or, rather, his proposal matches more nicely the
way I work. I often have lists with some items annotated and others not
annotated -- 

*** headline
 - item 1
   Some notes about item 1, sometimes just a line, but sometimes
   several lines
 - item 2
 - item 3
   Notes here.

(I recognize that others might have practices for which Carsten's
proposal makes more sense, and I could adjust, but )

--John


signature.asc
Description: PGP signature
___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Possible bug with tags

2006-09-08 Thread John Rakestraw
Hi all --

I've seen this behavior, but (a) I've not been able to find a pattern
-- sometimes it does what the op describes and sometimes it doesn't and
(b) I'm swamped at work and with a home remodeling project now and
haven't had the time to try to find the pattern. That's why I haven't
posted about it before. But I can confirm that there's a problem
somewhere.

--John

On Thu, 7 Sep 2006 20:14:19 +0200
Carsten Dominik [EMAIL PROTECTED] wrote:

 This works correctly for me.  Is there anyone else who can reproduce 
 this behavior?
 
 - Carsten
 
 On Sep 7, 2006, at 17:39, Eddward DeVilla wrote:
 
  Hi all,
 
   I'm trying to figure out if I found a bug.  I running org 4.47 on
  emacs 21.1.1 on AIX.  I'm pretty sure I've seen similar in cygwin
  and linux with various version of emacs 21.
 
   When I add or edit tags on a collapsed heading using C-c C-c, the
  tags get place after the ellipse like so.  (I'm taking liberties
  with the spacing.)
 
 * Groucho...:vaudeville:
 
  If I expand the entry, I get
 
 * Groucho
   I must admit, I was born at a very early
  age  :vaudeville:
 
  Likewise, if I use C-u C-c C-c all of the tags on collapsed headings
  get move past the ellipses.  It's not what I expected.  Is it a bug
  or am I missing something?
 
  Edd
 
 
  ___
  Emacs-orgmode mailing list
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
 
 --
 Carsten Dominik
 Sterrenkundig Instituut Anton Pannekoek
 Universiteit van Amsterdam
 Kruislaan 403
 NL-1098SJ Amsterdam
 phone: +31 20 525 7477
 
 
 
 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] Release of org-mode 4.30

2006-05-19 Thread John Rakestraw
Running emacs 21.3.1 on Windows xp.

I've installed org-mode 4.30 (I think), following the new directions in
the online documentation:

--org.el, org-publish.el, and org-intall.el are in my load path
--I've byte-compiled org.el and org-publish.el
--I've added (require 'org-install) to .emacs (I also deleted several
lines previously in .emacs but now provided in org-install.el)

I say I think I've installed it, because after I re-start emacs, m-x
org_version returns 4.29. Also, in the messages generated during the
start, I see these lines:

Loading org (compiled; note, source file is newer)...
Loading easy-mmode...done
Loading org (compiled; note, source file is newer)...done

The time stamp on org.el is 14:17 today. The time stamp on org.elc is
09:54. Since it's only 10:10 today where I am, I'm assuming that the
time stamp on org.el comes from Carsten's time zone. I've double-checked
and I know that I've byte compiled the org.el file in the path (with the
14:17 time stamp). But I don't know why it's loading it twice.

Also, the new checklist feature doesn't work. I insert a list:

* Checklist
  - [_] Item 1
  - [_] Item 2

If I do m-return at the end of one of the items I get this in messages:

Debugger entered: nil
  org-insert-item()
  org-insert-heading(nil)
  org-meta-return(nil)
* call-interactively(org-meta-return)

If I do c-c while on a checklist I get this in the minibuffer:

Symbol's function definition is void: org-at-item-checklet-p

Any ideas?

Thanks --

John

On Fri, 19 May 2006 14:19:44 +0200
Carsten Dominik [EMAIL PROTECTED] wrote:

 Changes:
 
 Version 4.30
 - Org-publish.el is now part of the Org-mode distribution.
   Thanks and applause to David O'Toole for this great extension.
 
 - Publishing is also documented in the manual.
 
 - Checkboxes in plain list items, following up on Frank Ruell's
 idea. A plain list item starting with [_] is treated as a checkbox.
 You can toggle it with C-c C-c.  Example:
   * Shopping list
 - [_] Butter
 - [X] Milk
 - [_] Oranges
   If you make new items with M-RET and the current item has a
 check box, the new item will
 
 - Modified installation: Autoloads have been collected in 
 org-install.el.
   So you no longer need to copy autoload forms into .emacs when I
   add functions to be autoloaded.  This also applied for 
 org-publish.el,
   the corresponding autoload forms are also part of org-install.el
   Please take a fresh look at the installation section of the
 manual
 
 - Logging (org-log-done) is now a #+STARTUP option.
   This makes it possible to set this on a per-file basis.
   For example:
 #+STARTUP: logging
 
 - File links inserted with C-c C-l will use relative paths if the 
 linked
   file is in the current directory or a subdirectory of it.
 
 - New variable `org-link-file-path-type' to specify preference for
   relative and absolute paths.
 
 - New CSS classes for tags, timestamps, timestamp keywords.
   So if you have written your own style, you may want to modify it
   an accomodate the new classes.
 
 - Bug and typo fixes.
   As usual:  There are *always* more bugs.  Thanks to everyone who
   has reported bugs.
 
 Enjoy.
 
 --
 Carsten Dominik
 Sterrenkundig Instituut Anton Pannekoek
 Universiteit van Amsterdam
 Kruislaan 403
 NL-1098SJ Amsterdam
 phone: +31 20 525 7477
 
 
 
 ___
 Emacs-orgmode mailing list
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
John Rakestraw


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Emacs-orgmode] 4.30 is broken

2006-05-19 Thread John Rakestraw
On Fri, 19 May 2006 16:37:02 +0200
Carsten Dominik [EMAIL PROTECTED] wrote:

 I messed up the 4.30 release, sorry.
 
 Things are hopefully now back in order, 4.31 is on the web.

Fixed for me. Thanks for prompt reply.

--John
-- 
John Rakestraw


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Emacs-orgmode] colorless and linkless

2006-05-07 Thread John Rakestraw
Hi --

(Please excuse the double-posting if any -- I'm fairly certain that my
first attempt to post this was unsuccessful.)

I've been using org mode (now at version 4.27) in Linux (FC4, current
updates, emacs 21.4.1) for a few months. I really like it -- thanks to
Carsten and others who have contributed. Everything was working well
until sometime last month. However, at that time the colors and links
stopped appearing on the screen. The TODO entries show up, and I can
cycle through the different TODO keywords, but there's no color.

In addition, the links don't show as links.

(I'm syncing my org files with my work computer, where I'm running
emacs on Windows XP. The links and colors show up there as expected.)

This change happened at a time when I was working with my org-init.el
file (called by .emacs) to set up an integration with remember.el.
It also happened about the time that Carsten changed the font-lock
faces for org mode. I mention both of these things, but (a) I can't
see how the changes I made to org-init.el might have caused the
problem and (b) I think that if changes Carsten made caused the problem
then others would surely have seen it.

Obviously, though, I know much less about emacs than others on this
list. Can someone please suggest some things that I can check?

Thanks.


-- 
John Rakestraw
Center for New Designs in Learning and Scholarship
http://cndls.georgetown.edu/


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode