[BUG] warning message for straight-use-package [9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)]
Hi, I use straight.el for package management, and a recent package (I think it was todoist.el) pulled in org-mode. This then caused the warning about mismatch between the org-mode in Emacs and the one from the repo. I read the *Warning* and in particular this bit: -- 3. New Org version is loaded using straight.el package manager and other package depending on Org is loaded before straight triggers loading of the newer Org version. It is recommended to put (straight-use-package ’org) early in the config. Ideally, right after the straight.el -- so I copied the elisp straight into .emacs. This then generated an error, because the symbol 'org had been copied across as ’org. Checking the source, I see line 77 of org-macs.el has (straight-use-package 'org) so I'm not sure what the fix is, but does anyone have any ideas on providing a warning that uses the correct quote character? Thanks, Stephen Emacs : GNU Emacs 29.0.50 (build 1, aarch64-apple-darwin21.6.0, NS appkit-2113.60 Version 12.5 (Build 21G72)) of 2022-08-08 Package: Org mode version 9.6 (9.6-gb2adb6 @ /Users/stephen/.emacs.d/straight/build/org/)
Exporting diary-sexps into icalendar file
hi, I have a simple file, notes.org, with the following content. (This is the example from the org mode manual). -- * 22:00-23:00 The nerd meeting on every 2nd Thursday of the month <%%(diary-float t 4 2)> -- and this entry then appears once/month in the org agenda, as expected. However, when I export to ics, the notes.ics file is effectively empty: -- BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:notes PRODID:-//Stephen Eglen//Emacs with Org mode//EN X-WR-TIMEZONE:BST X-WR-CALDESC: CALSCALE:GREGORIAN END:VCALENDAR -- I have org-icalendar-include-sexps set to t Any clues what could be going wrong? Stephen
Moving to a literate file for .emacs
I see many users are switching to using a 'literate programming' approach to tangling their .emacs file from an org file. Has anyone solved the following problem though? If I have a file called config.org containing: * test #+begin_src emacs-lisp (defun quick-test () "interactive" (* 3 9) ) #+end_src and then in my .emacs file I do: (org-babel-load-file "~/config.org") quick-test is indeed defined, but when I do C-c f RET quick-test RET it takes me to config.el (a tangled file, suitable for computers, not humans), rather than config.org. Is it possible instead to get the editor to jump to the definition in config.org? Stephen
Re: Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
> I solved this part on maint branch. Thank you! > Sure. Patch welcome. diff --git a/doc/org-manual.org b/doc/org-manual.org index ab12fa70a..ea8901f28 100644 --- a/doc/org-manual.org +++ b/doc/org-manual.org @@ -6074,6 +6074,11 @@ separator in the latter case, e.g.: | =11am--1:15pm= | \rArr{} same as above | | =11am+2:15=| \rArr{} same as above | +If you do not specify an end time, then you can provide a default +duration by setting ~org-agenda-default-appointment-duration~ to a +suitable non-~nil~ value. + + #+cindex: calendar, for selecting date #+vindex: org-popup-calendar-for-date-prompt Parallel to the minibuffer prompt, a calendar is popped up[fn:62].
Bug: specifying end time of date as +0:20 [9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)]
Hi, I'm trying to understand the syntax (e.g. ‘11am+2:15’) for specifying the end time of an event, from (info "(org)The date/time prompt") It works okay if I do org-deadline with 11am+2:15 * test 3 DEADLINE: <2021-05-09 Sun 11:00-13:15> but if I do 11pm+2:15 then it gets confused: * test 4 DEADLINE: <2021-05-09 Sun 23:00-25:15> and when I next call the agenda, I get an error: org-duration-to-minutes: Invalid duration format: "+1:15" Also, I couldn't see any mention in the documentation of org-agenda-default-appointment-duration -- is that worth mentioning in the node, e.g. after ‘11am+2:15’ ⇒ same as above "If you do not specify an end time, then you can provide a default duration by setting org-agenda-default-appointment-duration." Best wishes, Stephen Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.28, cairo version 1.17.4) of 2021-04-28 Package: Org mode version 9.4.4 (release_9.4.4 @ /usr/local/share/emacs/28.0.50/lisp/org/)
Re: Bug: exporting a subtree to icalendar omits body of subtree [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]
> When exporting a subtree, the top-level outline becomes the title of the > document, i.e., the document becomes morally equivalent to: > > #+title: test > <2021-03-18 Thu 15:00-16:00> > body of text > > There is indeed no event to export in this case. Only level 2 outline > will become events. You may want to export region instead. Thank you very much Nicolas for explaining; this was my mistake. My solution for now is to use org-narrow-to-subtree and then export it. Stephen
Bug: exporting a subtree to icalendar omits body of subtree [9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/)]
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. Hi, With a simple test file /tmp/o.ics: ** test <2021-03-18 Thu 15:00-16:00> body of text If I first do C-c C-e c f I get a correct .ics file: Version 1 BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:o PRODID:-//Stephen Eglen//Emacs with Org mode//EN X-WR-TIMEZONE:GMT X-WR-CALDESC: CALSCALE:GREGORIAN BEGIN:VEVENT DTSTAMP:20210220T002714Z UID:TS1-9618d322-4761-4706-9432-dce5c80e2113 DTSTART:20210318T15Z DTEND:20210318T16Z SUMMARY:test DESCRIPTION:<2021-03-18 Thu 15:00>–<2021-03-18 Thu 16:00> body of text CATEGORIES:o END:VEVENT END:VCALENDAR If however when I export, I leave the point on line 1, and then do C-c C-e C-s c f I get the following calendar, with no events. Version 2 BEGIN:VCALENDAR VERSION:2.0 X-WR-CALNAME:o PRODID:-//Stephen Eglen//Emacs with Org mode//EN X-WR-TIMEZONE:GMT X-WR-CALDESC:test CALSCALE:GREGORIAN END:VCALENDAR Am I missing something? I tried exporting to HTML which seems to work when using C-s to turn on the subtree export. Many thanks, Stephen Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.22, cairo version 1.17.3) of 2020-08-28 Package: Org mode version 9.3 (release_9.3 @ /usr/share/emacs/27.1/lisp/org/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-export-use-babel nil org-odt-format-headline-function 'org-odt-format-headline-default-function org-agenda-files "~/txt/org/agenda-list.txt" org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-tag-alist '(("@damtp" . 100) ("julia" . 106) ("@magd" . 109) ("@home" . 104) ("laptop" . 108)) org-mode-hook '(#[0 "\301\211\207" [imenu-create-index-function org-imenu-get-tree] 2] org-mode-auto-revert-for-googlecal #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-babel-load-languages '((R . t) (shell . t) (dot . t) (ditaa . t) (emacs-lisp . t) (latex . t)) org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-agenda-insert-diary-extract-time t org-icalendar-date-time-format ":%Y%m%dT%H%M%SZ" org-occur-hook '(org-first-headline-recenter) outline-minor-mode-hook '((lambda nil (define-key outline-minor-mode-map [(control tab)] 'org-cycle) (define-key outline-minor-mode-map [(shift tab)] 'org-global-cycle) ) ) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-todo-keywords '((sequence "TODO" "WAIT" "DONE")) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-babel-tangle-lang-exts '(("latex" . "tex") ("emacs-lisp" . "el") ("elisp" . "el")) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-open-l
[O] Is the ELPA repo for orgmode working?
Hi, Following instructions on https://orgmode.org/elpa.html, when I list-packages, I see the following in *Messages* Importing package-keyring.gpg...done Opening TLS connection to ‘orgmode.org’... Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 orgmode.org’...failed Opening TLS connection with ‘gnutls-cli --x509cafile /etc/ssl/certs/ca-certificates.crt -p 443 orgmode.org --protocols ssl3’...failed Opening TLS connection to ‘orgmode.org’...failed Failed to download ‘org’ archive. Have I got a broken install somewhere? Thanks, Stephen
Re: [O] ical export issues
> I use your approach but also use MobileOrg on Android as a channel to > connect org to Google. I essentially have my org calendar entries in > two different calendars on Google as a result. MobileOrg works well and > also "assimilates" any new entries put in directly into the Google > calendar back into my org files. Thank you Eric. I'm just trying the new MobileOrg, as I prefer its syncing method, but as yet I don't think it does calendar merging. Best wishes, Stephen
[O] ical export issues
Hi everyone, I routinely export my diary entries to an ics file on the web so that google calendar can display them. This normally works well, although it is well known that the google calendar can take many hours before updating the calendar. Has anyone got any neater approaches for keeping their org mode calendar items in sync with google? I've looked at org-gcal but I think I'm missing something (https://github.com/myuhe/org-gcal.el/issues/68) and there don't seem to be any reliable command line tools for syncing an .ics file with google that work under OAuth2. p.s. a small issue, but when I passed the org-generated .ics file through a validator, http://severinghaus.org/projects/icv/ it noted that: Your calendar is using an invalid newline format. Make sure to use \r\n to end lines rather than just \n (RFC 2445 §4.1). This doesn't seem to prevent google parsing the file though. Stephen
Re: [O] Repeating timestamp with interval N times
hi Rasmus, thanks! > In the past I used org-class, which might be what you refer to below. > Example: > > %%(org-class 2014 9 26 2014 12 15 3 'holidays) office hour 9:30-10:30 Thank you, I had not seen that. > > My understanding is that you would like to extend Org’s "datey" syntax to > allow provide an end in this statement, > > <2015-10-08 Thu 11:00-12:00 8+1w> > > What is the syntax you have got in mind? I wrote a suggestion above, e.g. "8+1w" would mean that the +1w (every week) repeater was constrained to a maximum of 8 times. Stephen
[O] Repeating timestamp with interval N times
Hi, I'd like to write a timestamp like: ** Weekly office hour <2015-10-08 Thu 11:00-12:00 +1w> but instead of having it occur every week until the end of time(!), I'd like it repeated N (=8) here. I can't see how to do this easily, am I missing something? I could use `org-clone-subtree-with-time-shift' but ideally I'd like something concise like: <2015-10-08 Thu 11:00-12:00 8+1w> Is this likely to be feasible? I can submit a patch if it is and someone points me in the right direction. Or, do I need to refer to some sexp magic "DIARY-STYLE SEXP ENTRIES"? I can see how to fix it by extending diary-cyclic to include the parameter specifying the max number of repeats. Thanks, Stephen
[O] iswitchb is deprecated
Since Emacs 24.4, iswitchb is marked as obsolete: -- This function is obsolete since 24.4; use `icomplete-mode' or `ido-mode' instead. -- Do people use `org-iswitchb' much? If so, it might be time to get it to default to ido or icomplete. Stephen
Re: [O] Reading calendars in org mode: what is the best solution?
On Thu, Dec 19 2013, Alan Schmitt wrote: I would like to have a read-only version of my calendars in my org agenda. These calendars (10 of them) currently live in Zimbra and iCould, and I am accessing them both using the native Calendar application on OS X and on my (Android) phone. I've looked at what the options are, and I can find two of them: - convert ics files into org files (http://orgmode.org/worg/org-tutorials/org-google-sync.html) - set up a synchronization using caldav (https://github.com/dengste/org-caldav) Have you seen https://github.com/asoroa/ical2org.py I started using this about a week ago, and like it. One strength compared to the worg entry is that it handles (some) recurring events. My approach is to download the .ics file and then run this python script. There is also a ruby script: https://github.com/simonthum/ical2org but I couldn't get this to work correctly with British Summer Time, despite help from the author. (The python script seems to handle the timezones okay for me.) Stephen
Re: [O] Handling Repeating events from google calendar / repeater interval
sorry the patch was incomplete. The correct one is on a branch I just pushed named tz-test. For me it works the same but maybe it works for you. Thanks Simon, but unfortuantely I'm still seeing [UTC]. Stephen
Re: [O] Handling Repeating events from google calendar / repeater interval
Yes, org-mode does not recognize the [UTC], that is just a helper for exactly this case: The ical's timezone is emitted in case it is different from your DEFAULT_TZ. For me it worked fine so far. Thanks. res = orgTimeSpan(tstart, tend, repeaterClause) for res = orgTimeSpan(tstart.ruby_value, tend.ruby_value, repeaterClause) Thanks very much Simon, but when I do that, I get: undefined method `ruby_value' for #DateTime:0x0001d0e700 [/local/data/home/stephen/langs/ruby/ical2org/ical2org.rb:126:in `orgTimeSpanTZ', Stephen
Re: [O] Handling Repeating events from google calendar / repeater interval
It's not exactly answering your question but my little tool https://github.com/simonthum/ical2org Thanks, this is a nice workaround, it just worked well on my google calendar import. Should we add a link to this on http://orgmode.org/worg/org-tutorials/org-google-sync.html (how do I edit that?) Is there a typo in the install section of the doc? I had to do gem install ri_cal (rather than rical)? Would still be interested though in thoughts about finite repeater intervals. Stephen
Re: [O] Handling Repeating events from google calendar / repeater interval
Correct me if I am wrong, but I'm afraid that pure AWK does not provide date computation support. That's why I did not implement this. okay, it does sound like a lot to ask awk to do. So I would definitely vote to extend the repeater syntax with a count. great. I assume that your initial example RRULE would require either ...4+1d or +1d:4 Yes, thanks. Stephen
[O] Handling Repeating events from google calendar / repeater interval
I'm experimenting using ical2org.sh to import google calendars. One limitation, as noted in the header is: # - does process RRULE recurring events, but ignores COUNT specifiers so if you have a repeating event in google (e.g. every day for four week), the ics file has: RRULE:FREQ=DAILY;COUNT=4 The script will take the first day of the event, but not the remaining three days. I think this could be solved in a couple of ways: 1. create four events, moving the date by one each time. 2. extending the syntax of timestamps so that something like: * Pick up Sam at school 2007-05-16 Wed 12:30 3+1w means repeat this event 3 times (rather than indefinitely). Or +1w:3 or something similar, I don't mind the syntax as long as it doesn't break other parts of timestamps. Has extending the syntax of the repeater interval been considered to allow finite number of repeats? I can offer to code something up for consideration if this sounds sensible. Thanks, Stephen
Re: [O] orgstruct-mode with custom headline prefix
No, it is not. Thanks Bastien for the explanation. I can now get support for orgstruct without setting outline-regexp, but in so doing I found an odd error. I've sent Christopher a minimal example, but didn't send it to the list as I wasn't sure about whether attachments could be sent to the list? Stephen
Re: [O] Symbol's value as variable is void: org-babel-temp-file
git log | head -3 commit 3a0e559ad976eaf8e6e6d4b304209d310e282a7d Author: Bastien Guerry b...@altern.org Date: Sun Feb 24 19:42:12 2013 +0100 FWIW, I'm on that commit and I don't see the problem. Thanks Nick; based on your comments and Achim's other replies, I nuked and reinstalled orgmode -- all working now. Thanks, and sorry for the noise! S
Re: [O] orgstruct-mode with custom headline prefix
Yes, you can send attachments to the list -- in general, please share bugs publicly as much as possible, receiving private emails about bugs is not encouraging for the maintainer (in this case Christopher) and not useful for the other people on this list, as they cannot contribute to debugging. So, feel free to share attachments :) Thanks Bastien; as you'll see, in the meantime Christopher already fixed this issue in master. Next time, I'll keep it on the list! Stephen
Re: [O] Symbol's value as variable is void: org-babel-temp-file
On Sun, Feb 24 2013, Achim Gratz wrote: Well, that doesn't make any sense: org-w3m doesn't contain the string in question, much less a variable reference in current Org, neither on the maint nor the master branch. You will want to be more forthcoming with information what commit you're at and what exactly you are doing. Start with showing us the output of git status and make config-all if that doesn't already give you a clue as to what is missing. Thanks Achim; if its just my installation, and not others, I'll try and debug this end. But just for the record, here's the output you asked for. I get the byte-compile error when doing make in the top-level. Stephen $ git log | head -3 git log | head -3 commit 3a0e559ad976eaf8e6e6d4b304209d310e282a7d Author: Bastien Guerry b...@altern.org Date: Sun Feb 24 19:42:12 2013 +0100 $ git status # On branch master # Untracked files: # (use git add file... to include in what will be committed) # # SJENOTES_GIT.org # utils/ nothing added to commit but untracked files present (use git add to track) make config-all = Emacs executable and Installation paths EMACS = emacs DESTDIR = ORGCM = dirall ORG_MAKE_DOC= info html pdf lispdir = /usr/share/emacs/site-lisp/org infodir = /usr/share/info datadir = /usr/share/emacs/etc/org testdir = /var/folders/91/91jLO-U5Hb8NrhtwVFdhLk+++TI/-Tmp-//tmp-orgtest = Additional files from contrib/lisp = Test configuration BTEST_PRE = BTEST_POST = BTEST_OB_LANGUAGES = awk C fortran maxima lilypond octave python sh BTEST_EXTRA = = Executables used by make CP= install -m 644 -p MKDIR = install -m 755 -d RM= rm -f RMR = rm -fr FIND = find SUDO = sudo PDFTEX= pdftex TEXI2PDF = texi2pdf --batch --clean TEXI2HTML = makeinfo --html --number-sections MAKEINFO = makeinfo INSTALL_INFO= install-info = Commands used by make BATCH = emacs -batch -Q BATCHL= emacs -batch -Q --eval '(add-to-list '''load-path .)' ELC = emacs -batch -Q --eval '(add-to-list '''load-path .)' --eval '(batch-byte-compile)' ELCDIR = emacs -batch -Q --eval '(add-to-list '''load-path .)' --eval '(batch-byte-recompile-directory 0)' BTEST = emacs -batch -Q --eval '(add-to-list '''load-path ./lisp)' --eval '(add-to-list '''load-path ./testing)' -l org-loaddefs.el -l testing/org-test.el --eval '(require '''ob-awk)' --eval '(require '''ob-C)' --eval '(require '''ob-fortran)' --eval '(require '''ob-maxima)' --eval '(require '''ob-lilypond)' --eval '(require '''ob-octave)' --eval '(require '''ob-python)' --eval '(require '''ob-sh)' --eval '(setq org-confirm-babel-evaluate nil)' -f org-test-run-batch-tests MAKE_LOCAL_MK = emacs -batch -Q --eval '(add-to-list '''load-path ./lisp)' --eval '(load org-compat.el)' --eval '(load ../mk/org-fixup.el)' --eval '(org-make-local-mk)' MAKE_ORG_INSTALL = emacs -batch -Q --eval '(add-to-list '''load-path .)' --eval '(load org-compat.el)' --eval '(load ../mk/org-fixup.el)' --eval '(org-make-org-loaddefs)' MAKE_ORG_VERSION = emacs -batch -Q --eval '(add-to-list '''load-path .)' --eval '(load org-compat.el)' --eval '(load ../mk/org-fixup.el)' --eval '(org-make-org-version 7.9.3f release_7.9.3f-1199-g3a0e55 /usr/share/emacs/etc/org)' = Org version make: Org-mode version 7.9.3f (release_7.9.3f-1199-g3a0e55 = /usr/share/emacs/site-lisp/org)
[O] Small docstring update
Attached is a suggested rewording of the docstring for org-agenda-prefix-format. *** /tmp/ediff30654gin 2013-02-18 14:03:46.999849795 + --- /local/data/home/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-agenda.el 2013-02-18 14:02:48.731846974 + *** *** 1562,1572 result in a 12 character time field if a time of the day is specified, but will completely disappear in entries which do not contain a time. ! If there is punctuation or whitespace character just before the final ! format letter, this character will be appended to the field value if ! the value is not empty. For example, the format \%-12:c\ leads to ! \Diary: \ if the category is \Diary\. If the category were be ! empty, no additional colon would be inserted. The default value for the agenda sublist is \ %-12:c%?-12t% s\, which means: --- 1562,1572 result in a 12 character time field if a time of the day is specified, but will completely disappear in entries which do not contain a time. ! If there is punctuation or whitespace character just before the ! final format letter, this character will be appended to the field ! value if the value is not empty. For example, the format ! \%-12:c\ leads to \Diary: \ if the category is \Diary\. If ! the category is empty, no additional colon is inserted. The default value for the agenda sublist is \ %-12:c%?-12t% s\, which means:
Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
It's bug: http://lists.gnu.org/archive/html/bug-gnu-emacs/2012-07/msg00674.html Not sure if that fix is in 24.2, but surely the latest pretest for 24.3 should work (which is pretty stable). Thanks David; indeed, its working fine now in the 24.2.90 pretest that was recently released. I'm still wondering why it didn't work at the beginning. I mean, even if you had your Google username set in some .netrc or .authinfo, the password should still work? The problem (I think) was that I had a misformatted .netrc with a username in it that I thought was just for one machine, but must have been for all machines! Removing that .netrc file solved my problem, thanks. Stephen
Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
Now that I've got org-caldav working (thanks David), here's a simple helper function so that the files specified in org-agenda-files are exported. I hope it works for others too! (defun org-caldav-set-files-from-org-agenda () Set `org-caldav-files' from the files specified in 'org-agenda-files'. Ensure however that `org-caldav-inbox' is not included in the file list. (let ((files (org-agenda-files))) (when (member (file-truename org-caldav-inbox) files) (setq files (delete (file-truename org-caldav-inbox) files))) (setq org-caldav-files files))) (org-caldav-set-files-from-org-agenda) Stephen
Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
On Tue, Dec 04 2012, Suvayu Ali wrote: Hi David, On Mon, Dec 03, 2012 at 08:50:35PM +0100, David Engster wrote: I'm at a loss why this happens, and I could not reproduce it with my account. This problem really has nothing to do with org-caldav, since it is delegating this part to the url package. As I've already written to Bastien, please try (url-retrieve-synchronously https://www.google.com/calendar/dav/your-calendar...@group.calendar.google.com/events/;) If this doesn't ask for your username, then there's your problem. Depending on the Emacs version you're using, you might want to set (setq auth-source-debug t) to see whether some .netrc file or similar is setting the username for you (look into the *Messages* buffer). I see the same issue, I get only a password prompt. This is what I get on trying your suggestion above. Contacting host: www.google.com:443 auth-source-search: found 1 results (max 1) matching (:max 1 :host www.google.com:443 :port https) auth-source-search: found 1 CACHED results matching (:max 1 :host www.google.com:443 :port https) #buffer *http www.google.com:443*-771021 I'm not sure from this if my netrc is being used. My netrc also has the password for my Google account, if it is being used should I even get a password prompt? Cheers, Dear all, I think it is a problem somewhere with my local setup; if I add the following to .authinfo (chmod 600) then it uses the right username: Machine www.google.com login my-gmail-login I'm now about to see how to setup .authinfo.gpg so that I can also include my password in that file. As David has pointed out, try the call to url-retrieve-synchronously first, as that needs to be working before org-caldav works. Stephen
Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
I think it is a problem somewhere with my local setup; if I add the following to .authinfo (chmod 600) then it uses the right username: Machine www.google.com login my-gmail-login I'm now about to see how to setup .authinfo.gpg so that I can also include my password in that file. Hmmm. not having any luck here; it works with .authinfo, but not with .authinfo.gpg in Emacs 24.1. I have (require 'auth-source) but it doesn't seem to help. Does url.el and friends in Emacs 24.1 use auth-source? Stephen
Re: [O] org-caldav: Sync Org with external calendars through CalDAV (Owncloud, Google, ...)
David Engster deng at randomsample.de writes: Bastien writes: David Engster deng at randomsample.de writes: That is very strange. It should first ask: Username [for Google CalDAV]:. If it does not do that, maybe you have that information in your .authinfo? I have this: machine smtp.gmail.com login bastienguerry at gmail.com password xx Since we're connecting to google.com this shouldn't matter, obviously, thus I'm at a loss why it doesn't ask. I currently cannot test anything reliably because I'm on vacation and there's no 3G around here, so I'm afraid this has to wait a bit. Unless someone beats me to it. -David hi David, Bastien, did either of you resolve this problem about org-caldav just asking for the password, and not the username? I am now trying org-caldav, and am seeing the same problem. Happy to debug further if you can tell me which functions to look into. Thanks, Stephen
[O] booktabs in orgtbl-mode
Hi, I started using orgtbl-mode (which is great BTW) to prep my tables in a latex document. Can I get it to use booktabs line separators (such as \toprule) rather than \hline in the auto-generated latex when I hit C-c C-c on the table? Thanks, Stephen
[O] showing standard references (e.g. column B) in tables using C-c }
When using C-c } in a table, the columns are labelled $1, $2, etc. How can I get them labelled as A, B etc, as in the figure http://orgmode.org/worg/images/bzg/reference_visualization.jpg Thanks, Stephen
Re: [O] Difficulty of using Org mode
As Yihui was following up to an email of mine about Org mode on the ESS (emacs speaks statistics list), I will email him to find out if I can see what issues he had. For the record: I also found learning Org mode quite challenging, and I consider myself a diehard Emacs person. I guess if you were to ask me what I found difficult, was that it was quite overwhelming knowing where to start. (So I started small by learning the agenda features...) Stephen Michael Hannon jm_han...@yahoo.com writes: Bastien b...@gnu.org wrote: Michael Hannon jm_han...@yahoo.com writes: Hi, folks. Just FYI: - Forwarded Message - From: Yihui Xie x...@yihui.name To: Stephen Eglen s.j.eg...@damtp.cam.ac.uk Cc: ess-h...@r-project.org Sent: Saturday, June 2, 2012 3:08 PM Subject: Re: [ESS] knitr There is no point comparing markdown with org mode, and the answer will be definitely this: org mode can beat markdown almost everywhere; they are not even comparable. The point is that markdown was not designed to provide new features; it was designed to be simple so it intentionally discarded lots of features and people can learn it quickly. I have tried a few times to learn org mode, and it is just too complicated for me. Well, it all boils down to disambiguate what learning Org means. It is hard to say just from the message above. If you can, please redirect the OP to this list so that he feels guided in tasks he wants to do with Org. Hi, Bastien. I don't know this guy, but I don't think he's *trying* to learn Org mode at this point. He seems to be a very capable guy: http://yihui.name/ and is evidently the author of the R package knitr for literate programming. I was just struck by the fact that a person of his evident ability would give up on Org mode. I can't say it has been all that easy for me to use Org mode, and I'm sure there are Avogadro's number of things I still don't know about it, but I've never viewed it is being *that* difficult. Probably I've been spoiled by all the help I've gotten from this enormously useful list. There's no real action item for anybody here. I speculate that this guy might just have had more fun writing his own package than in learning somebody else's. But I don't see how it could hurt for the Org-mode community to keep an eye out for usability issues. -- Mike
[O] org-mobile-push: copying read-only files
If I have an org mode file that is read-only (e.g. because I've checked it in to RCS) in my org-agenda, when I do M-x org-mobile-push (from my desktop machine to dropbox) the 2nd time I get a permission denied error from (org-mobile-copy-agenda-files) -- this is because there is already a read-only copy in the Dropbox folder. FOr now I'm deleting the read-only files in Dropbox and restarting, but anyone else got a better solution? Stephen
[O] MobileOrg for Android question about calendar integration
Hi, I love the new MobileOrg Android app, especially the Calendar integration. A quick question: if I sync on the android app, I see new org agenda items in the phone's Calendar. Do those items sync back from my phone to appear also on the web at google.com/calendar? For now, my org-generated items are on the phone, but not the web application. Thanks, Stephen
Re: [O] MobileOrg for Android question about calendar integration
As long as that calendar is set to sync then it will pull them into the web based Google Calendar service. The way that I made sure this would happen is to create the calendar from the web interface and then make sure that is synced to the phone... then go into the MobileOrg settings a select that calendar specifically. It all works like a champ... let me know if you have any issues with it. Thanks Matt, I've got it working now. (I created a new calendar just for MobileOrg, and then the syncing worked a charm.) Best wishes, Stephen
Re: [O] mail integration, advice?
hi Neil Are the directions at http://www.djcbsoftware.nl/code/mu/mu4e/Gmail-configuration.html really all it takes to get this running? If so, I'm definitely going to give it a whirl. yes, check out that subsection for Gmail, or the earlier part of the manual for other configs. If you previously got mu working, and your email is under ~/Maildir you should find that something like: (add-to-list 'load-path /usr/local/share/emacs/site-lisp/mu4e/) (autoload 'mu4e mu4e Start mu4e t) is all you need. Give it a go. If you liked mu, I think you'll like mu4e; Dirk's doing a great job! Stephen
Re: [O] mail integration, advice?
A relatively new emacs mailer, mu4e, is worth mentioning: http://www.djcbsoftware.nl/code/mu/mu4e.html I really like it so far + it has support for org mode links. Stephen
Re: [O] small typo in docstring for org-icalendar.el
oops, sorry Bastien, old (ediff) habits die hard! org-icalendar-timezone: doc string fix * lisp/org-icalendar.el (org-icalendar-timezone): Fix typo and clarify meaning. Small typo (of - or); clarify meaning of how timezone is calculated if this variable is left as nil. TINYCHANGE diff --git a/lisp/org-icalendar.el b/lisp/org-icalendar.el index d73a619..ac6a661 100644 --- a/lisp/org-icalendar.el +++ b/lisp/org-icalendar.el @@ -194,7 +194,7 @@ or if they are only using it locally. (defcustom org-icalendar-timezone (getenv TZ) The time zone string for iCalendar export. -When nil of the empty string, use the abbreviation retrieved from Emacs. +When nil or the empty string, use output from \(current-time-zone\). :group 'org-export-icalendar :type '(choice (const :tag Unspecified nil)
[O] small typo in docstring for org-icalendar.el
Typo and suggested change in docstring. *** /var/folders/ix/ixcktwmzGyyc6z4C5D4ypU+++TI/-Tmp-/ediff3069aCw 2012-04-03 22:31:26.0 +0100 --- /Users/stephen/langs/emacs/elisp-ds/org-mode/lisp/org-icalendar.el 2012-04-03 22:08:47.0 +0100 *** *** 194,200 (defcustom org-icalendar-timezone (getenv TZ) The time zone string for iCalendar export. ! When nil of the empty string, use the abbreviation retrieved from Emacs. :group 'org-export-icalendar :type '(choice (const :tag Unspecified nil) --- 194,200 (defcustom org-icalendar-timezone (getenv TZ) The time zone string for iCalendar export. ! When nil or the empty string, use output from \(current-time-zone\). :group 'org-export-icalendar :type '(choice (const :tag Unspecified nil)
Re: [O] A manuscript on reproducible research introducing org-mode
Samuel Wales samolog...@gmail.com writes: I applaud all of this. Raw data need to be made available by default (with only a few exceptions). Org can help people reproduce all of the succeeding steps also. Some people on the list might like to see the short (13 min) segment on Duke University's recent problems with reproducible research http://www.cbsnews.com/video/watch/?id=7398476ntag=contentMain;contentAux and the heroic efforts to uncover what had been done (37 min): http://videolectures.net/cancerbioinformatics2010_baggerly_irrh/ Stephen
[O] Rsquared for reproductible research
Following on from an old thread about self-configuring org files for reproducible research, R users might be interested to see the following web site which is exactly what I was thinking of for org mode (but of course, works only for R packages.) http://rsquared.stat.uni-muenchen.de/index.rhtml Stephen
[O] Bug: exporting ical files from read-only buffers [7.8.03 (release_7.8.03.112.g8861)]
I've found a small bug with exporting ical files from read-only org buffers. Create a simple buffer, e.g.: * test1 2012-01-12 Thu and then hit C-x C-q to make the buffer read-only. Then do C-c C-e i to export an ical file. You get an error that the buffer is read-only. I think this is due to the call to org-refresh-category-properties, which can't update text proprties. My workaround is to do: (setq inhibit-read-only nil) so that text properties can be added to read-only buffers. This could be done locally within the ical export functions if others thought sensible, for which I can send a patch if desired. Stephen -- Emacs : GNU Emacs 23.3.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.5) of 2011-08-14 on allspice, modified by Debian Package: Org-mode version 7.8.03 (release_7.8.03.112.g8861)
Re: [O] Bug: exporting ical files from read-only buffers [7.8.03 (release_7.8.03.112.g8861)]
Could this be done more generally? I think I've run into this for other export targets as well, although it may be my memory that is faulty here. I use RCS for version control for standalone files and often have files read-only from which I want to export. I also use RCS, which is how I got caught out today (trying to set up Eric's neat guide for gettting org-ical- google calendar; thanks for that Eric.) Before sending the bug, I tried exporting to pdf, which worked fine; what other exporters do you use? Stephen
Re: [O] Rsquared for reproductible research
I recognized your name, Stephen, as the long-time maintainer of the Emacs Lisp List--thanks for that too. Are you envisioning a repository beyond Emacs Lisp List for OrgMode implementations and/or Babel examples. I am interested in maintaining a collection of nice org-babel-R examples, given my interest in R and Emacs; I made a small start last year for my tutorial notes on ESS for the useR meeting, but I'd like to update that. The key problem I found with learning org-babel was worked examples, given that the syntax was changing rapidly. I hope that has now stabilised, and I should followup with Eric about this. (I also hope to kill off the Emacs Lisp List once the ELPA has taken off.) Also, I very much agree that a near exact replica of the http:// rsquared.stat.uni-muenchen.de/index.rhtml for OrgMode would be great. Yes! Any takers?!? http://cran.r-project.org/web/packages/roxygen/index.html Note that ESS has limited support for editing roxygen tags. Stephen
Re: [O] Rsquared for reproductible research
The syntax is now stabilized (we wanted to get this sorted before the final Emacs24 merge). That which is currently described in the manual is and should remain the proper Org-mode code block syntax. Thanks Eric, this is great news. I'll ensure my examples from last year still work with the current org-mode syntax. For many small examples, please see [1] which I (unfortunately) haven't That's a nice site, thanks! From looking at the fairly terse web site for R^2 it is not clear to me exactly what the system includes (I'm sure I'm missing something obvious). It seems to be the addition of a packaging system over-top of R source files. What would a potential Org-mode based system provide which is not already possible with Org-mode text files, Org-mode publishing and a version control repository. The accompanying paper from 2011 goes into detail as to what it does. But in essence, the website is supposed to be 'neutral', in that it is not your local system. A document may compile on my system, but not for others, because it depends on my local configuration. Having a neutral system will avoid such problems. A neutral system could also have support for all babel languages, so that I can use it to compile someone's document without e.g. having a common-lisp compiler on my system. Perhaps the benefit would simply be a system which eases the integration of Org, publishing, version control, and possibly automatic Makefile creation with tasks like publish, clean etc... yes, that too! best wishes, Stephen
Re: [O] Support for Bird-style Literate Haskell
Jean-Marie Gaillourdet j...@gaillourdet.net writes: I'd be interested to use org syntax in the comments of a literate haskell file. I know and use occasionally org-babel. Though, this question is not about org-babel. I am merely interested in telling org-mode to leave the code parts of a literate Haskell file alone, i.e. similar to code blocks in org-mode. I have no propblem with switching between org-mode and literate-haskell-mode depending on what I am currently editing. I am not interested in org-babel because I don't want to have a separate weaving step in my build system. In case you don't know: Literate Haskell files (ending with .lhs) come in two flavors: bird style and latex style. In bird style every line is a comment unless it has '' in the first column. And in latex style code blocks are surround with \begin{code} and \end{code}. Haskell implementations do not care what is in the non-code parts. So, I'd like to use org markup and especially the editing features of org-mode. I'd prefer to work in bird-style and latex-style would be fine as well. Check out Dave Love's work, it does latex-style, but not bird style. www.loveshack.ukfsn.org/emacs/haskell-latex.el
[O] Tutorial notes on ESS and org-babel-R
I gave a 3 hour tutorial on Emacs Speaks Statistics on Monday; this included mostly Emacs and ESS, but also introduced org-mode for R users. If anyone is interested, the slides and material are available at: http://www.damtp.cam.ac.uk/user/sje30/ess11 Thanks to the org-mode team for your work! Stephen
Re: [O] Pattch to org.texi: Document :eval no
Small patch attached, thanks Seb for pointing this out. Thanks for the patch -- I'm willing to apply it, but I'd rather apply a complete patch, i.e. one with a ChangeLog entry. Can you update it? Put the cursor on your change in org.texi and use `C-x 4 a' to create a proper ChangeLog entry, then copy this entry to the commit message. Thanks in advance! hi Bastien, thanks I'll remember that for future reference; for this patch, it looks like Eric already applied it. Stephen commit c88c76b5519a27b3747344668d387f8561bf5fda Author: Eric Schulte schulte.e...@gmail.com Date: Thu Jul 28 17:00:13 2011 -0600 doc: flesh out description of :eval header argument Thanks to Stephen Eglen for this patch
Re: [O] How to add entry in the Agenda view
Xin Shi shixin...@gmail.com writes: I usually have a dedicated window (frame) for Org Agenda view. I found it would be very convient to be able to add item directly from the Agenda buffer, however, I don't see that command in the manual. (A closer one is the refill, which moves the entry to another category) With point on a day in the agenda, try i d, and see the value of org-agenda-diary-file. Here's the snippet from the info doc. Stephen `i (`org-agenda-diary-entry')' Insert a new entry into the diary, using the date at the cursor and (for block entries) the date at the mark. This will add to the Emacs diary file(3), in a way similar to the `i' command in the calendar. The diary file will pop up in another window, where you can add the entry. If you configure `org-agenda-diary-file' to point to an Org-mode file, Org will create entries (in org-mode syntax) in that file instead. Most entries will be stored in a date-based outline tree that will later make it easy to archive appointments from previous months/years. The tree will be built under an entry with a `DATE_TREE' property, or else with years as top-level entries. Emacs will prompt you for the entry text--if you specify it, the entry will be created in `org-agenda-diary-file' without further interaction. If you directly press RET at the prompt without typing text, the target file will be shown in another window for you to finish the entry there. See also the `k r' command.
[O] Problems with latex exporting in verbatim environment
Consider the following short example (code taken from Eric S's foo.org file, which I'm working on): -- * Example 1 Using colon, the text is not reported verbatim. : were $\beta_2$ = src_R{round(out3$coef[3], 4)} : and $\beta_3$ = src_R{round(out3$coef[4], 4)} * Example 2 Using example environment it seems to be exported fine in .tex #+begin_example were $\beta_2$ = src_R{round(out3$coef[3], 4)} and $\beta_3$ = src_R{round(out3$coef[4], 4)} #+end_example -- Example 1 is not exported okay, there are stray = and \texttt added; whereas version two seems fine. See snippet from tex file below. This looks like a bug to me. Are the two forms of verbatim really equivalent? Stephen -- relevant snippet from tex file, exported from above. \section{Example 1} \label{sec-1} Using colon \begin{verbatim} were $\beta_2$ = =src_R{round(out3$coef[3], 4)}= and $\beta_3$ = \texttt{src\_R\{round(out3\$coef[4], 4)\}} \end{verbatim} \section{Example 2} \label{sec-2} Using example environment \begin{verbatim} were $\beta_2$ = src_R{round(out3$coef[3], 4)} and $\beta_3$ = src_R{round(out3$coef[4], 4)} \end{verbatim} Stephen
[O] cleaning all the #+results from an org document
Is there an easy way to delete all the #+results: blocks that have been generated as the result of running org mode blocks? e.g. If I have the following chunk: #+begin_src R round(runif(n=5, min=0, max=1), 3) #+end_src #+results: | 0.435 | | 0.884 | | 0.219 | | 0.748 | | 0.532 | I'd like the results table to be deleted, but not the code chunk. Stephen
[O] updating drift.org on Worg
I've had an attempt at updating drift.org on Worg (currently in Worg/FIXME) so that it compiles in today's org mode. Can some kind soul check if this patch works? I've put brief comments at the end as to what I've changed, and note also for some reason the strange rendering of p[1] - X1/N in the .tex file as: p\footnotemark[1] - X1/N Is that a bug? (I've also just emailed Matt for write access to Worg.) Thanks, Stephen diff --git a/FIXME/drift.org b/FIXME/drift.org index 7d4b921..88fbf3e 100644 --- a/FIXME/drift.org +++ b/FIXME/drift.org @@ -1,4 +1,5 @@ #+title: Genetic drift +#+author: Dan Davison #+seq_todo: TODO | DONE #+property: cache no @@ -9,15 +10,13 @@ are two genetic types: red and blue[fn:1]. Here is the initial generation of the population (N=10). -#+begin_src ditaa :file drift-1-gen.png :cmdline -r :exports both +#+begin_src ditaa :file drift-1-gen.png :cmdline -r :exports results /+ /+ /+ /+ /+ /+ /+ /+ /+ /+ Generation 1|cRED| |cBLU| |cBLU| |cBLU| |cRED| |cRED| |cBLU| |cRED| |cRED| |cRED| || || || || || || || || | | || +/ +/ +/ +/ +/ +/ +/ +/ +/ +/ #+end_src -#+results: -[[file:../../../images/babel/drift-1-gen.png]] There is no mutation, no selection and no sex; the next generation is made up by randomly choosing 10 individuals from the previous generation[fn:2]. A single individual can be chosen more than once, @@ -29,7 +28,7 @@ So the first two generations might look like this. -#+begin_src ditaa :file drift-2-gen.png :cmdline -r :exports both +#+begin_src ditaa :file drift-2-gen.png :cmdline -r :exports results /+ /+ /+ /+ /+ /+ /+ /+ /+ /+ Generation 1|cRED| |cBLU| |cBLU| |cBLU| |cRED| |cRED| |cBLU| |cRED| |cRED| |cRED| || || || || || || || || | | || @@ -40,10 +39,6 @@ +/ +/ +/ +/ +/ +/ +/ +/ +/ +/ #+end_src -#+results: -[[file:../../../images/babel/drift-2-gen.png]] - - This is a form of evolution called genetic drift. It is inevitable, although if the population is very large it will have less effect. @@ -55,22 +50,19 @@ success probability 0.6. In general, the random process is described by the following transition probabilities. -#+begin_src latex :file transprob.png +#+begin_src latex :file transprob.png :exports results \begin{equation} \Pr(X_t=j|X_{t-1}=i) = \frac{j(j-1)}{2}\Big(\frac{i}{N}\Big)^j\Big(\frac{N-i}{N}\Big)^{n-j} \end{equation} #+end_src -#+results: -[[file:../../../images/babel/transprob.png]] - We can simulate the evolution over many generations in R. This code simulates the change in frequency in a single population over 100 generations. We'll make the population larger (N=1000) but still start off with 60% red individuals. #+source: simpledrift(N=1000, X1=600, ngens=100) -#+begin_src R :file simpledrift.png :exports code +#+begin_src R :file simpledrift.png :exports both :results graphics p - numeric(ngens) p[1] - X1/N for(g in 2:ngens) @@ -78,9 +70,6 @@ plot(p, type=l, ylim=c(0,1), xlab=Generation, ylab=Proportion red) #+end_src -#+results[03beb832ebe2136388baae04b9f9e699af5d0426]: simpledrift -[[file:../../../images/babel/simpledrift.png]] - But how variable is this process? To answer this we need to repeat the simulation many times (i.e. simulate many identical but independent populations). We could do that as follows @@ -115,40 +104,32 @@ To run the simulation: #+source: drift(N=1000, X1=600, nreps=10, ngens=100) -#+begin_src R :session t :file repdrift.png :exports code +#+begin_src R :session t :file repdrift.png :exports both :results graphics p - drift.faster(N, X1, ngens, nreps) matplot(p, type=l, ylim=c(0,1), lty=1) #+end_src -#+results[685ae7b4150a9413db180d2917384052ec288ab5]: drift -[[file:../../../images/babel/repdrift.png]] And let's quickly see how much of a speed difference the vectorisation makes. #+source: compare-times(N=1000, X1=600, nreps=1000, ngens=100) -#+begin_src R :session t :colnames t :results output +#+begin_src R :session t :colnames t :results output :exports both functions - c(drift.slow=drift.slow, drift.faster=drift.faster) times - sapply(functions, function(f) as.numeric(system.time(f(N, X1, ngens, nreps))[1])) print(times) cat(sprintf(\nFactor speed-up = %.1f\n, times[1] / times[2])) #+end_src -#+results[ba4b29e0bf6cc6da506361b76253285f7eab31a9]: compare-times - : drift.slow drift.faster - :6.0640.204 - : - : Factor speed-up = 29.7 - * Footnotes - [fn:1] Every individual is chacterised by a single type; no sex, - recombination, mutation, selection, etc.
Re: [O] cleaning all the #+results from an org document
If you don't want the results to be produced at all, you can always use the babel header option[1] :results silent. Thanks Suvayu, I'm gradually learning about all the various ways output can be exported vs shown in the org buffer. Am I right in understanding that :results silent just affects whether or not output is written into the .org buffer, not whether it is exported or not (e.g. into html?) Stephen
[O] Pattch to org.texi: Document :eval no
Small patch attached, thanks Seb for pointing this out. Stephen diff --git a/doc/org.texi b/doc/org.texi index 3ecf897..eb45885 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -12990,10 +12990,10 @@ permissions of the tangled file are set to make it executable. @subsubsection @code{:eval} The @code{:eval} header argument can be used to limit the evaluation of specific code blocks. @code{:eval} accepts two arguments ``never'' and -``query''. @code{:eval never} will ensure that a code block is never -evaluated, this can be useful for protecting against the evaluation of -dangerous code blocks. @code{:eval query} will require a query for every -execution of a code block regardless of the value of the +``query''. @code{:eval never} (or @code{:eval no}) will ensure that a code +block is never evaluated, this can be useful for protecting against the +evaluation of dangerous code blocks. @code{:eval query} will require a query +for every execution of a code block regardless of the value of the @code{org-confirm-babel-evaluate} variable. If this header argument is not set then evaluation is determined by the value
Re: [O] cleaning all the #+results from an org document
Thanks Torsten, you've expressed it elegantly! a) send it to someone without the results (to let him create his own) b) archive them without having possible huge amount of lines of results which can be reproduced any time by executing the block again. c) to delete all the old results and start fresh I was mostly thinking about b (for putting into version control) and c, for giving to students to try out. Stephen
Re: [O] Problems getting dropbox support on MobileOrg
Thank you very much Max! This works great. Thanks for your help, and to Matt Jones for the app. Stephen see Dropbox authentication. Should the MobileOrg folder have been created for me on my Dropbox site? (It looks like it is automatically created on the iphone app). Nothing was created, either before or after attempting to sync. So, I then manually created MobileOrg folder, and tried to Sync again, but no joy. No you need to create the folder from the Emacs side. Example setup; 1. Install dropbox on your linux/windows box 2. Make sure its started (setsid ~/.dropbox-dist/dropboxd) 3. mkdir ~/Dropbox/syncdir 4. From emacs (setq org-mobile-directory ~/Dropbox/syncdir) M-x org-mobile-push 5. From Android, Settings - Configure Synchronizer - Path /syncdir/index.org 6. From Android: Sync Enjoy I recently submitted a few patches for org-mobile android developer, that fix a few annoying problems (ie back button resetting the view to 1st element), there should be a new version released soon with these fixes.
[O] Problems getting dropbox support on MobileOrg
I have an android phone, and have installed MobileOrg; I'd like to use the dropbox support. I seem to have logged in okay via MobileOrg, as I see Dropbox authentication. Should the MobileOrg folder have been created for me on my Dropbox site? (It looks like it is automatically created on the iphone app). Nothing was created, either before or after attempting to sync. So, I then manually created MobileOrg folder, and tried to Sync again, but no joy. I have also installed the Dropbox app, and can confirm that my phone can browse my Dropbox folder using that app. Any hints for how to debug? thanks. Stephen
Re: [O] Bug: Org-Babel Mode R Plot Output to LaTeX File [Babel] [7.5]
however they do not affect the generated latex code. Luckily Org-mode does support passing information like image width to latex figures. See my attached version of your test file which uses #+ATTR_LaTeX lines to specify the width during LaTeX export. hi Eric, why is the default width 10em for latex graphics? (Or at least, how can I change this default? thanks, Stephen
[O] patch for doc string typos in org-mobile.el
--- org-mobile.el~ 2010-04-03 23:26:09.0 +0100 +++ org-mobile.el 2011-06-28 09:47:17.0 +0100 @@ -86,12 +86,12 @@ :type 'file) (defcustom org-mobile-force-id-on-agenda-items t - Non-nil means make all agenda items carry and ID. + Non-nil means make all agenda items carry an ID. :group 'org-mobile :type 'boolean) (defcustom org-mobile-force-mobile-change nil - Non-nil means, force the change made on the mobile device. + Non-nil means force the change made on the mobile device. So even if there have been changes to the computer version of the entry, force the new value set on the mobile. When nil, mark the entry from the mobile with an error message.
Re: [O] Status google calendar sync
Eric S Fraga e.fr...@ucl.ac.uk wrote: Stephen Eglen s.j.eg...@damtp.cam.ac.uk writes: Thank you very much Arun, this page looks great: http://orgmode.org/worg/org-tutorials/org-google-sync.html When going from org - google, do I need to do anything about using org-icalendar-store-UID? I'd rather not have to populate my org files with :ID: entries. Stephen The UID entries are necessary if you intend to upload a file that contains entries that you previously uploaded. Without these, any pre-existing entry will be duplicated in google's calendar. Thanks Eric. Reading around a bit, there seems to be a bit of disquiet about how google calendar reads .ics files, e.g.: http://www.google.com/support/forum/p/Calendar/thread?tid=3fad85f47a70864bhl=en In particular, it seems odd that there is so much uncertainty about the interval with which google calendar re-reads the .ics file and updates the calendar. I don't mind hitting a *refresh* button within a calendar to manually force a resync, but there doesn't seem to be such a button! I think what I'm looking for is a *read-only* solution so that google calendar just renders the current orgmode.ics file read from the web, rather than recalling what events were previously read in.(I don't need to write to this calendar, as my org files are the master.) In this way, I would hope the ID entries would not be required. I'm still in the first days of using my new android phone, so I may be missing something, but there seemed no other decent calendar tool on the android market that would just read and render an .ics file from the web.I did however find this: https://market.android.com/details?id=org.nightlabs.android.icssync which sounds useful. Has anyone else seen/tried this? Stephen
Re: [O] Status google calendar sync
Was there any update regarding this interesting topic? I'm keen to get something working - what is current best practice for getting .ics files made by org put onto google calendar, so that I can view them on android? Thanks, Stephen Konrad Hinsen konrad.hin...@fastmail.net writes: On 14 Feb 2011, at 22:39, Marcelo de Moraes Serpa wrote: This would be awesome, and I think this is the path the emacs developers should take -- separating emacs into two, the GUI and the core elisp interpreter. I'm sure this wouldn't be easy, but imagine Emacs already has a batch mode, and very different GUI layers (terminal, X11, Mac, Windows), so I'd suspect that a no GUI version that can be compiled anywhere would not be so difficult. It may be more difficult to make a separate GUI layer, but that wouldn't be very important either from a practical point of view. BTW, another Emacs GUI I'd like to see is a Web-based one. Imagine connecting to your home machine from a Web browser and getting access to a copy of Emacs running there! Konrad. ___ 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: [O] Status google calendar sync
Thank you very much Arun, this page looks great: http://orgmode.org/worg/org-tutorials/org-google-sync.html When going from org - google, do I need to do anything about using org-icalendar-store-UID? I'd rather not have to populate my org files with :ID: entries. Stephen
[O] Re: zotero (or mendeley) integration with org
Agreed. Google Scholar citations need very close proofreading, as they can be erroneous or poorly formatted. Thanks Matt - I'd agree with this, having seen oddities from google scholar. I emailed them ages ago about one problem (formatting of initials in author names), but never heard back... it is a pity that there is no mechanism for tidying up their references, as it seems to be the best thing out there that covers all the fields. Having said that, if google scholar can save me some typing, I'll happilyuse it as a starting point for a bibtex entry. I've just started using pdfmeat -- this is nice, as given a pdf, it outputs the corresponding bibtex entry from google scholar. Probably works similar to the way zotero does it, but can be used straight from the command line: http://code.google.com/p/pdfmeat/ (Warning: I couldn't get one of the python dependencies, unidecode, to work on mac, but it does work on ubuntu for me.) accessed by bibsnarf are limited to math and sciences. Since I use biblatex together with the Chicago Manual of Style, any bibtex entry I clip has to be edited and tweaked substantially. (Indeed, manual editing is unavoidable when using biblatex.) If its not too tangential, why do you use biblatex -- is it the future for bibtex? Thanks for summarising your workflow, very helpful. Stephen
Re: [O] zotero (or mendeley) integration with org
Dear all, Thanks for the informative replies. I gave zotero a short-test yesterday,and in general liked what I found, although as it uses sql databases, it is moves away from my preference for plain text files to see everything in. I appreciate that sql may scale better, but I don't have huge databases. I think I'll continue to watch how the zotero standalone develops. In the meantime, it made me think a bit more about looking after pdf collections. I'll try out using org mode for annotating my pdfs, to see how that works. I had not seen recoll before, that certainly looks nice. Will feedback to the list if I have anything useful to add. Stephen
[O] zotero (or mendeley) integration with org
There was a mail-thread lastyear about zotero and integration with org. Now that there is an alpha release of 'org-standalone' http://www.zotero.org/blog/2011/02/ has anyone looked at whether this helps integrate org and zotero? I've not yet switched to a pdf manager (they're all stuffed into a folder, with a few subfolders, and the only meta-data is in the filename!), so I'd appreciate hearing what others to do to look after their pdfs. Mendeley is a possibility too (although syncing between machines is a must, and Mendeley doesn't offer that yet.) Stephen
[O] Re: latex export issue
Thanks Nicolas and Scot for your feedback. I think the fill approach will probably catch most issues. Stephen
[O] latex export issue
With the following minimal org buffer: Simple test here here here here here here here here here here here here here here 2010. here here here here here here here here here here here here here here here here here here here here here here here here here here when I export this to latex, I get: -- \title{Simple test} \author{Stephen Eglen} \date{09 March 2011} \maketitle \setcounter{tocdepth}{3} \tableofcontents \vspace*{1cm} here here here here here here here here here here here here here here \begin{enumerate} \item here here here here here here here here here here here here \end{enumerate} here here here here here here here here here here here here here here \end{document} -- This is modified from a real case; is there any way that the 2010. can be interpreted as the end of the sentence rather than the start of a enumerate list? (I have fixed it for now by reformatting my paragraph so that 2010 does not begin the line.) I get similar behaviour with html export. Thanks, Stephen
[Orgmode] Re: A mail client that is org-mode compatible
Hi every one, I would like to move to an emacs mail client that may be org-mode and MIME compatible. Have you any idea ? I switched to using MH-E (from VM) a couple of years ago. I did try GNUS but found it a bit too overwhelming. Overall, I'm happy with MH-E -- I like that it comes wiht Emacs, and so the code tends to be actively maintained, which was not the case for VM. (However, VM is now under new developers, so you may find it works better.) The search engine mairix works well too with MH-E. Org knows about MH-E in that for example, org-store-link works when you are reading a message in MH-E. The notmuch mailing list in the last few days has had some discussion about org support, so you might want to read those comments. I am tempted to look at notmuch, so would be curious about what other people think. Stephen ___ 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-mhe-store-link alters window layout
If I run M-x org-store-link when my current emacs frame is just showing one MH-E window (and nothing else in the frame), e.g. the show-+inbox buffer, then the link to that email is created okay, but the window frames are altered so that the +inbox summary window is also shown. In general, the previous window contents are forgotten. I suggest adding a 'save-window-excursion' into org-mhe-store-link so that the window arrangement is preserved on exit from the function. Patch below is long just because of the extra indentation. Stephen diff --git a/lisp/org-mhe.el b/lisp/org-mhe.el index c384062..c9b0481 100644 --- a/lisp/org-mhe.el +++ b/lisp/org-mhe.el @@ -83,27 +83,28 @@ supported by MH-E. Store a link to an MH-E folder or message. (when (or (equal major-mode 'mh-folder-mode) (equal major-mode 'mh-show-mode)) -(let* ((from (org-mhe-get-header From:)) - (to (org-mhe-get-header To:)) - (message-id (org-mhe-get-header Message-Id:)) - (subject (org-mhe-get-header Subject:)) - (date (org-mhe-get-header Date:)) - (date-ts (and date (format-time-string - (org-time-stamp-format t) (date-to-time date - (date-ts-ia (and date (format-time-string - (org-time-stamp-format t t) - (date-to-time date - link desc) - (org-store-link-props :type mh :from from :to to - :subject subject :message-id message-id) - (when date - (org-add-link-props :date date :date-timestamp date-ts - :date-timestamp-inactive date-ts-ia)) - (setq desc (org-email-link-description)) - (setq link (org-make-link mhe: (org-mhe-get-message-real-folder) # - (org-remove-angle-brackets message-id))) - (org-add-link-props :link link :description desc) - link))) +(save-window-excursion + (let* ((from (org-mhe-get-header From:)) +(to (org-mhe-get-header To:)) +(message-id (org-mhe-get-header Message-Id:)) +(subject (org-mhe-get-header Subject:)) +(date (org-mhe-get-header Date:)) +(date-ts (and date (format-time-string +(org-time-stamp-format t) (date-to-time date +(date-ts-ia (and date (format-time-string + (org-time-stamp-format t t) + (date-to-time date +link desc) + (org-store-link-props :type mh :from from :to to + :subject subject :message-id message-id) + (when date + (org-add-link-props :date date :date-timestamp date-ts + :date-timestamp-inactive date-ts-ia)) + (setq desc (org-email-link-description)) + (setq link (org-make-link mhe: (org-mhe-get-message-real-folder) # + (org-remove-angle-brackets message-id))) + (org-add-link-props :link link :description desc) + link (defun org-mhe-open (path) Follow an MH-E message link specified by PATH. ___ 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] window rearrangements when exporting to pdf
I've found the following odd behaviour in windows being re-arranged within a frame. It is not bothering me too much (yet), but I thought I'd report it in case others see it. If I start emacs, and maximise it on my desktop machine, it is wide enough to allow two full windows side-by-side (i.e. left-to-right) when I do C-x 3. (window-width) reports 103 in each window. If I view say *scratch* in my left window, and an org buffer in the right window, then do C-c C-e, the org buffer is then shown in the left window, and the temp buffer (*Org Export/Publishing Help*) appears in the right window. So, the org buffer temporarily switches from left to right. When I then hit say 'd' to complete the export (to tex-pdf), the original window configuration (*scratch* in left, org in right) returns. Is this desired behaviour? It seems a little odd that the org buffer would be pushed temporarily into a different window whilst the help is displayed. I would expect the help buffer to appear in the left window. (If I start with the org buffer in the left window, the temp buffer appears in the right window, as expected.) (emacs-version) GNU Emacs 23.2.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.20.0) of 2010-05-24 on maps My guess would be that org-fit-window-to-buffer is doing this. Stephen ___ 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: window rearrangements when exporting to pdf
My guess would be that org-fit-window-to-buffer is doing this. It seems more likely that the call to delete-other-windows in org-export is the cause of the problem. Can you try removing it to see what happens. I presume it is there in case you have an Org buffer and /many/ other small buffers, in that case you don't want to pop up the help message in one of the small buffers, because you might not see it all. Thanks Lawrence -- you were right! If I comment out that call to (delete-other-windows) in org-export, all works just nicely. Stephen ___ 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: Beamer and notes blocks
Jeff Horn jrhorn...@gmail.com writes: Could someone enlighten me as to how to get blocks with the beamer environment notes to show up? Specifically, I don't want notes to show up in the presentation (the default, expected behavior), but I would like them to show up in a speaker notes pdf. How are you producing speaker notes for your Beamer presentations using org-export? At the moment, my solution is to add: #+LaTeX_CLASS_OPTIONS: [notes] into your .org file when you want the beamer notes added, and disable that line (e.g. put a space after the hash) when you don't want the notes included. Is there another way though? Stephen ___ 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: Beamer and notes blocks
into your .org file when you want the beamer notes added, and disable that line (e.g. put a space after the hash) when you don't want the notes included. Is there another way though? I am not sure. But maybe you could try to specify what a good interfact for notes would look like? Yes, will do. The approach above is similar to what I do for beamer slides in .tex, so I'm used to this approach. I have just used org mode to make beamer slides for several lectures this term, and once term finishes, I'll think further and write some notes/examples. Stephen ___ 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] Inserting text into the head part of an HTML document?
Thanks Nick and Erik! I just tried #+STYLE: meta name=robots content=noindex, nofollow / which does what I was after. I think this should be documented - so I'll draft a patch. Stephen ___ 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] Inserting text into the head part of an HTML document?
which does what I was after. I think this should be documented - so I'll draft a patch. no need - I see its already there, I just missed it before. (section 12.5.7 CSS support) Stephen ___ 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] Inserting text into the head part of an HTML document?
I'm using org-mode to export an html file of my org file. I'd like to add the following line to the head ... /head section of the document: #+HTML: meta name=robots content=noindex, nofollow / [This line tells search indexes not to index the file. http://www.google.com/support/webmasters/bin/answer.py?hl=enanswer=93710 ] but the HTML directive puts it in the body, rather than the head. Any ideas how I'd get it into the head? I tried +HTML_HEADER as an analogy to LATEX_HEADER, but that doesn't seem to be defined. Thanks, Stephen org-version 7.02trans ___ 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: Meetup/conference
Robert Goldman rpgold...@sift.info writes: Since we're talking about meet-ups, I'd like to say it would be great to see an informal org-mode meet-up attached to other conferences one might attend. Not as an alternative to the Hawaii proposal, but as an also. I will be presenting a tutorial on Emacs Speaks Statistics at next year's R conference. This will include some time devoted to org-babel, of course focused towards R usage. http://www.warwick.ac.uk/statsdept/useR-2011/ Stephen ___ 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] Tilde in URL not exported to latex
chris.m.mal...@gmail.com wrote: I recently experienced this issue while adding a reference in a beamer presentation using org-mode. It isn't elegant, but my workaround was to use \ sim instead of the tilde character, at least for what is actually displayed in the document - you will still need to use tilde for the actual URL link. Thanks for this Chris. My workaround right now is to do the following in .org buffer: #+LaTeX: \url{http://www-cs-faculty.stanford.edu/~uno/lp.html} This handles the URLs just as I'd want to. (I do hate typing '#+LaTeX:' though, but that's for me to deal with!) I'm also using org here to make a beamer presentation, and in general it works quite well. I do find myself wishing to resort to latex commands a lot though ... but still I do like the feel of org for presentations. Best wishes, Stephen ___ 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] Tilde in URL not exported to latex
With the following file (a.tex): * Intro This is an example file that I would like to export Note that the URL has a tilde in it. http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html When I do C-c C-e d in this buffer, the latex - pdf exporter displays a pdf, but I see that the tilde in the URL appears above the following character (l). If I click on the link it works just fine and takes me to the page. In the tex file, I see it has been exported as: \href{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html} {http://www.stat.uni-muenchen.de/\~leisch/Sweave/FAQ.html} (my line breaking added). Is the above expected behaviour? Do I have to mark up my URLs differently? Org mode recognises it as a url, judging by the font locking. I often use url to format URLs, i.e. this works just fine: \url{http://www.stat.uni-muenchen.de/~leisch/Sweave/FAQ.html} Thanks, Stephen ___ 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] small typo in docstring of org-beamer.el (herder - header)
git diff lisp/org-beamer.el diff --git a/lisp/org-beamer.el b/lisp/org-beamer.el index 2631e70..49b3499 100644 --- a/lisp/org-beamer.el +++ b/lisp/org-beamer.el @@ -382,7 +382,7 @@ The need to be after the begin statement of the environment. (insert dovl))) (defun org-beamer-amend-header () - Add `org-beamer-header-extra' to the LaTeX herder. + Add `org-beamer-header-extra' to the LaTeX header. If the file contains the string BEAMER-HEADER-EXTRA-HERE on a line by itself, it will be replaced with `org-beamer-header-extra'. If not, the value will be inserted right after the documentclass statement. ___ 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: [babel] Writing R-packages the org way?
Dan Davison davi...@stats.ox.ac.uk writes: Hi Chuck, I agree about making use of existing ESS tools and that a more traditional Org approach might be appropriate. this may be slightly off-topic, but another way of adding documentation is to the 'roxygen' markup. http://roxygen.org/ ESS has some support for editing roxygen comment chunks within ESS buffers, Stephen ___ 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] Tips for writing lecture notes in org-beamer?
Dear all, Has anyone recently used org-beamer to write lecture notes? I'm now updating my lecture notes on a R course, which previously I wrote in latex with beamer. I'm intrigued by the possibility of using org mode directly, although I am yet to be convinced whether it will be any easier than using auctex directly. Has anyone written a set of lecture notes recently in org mode, to persuade me? For example, see http://www.damtp.cam.ac.uk/user/eglen/emacs/beamer.txt for how I set up emacs with beamer, so that e.g. the table of contents feature from reftex-toc works. Also, I have auctex set up so that C-M-x sends the current slide to latex for processing, so that I can just see how the current slide gets typeset rather than recompiling the whole document. Can I process just the current slide in org mode? So far I've found the following two sites useful: http://emacs-fu.blogspot.com/2009/10/writing-presentations-with-org-mode-and.html http://orgmode.org/worg/org-tutorials/org-beamer/tutorial.php [In this tutorial.php, the link in footnote 1 is brokenn -- how do I download presentation.org?] For those interested, my R lecture notes (both .tex and beamer pdf) are freely available as accompanying material for a paper I wrote last year: http://www.ploscompbiol.org/doi/pcbi.1000482 If I make significant progress with org mode and beamer, I'd be happy to provide extra materials. Best wishes, Stephen ___ 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: Adding entries to Google calendar
hi Matt, Carsten accepted a patch of mine a while ago that allows you to do stuff like the following from the agenda: i d RET 09:00-09:30 meeting with Joe and the time is extracted from the text you enter, if you set: (setq org-agenda-insert-diary-extract-time t) this is super, stephen thank you. Great. I should make the docstring for that variable a bit more informative, if it has n1 user! for a real two-way sync to work with this method, I think we need access to uid's of google calendar events. If I read the documentation properly, the underlying gdata-python library doesn't support uid queries. So I filed an enhancement bug: http://code.google.com/p/gdata-python-client/issues/detail?id=444q=uid maybe someone with a better coding sense can improve it; in any case, we can all follow its progress at that url. That's a good idea. I was keen to see if I could upload my 'org.ics' file generated by org mode using 'C-c C-e c' to google. So effectively I just use google to be a read-only version of my agenda. That doesn't seem to be possible either from what I read, but I thought I saw it was on a list of future projects. Stephen ___ 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: Adding entries to Google calendar
Matt Price mopto...@gmail.com writes: - as I understand it this system will only work with entries that have been added via i in a calendar-mode org agenda view. When I try to add items this way I am never prompted for a time, only a date. Am I missing something here? hi Matt, Carsten accepted a patch of mine a while ago that allows you to do stuff like the following from the agenda: i d RET 09:00-09:30 meeting with Joe and the time is extracted from the text you enter, if you set: (setq org-agenda-insert-diary-extract-time t) Stephen ___ 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.texi patch for small typo
diff --git a/doc/org.texi b/doc/org.texi index 2e61ddf..4ce32ce 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -11176,10 +11176,10 @@ Include the code block in the tangled output to file @samp{filename}. @kindex C-c C-v t @subsubheading Functions @table @code -...@item org-babel-tangle @kbd{C-c C-v t} -Tangle the current file. +...@item org-babel-tangle +Tangle the current file. Bound to @kbd{C-c C-v t}. @item org-babel-tangle-file -Choose a file to tangle. +Choose a file to tangle. Bound to @kbd{C-c C-v f}. @end table @subsubheading Hooks ___ 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: possible bug in latex export [7.01trans (release_6.36.735.g15ca.dirty)]
Thanks David, and apologies for not checking the archives. I'll put bugfixing it my todo list! Stephen ___ 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] patch for org mode
hi Carsten, sorry for delay. +...@comment SJE: org-feed is not autoloaded - should that be mentioned? The main entry points in org-feed are autoloaded - what do you mean here? sorry, no worries, I hadn't tried running the code, so the org-feed-alist was not visible as a variable. By the way, Mark Scala recently posted the following excellent snippet: (setq org-feed-alist '((Slashdot http://rss.slashdot.org/Slashdot/slashdot; ~/txt/org/feeds.org Slashdot Entries))) That would make for a better example than the one currently in the documentation, as everyone should be able to run it. Best, stephen ___ 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 for org mode
Here is a patch for the 'capture' section of org.texi . I've added a few lines of @comments: +...@comment SJE: Should be Org file or Org-mode file (see prev two items)? +...@comment SJE: should these sentences terminate in period? (i.e. the following lines in the table) +...@comment SJE: org-feed is not autoloaded - should that be mentioned? Stephen diff --git a/doc/org.texi b/doc/org.texi index da5cf12..a9daf19 100644 --- a/doc/org.texi +++ b/doc/org.texi @@ -260,7 +260,7 @@ Capture - Refile - Archive Capture -* Setting up a capture location:: Where notes will be stored +* Setting up capture:: Where notes will be stored * Using capture:: Commands to invoke and terminate capture * Capture templates:: Define the outline of different note types @@ -5904,11 +5904,10 @@ trees to an archive file keeps the system compact and fast. @cindex capture Org's method for capturing new items is heavily inspired by John Wiegley -excellent remember package. Up to version 6.36 Org did actually use a -special setup for @file{remember.el}. @file{org-remember.el} is still part -of Org-mode for backward compatibility with existing setups. You can find -the documentation for org-remember at -...@url{http://orgmode.org/org-remember.pdf}. +excellent remember package. Up to version 6.36 Org used a special setup +for @file{remember.el}. @file{org-remember.el} is still part of Org-mode for +backward compatibility with existing setups. You can find the documentation +for org-remember at @url{http://orgmode.org/org-remember.pdf}. The new capturing setup described here is preferred and should be used by new users. To convert your @code{org-remember-templates}, run the command @@ -5917,32 +5916,32 @@ users. To convert your @code{org-remember-templates}, run the command @end example @noindent and then customize the new variable with @kbd{M-x customize-variable org-capture-templates}, check the result, and save the -customization. You will then be able to use both remember and capture until -you have gotten used to the new mechanism. +customization. You can then use both remember and capture until +you are familiar with the new mechanism. -Capture lets you store quick notes with little interruption of your work +Capture lets you quickly store notes with little interruption of your work flow. The basic process of capturing is very similar to remember, but Org does enhance it with templates and more. @menu -* Setting up a capture location:: Where notes will be stored +* Setting up capture:: Where notes will be stored * Using capture:: Commands to invoke and terminate capture * Capture templates:: Define the outline of different note types @end menu -...@node Setting up a capture location, Using capture, Capture, Capture -...@subsection Setting up a capture location +...@node Setting up capture, Using capture, Capture, Capture +...@subsection Setting up capture The following customization sets a default target file for notes, and defines a global k...@footnote{please select your own key, @kbd{C-c c} is only a -suggestion.} for capturing new stuff. +suggestion.} for capturing new material. @example (setq org-default-notes-file (concat org-directory /notes.org)) (define-key global-map \C-cc 'org-capture) @end example -...@node Using capture, Capture templates, Setting up a capture location, Capture +...@node Using capture, Capture templates, Setting up capture, Capture @subsection Using capture @table @kbd @@ -5956,14 +5955,14 @@ node. You may then insert the information you want. @kindex C-c C-c @item C-c C-c -Once you are done entering information into the capture buffer, +Once you have finished entering information into the capture buffer, @kbd{C-c C-c} will return you to the window configuration before the capture process, so that you can resume your work without further distraction. @kindex C-c C-w @item C-c C-w -When this command is used in the capture buffer, it will finalize the capture -process by refiling (@pxref{Refiling notes}) the note to a different place. +Finalize the capture process by refiling (@pxref{Refiling notes}) the note to +a different place. @kindex C-c C-k @item C-c C-k @@ -5979,8 +5978,8 @@ rather than to the current date. @subsection Capture templates @cindex templates, for Capture -You can use templates to arrange for different types of capture items, and -for different target locations. The easiest way to set up such templates is +You can use templates for different types of capture items, and +for different target locations. The easiest way to create such templates is through the customize interface. @table @kbd @@ -5994,7 +5993,7 @@ an example. Say you would like to use one template to create general TODO entries, and you want to put these entries under the heading @samp{Tasks} in your file @file{~/org/gtd.org}. Also, a date tree in the file
[Orgmode] Small doc fixes to org-feed.el and org-capture.el
diff --git a/lisp/org-feed.el b/lisp/org-feed.el index cda7368..999bfd8 100644 --- a/lisp/org-feed.el +++ b/lisp/org-feed.el @@ -45,7 +45,7 @@ ;; With this setup, the command `M-x org-feed-update-all' will ;; collect new entries in the feed at the given URL and create ;; entries as subheadings under the ReQall Entries heading in the -;; file ~/org-feeds.org. Each feed should normally have its own +;; file ~/org/feeds.org. Each feed should normally have its own ;; heading - however see the `:drawer' parameter. ;; ;; Besides these standard elements that need to be specified for each diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 8c887ce..fde5093 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -336,7 +336,7 @@ for a Remember buffer.) (defun org-capture (optional goto keys) Capture something. -This will let you select a template from org-capture-templates, and then +This will let you select a template from `org-capture-templates', and then file new captured information. The text is immediately inserted at the target location, and an indirect buffer is shown where you can edit it. Pressing `C-c C-c' brings you back to the previous state of Emacs, ___ 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: New to org-capture (and org-remember)
Memnon Anon gegendosenflei...@googlemail.com wrote: Stephen Eglen s.j.eg...@damtp.cam.ac.uk writes: I'd like to try out org-capture. I've never used org-remember before so I have no templates to convert. Do I make the new ones in pretty much the same way as the manual describes for org-remember? Or should I be patient, and wait for org-capture to stabilise? Hi, to quote the fine manual: ,[ (info (org)Capture templates) ] | You can use templates to arrange for different types of capture items, | and for different target locations. The easiest way to set up such | templates is through the customize interface. | | `C-c c C' | Customize the variable `org-capture-templates'. ` Is your documentation uptodate? You should find all the information in 9.1 Capture and its subnodes to get you started. Argh, org-capture.el is not part of the current stable release. So, if you want to try, you need the development version, either with git or download org-latest (link is on orgmode.org). If you still encounter any problems, please describe them so the documentation can be improved :). Thanks for this. I have read the nice docs (and found some small typos - will send a patch). One thing immediately struck me: sec 9.1.1. mentions setting: org-default-notes-file but I couldn't see that mentioned in the rest of the chapter. Its docstring would indicate its needed by remember.el, so perhaps there is no need any more to set org-default-notes-file? Stephen ___ 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] contrib/README
Thanks Carsten; Carsten Dominik carsten.domi...@gmail.com wrote: This one was removed because its functionality is included in Org babel. Files added and removed are usually listed in the list of user visible changes. I am not sure how to find it in git. I think I just found at least somethign (sorry, I'm new at git); git log within the contrib/lisp directory showed me indeed that it was removed on 31 Mar this year. A patch to update the README file would be appreciated. will do (soonish). S ___ 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] contrib/README
Here is a patch for contrib/README. I've not included though any mention of the new babel folder in contrib. Stephen diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 44db137..af18a84 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,9 @@ +2010-07-01 Stephen Eglen step...@gnu.org + + * README: Update list of emacs-lisp files so that list is in + sync with the files in lisp/ and in same order as 'ls -1' for + those files. + 2010-05-11 Carsten Dominik carsten.domi...@gmail.com * lisp/org-git-link.el (org-git-open) diff --git a/contrib/README b/contrib/README index bdc93d3..f8fe423 100644 --- a/contrib/README +++ b/contrib/README @@ -9,9 +9,11 @@ Please put your contribution in one of these three directories: LISP (emacs-lisp code) == - +htmlize.el --- Convert buffer text and decorations to HTML +org2rem.el --- Convert org appointments into reminders org-annotate-file.el --- Annotate a file with org syntax org-bookmark.el --- Links to bookmarks +org-checklist.el --- org functions for checklist handling org-choose.el--- Use TODO keywords to mark decision states org-collector.el --- Collect properties into tables org-contribdir.el--- Dummy file to mark the org contrib Lisp directory @@ -19,29 +21,30 @@ org-depend.el--- TODO dependencies for Org-mode org-elisp-symbol.el --- Org links to emacs-lisp symbols org-eval.el --- The lisp tag, adapted from Muse org-eval-light.el--- Evaluate in-buffer code on demand -org-expiry.el --- Expiry mechanism for Org entries org-exp-bibtex.el--- Export citations to LaTeX and HTML +org-expiry.el --- Expiry mechanism for Org entries org-export-generic.el--- Export framework for configurable backends org-git-link.el --- Provide org links to specific file version org-interactive-query.el --- Interactive modification of tags query org-invoice.el --- Help manage client invoices in OrgMode org-jira.el --- Add a jira:ticket protocol to Org org-learn.el --- SuperMemo's incremental learning algorithm -org-mairix.el --- Hook mairix search into Org for different MUAs org-mac-iCal.el --- Imports events from iCal.app to the Emacs diary org-mac-link-grabber.el --- Grab links and URLs from various Mac applications +org-mairix.el --- Hook mairix search into Org for different MUAs org-man.el --- Support for links to manpages in Org-mode +org-mime.el --- org html export for text/html MIME emails org-mtags.el --- Support for some Muse-like tags in Org-mode org-panel.el --- Simple routines for us with bad memory -org-R.el --- Computation using the R language org-registry.el --- A registry for Org links -org2rem.el --- Convert org appointments into reminders org-screen.el--- Visit screen sessions through Org-mode links org-secretary.el --- Team management with org-mode org-special-blocks.el--- Turn blocks into LaTeX envs and HTML divs -org-track.el --- Keep up with Org development +orgtbl-sqlinsert.el --- Convert Org-mode tables to SQL insertions org-toc.el --- Table of contents for Org-mode buffer -orgtbl-sqlinsert.el --- Convert Org-mode tables to SQL insertions. +org-track.el --- Keep up with Org development + + PACKAGES @@ -51,4 +54,4 @@ SCRIPTS (shell, bash, etc.) dir2org.zsh --- Org compatible fs structure output org2hpda --- Generate hipster pda style printouts from Org-mode -ditaa.jar--- ASCII to PNG converter by Stathis Sideris, GPL \ No newline at end of file +ditaa.jar--- ASCII to PNG converter by Stathis Sideris, GPL ___ 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] contrib/README
Please that we no longer use ChangeLog, but that we place entries with similar syntax into the commit message and then later build ChangeLog from that. If you look at the final commit, you'll see what I mean. I see - neat idea about the ChangeLog. Can you still use 'C-x 4 a' from a buffer to help build the ChangeLog entries though which ultimately go in the commit messages? What's the workflow (sorry if this has been discussed before)? Stephen ___ 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] New to org-capture (and org-remember)
I'd like to try out org-capture. I've never used org-remember before so I have no templates to convert. Do I make the new ones in pretty much the same way as the manual describes for org-remember? Or should I be patient, and wait for org-capture to stabilise? Thanks, Stephen ___ 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-iswitchb documentation
THe doc string now reads: Use `org-icompleting-read' to prompt for an Org buffer to switch to. With a prefix argument, restrict available to files. With two prefix arguments, restrict available buffers to agenda files. This will either use ido or iswitchb for buffer name completion, depending on the variables `org-completion-use-iswitchb' and `org-completion-use-ido'. If both are nil, we will still use iswitchb for this special application. Hmmm... this sounds a bit confusing! why not just have org-completion-use-ido, and if that is non-nil, we use ido, else we use iswitchb. Unless these variables are also used in other contexts (which I doubt)? how about changing the 2nd para to: This will use iswitchb for buffer name completion, unless `org-completion-use-ido' is non-nil, to select ido completion Stephen ___ 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: Google calendar to org mode script and a feature request for agenda
does not get exported as a timed event. Obviously, the easy solution is to put the time in the date stamp. However, I like using the insert diary function in the agenda view for defining appointments and this doesn't allow the time to be specified other than in a headline. Would it be possible to enhance the insert diary function to prompt for a time (and while we're at it, tags as well)? hi Eric, I had a similar request, and we worked out a solution to this a while ago. In the agenda, try 'i d', and then type something like '11:00-11:45 Seminar with Bob', and the code should parse out the timestamp as long as you have the following variable set to t: (setq org-agenda-insert-diary-extract-time t) Stephen ___ 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-iswitchb documentation
Dear all, As the author of iswitchb, I was very happy to see M-x org-iswitchb included. Further, it is recommended as a default keybinding in the manual: -- 1.3 Activation == ... (add-to-list 'auto-mode-alist '(\\.org\\' . org-mode)) (global-set-key \C-cl 'org-store-link) (global-set-key \C-ca 'org-agenda) (global-set-key \C-cb 'org-iswitchb) -- So I was surprised when trying org-iswitchb that I didn't see the iswitchb feedback when typing buffer names. I eventually found that I needed to set either of the following variables to t so that this would work: org-completion-use-iswitchb, org-completion-use-ido These variables are not mentioned in the docstrings of either org-iswitchb or org-icompleting-read. Here is a suggested patch to the docstring for org-iswitchb. Thanks for all the good work, as ever! Stephen $ git diff org.el diff --git a/lisp/org.el b/lisp/org.el index 7bb4f45..67e0278 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -15201,7 +15201,13 @@ changes from another. I believe the procedure must be l (defun org-iswitchb (optional arg) Use `org-icompleting-read' to prompt for an Org buffer to switch to. With a prefix argument, restrict available to files. -With two prefix arguments, restrict available buffers to agenda files. +With two prefix arguments, restrict available buffers to agenda files. + +To see feedback whilst typing the buffer name, you can use the +facilities of either the ido or iswitchb package. Set either +`org-completion-use-iswitchb' or `org-completion-use-ido' to +non-nil and see documentation of those variables for further +details. (interactive P) (let ((blist (cond ((equal arg '(4)) (org-buffer-list 'files)) ((equal arg '(16)) (org-buffer-list 'agenda)) ___ 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-iswitchb documentation
Carsten Dominik carsten.domi...@gmail.com wrote: I think this is actually a bug. Since the command is called ...- iswitchb, I am sure the intention was to use iswitchbe. Later, when we added ido support as well, the function was rewritten using org-icompleting-read, and in this way the iswitchb support was lost. How about the following solution: Check if either of org-completion-use-\(ido\|iswitchb\) is set. If not, bind org-completion-use-iswitchb around the call to org-icompleting- read. Ok, now that makes a lot more sense! I wondered why the 'out-of-the-box' behaviour didn't show iswitchb like behaviour. Stephen ___ 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-iswitchb documentation
Carsten Dominik carsten.domi...@gmail.com wrote: Hi Stephen, I think this is actually a bug. Since the command is called ...- iswitchb, I am sure the intention was to use iswitchbe. Later, when we added ido support as well, the function was rewritten using org-icompleting-read, and in this way the iswitchb support was lost. p.s. one day I might imagine that iswitchb.el might disappear and be replaced by ido.el, which might make life easier, assuming that iswitchb hasn't diverged too much since Kim first made ido.el. What do you think Kim - should we just have ido.el in the emacs sources, and have iswitchb-mode configure ido.el to just do buffer searching? (Sorry Kim, this is a thread on emacs-orgmode, http://article.gmane.org/gmane.emacs.orgmode/26723) best wishes, Stephen ___ 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: icalendar: exporting times of day specified in heading?
hi Matt, When I enter the time of day after typing i d, the time of day is added to the timestamp (as above) but is *not* removed the headline. E.g., Day entry: 9:00am go shopping [RET] ...results in the following headline... * 9:00am go shopping 2010-03-17 Wed 09:00 that's odd; I just tried that and got: *** go shopping 2010-03-17 Wed 09:00 which then shows in the agenda as: agenda: 9:00.. go shopping I'd be curious to know whether others can duplicate this bug. me too! Do you get any better behaviour if you just put 9:00 or 09:00? Would be good to resolve this in case there is a bug lurking elsewhere... Might I request an independent variable for this? While I would like the agenda to scan my headlines for time of day specifications (and thus have org-agenda-search-headline-for-time set to t), I am not sure I want org-agenda-add-entry-to-org-agenda-diary-file to alter the information I enter at the Day entry: prompt. Certainly I'd be in agreement with that, as I don't want to jump on others preferences. Currently, org-agenda.el has (l 7079) (if org-agenda-search-headline-for-time to check whether we should extract the time; how about if I replaced it with a variable called org-agenda-extract-time-from-entry which defaults to nil so this behaviour is normally off? Sorry about this Matt. Stephen ___ 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