Re: [O] Plotting (with gnuplot) using dates timestamps

2012-03-29 Thread Mueen Nawaz
Alan Schmitt alan.schm...@polytechnique.org writes:

 Hello,

 I'm trying to plot the following table, but the dates part is all
 wrong. Is there a way to tell gnuplot what the date format is?

 #+tblname: data-table
 | Date | HP | HC |
 |--++|
 | [2011-08-20 Sat] | 006815 | 008399 |
 | [2011-08-29 Mon] | 006840 | 008438 |
 | [2011-09-11 Sun] | 006946 | 008552 |
 | [2011-12-11 Sun] | 007805 | 009603 |
 | [2012-03-04 Sun] | 008800 | 010826 |
 | [2012-03-11 Sun] | 008876 | 010930 |
 | [2012-03-25 Sun] | 009015 | 011121 |


Although you solved the problem, another solution for headaches like
these is simply to preprocess the table in something like Perl/Python
(within your org file using Babel) to get the desired string
format. Then pass the resulting array/list to gnuplot.

The solution you were provided is probably the way to go, but keep this
strategy in mind - sometimes it's just not worth the effort to solve
everything in one language.





[O] Problem editing source code

2012-03-13 Thread Mueen Nawaz
Hi,

When I try to edit source code using C-c ', it opens the code in the
appropriate mode (Python in my case), but gives this message:

byte-code: Language mode `python-mode' fails with: ac-sources

A subsequent C-c ' does nothing (i.e. I can't leave that buffer). 

Any ideas?

Thanks, 

Mueen 




Re: [O] Multiple occurrence of tasks

2012-01-08 Thread Mueen Nawaz
Michael Welle mwe012...@gmx.net writes:

 to work on open tasks. My plan is to collect the tasks I want to work on
 on a special tasksatfosdem.org file. How can I implement that? Copying
 the tasks is not a solution ;), some kind of a link is needed. Maybe I
 should use tags and an agenda view? I like the idea of having an org

Tags makes the most sense.

 file with the usual conference notes combined with the tasks I worked on
 at the conference. How can I 'materialise' the agenda view as a section
 in an org file? Other hints? How do you implement this? 

I understand that what you're asking for is a way to transform the
results of a query to org mode format, replete with headlines and all?

Not sure it's possible. However, something like sparse trees may help.





Re: [O] Emacs macros and capture

2012-01-07 Thread Mueen Nawaz

*Bump!*

Anyone?

Mueen Nawaz mailingli...@nawaz.org writes:

 Hi,

 I'm seeing some weird behavior with my capture template setup. I have
 the following in my capture templates:

   (r Reply entry (file+headline ~/org/gtd/gtd.org Reply)
  * TODO %:subject :@respond:@email: \n %u\n %i\n %a\nFrom: 
 %:from\nID:%:message-id\n %? :immediate-finish t)

 What this template does is create a new headline under Reply in my
 gtd.org file with the subject as the title of the headline. It will then
 place a link to the email as well as some other metadata. Here's an
 example:

 *** TODO LibraryThing: State of the Thing - December 2011:@review:@email:
  [2011-12-28 Wed]
  
  [[notmuch:id:201112151815.pbfiflxh021...@athena.librarything.com][Email from 
 jer...@librarything.com: LibraryThing: State of the Thi]]
 From: jer...@librarything.com
 ID:201112151815.pbfiflxh021...@athena.librarything.com

 end example

 That works fine. Now if I record the keystrokes as a macro, and then
 execute the macro, here is what I get (same email as above):

 *** TODO LibraryThing: State of the Thing - December 2011:@review:@email:
  [2011-12-28 Wed]
  
  
 From: jer...@librarything.com
 ID:201112151815.pbfiflxh021...@athena.librarything.com

 end example

 As you can see, it recorded everything _but_ the link (the most
 important part). Any idea why this happens?

 Thanks.








[O] Emacs macros and capture

2011-12-28 Thread Mueen Nawaz
Hi,

I'm seeing some weird behavior with my capture template setup. I have
the following in my capture templates:

(r Reply entry (file+headline ~/org/gtd/gtd.org Reply)
 * TODO %:subject :@respond:@email: \n %u\n %i\n %a\nFrom: 
%:from\nID:%:message-id\n %? :immediate-finish t)

What this template does is create a new headline under Reply in my
gtd.org file with the subject as the title of the headline. It will then
place a link to the email as well as some other metadata. Here's an
example:

*** TODO LibraryThing: State of the Thing - December 2011:@review:@email:
 [2011-12-28 Wed]
 
 [[notmuch:id:201112151815.pbfiflxh021...@athena.librarything.com][Email from 
jer...@librarything.com: LibraryThing: State of the Thi]]
From: jer...@librarything.com
ID:201112151815.pbfiflxh021...@athena.librarything.com

end example

That works fine. Now if I record the keystrokes as a macro, and then
execute the macro, here is what I get (same email as above):

*** TODO LibraryThing: State of the Thing - December 2011:@review:@email:
 [2011-12-28 Wed]
 
 
From: jer...@librarything.com
ID:201112151815.pbfiflxh021...@athena.librarything.com

end example

As you can see, it recorded everything _but_ the link (the most
important part). Any idea why this happens?

Thanks.




[Orgmode] Re: Shift keys when you have multiple todo sets in one file

2009-12-19 Thread Mueen Nawaz

On 12/19/09 06:06, Matt Lundin wrote:

Mueen Nawazmu...@nawaz.org  writes:


As an aside, I've found that it's very fast to use the new speed
commands to change todo states. If org-use-speed-commands is turned on,
all one needs to do is hit t at the start of a headline.

Hmm...I don't seem to have that command. Is this only in the
trunk version?


This feature was introduced in version 6.33:


Which is what I'm using (6.33f). At least that's what org-version tells 
me.





___
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] Re: Best way to use org-mode as a work log

2009-12-19 Thread Mueen Nawaz

On 12/19/09 09:50, Ethan Brown wrote:

Since a work log is based around daily entries, I'm wondering if
anyone can recommend the best way to use org-mode for such a purpose.
I perused the FAQs but didn't see anything.  Org-mode apparently
integrates with the emacs calendar/diary so there is probably a right
way to do this.  If there's a FM out there that deals with this I'm
happy to RTFM.


	Org mode is very amenable to multiple solutions to a problem, so I'm 
not sure there's a right way.


	As Matt suggested, perhaps you could explain a bit more as to your 
requirements: What information needs to be saved, how you would like it 
organized, and what things do you often need to refer to when looking in 
your logs later on. Or give us an idea how you've been doing it in your 
text file.





___
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] Re: Question about searches (ultimately for agenda)

2009-12-18 Thread Mueen Nawaz

On 12/17/09 13:26, Carsten Dominik wrote:

Yes, so that the search only continues after that entry. But yes, you
are right, this can fail for the final entry in a file.

Try

'(when (org-entry-is-done) (outline-next-heading) (point))


Seems to work.


Also, I'm pretty weak with Emacs Lisp. What does (point) do? Google's
no help (obviously).


Point returns the buffer position of he cursor, in this case the
position where the next entry starts.


	OK. I guess I don't understand why we need to know where the point is. 
Is this returning the value of the point in whatever buffer I am when I 
/execute/ the agenda command? Or is this more like the function is 
sweeping the point across all agenda files to find headlines? Or...?






___
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] Re: Question about searches (ultimately for agenda)

2009-12-16 Thread Mueen Nawaz

On 12/16/09 03:37, Carsten Dominik wrote:

This is what skip conditions are for. Here is an entry for
org-agenda-custom-commands which does this for the specific
Jack example:

(X Tags match ignoring done stuff tags Jack
((org-agenda-skip-function
'(and
(org-entry-is-done-p)
(outline-next-heading)
(point)


	Almost. It worked if I exclude (outline-next-heading). Was there a 
reason you had that?


	Also, I'm pretty weak with Emacs Lisp. What does (point) do? Google's 
no help (obviously).



If you want to be prompted for the tags match, leave the match element
empty (empty string). But do that only after you next upgrade from
the git repo, because there was a bug related to prompting.


	Thanks. I'll wait till the next version, and then add the config in - 
no rush!


Mueen



___
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] Shift keys when you have multiple todo sets in one file

2009-12-16 Thread Mueen Nawaz

Hi,

From the docs:

S-left and S-right and walk through all keywords from all sets

What I would /really/ like is for S-left and S-right to _stay_ 
within the same set, with me using C-S-left  (or right) to _switch_ 
to another set.


What I have (so far) on the top of the file is:

#+TODO: TODO | DONE
#+TODO: WAITING | DONE

	The reason I kept it as separate sets is that I anticipate WAITING to 
be infrequent compared to TODO. So I don't want to put TODO and WAITING 
in the same set. I think there's another (more standard) way of setting 
the TODO state (I forget the shortcut), but for me the S-Left/Right is 
really, really convenient.


	And incidentally, the S-Left/Right doesn't seem to do as advertised. It 
jumps from one set to the other only once (haven't tested with 3 sets).


Mueen



___
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 searches (ultimately for agenda)

2009-12-15 Thread Mueen Nawaz

Hi,

In the docs (10.3.3 Matching tags and properties), I see ways to do tag 
searches that can also search TODO states.


Can I also search TODO levels? For example, in one file covered by the 
agenda, I use the usual DONE to denote done. In another, which is 
focused on simply stuff that I have borrowed/lent, I have RETURNED as my 
DONE state.


I occasionally apply tags to headings with the name of the person 
involved. So let's say that I've put :Jack: on some headings of items 
that have been lent and returned. But I also have :Jack: in my other 
.org files that are not about lending/borrowing.


I want to search for all headlines that have :Jack: in them, but exclude 
anything that is a DONE state - so exclude both DONE and RETURNED.


I know I can just do:
Jack-TODO=DONE-TODO=RETURNED

But I don't want to keep editing it as I change my DONE states or add 
more DONE states.


Is this possible?

Thanks.



___
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] Re: Question about searches (ultimately for agenda)

2009-12-15 Thread Mueen Nawaz

On 12/15/09 21:26, Matt Lundin wrote:

Provided DONE and RETURNED are inactive todos than the following should
suffice:

C-a M Jack [RET]


I think you meant C-c a M Jack [RET]

	It actually does filter out inactive TODO's, but I actually wanted to 
do C-c a m Jack [RET]. I don't want to limit the search to headlines 
that have a TODO state. I just want to exclude those that have DONE (or 
anything equivalent to it).






___
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] Can't export to LaTeX/PDF.

2009-08-30 Thread Mueen Nawaz


Hi,

Apologies if this has been addressed earlier.

I can't seem to export to PDF/LaTeX. When I try to do so, I get 
the following error:


Loading org-latex...done
Exporting to LaTeX...
Loading latexenc...done
Loading tex-mode...done
org-export-as-latex: Wrong type argument: integer-or-marker-p, nil

The file is a simple one:

==
#+TITLE: Sunday schedule
#+OPTIONS: toc:nil

A few points:

- The lab be closed on both Sundays of the Thanksgiving Break (before
  and after). Hence, I've not put any OH there.

- Both of you will need to get the key to room. Obtain one.

- This schedule assumes that there will be a session every week. Perhaps
  stuff like exams will get in the way. It will be updated as needed.
=

I'm using 6.29c, and Emacs 22.3.1.

I know it worked with 6.27a...

Here's a backtrace (apologies for the line wraps):

Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil)
  goto-char(nil)
  (if (re-search-forward ^\\*+  end t) (goto-char (match-beginning 
0)) (goto-char end))
  (let* ((pt ...) (end ...)) (prog1 (org-export-latex-content ...) 
(org-unmodified ...)))
  (save-excursion (goto-char (or beg ...)) (let* (... ...) (prog1 ... 
...)))
  org-export-latex-first-lines((:latex-image-options width=10em 
:exclude-tags (noexport) :select-tags (export) :email 
mu...@nawaz.org :author  :auto-postamble t :auto-preamble t 
:postamble nil :preamble nil :publishing-directory nil :timestamp nil 
:expand-quoted-html t :html-table-tag table border=\2\ 
cellspacing=\0\ cellpadding=\6\ rules=\groups\ frame=\hsides\ 
:xml-declaration ((html . ?xml version=\1.0\ encoding=\%s\?) 
(php . ?php echo \?xml version=\\\1.0\\\ encoding=\\\%s\\\ 
?\; ?)) :html-extension html :inline-images maybe 
:convert-org-links t :agenda-style  :style-extra  :style  
:style-include-scripts t :style-include-default t :table-auto-headline t 
:tables t :time-stamp-file t ...) nil nil)
  (if skip  (org-export-latex-first-lines opt-plist (if subtree-p ... 
rbeg) (if region-p rend)))
  (let* ((wcf ...) (opt-plist org-export-latex-options-plist) (region-p 
...) (rbeg ...) (rend ...) (subtree-p ...) (opt-plist ...) 
(org-export-latex-options-plist opt-plist) (title ...) (filename ...) 
(filename ...) (buffer ...) (odd org-odd-levels-only) (header ...) (skip 
...) (text ...) (org-export-preprocess-hook ...) (first-lines ...) 
(coding-system ...) (coding-system-for-write ...) 
(save-buffer-coding-system ...) (region ...) (string-for-export ...)) 
(set-buffer buffer) (erase-buffer) (org-install-letbind) (and (fboundp 
...) (set-buffer-file-coding-system coding-system-for-write)) (unless 
(or ... body-only) (insert header)) (when (and text ...) (insert ... 
\n\n)) (unless skip (insert first-lines)) (org-export-latex-global 
(with-temp-buffer ... ... ...)) (unless body-only (insert 
\n\\end{document})) (goto-char (point-min)) (when (re-search-forward 
\\[TABLE-OF-CONTENTS\\] nil t) (goto-char ...) (while ... ...) 
(goto-char ...) (and ... ...)) (or to-buffer (save-buffer)) (goto-char 
(point-min)) (or (org-export-push-to-kill-ring LaTeX) (message 
Exporting to LaTeX...done)) (prog1 (if ... ... ...) 
(set-window-configuration wcf)))

  org-export-as-latex(nil nil nil nil nil nil)
  (let* ((wconfig ...) (lbuf ...) (file ...) (base ...) (pdffile ...) 
(cmds org-latex-to-pdf-process) (outbuf ...) (bibtex-p ...) cmd) 
(with-current-buffer outbuf (erase-buffer)) (and (file-exists-p pdffile) 
(delete-file pdffile)) (message Processing LaTeX file...) (if (and 
cmds ...) (funcall cmds file) (while cmds ... ... ... ...)) (message 
Processing LaTeX file...done) (if (not ...) (error PDF file was not 
produced) (set-window-configuration wconfig) (when 
org-export-pdf-remove-logfiles ...) (message Exporting to PDF...done) 
pdffile))

  org-export-as-pdf(nil)
  call-interactively(org-export-as-pdf)
  (if (and bg (nth 2 ass) (not ...) (not ...)) (let (...) 
(set-process-sentinel p ...) (message Background process \%s\: 
started p)) (call-interactively (nth 1 ass)))
  (let* ((bg ...) (help [t]   insert the export option template\n[v] 
 limit export to visible part of outline tree\n\n[a] export as ASCII 
[A] to temporary buffer\n\n[h] export as HTML[H] to temporary buffer 
  [R] export region\n[b] export as HTML and open in browser\n\n[l] 
export as LaTeX   [L] to temporary buffer\n[p] export as LaTeX and 
process to PDF\n[d] export as LaTeX, process to PDF, and open the 
resulting PDF document\n\n[D] export as DocBook\n[V] export as DocBook, 
process to PDF, and open the resulting PDF document\n\n[x] export as 
XOXO\n[g] export using Wes Hardaker's generic exporter\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  [P] publish current project\n[X] publish a 
project...  [E] publish every projects) (cmds ...) r1 r2 ass) 

[Orgmode] Re: Can't export to LaTeX/PDF.

2009-08-30 Thread Mueen Nawaz

On 08/30/09 15:33, Bernt Hansen wrote:

I can confirm this.  It seems the latest version requires at least one
headline while 6.29a did not.


Yep - that solved it.

Would that be a bug or a requirement?

Mueen



___
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