Re: [Orgmode] exporting atom/rss feeds; org-feed-alist not downloading anything from www.rememberthemilk.com

2011-01-29 Thread David Maus
At Fri, 28 Jan 2011 18:06:07 -0600,
David LeBauer wrote:

 I would like to export my rememberthemilk.org tasks to org-mode.

 I have the following in my .emacs, following the recommendation here:

 http://stackoverflow.com/q/2138947/199217

 ;; sync org-mode with rememberthemilk
 ;; (require org-feed)
 (setq org-feed-alist
   '((Remember The Milk
  http://www.rememberthemilk.com/rss/dlebauer/;
  ~/org/rtm.org
  Remember The Milk
  :template * TODO %title\n  %a\n 
  )))

 However, when I use C-x C-c g, I get the message:

no new entries from 1 feed.

 And none of the information is synced

 if I enter the feed into my browser, I can see the html/rss markup
 with my tasks embedded, but none of it is imported to my rtm.org file
 except for the feed name.

Could you post an example of a RTM RSS feed? This would allow to check
why Org's RSS parser fails to recognize any entries in the feed.

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber dmj...@jabber.org
Email. dm...@ictsoc.de


pgp08ntbc7fmD.pgp
Description: PGP signature
___
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: - Bug: [CLOSED ?] Agenda view switches back to week with g [7.4]

2011-01-29 Thread Julien Danjou
On Fri, Jan 28 2011, Michael Brand wrote:

 On Wed, Jan 26, 2011 at 18:19, Michael Brand michael.ch.br...@gmail.com 
 wrote:
 This is still an issue for custom agenda views. With the today's
 release_7.4-246-g9658a99 and the test config
 (setq org-agenda-custom-commands '((x test ((agenda)
 I observe:
 - `C-c a a' like expected:
  1) `d g' stays on view day
  2) `w f d g' stays on view day and also stays on the day of the next week
 - `C-c a x' is expected by me to do the same as above but it does:
  1) `d g' switches back to view week
  2) `w f d g' switches back to view week and changes back to current week

 Michael

 In the meantime I did the git bisect for the issue part 1) which is `d
 g' switching back from view day to view week:
 --
 $ git describe
 release_7.3-168-gc3b2977
 $ git bisect good
 [...]
 $ git describe
 release_7.3-169-g0d0edd6
 $ git bisect bad
 0d0edd6d21ade8e8617c51e3594ea4e87040e05f is first bad commit
 commit 0d0edd6d21ade8e8617c51e3594ea4e87040e05f
 Author: Julien Danjou jul...@danjou.info
 Date:   Fri Dec 3 16:50:50 2010 +

 org-agenda: rework ndays and span handling
 [...]
 --

I think that should be fixed by patch 543 which has been forgotten.
Maybe you could try it:

  http://patchwork.newartisans.com/patch/543/

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpHO5kuW8o1B.pgp
Description: PGP signature
___
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: - Bug: [CLOSED ?] Agenda view switches back to week with g [7.4]

2011-01-29 Thread Michael Brand
Hi Julien

Thank you for looking into this.

On Sat, Jan 29, 2011 at 11:34, Julien Danjou jul...@danjou.info wrote:
 On Wed, Jan 26, 2011 at 18:19, Michael Brand michael.ch.br...@gmail.com 
 wrote:
 This is still an issue for custom agenda views. With the today's
 release_7.4-246-g9658a99 and the test config
 (setq org-agenda-custom-commands '((x test ((agenda)
 I observe:
 - `C-c a a' like expected:
  1) `d g' stays on view day
  2) `w f d g' stays on view day and also stays on the day of the next week
 - `C-c a x' is expected by me to do the same as above but it does:
  1) `d g' switches back to view week
  2) `w f d g' switches back to view week and changes back to current week
[...]
 I think that should be fixed by patch 543 which has been forgotten.
 Maybe you could try it:
      http://patchwork.newartisans.com/patch/543/

The issue part 1) remains after I have applied patch 543 on the
today's release_7.4-259-ge612d0b. Does (setq
org-agenda-custom-commands '((x test ((agenda) and `C-c a x d
g' show the view day or view week for you?

The issue part 2) has been introduced before your commit mentioned
earlier, I did not yet find the related commit.

Michael

___
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] Status google calendar sync

2011-01-29 Thread Eric S Fraga
Greg Troxel g...@ir.bbn.com writes:

 Torsten Wagner torsten.wag...@gmail.com writes:

 Since I use my Android-based phone on a daily basis (after all it is a
 mobile phone), I got tempted to use more and more the google
 calendar. I know about mobileorg and all this. However, the calendar
 is so highly integrated with many applications on the phone that is is
 often just a click away to add a new appointment.


 Slightly OT perhaps, but I am contemplating getting an Android phone and
 figuring out how NOT to have my calendar on google, and would like to
 sync it with org.  (Right now I've made a 0.1-hearted attempt to export
 org to ical and put it in mac calendar.)  Are there ways to not sync
 with google on the android and sync with org?  I don't mind running my
 own calendar server.

If I understand you correctly, you are asking if you can use the Android
calendar app to work with a calendar that is *not* a Google Calendar.  I
don't think that is possible: the app is specifically for Google
calendars.  However, there may be other calendar apps out there that
could do what you want.

As a side note, I saw on the remind mailing list that somebody has
recently ported /remind/ to Android and there *is* an org2rem
translator...  but, again, it's one way IIRC.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.259.ge612d.dirty)

___
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: - Bug: [CLOSED ?] Agenda view switches back to week with g [7.4]

2011-01-29 Thread Julien Danjou
On Sat, Jan 29 2011, Michael Brand wrote:

  1) `d g' stays on view day

That's expected. If you want to reset the span, you can press 'v space'.

  2) `w f d g' stays on view day and also stays on the day of the
 next week

That's normal, g refresh the agenda, it does not reset the current span.
Press 'v space' to reset it.

 - `C-c a x' is expected by me to do the same as above but it does:
  1) `d g' switches back to view week
  2) `w f d g' switches back to view week and changes back to current week

There's probably something missing in custom agenda view, I'll take a
look.

-- 
Julien Danjou
❱ http://julien.danjou.info


pgpfIlTeHDaA2.pgp
Description: PGP signature
___
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: multiple users org mode

2011-01-29 Thread Matt Lundin
Ivan Kanis expire-by-2011-02...@kanis.fr writes:

 During the org camp in Paris at one point the someone asked hey org is
 wonderful but how do we use it with multiple users?

 I am trying to envision what this would look like. One way to do it
 would be to have users share their .org on a network drive. Org would
 have to be able to fusion the multiple files into one. For example let's
 imagine two users sharing a project:

 User 1

 * project
 ** TODO action a
 ** TODO action b

 User 2

 * project
 ** TODO action c
 ** TODO action b

 The consolidated org file would look like this

 * project
 ** TODO action a
 ** TODO action b
 ** TODO action c
 ** TODO action b

 How do you envision multiple users org usage? I think it would be a
 wonderful feature.

Two ideas:

1. Instead of merging separate files, might one not use a common project
   file and rely on tags and categories to mark ownership of tasks?

   Bastien has a nice example of this in his column view tutorial:

   http://orgmode.org/worg/org-tutorials/org-column-view-tutorial.html#sec-5

   Similar example in the manual: (info (org) Column attributes)

   Merging in this scenario could then be left to git (or some other
   dvcs). 
   
2. User one file per user and rely on the agenda to create a task list
   for the entire project.

Best,
Matt


___
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: Bug: Scatter doubles up on SCHEDULED items [7.4]

2011-01-29 Thread Matt Lundin
David Maus dm...@ictsoc.de writes:

 At Tue, 11 Jan 2011 17:05:41 +,
 James Shuttleworth wrote:

 Hi,
   I love the idea of the new bulk scatter command, but it's giving me
   a problem.  When used, it adds an extra SCHEDULED item to entries
   rather than change the current one.  Maybe this is expected
   behaviour and I just don't get it, but I don't think so.

   If I can give any more information that might be useful, I'm happy
   to.

I cannot reproduce this.

James, can you please provide a sample entry on which this behavior occurs.

Also, on that same entry, could you please test whether a normal
rescheduling command, C-c C-s, results in the same behavior.

 What do I have to do to reproduce the problem?  I don't understand
 what bulk scatter command actually refers to.

It's a new feature introduced by John Wiegley. To use it, mark one or
more entries in the agenda and type B S.

Best,
Matt

___
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: Feature Request: Assort a subtree randomly ?

2011-01-29 Thread Matt Lundin
Alan E. Davis lngn...@gmail.com writes:

 Let's say I have a subtree, of review materials, for example.  I would
 like to randomize the order of the elements.  I would like to have the
 option to randomize the subtree in some different ways:

     1.  sort the members of one subtree that is a list, randomly.
     2.  sort all the headlines, randomly.
     3.  sort the subtrees randomly, and the lists within each
 sub-subtree also randomly, ad nauseum.

 I have written a sort routine in elisp.  It's been many long years ago,
 but I remember that the basis support for writing sorts is pretty
 general.

 Suppose I had time to do this.  What would I need to look at?


You can use the custom function in the sort command to supply org-sort
with a random number. When calling org-sort, note the function option
presented:

,[ C-c ^ (org-sort)
| Sort %s: [a]lpha  [n]umeric  [p]riority  p[r]operty  todo[o]rder  [f]unc
| [t]ime [s]cheduled  [d]eadline  [c]reated
| A/N/T/S/D/C/P/O/F means reversed:
`

You could thus write a quick function, using whatever amount of
randomness you want:

--8---cut here---start-8---
(defun my-org-random-sort ()
  (random 1000))
--8---cut here---end---8---

Then on the appropriate subtree/table/list, type:

C-c ^ f my-org-random-sort

 Of course, my need is today, to sort review materials for my students
 in random order.

Sorry this response comes a little to late. :)

Best,
Matt

___
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: links and no match message

2011-01-29 Thread Matt Lundin
Hi Paul,

Schlesinger, Paul pschlesin...@wustl.edu writes:

 I have used Org for long enough to generate multi megabyte org files
 that coordinate my research. In these hair balls the links are
 invaluable. I link to \labels in tex because they provide good points
 of refernce for me that do not appear in the compiled output.  Since
 about 7.04 I get a no match message when I perform a goto on one of
 these global links.  The link is still found, occasionally, but
 frequently I will need to reform the link.  The location is present
 because just after forming the link they work but the no match
 message still appears.

Could you please provide a small org file/snippet including an example
of such a link and the search target?

Best,
Matt

___
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] Status google calendar sync

2011-01-29 Thread Torsten Wagner
 Slightly OT perhaps, but I am contemplating getting an Android phone and
 figuring out how NOT to have my calendar on google, and would like to
 sync it with org.  (Right now I've made a 0.1-hearted attempt to export
 org to ical and put it in mac calendar.)  Are there ways to not sync
 with google on the android and sync with org?  I don't mind running my
 own calendar server.

As fare as I know Google does not allow native usage of any other calendar
service. There are a few calendar apps which allow the use of an non Google
calendar. However, I would prefer something which integrates neatly with
Android. I'm not a big fan of the idea to feed all my stuff to Google,
neither but at the moment it seems to be the best working option (not
surprisingly for using a OS developed by Google).

I checked for the API and googlecl. Lets say there is plenty space for
improvement on Googles side ;).

Maybe, we should all focus to improve mobileorg. Its just the stupid fact
that basically many functions of org-mode written in elisp would require a
reimplementation in orgmobile in java. Somehow, this sound to me a bit like
a mouse and cat game. Well, if there would be a elisp interpreter for
Android, this would change the game

Totti
___
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: Bug: UTF-8 characters in #+LINK does not work [7.4]

2011-01-29 Thread Matt Lundin
Gustav Wikström gustav.e...@gmail.com writes:

 Using characters such as å,ä,ö does not work when using #+LINK

 example:

 `#+LINK: Färdmedel file:~/färdmedel.org'

 this does not work, however the following does:

 `#+LINK: Fardmedel file:~/färdmedel.org'

 Is there an easy fix?


I can confirm this. 

The regexp in org-link-expand-abbrev does not allow for accented
characters in the link abbreviation. I am not sure whether this is an
intended limitation or a bug. :)

Best,
Matt

___
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: bug: org-agenda does not compile and has warnings

2011-01-29 Thread Matt Lundin
Hi Samuel,

Samuel Wales samolog...@gmail.com writes:

 org-agenda.el does not compile.

 In org-agenda-goto-today:
 org-agenda.el:6107:59:Warning: `org-agenda-ndays' is an obsolete variable (as
 of Emacs 24.1); use `org-agenda-span' instead.

 In org-agenda-reset-view:
 org-agenda.el:4:3:Warning: `org-agenda-ndays' is an obsolete variable (as of
 Emacs 24.1); use `org-agenda-span' instead.
 org-agenda.el:1:3:Error: End of file during parsing

 Perhaps a with-no-warnings would fix it.

 After I put that in, this happens:

 org-agenda.el:8136:1:Warning: the following functions are not known to
 be defined:
 org-habit-insert-consistency-graphs, calendar-iso-from-absolute,
 org-is-habit-p, org-habit-parse-todo, org-habit-get-priority,
 org-columns-quit, calendar-absolute-from-iso

 Perhaps some requires or something would fix it.

 Emacs 22, latest org.

Are you still having problems with this? I cannot not reproduce it.

Best,
Matt

___
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] [bug] [babel] results eat up following text

2011-01-29 Thread Eric Schulte
Hi Eric,

Thanks for catching this issue.  It turns out this was a result of
adding lists as supported output types, the code block thinks that the
enclosing list is the results list, and deletes it before inserting new
results.

Luckily this was a quick 2-character change, which has been committed.

Cheers -- Eric

Eric S Fraga e.fr...@ucl.ac.uk writes:

 Hello,

 please see attached file for a simple example of a bug in babel: if you
 execute the code block, the results section overwrites the text that
 follows the code block.

 If you insert an extra blank line between the end of the code block and
 the text that follows (before executing the block for the first time),
 the results will *not* overwrite the text *but* if you then execute the
 block again, the text will be overwritten.

 My feeling is that there's some interplay between lists (I use the 'both
 org-list-ending-method) and babel.  I've no idea otherwise what is
 happening unfortunately.  

 I can send my full configuration if need be but always prefer not to as
 I have to spend time obfuscating a number of things...

 Thanks,
 eric

 # -*- coding: utf-8; -*-
 #+TITLE: examplebug.org
 #+AUTHOR:Eric S Fraga
 #+EMAIL: e.fr...@ucl.ac.uk

 * babel results overwrite following text 

   - start an item so that following is indented:

 #+begin_src octave :var x=10
 3*x+5
 #+end_src

 This is some text that follows the code.

___
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: bug: org-agenda does not compile and has warnings

2011-01-29 Thread Samuel Wales
Hi Matt,

Seems to compile in make all, but not as part of my save hook.  I
wonder if an eval-when-compile to add ./lisp to the load path would
make it compile or something?

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com
I support WPI: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

___
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: [ANN] Changes to lists

2011-01-29 Thread Nicolas Goaziou
Hello,

 Achim Gratz writes:

 1) If you open a new list after another list, M-RET will not produce
 a new list item, but yet another new list:

 --8---cut here---start-8---
 - list 1 
 - entry
 - more entries

 - list 2 -- M-RET

 - -- is produced by M-RET
 --8---cut here---end---8---

You did not open a new list. By default, 2 blank lines are required to
end a list. In fact, you just added a new item to the previous list,
separated from others by a blank line. M-RET tries to be smart and
separate items with a blank line from that point.

 2) Last but not least: sublist folding (visibility cycling) has
 stopped working. I can unfold an entry folded by an earlier version
 of org-mode, but trying to fold the sublist again I'll only get
 EMPTY ENTRY in the mode line (but no error beep or something like
 that).

Could you provide an example? I fail to see what's wrong, as folding
is fine on my test file.

Regards,

--
Nicolas

___
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] Why is text marked as ~verbatim~ exported in LaTeX as \texttt{}

2011-01-29 Thread Michael Broschinsky
On Fri, Jan 28, 2011 at 5:14 PM, Thomas S. Dye t...@tsdye.com wrote:

 On Jan 28, 2011, at 1:40 PM, Nick Dokos wrote:

 Michael Broschinsky mikebroschin...@gmail.com wrote:

 I have a small test document:

 #+TITLE: Title

 This is normal text.

 =This is teletype text.=

 ~This is verbatim text.~

 When I choose the LaTeX export option and inspect the LaTeX output, I
 see that both the text marked as =code= and the text marked as
 ~verbatim~ are exported as \texttt{}.

 I expected that =code= would be exported as \texttt{}, but I expected
 ~verbatim~ to be expected with the LaTeX \verb command.

 Then when I explored org-export-latex-emphasis-alist, I see that the
 documentation indicates that if the string to wrap the fontified text
 is \verb, then Org will automatically select a delimiter character
 not in the string, which also leads me to believe that that
 ~verbatim~ will be exported as \verb.

 What simple thing am I missing to export ~verbatim~ text as \verb?


 See http://thread.gmane.org/gmane.emacs.orgmode/14256/focus=14257 for
 an explanation and some references.

 Nick


 The problem appears to be the docstring of org-export-latex-emphasis-alist,
 which refers to the behavior before Carsten's fix.  Now it seems that the
 second element, \\verb, yields \texttt{} instead of \verb.

 org-export-latex-emphasis-alist is a variable defined in `org-latex.el'.
 Its value is
 ((* \\textbf{%s} nil)
  (/ \\emph{%s} nil)
  (_ \\underline{%s} nil)
  (+ \\st{%s} nil)
  (= \\verb t)
  (~ \\verb t))


 Documentation:
 Alist of LaTeX expressions to convert emphasis fontifiers.
 Each element of the list is a list of three elements.
 The first element is the character used as a marker for fontification.
 The second element is a formatting string to wrap fontified text with.
 If it is \verb, Org will automatically select a delimiter
 character that is not in the string.
 The third element decides whether to protect converted text from other
 conversions.

 Tom



So, if I understand correctly (and if I read line 1981 in org-latex.el
correctly, from Org 7.4), ~verbatim~ and =code= are exported
identically, using \texttt{}?

I stumbled upon this when I was writing a document with the following
character sequence: !--dar--

When I exported to LaTeX and then processed the file, the
\texttt{!--dar--} wound up collapsing the two hyphens into a single
hyphen (or an en-dash; hard to tell in the tt font).  Of course, that
behavior *doesn't* happen when the string is preceded by the \verb
command in LaTeX.

Do I have other options for marking up verbatim inline content?

___
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: Managing appts with org-mode, diary

2011-01-29 Thread Matt Lundin
Michael Welle mwe012...@gmx.net writes:

 currently I create diary entries for my appointments, the appointments
 are marked in the calendar. This is handy because if I want to create a
 new appointment I can overview a three month period and I can see at a
 glance which days are already blocked.

 Now I want to manage my appointments in a more project centric
 way. For instance I work at ten projects that have ten corresponding org
 files. Now I note appointments for a certain project in the
 corresponding org file. The appointments are still marked in my
 calendar, but that is unusable slow. 

Yes, unfortunately marking org-mode entries makes the calendar is
extremely slow. IMO, the only way to use org-mode as a substitute for
the diary is to turn off calendar marking, either with the variable
calendar-mark-diary-entries-flag or by putting an ampersand in front of
the org-diary line in your diary file, e.g.,

%%(org-diary :timestamp :sexp)

 If I use the per month org agenda view the display is way to confusing
 to get an overview and decide on which day I can make a new
 appointment.

 How do you deal with this problem? I can imagine to generate a
 ~/.diary file every time I add or change an appointment in org mode.
 This would speed up the process of displaying the calendar. An agenda
 view that shows a three month period or so and that has all the sub
 nodes of the days hidden might help, too. Then days, that have already
 appointments, are marked and you have to show the sub nodes if you
 need detailed information about appointments of that day.

I'm afraid a three month view wouldn't be any faster than marking three
months in the calendar. The bottleneck is the time it takes org-mode to
generate three months worth of agenda entries.

 Is somethind like that already implemented and I haven't
 found it yet ;)? Any hints are welcome.

Three suggestions:

1. Use a custom agenda command to display a weekly calendar with
   appointments only.

   --8---cut here---start-8---
   ...
   (cc Calendar agenda 
((org-agenda-ndays 7)
 (org-agenda-start-on-weekday 0)  ; start on Sunday
 (org-agenda-time-grid nil)
 (org-agenda-entry-types '(:timestamp :sexp))
 (org-agenda-prefix-format  %-12:t )
 (org-deadline-warning-days 0)
 (org-agenda-include-all-todo nil)
 (org-agenda-repeating-timestamp-show-all t)
 (org-agenda-filter-preset '(-nocal1))
 (org-agenda-hide-tags-regexp .*)
 ))
   ...
   --8---cut here---end---8---

   Using org-agenda-entry-types makes this fairly fast, since scheduled
   and deadline entries are not even considered. Moving back and forward
   quickly with f and b is quick and efficient.

   Switching to a monthly view takes a little time, but is still a lot
   faster than marking three months of dates in the calendar.

2. Use the fancy diary display to view upcoming appointments.

   (add-hook 'diary-display-hook 'fancy-diary-display)

   The diary will only show days for which there is an appointment. I
   control the number of weeks shown with a wrapping function:

   --8---cut here---start-8---
   (defun my-diary-display (weeks)
 (interactive p)
 (let ((diary-number-of-entries (* 7 weeks)))
   (diary)))
   --8---cut here---end---8---

3. For a very nice monthly calendar, use the calendar's cal-tex export
   function (t m).

   The following defadvice will make the output a lot more readable:

   --8---cut here---start-8---
   (defadvice org-diary (around my-org-diary activate)
 (let ((org-agenda-prefix-format %t %s ))
   ad-do-it))
   --8---cut here---end---8---

Best,
Matt




___
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] Why is text marked as ~verbatim~ exported in LaTeX as \texttt{}

2011-01-29 Thread Thomas S. Dye


On Jan 29, 2011, at 7:42 AM, Michael Broschinsky wrote:


On Fri, Jan 28, 2011 at 5:14 PM, Thomas S. Dye t...@tsdye.com wrote:


On Jan 28, 2011, at 1:40 PM, Nick Dokos wrote:


Michael Broschinsky mikebroschin...@gmail.com wrote:


I have a small test document:

#+TITLE: Title

This is normal text.

=This is teletype text.=

~This is verbatim text.~

When I choose the LaTeX export option and inspect the LaTeX  
output, I

see that both the text marked as =code= and the text marked as
~verbatim~ are exported as \texttt{}.

I expected that =code= would be exported as \texttt{}, but I  
expected

~verbatim~ to be expected with the LaTeX \verb command.

Then when I explored org-export-latex-emphasis-alist, I see that  
the
documentation indicates that if the string to wrap the fontified  
text

is \verb, then Org will automatically select a delimiter character
not in the string, which also leads me to believe that that
~verbatim~ will be exported as \verb.

What simple thing am I missing to export ~verbatim~ text as \verb?



See http://thread.gmane.org/gmane.emacs.orgmode/14256/focus=14257  
for

an explanation and some references.

Nick



The problem appears to be the docstring of org-export-latex- 
emphasis-alist,
which refers to the behavior before Carsten's fix.  Now it seems  
that the

second element, \\verb, yields \texttt{} instead of \verb.

org-export-latex-emphasis-alist is a variable defined in `org- 
latex.el'.

Its value is
((* \\textbf{%s} nil)
 (/ \\emph{%s} nil)
 (_ \\underline{%s} nil)
 (+ \\st{%s} nil)
 (= \\verb t)
 (~ \\verb t))


Documentation:
Alist of LaTeX expressions to convert emphasis fontifiers.
Each element of the list is a list of three elements.
The first element is the character used as a marker for  
fontification.
The second element is a formatting string to wrap fontified text  
with.

If it is \verb, Org will automatically select a delimiter
character that is not in the string.
The third element decides whether to protect converted text from  
other

conversions.

Tom




So, if I understand correctly (and if I read line 1981 in org-latex.el
correctly, from Org 7.4), ~verbatim~ and =code= are exported
identically, using \texttt{}?

I stumbled upon this when I was writing a document with the following
character sequence: !--dar--

When I exported to LaTeX and then processed the file, the
\texttt{!--dar--} wound up collapsing the two hyphens into a single
hyphen (or an en-dash; hard to tell in the tt font).  Of course, that
behavior *doesn't* happen when the string is preceded by the \verb
command in LaTeX.

Do I have other options for marking up verbatim inline content?


Hi Mike,

(setq org-export-latex-use-verb t)

appears to be the key here.  It is not documented as a variable, but  
when I set it to t in the *scratch* buffer and then run your test  
case, I get


This is normal text.

\verb~This is teletype text.~

\verb~This is verbatim text.~

which compiles just fine with LaTeX.

HTH,
Tom

___
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] [PATCH] Document org-export-latex-use-verb

2011-01-29 Thread Thomas S. Dye


0001-Document-org-export-latex-use-verb.patch
Description: Binary data
 Thomas S. Dye, Ph.D.T. S. Dye  Colleagues, Archaeologists, Inc.Phone: (808) 529-0866 Fax: (808) 529-0884http://www.tsdye.com ___
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] Repeating TODO are shown every day in the agenda

2011-01-29 Thread Carl Bolduc
I have a TODO that is repeating every day like this:
DEADLINE: 2011-01-29 Tue +1d

Currently, I see this item on every future days in the agenda.

Would there be a way to see this TODO on the day that it is due (today) and
on the past days where this TODO wasn't done? For example, lets say that I
forget to do this TODO today. Tomorrow, I would see this TODO in the agenda
only on January 29th and 30th, I would not see it on January 31st and all
the other future days.

Thanks,
Carl
___
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] [PATCH] Distinguish = and ~ delimiters in LaTeX export

2011-01-29 Thread Thomas S. Dye

Aloha all,

The default value of org-export-latex-emphasis-alist treats the = and  
~ delimiters as \\verb.  Both settings are ignored because org-export- 
latex-use-verb is nil by default.  The = and ~ delimiters produce  
\texttt{} instead of \verb.  This patch distinguishes = and ~ by  
changing the default for = to \\texttt{%s}.


The docstring has also been changed to refer to org-export-latex-use- 
verb.


With this patch, users exporting to LaTeX will be able to use = for  
\texttt text in LaTeX moving environments and ~ for \verb text in  
places where it is safe to use this construct.


Tom



0001-Changed-org-export-latex-emphasis-alist-to-distingui.patch
Description: Binary data


___
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] Status google calendar sync

2011-01-29 Thread Mark Elston

On 1/29/2011 6:53 AM, Torsten Wagner wrote:

  Slightly OT perhaps, but I am contemplating getting an Android phone and
  figuring out how NOT to have my calendar on google, and would like to
  sync it with org.  (Right now I've made a 0.1-hearted attempt to export
  org to ical and put it in mac calendar.)  Are there ways to not sync
  with google on the android and sync with org?  I don't mind running my
  own calendar server.

As fare as I know Google does not allow native usage of any other
calendar service. There are a few calendar apps which allow the use of
an non Google calendar. However, I would prefer something which
integrates neatly with Android. I'm not a big fan of the idea to feed
all my stuff to Google, neither but at the moment it seems to be the
best working option (not surprisingly for using a OS developed by Google).


I wasn't all that keen on it at first but I really got to like it when
I was able to update my calendar from my phone or my laptop or my
desktop at work and all three would see it.

When I found I could create multiple calendars and share *some* of them
I really started to enjoy the idea of a central server for my calendar
data.  I still don't put anything on there that would compromise my
privacy if it got exposed.


I checked for the API and googlecl. Lets say there is plenty space for
improvement on Googles side ;).


Yeah, the best documentation is about the JSON or XML syntax which can
leave you scratching your head as to how to do some things in client
code or googlecl (or even if you *can* do them).


Maybe, we should all focus to improve mobileorg.


I like the idea but won't want to give up the google calendar.  I would
prefer to see my schedule, appts, etc in one place (on my calendar) with
supporting data elsewhere.  This is what I would like to use something
like mobileorg for.  There are already plenty of good apps for taking
the google calendar and presenting it in useful ways.  What I would like
is to be able to navigate from an event in a calendar to whatever notes
I have in org related to it.  That is where I keep the details, notes,
private stuff that I keep off the calendar.  It keeps the calendar
clean and simple but I get all my notes as necessary.

Mark

___
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: Repeating TODO are shown every day in the agenda

2011-01-29 Thread Matt Lundin
Carl Bolduc carlbol...@gmail.com writes:

 I have a TODO that is repeating every day like this:
 DEADLINE: 2011-01-29 Tue +1d

 Currently, I see this item on every future days in the agenda.

 Would there be a way to see this TODO on the day that it is due (today)
 and on the past days where this TODO wasn't done? For example, lets say
 that I forget to do this TODO today. Tomorrow, I would see this TODO in
 the agenda only on January 29th and 30th, I would not see it on January
 31st and all the other future days.

(setq org-agenda-repeating-timestamp-show-all nil)

Best,
Matt

___
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 TODO are shown every day in the agenda

2011-01-29 Thread Jeff Horn
On Sat, Jan 29, 2011 at 3:08 PM, Matt Lundin m...@imapmail.org wrote:
 (setq org-agenda-repeating-timestamp-show-all nil)

Matt,

Is there a way to set this on a per-todo basis? I want some repeating
items (e.g. class schedules) to repeat, but not others (like my daily
review).

Jeff

-- 
Jeffrey Horn
http://www.failuretorefrain.com/jeff/

___
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] exporting atom/rss feeds; org-feed-alist not downloading anything from www.rememberthemilk.com

2011-01-29 Thread David LeBauer
here is a copy of the rss feed

=

?xml version=1.0 encoding=UTF-8?
feed 
xmlns=http://www.w3.org/2005/Atom;updated2011-01-29T20:35:42Z/updatedtitle
type=htmlDavid's Tasks -
wk-Test/titlesubtitlerememberthemilk.com/subtitlelink
type=text/html
href=http://www.rememberthemilk.com/home/dlebauer/4685768/;
rel=alternate title=David's Tasks - wk-Microcosm/link
href=http://www.rememberthemilk.com/atom/dlebauer/4685768/;
rel=self title=David's Tasks - wk-Microcosm
type=application/atom+xml/idtag:rememberthemilk.com,1999:tasks-dlebauer-4685768/idgenerator
uri=http://www.rememberthemilk.com/; version=1.0Remember The
Milk/generatorentryauthornameDavid/name/authorupdated2011-01-29T20:35:42Z/updatedlink
type=text/html
href=http://www.rememberthemilk.com/home/dlebauer/4685768/155949335;
rel=alternate title=test task
two/idtag:rememberthemilk.com,1999:tasks-dlebauer-4685768.task-155949335/idtitle
type=htmltest task two/titlecontent type=xhtmldiv
xmlns=http://www.w3.org/1999/xhtml;div class=rtm_duespan
class=rtm_due_titleDue: /spanspan class=rtm_due_valueSat 29
Jan 11/span/divdiv class=rtm_priorityspan
class=rtm_priority_titlePriority: /spanspan
class=rtm_priority_valuenone/span/divdiv
class=rtm_time_estimatespan class=rtm_time_estimate_titleTime
estimate: /spanspan class=rtm_time_estimate_value1
hour/span/divdiv class=rtm_tagsspan
class=rtm_tags_titleTags: /spanspan
class=rtm_tags_valuesomeday, wk/span/divdiv
class=rtm_locationspan class=rtm_location_titleLocation:
/spanspan class=rtm_location_valuenone/span/divdiv
class=rtm_urlspan class=rtm_url_titleURL: /spanspan
class=rtm_url_valuea target=_blank
href=http://www.google.com;http://www.google.com/a/span/divdiv
class=rtm_postponedspan class=rtm_postponed_titlePostponed:
/spanspan class=rtm_postponed_valuenever/span/divdiv
class=rtm_notesdiv class=rtm_notediv
class=rtm_note_title_containerspan
class=rtm_note_title/span/divdiv type=text/xhtml+xml
xml:space=preserve class=rtm_note_contentthis is a test
note/divdiv class=rtm_note_updated_containerspan
class=rtm_note_title_labelUpdated: /spanspan
class=rtm_note_updatedSat 29 Jan 11 at
12:35PM/span/div/div/div/div/content/entryentryauthornameDavid/name/authorupdated2011-01-29T20:34:55Z/updatedlink
type=text/html
href=http://www.rememberthemilk.com/home/dlebauer/4685768/155949330;
rel=alternate title=test task
1/idtag:rememberthemilk.com,1999:tasks-dlebauer-4685768.task-155949330/idtitle
type=htmltest task 1/titlecontent type=xhtmldiv
xmlns=http://www.w3.org/1999/xhtml;div class=rtm_duespan
class=rtm_due_titleDue: /spanspan
class=rtm_due_valuenever/span/divdiv
class=rtm_priorityspan class=rtm_priority_titlePriority:
/spanspan class=rtm_priority_valuenone/span/divdiv
class=rtm_time_estimatespan class=rtm_time_estimate_titleTime
estimate: /spanspan
class=rtm_time_estimate_valuenone/span/divdiv
class=rtm_tagsspan class=rtm_tags_titleTags: /spanspan
class=rtm_tags_valuenone/span/divdiv
class=rtm_locationspan class=rtm_location_titleLocation:
/spanspan class=rtm_location_valuenone/span/divdiv
class=rtm_postponedspan class=rtm_postponed_titlePostponed:
/spanspan 
class=rtm_postponed_valuenever/span/div/div/content/entry/feed


===END

On Sat, Jan 29, 2011 at 2:10 AM, David Maus dm...@ictsoc.de wrote:
 At Fri, 28 Jan 2011 18:06:07 -0600,
 David LeBauer wrote:

 I would like to export my rememberthemilk.org tasks to org-mode.

 I have the following in my .emacs, following the recommendation here:

 hMicrocosmttp://stackoverflow.com/q/2138947/199217

 ;; sync org-mode with rememberthemilk
 ;; (require org-feed)
 (setq org-feed-alist
       '((Remember The Milk
          http://www.rememberthemilk.com/rss/dlebauer/;
          ~/org/rtm.org
          Remember The Milk
          :template * TODO %title\n  %a\n 
          )))

 However, when I use C-x C-c g, I get the message:

    no new entries from 1 feed.

 And none of the information is synced

 if I enter the feed into my browser, I can see the html/rss markup
 with my tasks embedded, but none of it is imported to my rtm.org file
 except for the feed name.

 Could you post an example of a RTM RSS feed? This would allow to check
 why Org's RSS parser fails to recognize any entries in the feed.

 Best,
  -- David
 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. dm...@ictsoc.de




-- 
David LeBauer, PhD
Energy Biosciences Institute
University of Illinois Urbana-Champaign
1206 W. Gregory Drive
Urbana, IL  61801, U.S.A.

___
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] Status google calendar sync

2011-01-29 Thread Greg Troxel

Mark Elston m_els...@comcast.net writes:

  [google calendar]

 I wasn't all that keen on it at first but I really got to like it when
 I was able to update my calendar from my phone or my laptop or my
 desktop at work and all three would see it.

 When I found I could create multiple calendars and share *some* of them
 I really started to enjoy the idea of a central server for my calendar
 data.

You are blurring having a calendar server and being forced into sharing
your data with google because of using non-free software that is
crippled by not being able to set the server URL.

 I still don't put anything on there that would compromise my
 privacy if it got exposed.

I find this boggling (where you will be in the future, and who you are
meeting with is surely a privacy issue), but clearly we have different
views on privacy and that's double-plus OT.

 Maybe, we should all focus to improve mobileorg.

 I like the idea but won't want to give up the google calendar.  I would
 prefer to see my schedule, appts, etc in one place (on my calendar) with
 supporting data elsewhere.  This is what I would like to use something
 like mobileorg for.  There are already plenty of good apps for taking
 the google calendar and presenting it in useful ways.  What I would like
 is to be able to navigate from an event in a calendar to whatever notes
 I have in org related to it.  That is where I keep the details, notes,
 private stuff that I keep off the calendar.  It keeps the calendar
 clean and simple but I get all my notes as necessary.

org syncing with a calendar server makes a lot of sense to me, but again
that's separate from a the only usable calendar server is google.


I think the only tricky part is somehow push UUIDs during scyning, and
then you'll need an operation to merge an org event and an ical event
with different UUIDs and remember the foreign UUID for the next sync.


pgp1z7ZB3O7Wr.pgp
Description: PGP signature
___
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] Encrypting org-mode files

2011-01-29 Thread Eric S Fraga
Julien Danjou jul...@danjou.info writes:

 On Wed, Jan 26 2011, Marcelo de Moraes Serpa wrote:

 Is there a way to use full encryption and still have it integrate
 seamlessly with the org agenda?

 Create a file named myfile.org.gpg, and EPA should kicks in and store it
 crypted. Then just add this file to the list of org-agenda-files. EPA
 will ask your passphrase to decrypt in on opening.

I've been using org.gpg files for a while for encrypting information
and everything works just fine.  However, trying to add such a file to
my org-agenda-files list means I end up having to type in my passphrase
quite often.  I know that EPA will allow caching of passphrases but this
is discouraged for security reasons.  Instead, one is advised to use
gnupg-agent.  

Does anybody have any experience with gnupg-agent?  It's working, in
that I get prompted for my passphrase and the files are decrypted (or
encrypted, as the case may be) but my passphrase is not cached.  I have
configured my ~/.gnupg/gpg-agent.conf file with:

--8---cut here---start-8---
debug-level advanced
default-cache-ttl 14400
log-file /home/ucecesf/tmp/gpg-agent-log
max-cache-ttl 14400
pinentry-program /usr/bin/pinentry
--8---cut here---end---8---

and it does seem to be used (debugging is enabled and so is the log
file).  However, still not caching.

Any suggestions?

Thanks,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.259.ge612d.dirty)

___
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] [bug] [babel] results eat up following text

2011-01-29 Thread Eric S Fraga
Eric Schulte schulte.e...@gmail.com writes:

 Hi Eric,

 Thanks for catching this issue.  It turns out this was a result of
 adding lists as supported output types, the code block thinks that the
 enclosing list is the results list, and deletes it before inserting new
 results.

 Luckily this was a quick 2-character change, which has been committed.

And thank you for the quick fix!  Works perfectly.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.260.gba0f6.dirty)

___
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: [ANN] Changes to lists

2011-01-29 Thread Achim Gratz
Nicolas Goaziou n.goaz...@gmail.com writes:
 You did not open a new list. By default, 2 blank lines are required to
 end a list. In fact, you just added a new item to the previous list,
 separated from others by a blank line. M-RET tries to be smart and
 separate items with a blank line from that point.

Ah, OK - that wasn't clear to me.

 Could you provide an example? I fail to see what's wrong, as folding
 is fine on my test file.

--8---cut here---start-8---
- List
  free text inside list
  over some lines (this folds)
  - sublist (this doesn't fold including subsequent entries)
  - more entries
  inline text after sublist doesn't fold, either
--8---cut here---end---8---

Also, fill-paragraph doesn't know about inline text unless you are using
blank lines atop.  That's probably to be expected, but in case there's
something one can do about it I'd like to know - I'd like to have no
blank lines if possible.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Wavetables for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldUserWavetables


___
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


[Accepted] [Orgmode] Optimize org-habit-parse-todo

2011-01-29 Thread Carsten Dominik
Patch 558 (http://patchwork.newartisans.com/patch/558/) is now Accepted.

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C87sjwgn42k.fsf%40fastmail.fm%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [Orgmode] Optimize org-habit-parse-todo
 Date: Wed, 26 Jan 2011 01:03:47 -
 From: Matt Lundin m...@imapmail.org
 X-Patchwork-Id: 558
 Message-Id: 87sjwgn42k@fastmail.fm
 To: Carsten Dominik carsten.domi...@gmail.com
 Cc: Org Mode emacs-orgmode@gnu.org
 
 * lisp/org-habit.el: (org-habit-parse-todo) Don't parse more days than
   needed.
 
 When constructing a consistency graph, org-habit now stops searching
 for timestamps when the number of matches exceeds the span of time
 displayed in the graph. This can lead to a significant speedup in
 agenda construction, especially for entries with many logbook entries.
 Previously, org-habit would parse all logbook timestamps, even if they
 numbered in the hundreds.
 
 ---
 lisp/org-habit.el |   16 
  1 files changed, 12 insertions(+), 4 deletions(-)
 
 diff --git a/lisp/org-habit.el b/lisp/org-habit.el
 index b174a1f..5d2514a 100644
 --- a/lisp/org-habit.el
 +++ b/lisp/org-habit.el
 @@ -170,10 +170,18 @@ This list represents a \habit\ for the rest of this 
 module.
  habit-entry scheduled-repeat))
   (setq deadline (+ scheduled (- dr-days sr-days
(org-back-to-heading t)
 -  (while (re-search-forward - State \DONE\.*\\[\\([^]]+\\)\\] end t)
 - (push (time-to-days
 -(org-time-string-to-time (match-string-no-properties 1)))
 -   closed-dates))
 +  (let* ((maxdays (+ org-habit-preceding-days org-habit-following-days))
 +  (reversed org-log-states-order-reversed)
 +  (search (if reversed 're-search-forward 're-search-backward))
 +  (limit (if reversed end (point)))
 +  (count 0))
 + (unless reversed (goto-char end))
 + (while (and ( count maxdays)
 + (funcall search - State \DONE\.*\\[\\([^]]+\\)\\] limit 
 t))
 +   (push (time-to-days
 +  (org-time-string-to-time (match-string-no-properties 1)))
 + closed-dates)
 +   (setq count (1+ count
(list scheduled sr-days deadline dr-days closed-dates
  
  (defsubst org-habit-scheduled (habit)
 

___
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


[Accepted] [Orgmode] org-agenda: fix start/end time in timerange

2011-01-29 Thread Carsten Dominik
Patch 555 (http://patchwork.newartisans.com/patch/555/) is now Accepted.

Maintainer comment: No comment

This relates to the following submission:

http://mid.gmane.org/%3C1295716131-12190-1-git-send-email-julien%40danjou.info%3E

Here is the original message containing the patch:

 Content-Type: text/plain; charset=utf-8
 MIME-Version: 1.0
 Content-Transfer-Encoding: 7bit
 Subject: [Orgmode] org-agenda: fix start/end time in timerange
 Date: Sat, 22 Jan 2011 22:08:51 -
 From: Julien Danjou jul...@danjou.info
 X-Patchwork-Id: 555
 Message-Id: 1295716131-12190-1-git-send-email-jul...@danjou.info
 To: emacs-orgmode@gnu.org
 Cc: Julien Danjou jul...@danjou.info
 
 * org-agenda.el (org-agenda-get-blocks): Fix time of start/end
 of events with range. This display things like:
 2011-01-22 Sat 14:00--2011-01-23 Sun 20:00
 correctly, with the event starting at 14:00 and ending at 20:00.
 
 Signed-off-by: Julien Danjou jul...@danjou.info
 
 ---
 lisp/org-agenda.el |   92 +++
  1 files changed, 49 insertions(+), 43 deletions(-)
 
 diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
 index 4f06eb0..3c1104e 100644
 --- a/lisp/org-agenda.el
 +++ b/lisp/org-agenda.el
 @@ -5075,55 +5075,61 @@ FRACTION is what fraction of the head-warning time 
 has passed.
 (abbreviate-file-name buffer-file-name
(regexp org-tr-regexp)
(d0 (calendar-absolute-from-gregorian date))
 -  marker hdmarker ee txt d1 d2 s1 s2 timestr category todo-state tags pos
 +  marker hdmarker ee txt d1 d2 s1 s2 category todo-state tags pos
head donep)
  (goto-char (point-min))
  (while (re-search-forward regexp nil t)
(catch :skip
   (org-agenda-skip)
   (setq pos (point))
 - (setq timestr (match-string 0)
 -   s1 (match-string 1)
 -   s2 (match-string 2)
 -   d1 (time-to-days (org-time-string-to-time s1))
 -   d2 (time-to-days (org-time-string-to-time s2)))
 - (if (and ( (- d0 d1) -1) ( (- d2 d0) -1))
 - ;; Only allow days between the limits, because the normal
 - ;; date stamps will catch the limits.
 - (save-excursion
 -   (setq todo-state (org-get-todo-state))
 -   (setq donep (member todo-state org-done-keywords))
 -   (if (and donep org-agenda-skip-timestamp-if-done)
 -   (throw :skip t))
 -   (setq marker (org-agenda-new-marker (point)))
 -   (setq category (org-get-category))
 -   (if (not (re-search-backward ^\\*+  nil t))
 -   (setq txt org-agenda-no-heading-message)
 - (goto-char (match-beginning 0))
 - (setq hdmarker (org-agenda-new-marker (point)))
 - (setq tags (org-get-tags-at))
 - (looking-at \\*+[ \t]+\\([^\r\n]+\\))
 - (setq head (match-string 1))
 - (let ((remove-re
 -(if org-agenda-remove-timeranges-from-blocks
 -(concat
 -  (regexp-quote s1) .*?
 - --
 -  (regexp-quote s2) .*?)
 -  nil)))
 -   (setq txt (org-format-agenda-item
 -  (format
 -   (nth (if (= d1 d2) 0 1)
 -org-agenda-timerange-leaders)
 -   (1+ (- d0 d1)) (1+ (- d2 d1)))
 -  head category tags
 -  timestr nil remove-re
 -   (org-add-props txt props
 - 'org-marker marker 'org-hd-marker hdmarker
 - 'type block 'date date
 - 'todo-state todo-state
 - 'priority (org-get-priority txt) 'org-category category)
 -   (push txt ee)))
 + (let ((start-time (match-string 1))
 +   (end-time (match-string 2)))
 +   (setq s1 (match-string 1)
 + s2 (match-string 2)
 + d1 (time-to-days (org-time-string-to-time s1))
 + d2 (time-to-days (org-time-string-to-time s2)))
 +   (if (and ( (- d0 d1) -1) ( (- d2 d0) -1))
 +   ;; Only allow days between the limits, because the normal
 +   ;; date stamps will catch the limits.
 +   (save-excursion
 + (setq todo-state (org-get-todo-state))
 + (setq donep (member todo-state org-done-keywords))
 + (if (and donep org-agenda-skip-timestamp-if-done)
 + (throw :skip t))
 + (setq marker (org-agenda-new-marker (point)))
 + (setq category (org-get-category))
 + (if (not (re-search-backward ^\\*+  nil t))
 + (setq txt org-agenda-no-heading-message)
 +   (goto-char (match-beginning 0))
 +   (setq hdmarker (org-agenda-new-marker (point)))
 +   (setq tags (org-get-tags-at))
 +   (looking-at \\*+[ \t]+\\([^\r\n]+\\))
 +   

Re: [Orgmode] [ANN] Changes to lists

2011-01-29 Thread Eric S Fraga
(may be rude to followup on my own post but...)

Further on the problem with exporting a list with a babel code block:
if I ask the results to be exported as well as the code (code only is
the default) via:

 #+begin_src octave :var x=10 :exports both

the export works correctly and generates:

--8---cut here---start-8---
\begin{enumerate}
\item start an item so that following is indented:

\lstset{language=octave}
\begin{lstlisting}
3*x+5
\end{lstlisting}

\begin{verbatim}
  35
\end{verbatim}

\item a second item starts here
\end{enumerate}
--8---cut here---end---8---

Interesting!  Just an extra data point... ;-)

Thanks again,
eric

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.260.gba0f6.dirty)

___
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] Full manual for beamer export?

2011-01-29 Thread Eric S Fraga
Rafael Villarroel rvf0...@gmail.com writes:

 Hello all,

 The org-beamer tutorial at Worg
 http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.html refers to
 a detailed manual for org-beamer in the first paragraph of section
 3. However, the link is dead, and googling I cannot find another
 document that could possibly be refering to, except the Beamer section
 in the Org manual (12.6.6). So my question is: Is there really a full
 org-beamer manual, and where is it?

 Best regards,
 Rafael

There *was* a full manual which, I believe, was written by Carsten when
he implemented the beamer support.  However, it was deleted in favour of
the tutorial you have found already.  From the git log:

: 8bc191b  2010-07-07  
: Deleted obsolete beamer guide and added a link to the org beamer manual
: to Eric's tutorial.

I have a feeling that between my tutorial and the actual org manual
section on beamer, you have everything you should need... at least to
get started!  Any questions, just ask here on the list.

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.260.gba0f6.dirty)

___
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] Status google calendar sync

2011-01-29 Thread Eric S Fraga
Torsten Wagner torsten.wag...@gmail.com writes:

[...]

 Well, if there would be a elisp interpreter for
 Android, this would change the game

Yes, it's called Emacs ;-)

We need Emacs running on Android[1].  If Nokia can have Emacs native on
their phones (n900), why can't Android???

I can dream.

vi is available, but not vim (so far as I know) so can't do org that
way.

eric


Footnotes: 
[1]  well, on a G1 or G2 you can actually install Debian linux and then
run emacs on that but...

-- 
: Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1
: using Org-mode version 7.4 (release_7.4.260.gba0f6.dirty)

___
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] Status google calendar sync

2011-01-29 Thread Mark Elston

On 1/29/2011 12:44 PM, Greg Troxel wrote:


Mark Elstonm_els...@comcast.net  writes:

   [google calendar]


I wasn't all that keen on it at first but I really got to like it when
I was able to update my calendar from my phone or my laptop or my
desktop at work and all three would see it.

When I found I could create multiple calendars and share *some* of them
I really started to enjoy the idea of a central server for my calendar
data.


You are blurring having a calendar server and being forced into sharing
your data with google because of using non-free software that is
crippled by not being able to set the server URL.


I pointed out in a different thread that the software I use doesn't
*require* syncing with google, but can work very nicely as an offline
calendar.  I use the google server for the reasons I gave.


...


org syncing with a calendar server makes a lot of sense to me, but again
that's separate from a the only usable calendar server is google.



That wasn't my intent.  I use google since it is convenient and
available everywhere I have a network connection (or 3G with my
phone).  If another service came along that fit my needs as well or
better I would certainly take a look at it.



I think the only tricky part is somehow push UUIDs during scyning, and
then you'll need an operation to merge an org event and an ical event
with different UUIDs and remember the foreign UUID for the next sync.


I'm not sure what you mean by this.

I have never made use of any .ical/.ics files so this hasn't been an
issue for me.  The only UUIDs I am dealing with are google calendar's
own internal UUIDs.  I don't know how they compare with other UUIDs.
What I am working on now is a python script to initialize some of the
info I have in my org files with info from google (including the google
UUID).  Most of this will go into a property drawer.  This drawer can
certainly be expanded to contain additional data from other tools as
necessary.

What I would like is to be able to shuffle my schedule in org as it is
often a more convenient interface for this than *any* calendar I have
used for the kinds of things I have to do.  Once I get the dates/times
for individual events the way I want them I would then push them to
google (or wherever).  My notes and other useful data stay in org.

That is what I will be working on as I have the time.

Mark

___
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