Re: [Orgmode] Mobileorg for Android: slow sync
Hi Matthew, In order to make sure that it was "Dropbox's fault", I tried to use the sdcard option. It is indeed much faster and perfectly useable like this for my needs. Thank you very much for this great application! Jordi Matthew Jones writes: > Hi Jordi, we do seem to be having a slowness issue with the Dropbox API. > I'm working with the Dropbox developers > to see what could be causing that. I usually split large projects into > their own files, you can configure which > files get considered for the agenda by examining this section of the > org-mode manual for MobileOrg: > > http://orgmode.org/org.html#Pushing-to-MobileOrg > > http://matburt.net > > On Tue, Dec 28, 2010 at 4:41 AM, Jordi Inglada > wrote: > > Hi all, > > I am learning to use Mobileorg for Android these days. I find the > application extremely useful. > > I am using Dropbox as a staging area and everything works > (push/pull). However, I have an annoying behavior: the synchronization > is *very* slow (up to several hours!). > > I was wondering if this can be due to the size of the org files and > the number of nested outline levels. For example, my work.org file has > over 10,000 lines. > > Does anybody have any similar experience about this? > > Any guidelines on the way of splitting large files? > > A way of not pushing all the agenda files to the staging area? > > Thank you very much. > > Jordi > > ___ > 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 > ___ 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] Mobileorg for Android: slow sync
Hi all, I am learning to use Mobileorg for Android these days. I find the application extremely useful. I am using Dropbox as a staging area and everything works (push/pull). However, I have an annoying behavior: the synchronization is *very* slow (up to several hours!). I was wondering if this can be due to the size of the org files and the number of nested outline levels. For example, my work.org file has over 10,000 lines. Does anybody have any similar experience about this? Any guidelines on the way of splitting large files? A way of not pushing all the agenda files to the staging area? Thank you very much. Jordi ___ 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] Title page for book latex export
No problem. And thanks again for your help. Jordi Nick Dokos writes: > Jordi Inglada wrote: > > > > Nick Dokos writes: > > > > > > ... > > > > > > > > > > Sorry. I did not notice that my not understanding what the problem was > > was going to upset anybody. I'll be more careful next time. > > > > A couple of points: > > o although I meant what I said in the seriously, I was not > upset. I guess my humor is dry as dust, but I can assure you I > was chuckling while composing the mail. > > o I *certainly* was not upset at your not understanding the problem. > This is exactly what the list is about. And your question was > entirely appropriate for the list. > > o Although your post was the trigger, the rant was not meant for you > personally: it was meant for the whole list. It is often the case > that people describe a problem with very little detail and it > takes a series of back-and-forths before we can really understand > what the problem is. Sometimes that's inevitable but many times > it can be avoided. My suggestion was to include enough detail > in the original report so the back-and-forth can be avoided to > the extent possible. > > So I hope I did not offend you and if I did offend you, I apologize: > that was not my purpose at all, and a rant that offends but does not > educate is no good at all. > > Nick > > ___ 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] Title page for book latex export
Hi Nick, Thank you for your reply. Nick Dokos writes: > > ... > > Sorry. I did not notice that my not understanding what the problem was was going to upset anybody. I'll be more careful next time. > > OK, now that I've got that off my chest and as a reward for subjecting > you (and everybody else) to the rant, here's a way to do what you > want (I think - unless I've misunderstood the problem...) > It indeed solved my problem. Thank you very much for your time and help. Jordi ___ 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] Title page for book latex export
Hi Jeff, Thanks for your reply. I actually did that as a first try, but the problem is that the org->tex export generates a standard title page (title, author, date), then the table of contents, and only after that my title page. So the question would rather be: how to deactivate the standard title page and put mine before anything else in the document? Thank you. Jordi Jeff Horn writes: > Any code between LaTeX code blocks should execute automatically. For > example, I could place an entire .tex source between > > #+BEGIN_LaTeX > [Code goes here] > #+END_LaTeX > > And name the file tex.org and it can be exported to PDF. So, I would > just place the normal LaTeX commands you would use to accomplish what > you are trying to do in a code block, like above. > > Good luck, > Jeff > > On Mon, Oct 18, 2010 at 5:39 AM, Jordi Inglada > wrote: > > Hi all, > > > > I would like to export to LaTeX using "#+LaTeX_CLASS: book" and use a > > title page that I have built using the LaTeX titlepage environment. I > > don't know where to put the titlepage environment and how to > > deactivate the title page generation by the LaTeX export. > > > > Thank you for your help. > > > > Jordi > > > > ___ > > 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 > > > > > > -- > Jeffrey Horn > Graduate Lecturer and PhD Student in Economics > George Mason University > > (704) 271-4797 > jh...@gmu.edu > jrhorn...@gmail.com > > 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
[Orgmode] Title page for book latex export
Hi all, I would like to export to LaTeX using "#+LaTeX_CLASS: book" and use a title page that I have built using the LaTeX titlepage environment. I don't know where to put the titlepage environment and how to deactivate the title page generation by the LaTeX export. Thank you for your help. Jordi ___ 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-babel init
Hi Eric, That worked. I am ready to go now! Thank you! Jordi Eric Schulte writes: > Hi Jordi, > > The attached simple-init.el file works for me with > > emacs -Q -l simple-init.el > > Emacs started w/o error, and I was able to evaluate python code blocks > with no problem. > > Please give it a try and let me know if it doesn't work -- Eric > > (note you'll have to update the path to org/lisp) > xapplication/emacs-lisp [Click mouse-2 to save to a file] > > Jordi Inglada writes: > > > Eric, > > > > Thanks for the answer. > > > > If I do that using "emacs -q", I get this message when loading the > > configuration: > > > > "Symbol's value as variable is void: org-babel-tangle-lang-exts" > > > > An after that when trying to evaluate this block from the tutorial > > > > #+begin_src python > > import time > > print("Hello, today's date is %s" % time.ctime()) > > print('Two plus two is') > > return 2 + 2 > > #+end_src > > > > I get this other message: > > > > "org-babel-execute-src-block: No org-babel-execute function for python!" > > > > If I put the configuration in my .emacs, the error I get is: > > > > "org-babel-result-hash: Symbol's value as variable is void: > > org-babel-lob-one-liner-regexp" > > > > I guess I missed something. > > > > Thanks. > > > > Jordi > > > > Eric Schulte writes: > > > Hi Jordi, > > > > > > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so > > > you no longer need to add the contrib directory to your load path, or > > > require org-babel-init. The following should work for you. > > > > > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" > > load-path)) > > > (require 'org-install) > > > (require 'ob-python) > > > > > > note that for a language-specific require, you now prefix the language > > > name with ob- rather than org-babel- > > > > > > For more complete information on the new setup, see > > > > > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html > > > > > > Cheers -- Eric > > > > > > Jordi Inglada writes: > > > > > > > Hi all, > > > > > > > > I am having the same problem as this user here: > > > > > > > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html > > > > > > > > and the contrib/lisp directory is indeed in my load path. > > > > > > > > I am using a git changeset cloned today (Org-mode version 6.34trans > > > > (release_6.36.608.gc1ef)). > > > > > > > > I have tried using "emacs -q" and then loading an .el file containing > > > > only the following lines: > > > > > > > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" > > load-path)) > > > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" > > load-path)) > > > > > > > > (require 'org-install) > > > > (require 'org-babel-init) > > > > (require 'org-babel-python) > > > > > > > > and I get the same result. > > > > > > > > Thank you very much for your help. > > > > > > > > Jordi > > > > > > > > ___ > > > > 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 ___ 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-babel init
Just to complete my message, here is the debugger's output: Debugger entered--Lisp error: (void-variable org-babel-tangle-lang-exts) add-to-list(org-babel-tangle-lang-exts ("python" . "py")) byte-code("��!���!���!���!\"��B��!�$ ���\"�̇" [current-load-list require ob ob-ref ob-comint ob-eval add-to-list org-babel-tangle-lang-exts ("python" . "py") org-babel-default-header-args:python default-boundp set-default nil] 3) require(ob-python) eval-buffer(# nil "/home/inglada/.emacs" nil t) ; Reading at buffer position 14626 load-with-code-conversion("/home/inglada/.emacs" "/home/inglada/.emacs" t t) load("~/.emacs" t t) #[nil "�� �=� ��Q�7 �=�3 #�# ͂7 #�/ ς7 ͂7 ��Q��\nщ#��=�_ �Q!\"�\fщ#��=�^ \n)�� �!ؚ�� �!��P\"�\"!�� \"�� � !�� �� ˉ�� � \"�� �� #���!� *#?�� �$��щ#))�" [init-file-user system-type user-init-file-1 user-init-file otherfile source ms-dos "~" "/_emacs" windows-nt directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" "~/_emacs" "/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" alt inhibit-default-init inhibit-startup-screen] 7]() command-line() normal-top-level() Jordi Jordi Inglada writes: > Eric, > > Thanks for the answer. > > If I do that using "emacs -q", I get this message when loading the > configuration: > > "Symbol's value as variable is void: org-babel-tangle-lang-exts" > > An after that when trying to evaluate this block from the tutorial > > #+begin_src python > import time > print("Hello, today's date is %s" % time.ctime()) > print('Two plus two is') > return 2 + 2 > #+end_src > > I get this other message: > > "org-babel-execute-src-block: No org-babel-execute function for python!" > > If I put the configuration in my .emacs, the error I get is: > > "org-babel-result-hash: Symbol's value as variable is void: > org-babel-lob-one-liner-regexp" > > I guess I missed something. > > Thanks. > > Jordi > > Eric Schulte writes: > > Hi Jordi, > > > > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so > > you no longer need to add the contrib directory to your load path, or > > require org-babel-init. The following should work for you. > > > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path)) > > (require 'org-install) > > (require 'ob-python) > > > > note that for a language-specific require, you now prefix the language > > name with ob- rather than org-babel- > > > > For more complete information on the new setup, see > > > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html > > > > Cheers -- Eric > > > > Jordi Inglada writes: > > > > > Hi all, > > > > > > I am having the same problem as this user here: > > > > > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html > > > > > > and the contrib/lisp directory is indeed in my load path. > > > > > > I am using a git changeset cloned today (Org-mode version 6.34trans > > > (release_6.36.608.gc1ef)). > > > > > > I have tried using "emacs -q" and then loading an .el file containing > > > only the following lines: > > > > > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" > load-path)) > > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" > load-path)) > > > > > > (require 'org-install) > > > (require 'org-babel-init) > > > (require 'org-babel-python) > > > > > > and I get the same result. > > > > > > Thank you very much for your help. > > > > > > Jordi > > > > > > ___ > > > 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 > ___ 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-babel init
Eric, Thanks for the answer. If I do that using "emacs -q", I get this message when loading the configuration: "Symbol's value as variable is void: org-babel-tangle-lang-exts" An after that when trying to evaluate this block from the tutorial #+begin_src python import time print("Hello, today's date is %s" % time.ctime()) print('Two plus two is') return 2 + 2 #+end_src I get this other message: "org-babel-execute-src-block: No org-babel-execute function for python!" If I put the configuration in my .emacs, the error I get is: "org-babel-result-hash: Symbol's value as variable is void: org-babel-lob-one-liner-regexp" I guess I missed something. Thanks. Jordi Eric Schulte writes: > Hi Jordi, > > With the latest Org-mode from Git, Org-babel is now part of Org-mode, so > you no longer need to add the contrib directory to your load path, or > require org-babel-init. The following should work for you. > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path)) > (require 'org-install) > (require 'ob-python) > > note that for a language-specific require, you now prefix the language > name with ob- rather than org-babel- > > For more complete information on the new setup, see > http://eschulte.github.com/babel-dev/DONE-document-configuration-changes-for-Babel-integration.html > > Cheers -- Eric > > Jordi Inglada writes: > > > Hi all, > > > > I am having the same problem as this user here: > > > > http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html > > > > and the contrib/lisp directory is indeed in my load path. > > > > I am using a git changeset cloned today (Org-mode version 6.34trans > > (release_6.36.608.gc1ef)). > > > > I have tried using "emacs -q" and then loading an .el file containing > > only the following lines: > > > > (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path)) > > (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" > > load-path)) > > > > (require 'org-install) > > (require 'org-babel-init) > > (require 'org-babel-python) > > > > and I get the same result. > > > > Thank you very much for your help. > > > > Jordi > > > > ___ > > 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 ___ 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] Org-babel init
Hi all, I am having the same problem as this user here: http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html and the contrib/lisp directory is indeed in my load path. I am using a git changeset cloned today (Org-mode version 6.34trans (release_6.36.608.gc1ef)). I have tried using "emacs -q" and then loading an .el file containing only the following lines: (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path)) (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path)) (require 'org-install) (require 'org-babel-init) (require 'org-babel-python) and I get the same result. Thank you very much for your help. Jordi ___ 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: Diary synchronising with Google calendar
Hi Eric, I am sorry to ask this, but can you post detailed instructions on how to use your code? It seems that I am (at least) missing the "add-to-google-calendar" function. Thanks. Jordi On Tue, 6 Jul 2010 00:14:00 +0200, Daniel Mahler gmail.com> wrote: > > On Mon, Jul 5, 2010 at 11:54 PM, Eric S Fraga ucl.ac.uk> wrote: > > On Mon, 5 Jul 2010 17:10:55 +0200, Daniel Mahler gmail.com> > > wrote: > >> > >> Hi, > >> > >> Have you looked at g-client? > > > > Thanks. I did look at g-client a long time ago. It should provide > > everything we need but it's much more than I want to even start > > considering... I just don't have the time unfortunately. > > > > The google command line scripts, on the other hand, are > > straightforward and will give me (others?) 90% of the functionality I > > want. > > > > Mind you, I've been playing a bit and Google's "quick add" syntax > > leaves a bit to be desired. There's no formal specification and it > > doesn't quite work, especially trying to get a repeated entry at a > > given time of day. > > > > GoogleCL is actually a rather thin wrapper around the gdata python > client library, > which essentially just adds the commandline processing. > Maybe the way to go is to call gdata directly via pymacs. > > cheers > Daniel Yes, using pymacs and interacting directly with Google's API may be the way to go. However, given my usual time constraints, I'm going for the 80% solution, as described below: My use case is that I spend almost all of time in Emacs (and almost all of that time within org) but I am sometimes but not often away from one of my computers with only my Android phone. When I'm away from the computers, I need to be able to check my diary and maybe make the odd addition to it. I am not particularly concerned with note taking with my mobile phone (too annoying! and MobileOrg is probably a better solution for synchronised note taking in any case...) so the following meets this use case. I have two relevant org files: diary.org and googlecalendar.org. The first is the default target for inserting diary entries from org's agenda view; the latter contains all items scheduled from within Google's calendar application, typically from my phone, and downloaded and processed using the awk script I posted to this list last week. On the Google calendar side, I have two calendars: the default and one called "org". The first is used when I actually schedule something using Google. The latter is populated directly by org using Google's command line scripts with this advice on org's diary insertion function: #+begin_src emacs-lisp (defadvice org-agenda-add-entry-to-org-agenda-diary-file (after add-to-google-calendar) "Add a new Google calendar entry that mirrors the diary entry just created by org-mode." (let ((type (ad-get-arg 0)) (text (ad-get-arg 1)) (d1 (ad-get-arg 2)) (year1 (nth 2 d1)) (month1 (car d1)) (day1 (nth 1 d1)) (d2 (ad-get-arg 3)) entry dates) (if (or (not (eq type 'block)) (not d2)) (setq dates (format "%d-%02d-%02d" year1 month1 day1)) (let ((year2 (nth 2 d2)) (month2 (car d2)) (day2 (nth 1 d2)) (repeats (- (calendar-absolute-from-gregorian d1) (calendar-absolute-from-gregorian d2 (if (> repeats 0) (setq dates (format "%d-%02d-%02d every day for %d days" year1 month1 day1 (abs repeats))) (setq dates (format "%d-%02d-%02d every day for %d days" year1 month1 day1 (abs repeats )) (setq entry (format "/usr/bin/google calendar add --cal org \"%s on %s\"" text dates)) ;;(message entry) (if (not (string= "MYLAPTOPCOMPUTER" mail-host-address)) (shell-command entry) (let ((offline "~/tmp/org2google-offline-entries")) (find-file offline) (goto-char (point-max)) (insert (concat entry "\n")) (save-buffer) (kill-buffer (current-buffer)) (message "Plain text written to %s" offline) (ad-activate 'org-agenda-add-entry-to-org-agenda-diary-file) #end_src This does two things depending on my online status which is implicitly defined by the host address of the computer I am using (yes, kludgy at best): if online, the headline entry for the new diary entry (which is stored in diary.org) is sent to my "org" Google calendar. If offline, the command line that would have been used is stored in a file. When I got back online, I simply execute and empty this file as part of a more general synchronisation step (including git updates for my org files and sending any composed emails like this one . This 2x2 approach (two diaries in org, two calendars in Google) seems to be working very well. It works for me because I seldom delete items in my diary and, in any case, I'd rather err on having an entry that no longer makes sense than end up double-booked. Repeated events with times
Re: [Orgmode] Google CL and org-mode
Hi, I don't know if this is a good point of view, but since Google CL is an "official" Google toolkit, I think it may more support and testing. When I tried to use g-client a while ago, I had some problems to get it working and often times the connection with google services was not robust (although I was using it from behind a proxy at the time). Best regards, Jordi Daniel Mahler writes: > Hi, > > Have you looked at g-client? > It is an elisp wrapper for the gdata APIs. > It comes with emacspeak, > but can be used independently. > I have not used either g-client or GoogleCL, > but wanted to make sure people are aware of all the options. > Having either integrated into org-mode would be nice > > cheers > Daniel > > On Mon, Jul 5, 2010 at 3:17 PM, Jordi Inglada > wrote: > > Hi, > > > > Happy to hear that. Since I do not know Elisp, I can not help much, > > but I am willing to test any code available for this. > > > > Best regards, > > > > Jordi > > > > > > Eric S Fraga writes: > > > Thanks for the heads-up on this. This could be quite useful. I've > > > been playing recently with the org to google calendar interfacing and > > > this new API could potentially simplify things significantly. > > > > ___ > > 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 > > ___ 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] Google CL and org-mode
Hi, Happy to hear that. Since I do not know Elisp, I can not help much, but I am willing to test any code available for this. Best regards, Jordi Eric S Fraga writes: > Thanks for the heads-up on this. This could be quite useful. I've > been playing recently with the org to google calendar interfacing and > this new API could potentially simplify things significantly. ___ 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] Google CL and org-mode
Hi all, This is my first post to the list, so I would like to thank you all for this great piece of software that I use all the time since last september. I have a question regarding the recent announcement of the Google Command Line project (http://code.google.com/p/googlecl/). I was wondering if there are plans to integrate support for calendar synchronization between Google and org-mode using this tool. Best regards, Jordi ___ 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