Re: [Orgmode] [PATCH] Detect Mac OS X in iCal import
Thanks. I did this in my local repository last September and completely forgot to submit it. Though curiously the contrib version seems to work fine on my Snow Leopard install. Best, Christopher On Tue, 30 Mar 2010 16:03:08 -0500, Jonathan Creekmore jonat...@thecreekmores.org wrote: This patch modifies the Mac OS X detection code to check for both Leopard and Snow Leopard, since they both store iCal events in separate files for Spotlight searching purposes. Jonathan diff --git a/contrib/lisp/org-mac-iCal.el b/contrib/lisp/org-mac-iCal.el index 0d0b4f8..2510aa7 100644 --- a/contrib/lisp/org-mac-iCal.el +++ b/contrib/lisp/org-mac-iCal.el @@ -98,8 +98,8 @@ the the Emacs diary ;; for each calendar, concatenate individual events into a single ics file (with-temp-buffer -(shell-command sw_vers *temp*) -(when (re-search-backward 10.5 nil t) +(shell-command sw_vers (current-buffer)) +(when (re-search-backward 10\\.[56] nil t) (omi-concat-leopard-ics all-calendars))) ;; move all caldav ics files to the same place as local ics files ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] org-mac-protocol, fully updated for 10.6 and with added applications
On Mon, 29 Mar 2010 13:28:31 +0200, Carsten Dominik carsten.domi...@gmail.com wrote: this is awesome! I guess this is a single elisp file? Then you should just send it to me when ready. I will add it and also make an entry for it in org-modules. There is a single elisp file, but there are also 6 AppleScripts and one Ruby script (AppleScript doesn't provide character escaping) that glue the whole thing together with other applications. How would you handle the installation when these scripts are in org/ contrib/mac-protocol/script or something like this. (Sorry, accidentally moved thread off-list) It would need to be a manual install as described in the documentation: http://github.com/claviclaws/org-mac-protocol/blob/master/org-mac-protocol.org Problem is that there are so many possible Emacsen with emacsclient residing in different places, that it would often be necessary for the user to edit one of the AppleScripts to point to their copy of emacsclient. I don't think the default org-mode Makefile installs stuff from the contrib directory? Or have I missed something regarding the installation of files in contrib? Best, Christopher ___ 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] [ANN] org-mac-protocol, fully updated for 10.6 and with added applications
A suite of scripts that allow the user to annotate their org-mode buffers without switching focus from other OS X applications. The following applications are currently supported: + Safari, including linking to multiple tabs + Mail + Address Book + Skim + BibDesk + Pages + Numbers + Keynote + iTunes + Finder + Terminal It's available, along with full documentation here: http://github.com/claviclaws/org-mac-protocol The AppleScripts interface with org-protocol.el to extract content from, and link to, documents and applications. Four modes of interaction are provided: =org-link= creates an org-mode link and adds it to =*Org Links*= and the kill-ring. =org-link-tabs= creates org-mode links to all tabs in the front Safari window and adds them to =*Org Links*= and the kill-ring. =org-remember= pops up a small =*Remember*= frame with links and, where possible, extracted content embedded. =org-note= pops up a small =*Remember*= frame for note taking independent of the document being worked on. Carsten - I think this org-mac-protocol is now mature enough to be considered for the contrib directory. If you agree, how would you like it packaged for inclusion? Best, Christopher ___ 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-mac-addressbook.el
On Sun, 21 Mar 2010 18:32:17 +0100, Carsten Dominik carsten.domi...@gmail.com wrote: this is awesome, thank you very much. Quite so. I would like to integrate this into org-mac-message.el - I don't think it makes much sense to put this into a separate file. My inclination is to integrate it into the almost complete org-mac-protocol. It seems to be working robustly on my system, but could use some better error handling at the AppleScript level in case things do go wrong. http://github.com/claviclaws/org-mac-protocol That way there is one consistent method of sending data to orgmode from OS X applications. Christopher, could I ask you to verify this code and work together with Alexander on integrating it (if Alexander agrees, of course). I'll take a closer look in the next couple of days. Best, Christopher ___ 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] Problem with org-mac-protocol
On Tue, 16 Feb 2010 09:47:40 +0100, Christian Zang christian.z...@fh-weihenstephan.de wrote: I installed org-mac-protocol according to the instructions in org-mac-protocol.org on Mac OS X 10.6 with Emacs CVS 23 and a very recent pull of org-mode from git. With my setup, there seems to be a problem with the AppleScript part of the implementation I cannot track down. If I call any of the scripts (org-link etc.) I get no reaction but a short deactivation of the frontmost window. The problem is that I haven't updated the distribution for 10.6. The URI Escape osax doesn't work on Snow Leopard. I've replaced it with a small Ruby script to do all the escaping and you can find the latest versions at github (may be buggy and the documentation is out of date): http://github.com/claviclaws/org-mac-protocol Note that the .applescript files will need opening in Script Editor and resaving as .scpt files. I really, really mean to rewrite the documentation and do a proper release (I also said this before Christmas) but I seemed to think that doing a doctorate alongside the rest of my work and moving house was a good idea, so I still haven't quite had the time. Best, Christopher ___ 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] Bug: Can't set org-export-latex-title-command using #+BIND: [6.33trans]
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 http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Using the following test file: , | # -*- mode: org; -*- | | * Tree | ** Subtree |I want no \maketitle command | | * COMMENT Local variables | #+BIND: org-export-latex-title-command | | # Local Variables: | # End: ` exporting to latex yields: , | % Created 2009-12-20 Sun 10:52 | % BEGIN defaults | \documentclass[a4paper, 12pt]{memoir} | \usepackage{org-export} | % END defaults | | | \title{test} | \author{Christopher Suckling} | \date{20 December 2009} | | \begin{document} | | \maketitle | | \setcounter{tocdepth}{3} | \tableofcontents | \vspace*{1cm} | | \chapter{Tree} | \label{sec-1} | \section{Subtree} | \label{sec-1.1} | |I want no \maketitle command | | \end{document} ` Evaluating , | (setq org-export-latex-title-command ) ` prior to export successfully removes \maketitle. Best, Christopher Emacs : GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple-appkit-1038.25) of 2009-12-08 on rushka.local Package: Org-mode version 6.33trans current state: == (setq org-export-latex-default-class org-export org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars) org-todo-keyword-faces '((CANCELLED :foreground gray40 :weight bold) (DEFERRED :foreground olivedrab4 :weight bold) (OPEN :foreground red1 :weight bold :underline t :slant italic) (TODO :foreground dodgerblue3 :weight bold) (NEXT :foreground navyblue :weight bold) (WAITING :foreground red3 :weight bold) (DELEGATED :foreground deeppink4 :weight bold) (COMMENT :foreground RosyBrown4)) org-link-frame-setup '((vm . vm-visit-folder-other-frame) (gnus . org-gnus-no-new-news) (file . find-file-other-window)) org-special-ctrl-a/e t org-agenda-custom-commands '((d Today's effort agenda ((org-agenda-view-columns-initially t) (org-agenda-ndays 1)) ) (W Weekly review ((agenda ((org-agenda-ndays 7))) (alltodo ((org-agenda-files (list ~/Sites/org/)) (org-agenda-file-regexp ^[^m].*_A\\.org$) (org-agenda-todo-ignore-with-date t) (org-agenda-sorting-strategy (quote (priority-down todo-state-down category-keep tag-up effort-up) ) ) (org-agenda-overriding-header Unscheduled TODO entries - work: ) ) ) (todo WAITING|DELEGATED ((org-agenda-files (list ~/Sites/org/)) (org-agenda-file-regexp ^[^m].*_A\\.org$) (org-agenda-todo-ignore-scheduled nil) (org-agenda-todo-ignore-deadlines nil) (org-agenda-sorting-strategy (quote (priority-down todo-state-down tag-up category-keep) ) ) (org-agenda-overriding-header Awaiting response from others - work: ) ) ) ) ) (I Import diary from iCal agenda ((org-agenda-mode-hook (lambda nil (org-mac-iCal) (F Import links to flagged mail agenda ((org-agenda-mode-hook (lambda nil (let ((org-mac-mail-account Gmail)) (org-mac-insert-flagged-mail taskpool_A.org Flagged mail
Re: [Orgmode] Bug: Can't set org-export-latex-title-command using #+BIND: [6.33trans]
On Sun, 20 Dec 2009 13:29:59 +0100, Carsten Dominik carsten.domi...@gmail.com wrote: Thank you, but not quite working yet: , | #+BIND: org-export-latex-title-command ` now appears to be having the *effect* of setting a global variable. I load Emacs then visit the below test org file. I then export the file. I get a \maketitle line. I then C-c C-c on the #+BIND: line and re-export. \maketitle is removed. I then export another org file without the #+BIND: line. There is no \maketitle, even though there should be. I add , | #+BIND: org-export-latex-title-command \foobar ` to the new org file, C-c C-c and export: \foobar is added to the exported file. Finally, I re-export the original test org file (without C-c C-c on the #+BIND: line): \foobar is added to the exported file. However, , | C-h v org-export-latex-title-command ` always returns the value \\maketitle, no matter what the value of the #+BIND: line. Best, Christopher Fixed, thanks - Carsten On Dec 20, 2009, at 11:58 AM, Christopher Suckling wrote: 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 http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. Using the following test file: , | # -*- mode: org; -*- | | * Tree | ** Subtree |I want no \maketitle command | | * COMMENT Local variables | #+BIND: org-export-latex-title-command | | # Local Variables: | # End: ` exporting to latex yields: , | % Created 2009-12-20 Sun 10:52 | % BEGIN defaults | \documentclass[a4paper, 12pt]{memoir} | \usepackage{org-export} | % END defaults | | | \title{test} | \author{Christopher Suckling} | \date{20 December 2009} | | \begin{document} | | \maketitle | | \setcounter{tocdepth}{3} | \tableofcontents | \vspace*{1cm} | | \chapter{Tree} | \label{sec-1} | \section{Subtree} | \label{sec-1.1} | |I want no \maketitle command | | \end{document} ` Evaluating , | (setq org-export-latex-title-command ) ` prior to export successfully removes \maketitle. Best, Christopher Emacs : GNU Emacs 23.1.50.1 (x86_64-apple-darwin10.2.0, NS apple- appkit-1038.25) of 2009-12-08 on rushka.local Package: Org-mode version 6.33trans current state: == (setq org-export-latex-default-class org-export org-export-latex-after-initial-vars-hook '(org-beamer-after-initial- vars) org-todo-keyword-faces '((CANCELLED :foreground gray40 :weight bold) (DEFERRED :foreground olivedrab4 :weight bold) (OPEN :foreground red1 :weight bold :underline t :slant italic) (TODO :foreground dodgerblue3 :weight bold) (NEXT :foreground navyblue :weight bold) (WAITING :foreground red3 :weight bold) (DELEGATED :foreground deeppink4 :weight bold) (COMMENT :foreground RosyBrown4)) org-link-frame-setup '((vm . vm-visit-folder-other-frame) (gnus . org-gnus-no-new-news) (file . find-file-other-window)) org-special-ctrl-a/e t org-agenda-custom-commands '((d Today's effort agenda ((org-agenda-view-columns-initially t) (org-agenda-ndays 1)) ) (W Weekly review ((agenda ((org-agenda-ndays 7))) (alltodo ((org-agenda-files (list ~/Sites/org/)) (org-agenda-file-regexp ^[^m].*_A\\.org$) (org-agenda-todo-ignore-with-date t) (org-agenda-sorting-strategy (quote (priority-down todo-state-down category-keep tag-up effort-up) ) ) (org-agenda-overriding-header Unscheduled TODO entries - work: ) ) ) (todo WAITING|DELEGATED ((org-agenda-files (list ~/Sites/org/)) (org-agenda-file-regexp ^[^m].*_A\\.org$) (org-agenda-todo-ignore-scheduled nil) (org-agenda-todo-ignore-deadlines nil) (org-agenda-sorting-strategy (quote (priority-down todo-state-down tag-up
Re: [Orgmode] [org-mac-protocol] How to actually set it up and use it?
On Tue, 15 Dec 2009 13:58:26 -0600, Ron Parker r...@inthefaith.net wrote: On Dec 13, 2009, at 8:48 AM, Christopher Suckling wrote: On Sat, 12 Dec 2009 12:56:00 -0600, Ron Parker r...@inthefaith.net wrote: After reading this message I downloaded org-mac-protocol and installed it. The scripts work for me if I open them in Script Editor and run them, but they do not work from the scripts menu nor from Quicksilver. I'm closer. Calling (org-load-modules-maybe) after doing (add-to-list org-modules 'org-mac-protocol) seems to have the items on the script menu working. But, calling them from Quicksilver still fails. Curious. This really shouldn't make any difference. All the AppleScripts do is put together a call to emacsclient; thus if they work launched by one method, then changing your .emacs shouldn't facilitate another method. You could check that the call to emacsclient is being properly constructed by taking one of the scripts, say org-link, and adding , | display dialog theScript ` the line before , | do shell script theScript ` But it sounds like something fishy is going on with Quicksilver. Best, Christopher ___ 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-mac-protocol] How to actually set it up and use it?
On Sat, 12 Dec 2009 12:56:00 -0600, Ron Parker r...@inthefaith.net wrote: After reading this message I downloaded org-mac-protocol and installed it. The scripts work for me if I open them in Script Editor and run them, but they do not work from the scripts menu nor from Quicksilver. Second thought: If you got the scripts from github, they're not compiled. Load them up in Script Editor and save them with file format 'Script'. (Applescripts are by default saved as binaries which are less than convenient for versioning with git) Best, Christopher ___ 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-mac-protocol] How to actually set it up and use it?
On Sat, 12 Dec 2009 12:56:00 -0600, Ron Parker r...@inthefaith.net wrote: After reading this message I downloaded org-mac-protocol and installed it. The scripts work for me if I open them in Script Editor and run them, but they do not work from the scripts menu nor from Quicksilver. Weird. Of course, if run from Script Editor, then the top application will always be Script Editor, so the link will always be to Script Editor. It may be that via QS you're linking to something that contains a single or double quote. Then the scripts bork. But I've just finally fixed it and pushed to github along with improved and added support for Snow Leopard, Skim, Bibdesk and iTunes. I'll be doing a proper release at the end of the week (Thursday or Friday), but if the current github doesn't work for you, then send me a few more details and I'll see what I can do. Best, Christopher ___ 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] Gnus link bug
On Mon, 24 Aug 2009 02:32:38 +0800, Bastien bastiengue...@googlemail.com wrote: I haven't used org to store links from Gnus for almost two years and today I tried it again and found at least one annoying bug. In the summary buffer, calling org-store-link will display the article buffer which is uncalled for. It also causes visual disturbance as well as asks Gnus to download the article while all the information required is already available. Should be fixed now in git, please try it. Possible solution (not real patch): In Gnus summary buffer the header of each article is already downloaded and can be obtained by (gnus-summary-article-header). To get the mid, use (mail-header-id (gnus-summary-article-header)). I followed your suggestion, but only for when we are in the summary buffer, as I found out that the output of `gnus-summary-article-header' in the article buffer is not very reliable. Could Carsten or Tassilo use that in org-gnus? Thank you. Please Gnus army test it! Works great: OS X 10.5.8 Emacs 23.1.50 Gnus v5.13 Org-mode 6.29trans Best, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-mac-protocol
On Tue, 18 Aug 2009 15:29:43 -0700, Samuel Wales samolog...@gmail.com wrote: I am thinking of trying org-mac-protocol, but I have questions, and perhaps Worg can be updated with the answers to my questions. First, is org-protocol.el required? Does org-mac-protocol build on it or replace it? Yes, org-protocol.el is required. As org-protocol.el ships with org-mode and org-mac-protocol contains (require 'org-protocol), no additional user intervention is required to install org-protocol (but make sure you're using org-mode 6.28 or later). org-protocol.el provides an extendable method of handling links sent to emacsclient. org-mac-protocol is a suite of AppleScripts that sends links from various applications and an org-protocol.el handler to process them. So org-mac-protocol builds on org-protocol.el How does it relate to fireforg? Should I install both if I want Firefox tabs to be savable? No relation to fireforg. I haven't had an opportunity to try fireforg, but they should coexist happily. Unfortunately, Firefox doesn't support AppleScript so Firefox is not compatible with org-mac-protocol. Safari is the only browser supported. I mostly want to bookmark tabs from Safari and Firefox on Mac (and later when I get a Debian machine on that). Ideally this would be done without any typing. Can org-mac-protocol be set to just click and make the title and url from a tab go into a single remember location? Safari: yes-ish, although not quite the workflow you describe. If all you want is title and URL, then calling the org-link AppleScript will send a link to *org-links* list. These still have to be inserted into org page of your choice with C-c C-l Alternatively, you could call the org-remember AppleScript that will pop up a small remember frame with remember template of your creation. That can contain title, URL and selected content. A quick C-c C-c will file the link, destroy the frame and return you to Safari. Are there reports that it works on Tiger? No one has reported. I don't think I used any Leopard specific AppleScript, so I doubt there will be any problems. Finally, I found that the comment about URI escape not being available in the git repository is confusing. Is this a necessary feature? I have no idea why it would not be in git or whether I need it. Absolutely necessary. The git repository was only created at somebodies request. It's not the right place to distribute an AppleScript extension written by another author. I followed the link, and I get what URI escaping is, but don't know whether it is necessary for org-mac-protocol. Should I use the dmg? If you're on Tiger, your best bet is to download my dmg and follow the manual install procedure (the installer package is the only Leopard specific but - Tiger doesn't allow one to automatically install to the user's home directory). HTH, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Tiny bugfix for org-checklist.el
Best wishes, Christopher diff --git a/contrib/lisp/org-checklist.el b/contrib/lisp/org-checklist.el index 63daf3e..657c6e1 100644 --- a/contrib/lisp/org-checklist.el +++ b/contrib/lisp/org-checklist.el @@ -95,7 +95,7 @@ of checkbox items (t t) (nil (y-or-n-p Print list? exported-lines -title Checklist export) +(title Checklist export)) (save-restriction (save-excursion (org-narrow-to-subtree) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: org-mac-protocol problem - Initial content missing
On Sun, 02 Aug 2009 17:08:26 +0800, CHENG Gao cheng...@gmail.com wrote: For example, I visit the page: http://orgmode.org/worg/org-contrib/org-protocol.php Then I run org-remember from script menu. The remember buffer I got is: , | ## C-c C-c ~/.emacs.d/org/notes.org - * Remember | ## C-u C-c C-c like C-c C-c, and immediately visit note at target location | ## C-0 C-c C-c ??? - * ??? | ## C-1 C-c C-c to select file and header location interactively. | ## C-2 C-c C-c as child of the currently clocked item | ## To switch templates, use `M-x org-remember'. To abort use `C-c C-k'. | | * | | Source: [2009-08-02 Sun], [[http://orgmode.org/worg/org-contrib/org-protocol.php][org-protocol.el – Intercept calls from emacsclient to trigger custom actions:Safari]] ` Only timestamp and link to source page. My settings are: (I commented out remember template in org-mac-protocol and then put it in ~/.emacs.d/init.el) , | ;;Org Mode | (require 'org-mac-protocol) | (server-start) | | (setq org-directory ~/.emacs.d/org/) | (setq org-default-notes-file ~/.emacs.d/org/notes.org) | (setq org-remember-templates nil) | (add-to-list 'org-remember-templates | '(AppleScript remember ?y * %?\n\n Source: %u, %c\n\n %i (concat org-directory notes.org) Remember)) | (add-to-list 'org-remember-templates | '(AppleScript note ?z * %?\n\n Source: %u\n (concat org-directory notes.org) Notes)) | (setq remember-annotation-functions '(org-remember-annotation)) | (setq remember-handler-functions '(org-remember-handler)) | (add-hook 'remember-mode-hook 'org-remember-apply-template) | | (require 'org) | (define-key global-map \C-cl 'org-store-link) | (define-key global-map \C-ca 'org-agenda) | (setq org-log-done t) | ` org-mac-protocol runs well, just initial content is not inserted. I'm stumped. I can't see anything wrong with the above and an almost identical setup works for me. (I have come across a couple of web pages that don't like the scripts full stop, for example http://jan.ucc.nau.edu/tas3/bnf1.html, but that is not the case here) Suggested debug: Make sure that you're using the latest git org-mode. Open up org-remember.scpt and edit: , | ... | | display dialog theScript | do shell script theScript ` Does theScript contain the expected content? You could also try running from the terminal: emacsclient org-protocol:/mac-remember:/y/foo/bar/test%20content:Safari and seeing whether `test content' is inserted as initial content BTW, I suggest to put default remember templates in manual, instructing users to explicitly set templates in .emacs. Users can choose to use default templates or use their own. Quite so. Done. Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-mac-protocol problem - Initial content missing
On Sun, 02 Aug 2009 02:59:29 +0800, CHENG Gao cheng...@gmail.com wrote: I found %i in remember template doesn't work. In remember buffer I only get link to original page. Initial content is not inserted even though I selected them, and even I did Command-c after the content is selected. How could I get content remember instead of link? To be honest, there's not really enough information here to give an effective answer. Here are two guesses: 1. Initial content is only supported from certain applications - currently Safari, Skim, and (to a very limited extent) BibDesk. This is due to the scope of the applications' AppleScript dictionaries. The manual for org-mac-protocol provides a table of which applications are supported by org-mac-protocol. 2. If the remember template or the note template is not creating a remember buffer at all, the org-mac-protocol.el may not be loading correctly because org-remember-templates has yet to be defined. I am about to publish a small change to org-mac-protocol.el and the documentation that will eliminate this problem. HTH, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: ANN: org-mac-protocol : AppleScripts to invoke org-protocol from various applications
On Mon, 20 Jul 2009 17:10:38 -0400, Austin Frank austin.fr...@gmail.com wrote: Thanks! This looks really interesting. Is there any way to use applescript to track change in application focus? I'd be interested in logging when I change to or away from each application, and having that time tracking information available from within org. Does this seem possible? org-(mac)-protocol is certainly the mechanism to get the information into org-mode, but I'm not sure that AppleScript is the best way of tracking application focus. To be honest, my AppleScript is even more cludgy than my elisp, but from what I understand, the best that can be done is to write a script that makes a call every, say, 10 seconds to check which window is in focus. I'll put it on my todo list, but please don't hold your breath - I've just entered a hellishly busy four months. Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ANN: org-mac-protocol, let's try again
On Thu, 23 Jul 2009 05:47:14 -0400, Greg Newman g...@20seven.org wrote: I'm using 23.x pretests and haven't updated in almost a month so mine is probably much older than yours. I am running 6.28b of org which I think you are too. Not sure what the issue is. Got it (I think)... org-mac-protocol.el still isn't loading. What is happening is: org-link.scpt doesn't require org-mac-protocol.el - it just uses the org-protocol:/store-link:/ protocol which is defined in org-protocol.el However, org-note.scpt and org-remember.scpt use the org-protocol:/mac-remember:/ protocol which is defined in org-mac-protocol.el (along with frame moving and application switching functions). But, org-mac-protocol.el hasn't loaded. So emacsclient trys to open the file :/mac-remember:/z/foo/bar which tramp intercepts and the barfs on. I'm not sure why org-mac-protocol.el is not loading. But my guess is that the variable org-remember-templates is not set when you try to load org-mac-protocol.el and so it barfs on the (add-to-list 'org-remember-templates ...). Relevant section of my .emacs looks like: , | (autoload 'remember remember remember mode t) | (load ~/.emacs.d/remember-init) | ;; assorted remember initializations including | (setq org-remember-templates '((my templates))) | | (setq org-modules '(org-bibtex org-id org-info org-mac-message org-mac-iCal org-w3m org-elisp-symbol org-protocol org-mac-protocol org-gnus org-jsinfo)) | | (require 'org-install) | (add-hook 'org-load-hook | (lambda () | (load ~/.emacs.d/org-init))) ;; all my org settings ` If this helps, I'll either rewrite the documentation of remove the (add-to-list 'org-remember-templates ... ) and ask users to add their own templates. Christopher On Tue, Jul 21, 2009 at 7:33 PM, Christopher Suckling suckl...@gmail.comwrote: On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman g...@20seven.org wrote: Chris,I figured out what my issue was last night. My org-mode 6.25 was stomping on my git clone of 6.28b. With that fixed i can get it to work... with only links. With notes and remember i get the following error every time; any clues? Process *tramp/scp org-protocol* exited abnormally with code 255 Greg, I did come across this. Unfortunately, I didn't make a note of when or where and can't reproduce it this evening. I have a suspicion, but only a suspicion, that it may have resulted from a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could this be a possibility? [There are gaps in the above logic; I can't figure out why org-link should work whilst org-note and org-remember bork. I'm clutching at straws. No idea why it is so fragile.] Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ANN: org-mac-protocol, let's try again
On Tue, 21 Jul 2009 15:15:09 -0400, Greg Newman g...@20seven.org wrote: Chris,I figured out what my issue was last night. My org-mode 6.25 was stomping on my git clone of 6.28b. With that fixed i can get it to work... with only links. With notes and remember i get the following error every time; any clues? Process *tramp/scp org-protocol* exited abnormally with code 255 Greg, I did come across this. Unfortunately, I didn't make a note of when or where and can't reproduce it this evening. I have a suspicion, but only a suspicion, that it may have resulted from a (now fixed) tramp bug in CVS Emacs. I last complied on 15 July. Could this be a possibility? [There are gaps in the above logic; I can't figure out why org-link should work whilst org-note and org-remember bork. I'm clutching at straws. No idea why it is so fragile.] Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: New screencast about org-protocol.el
On Sun, Jul 19, 2009 at 8:44 PM, Greg Newmang...@20seven.org wrote: Kieth, I've been working (in my spare time) on a applescript solution that's elegant. When I get it finished and working I'll let everyone know. I'm a Safari user but when it's done it will work with FF (or camino) too. Greg, I'd love to know if you've had any success with FF. As of 3.5, there is a getURL object, but I've not been able to get it to work reliably, and, regardless, it still leaves FF as a rather second class citizen compared to Safari. If it's of interest, you can find my (finally) rewritten suite of scripts for org-protocol here: http://claviclaws.net/org/ Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ANN: org-mac-protocol : AppleScripts to invoke org-protocol from various applications
On Mon, Jul 20, 2009 at 7:03 PM, Greg Newmang...@20seven.org wrote: Awesome Chris, thanks! Now I don't have to finish my safari org-protocol script. I'll give this a try this evening and report back. Is this on github by chance? Not yet; I've yet to start playing with that. Maybe late tonight! Today's toy was creating an OS X package installer, but all sources are on the dmg, just in case... Best, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ANN: org-mac-protocol : AppleScripts to invoke org-protocol from various applications
On Mon, Jul 20, 2009 at 11:42 PM, Greg Newmang...@20seven.org wrote: Chris, Just a note, the package tried to install by default to my root dir and failed. I changed it to ~/ and it then installed. Not sure if you can make something else the default or have it ask for roots password. I almost didn't see the option to change the install location. Giving this a try now... Thanks. I've since found that the install in home directory option on the latest version of PackageMaker is a 10.5 only option. Is that the problem? Everything necessary should be in the sources directory anyway. And also now on github: git://github.com/claviclaws/org-mac-protocol.git Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] ANN: org-mac-protocol : AppleScripts to invoke org-protocol from various applications
On Tue, Jul 21, 2009 at 12:04 AM, Greg Newmang...@20seven.org wrote: Hmm, Chris. No matter what I do I always get Required feature `org-mac-protocol' was not provided when I re-eval. I can load-file fine but when I add it to my configs, before or after org-mode it always barks at me. Urrrgh. Stupid typo, but I'd already evaled the buffer when testing and didn't notice. Last line should read: (require 'org-mac-protocol) NOT (require 'org-mac-protocol.el) Putting together updated release now... C. ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] ANN: org-mac-protocol, let's try again
Apologies to the early adopters to whom I sold some dummies. Hopefully this should work better. (I had so much residual stuff sitting in memory that I was under the false impression that everything just worked TM) The installer is, I'm afraid, 10.5 only. The manual includes, um, manual installation instructions for 10.4. Available from: http://claviclaws.net/org/ or git://github.com/claviclaws/org-mac-protocol.git Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] OT: spelling dictionary on Mac OS, and apple script
On 5 Jun 2009, at 08:12, Carsten Dominik wrote: I'm sure all of you know by now how bad a typist/speller I am. A small part of this problem is that I write constantly in three language, Dutch, German, and English. Therefore I have my spell checker on my Mac Powerbook set to Multilingual. So this spell checker will accept adres and address and adresse all as correctly spelled :-( I cannot be bothered to use the mouse to change the dictionary all the time. I would, however, use a hotkey to switch dictionaries. Does anyone here know how to do this, maybe using applescript? Have a look at the script at the end of this thread: http://macscripter.net/viewtopic.php?id=28285p=2 I haven't tested it as I rarely have to venture outside English, but it looks promising. UI scripting is a right royal pain in the back. HTH, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-protocol for safari?
On 29 May 2009, at 00:54, Samuel Wales wrote: Has anybody gotten org-protocol to work for Safari? Earlier I asked if anybody has written a script to parse Safari bookmarks and orgify them; this would be another solution, just click on each tab. I've got some Applescripts for use with Quicksilver which do this job for Safari and other applications. I'm intending to rewrite them to use org-protocol rather than my own rather hacky solutions, but haven't yet have the time. And also to rewrite them for other Quicksilvery type applications like Google and LaunchBar. In the meantime, you can grab them at: http://claviclaws.net/org HTH, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Format for timestamp export
On 13 Apr 2009, at 07:54, Carsten Dominik wrote: Fixed for LaTeX export, and documented. - Carsten Thanks. Works perfectly. Christopher On Apr 12, 2009, at 8:37 PM, Daniel Clemente wrote: El jue, abr 09 2009, Carsten Dominik va escriure: Can I format timestamps on export? You can customize them for display, which will also transfer to exported files. Check out the variables `org-display-custom-times' and `org-time-stamp-custom-formats'. Thanks; I didn't know that org-display-custom-times would affect also the export. Could the documentation say that? ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-export-latex.el renamed
On 12 Apr 2009, at 19:01, Carsten Dominik wrote: Yes, I just saw that too. Fixed now. Indeed it is. Thanks. Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Format for timestamp export
On 12 Apr 2009, at 19:37, Daniel Clemente wrote: El jue, abr 09 2009, Carsten Dominik va escriure: Can I format timestamps on export? You can customize them for display, which will also transfer to exported files. Check out the variables `org-display-custom-times' and `org-time-stamp-custom-formats'. Thanks; I didn't know that org-display-custom-times would affect also the export. Could the documentation say that? BTW, this doesn't work in the latex exporter. I used the attached ugly hack rather than fix the latex exporter - I suspect I was in a rush to get a piece of work out to someone. Anyway, the function cas/org- export-as-latex-to-buffer-with-timestamp behaves the same as org- export-as-latex-to-buffer, but translates all timestamps to org-time- stamp-custom-formats. Best, Christopher org-latex-timestamp.el Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] org-export-latex.el renamed
On 9 Apr 2009, at 17:33, Carsten Dominik wrote: the file org-export-latex.el has been renamed to org-latex.el. I think some of you might have (require 'org-export-latex) in your setup, this needs to be changed. Also, after pulling from the git repo, running make clean make to produce the correct autoloads will be important. Hi Carsten, I did as above and additionally removed any latex stuff from my .emacs (org-export-latex-classes and org-export-latex-default-class). On trying to export to latex, I get the following error: org-export-latex-set-initial-vars: Symbol's value as variable is void: org-export-html-style-include-default Best, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Patch for growl notifications without uncommenting hacks
On 7 Apr 2009, at 01:16, David Abrahams wrote: On Apr 6, 2009, at 6:27 PM, Christopher Suckling wrote: On 6 Apr 2009, at 01:49, David Abrahams wrote: This patch to org-mac-message.el should make it show growl notifications when searching for flagged messages and growl is running, and work silently otherwise. Thanks, works nicely. Below patch adapts for general case, cleans up commentary and fixes one tiny formatting bug I noticed. Best, Christopher org-mac-message.patch Nice tweak to the code, but I'm not sure it was a good idea to strip out lisp comments from around the AppleScript. There are some oddball idioms in there whose rationale will have to be guessed by the next person who comes along and wants to improve things. Also, I think the indentation I applied to the applescript strings do a great deal to enhance comprehensibility at little or no cost. And done. Carsten, ignore yesterday's patch. BTW, is there a way of automatically doing the AppleScript indentation (I lost it all when I ran indent-region on the buffer and was too tired last night to put it back in...)? Best, Christopher org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Patch for growl notifications without uncommenting hacks
Hi Carsten, Hopefully this is the last of the org-mac-message.el patches and it supersedes everything from yesterday morning onwards... It adds Growl detection AppleScript, fixes the commentary, tidies the indentation and fixes two bugs (message:// regex and some formatting) Best, Christopher On 7 Apr 2009, at 14:15, David Abrahams wrote: On Apr 7, 2009, at 4:12 AM, Christopher Suckling wrote: And done. Thanks. s/GrowlaHelperApp/GrowlHelperApp/ and there are two lines of comment (where the link is) that seem to be indented slightly differently from the rest. Carsten, ignore yesterday's patch. BTW, is there a way of automatically doing the AppleScript indentation (I lost it all when I ran indent-region on the buffer and was too tired last night to put it back in...)? That level of emacs-fu is beyond me :-) I just did it manually. -- David Abrahams BoostPro Computing http://boostpro.com org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problem with org-mac-message.el
On 4 Apr 2009, at 11:33, Carsten Dominik wrote: Hi Christopher, I have applied the patch, thanks. Also I made the following modification: The new function is defined as org-mac-message-insert-selected, and then the old name org-mac-message-insert-link is introduced as an alias. So you get your consisten function naming, and compatibility as well. I believe the file commentary may not be fully correct anymore, it still mentions the old function names. I have already pushed the new version, if you fix the commentary, please diff against that new version. Thanks, Carsten. Here's the fixed commentary. Changes to Worg have been pushed. Christopher org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problem with org-mac-message.el
On 3 Apr 2009, at 17:58, Carsten Dominik wrote: On Apr 3, 2009, at 4:49 PM, Christopher Suckling wrote: On 1 Apr 2009, at 21:21, Ed Hirgelt wrote: I've found that org-mac-message-get-link has a problem inserting [[]] as the first item. I can't replicate this. Could you provide an example? The following change makes it better... Unfortunately, this change breaks the code for all other possibilities, and, if I understand the problem correctly, simply omits a link that begins [[ My beginner's elisp is rather clumsy; I'm going to attempt to tidy up the code anyway, so I'll be on the lookout for your difficulty whilst I do so. I think I already fixed it. Thanks! I've never used mapcar before... I've made things more modular so that your changes are reflected in searches for both selected and flagged mail. In doing so, I may have been rather naughty - I've changed the function names so that they are consistent: (org-mac-message-insert-link) becomes (org-mac-message-insert-selected) (org-mac-create-flagged-mail) becomes (org-mac-message-insert-flagged) both of which call the function (org-mac-message-get-links) to do their stuff. If this is not on, then I'll resubmit the patch with the original function names. Otherwise, new documentation is primed for pushing to Worg. Best, Christopher org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problem with org-mac-message.el
On 4 Apr 2009, at 09:25, Carsten Dominik wrote: the patch and the abstraction looks good. However, I am sure that there are quite a few people who have remember templates which call %(org-mac-message-insert-link) Let's not break their setup. Could you modify your patch so that this function still works? Here you go. Christopher org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Problem with org-mac-message.el
On 1 Apr 2009, at 21:21, Ed Hirgelt wrote: I've found that org-mac-message-get-link has a problem inserting [[]] as the first item. I can't replicate this. Could you provide an example? The following change makes it better... Unfortunately, this change breaks the code for all other possibilities, and, if I understand the problem correctly, simply omits a link that begins [[ My beginner's elisp is rather clumsy; I'm going to attempt to tidy up the code anyway, so I'll be on the lookout for your difficulty whilst I do so. Best, Christopher diff --git a/lisp/org-mac-message.el b/lisp/org-mac-message.el index 4e10062..e8697c4 100644 --- a/lisp/org-mac-message.el +++ b/lisp/org-mac-message.el @@ -119,7 +119,7 @@ active mail in AppleMail and make a link out of it. (setq split-link (split-string (pop link-list) ::split::)) (setq URL (car split-link)) (setq description (cadr split-link)) - (if (not (string= URL )) + (if (not (string= URL \)) (progn (setq orglink (org-make-link-string URL description)) (push orglink orglink-list) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] OS X only: Insert links to flagged emails
On 22 Mar 2009, at 16:04, Carsten Dominik wrote: Applied, thanks. Would you like to write a short description/manual of org-mac- message.el for http://orgmode.org/worg/org-contrib/ ? Hopefully I got everything right first time and the manual is making it's way to Worg as I write. Meanwhile, I've rewritten some of the org-mac-message.el code to better handle multiple selections in Mail.app. Patch attached. Christopher org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [ANN] OS X only: Updated: org-annotation-quicksilver
All, For those of us who can't quite spend all our life in emacs: Link to, annotate, comment and file away in an org-mode buffer, all without leaving the application you're working in. Select the text you're interested in, invoke QuickSilver, add a comment, and file using remember template of your choice. Applications currently supported: Finder Safari Mail Skim Bibdesk (All AppleScript aware applications can have their front documents linked to, but only the above will include selected text in the remember buffer) General bug-fixing, tidying and reducing dependance on other code has led to a new version at: http://claviclaws.net/org/ Now easily configureable for all flavours of OS X Emacs. Carsten - suitable for inclusion in contrib/packages? Best, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] OS X only: Insert links to flagged emails
On 21 Mar 2009, at 13:25, Carsten Dominik wrote: On Mar 21, 2009, at 12:22 AM, Christopher Suckling wrote: On 20 Mar 2009, at 21:13, Carsten Dominik wrote: Hi Christopher, this is nice! Maybe we could integrate it into org-mac-message.el? - Carsten Thanks. I'd be delighted for it to be integrated into org-mac- message.el. Would you like me to put a patch together, or would you prefer to manage the integration yourself? I would be glad if you could provide a patch. Attached is the patch. A thought: at present there are some optional lines (commented out by default) that make calls to Growl (http://growl.info) to provide more tactile feedback during the sometimes lengthy synchronous search made by AppleScript. Growl, however, is under a BSD license. Can these lines be included in Emacs? Christopher org-mac-message.patch Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [ANN] OS X only: Insert links to flagged emails
On 20 Mar 2009, at 21:13, Carsten Dominik wrote: Hi Christopher, this is nice! Maybe we could integrate it into org-mac-message.el? - Carsten Thanks. I'd be delighted for it to be integrated into org-mac- message.el. Would you like me to put a patch together, or would you prefer to manage the integration yourself? Christopher On Mar 19, 2009, at 8:07 PM, Christopher Suckling wrote: All, For various reasons (mainly Spotlight and an excess of HTML mail send by employers), I've migrated back to Mail.app after some time in Mutt (and how I miss the speed and threading). I habitually flag mails that need attention at a later date, and rather than use both org-mode and Mail.app to keep track of what needs doing, I've written a couple of hybid elisp AppleScript functions to suck links to my flagged email into org-mode. More details in the attached file. Comments and improvements welcome. Best, Christopher org-mac-flagged-mail.el ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [ANN] OS X only: Insert links to flagged emails
All, For various reasons (mainly Spotlight and an excess of HTML mail send by employers), I've migrated back to Mail.app after some time in Mutt (and how I miss the speed and threading). I habitually flag mails that need attention at a later date, and rather than use both org-mode and Mail.app to keep track of what needs doing, I've written a couple of hybid elisp AppleScript functions to suck links to my flagged email into org-mode. More details in the attached file. Comments and improvements welcome. Best, Christopher org-mac-flagged-mail.el Description: Binary data ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: org-annotation-quicksilver, Aquamacs path and getting remember mode to stay on
On 11 Mar 2009, at 18:31, Kevin Brubeck Unhammer wrote: I just tried org-annotation-quicksilver, looks like a great tool, thanks for making it! Urrrgh. Thanks. I really must update it, or at least update the website to say it's outdated. As it cannibalises a good chunk of org- remember.el, I've been holding off doing anything much with the code until the rewrite of org-remember is complete. I should mention though that Aquamacs Emacs users who haven't changed the file name of their app need to change the .scpt files so they say /Applications/Aquamacs\\ Emacs.app/Contents/MacOS/bin/ emacsclient ...etc instead of /Applications/Emacs.app/Contents/MacOS/bin/emacsclient ...etc (Or would it be better to assume emacsclient is in PATH?) It would. Thanks for pointing out. Also, for some reason, the *Remember* buffer shows up in org-mode without remember-mode turned on (only when I run it from Quicksilver); does anyone know why this would happen? (Does it have to do with the duplication of two org-remember functions in org-annotation-quicksilver.el?) Not sure off top of my head. I hope to have some quality org time in a couple of weeks; I'll let you know if I get anything done... Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] org-agenda-add-entry-text
There seems to be an inconsistency in how org-agenda-add-entry-text handles links. Sometimes they are exported as descriptive links and sometimes as a [[URL][descriptive]] pair. The following patch adds a new variable, org-agenda-add-entry-text- descriptive-links, that controls which of the above formats to use when exporting the agenda. Best wishes, Christopher - Modified lisp/org-agenda.el diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index 9b34d01..be2faab 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -126,6 +126,12 @@ that is listed in the agenda view. :group 'org-agenda :type 'integer) +(defcustom org-agenda-add-entry-text-descriptive-links t + Non-nil means, export org-links as descriptive links (obfuscating the +URL) when adding entry text to an agenda export. + :group 'org-agenda + :type 'boolean) + (defcustom org-agenda-export-html-style The style specification for exported HTML Agenda files. If this variable contains a string, it will replace the default style @@ -2132,6 +2138,15 @@ Drawers will be excluded, also the line with scheduling/deadline info. .*\n?)) (with-temp-buffer (insert txt) + (if org-agenda-add-entry-text-descriptive-links + (progn (goto-char (point-min)) +(while (org-activate-bracket-links (point-max)) + (add-text-properties (match-beginning 0) (match-end 0) + '(face org-link + (goto-char (point-min)) + (while (re-search-forward org-bracket-link-regexp (point-max) t) + (set-text-properties (match-beginning 0) (match-end 0) + nil))) (goto-char (point-min)) (while (re-search-forward drawer-re nil t) (delete-region ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] [PATCH] fast tag selection interface
On 17 Feb 2009, at 21:00, Carsten Dominik wrote: On Feb 16, 2009, at 1:15 AM, Christopher Suckling wrote: As a result of the 40 variables thread and assorted worg tutorials, I'm getting a little carried away with customising my workflow. Consequently, my tag list have grown to the extent that the fast tags selection interface is looking rather messy. The small patch below adds the capability to create arbitrary new lines, either by adding \n (backslash n, not a newline!) to your # +TAGS: or by adding (:newline . nil) to org-tag-alist. So I can have something like: - [a] @assorted [g] @gtd [c] @contexts [o] other [r] relevant [t] tags [m] more [f] for [d] different [p] projects - I am not convinced that this helps a lot. Do ou really think it is much better? It's a tiny thing; my tags setup had got messy so I added it! I don't think it's much better, but it works for my situation (perhaps I should change my workflow than the tool...) The patch looks good and complete! Do you have a copyright assignment with the FSF? Not absolutely necessary for this small a patch, but still... Assignment form requested... Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] A little warning
On 15 Feb 2009, at 09:31, Carsten Dominik wrote: just a little warning if you are pulling todays version from the git repo, there are changes that may be unexpected: I am abandoning the CLOCK drawer, and instead use the LOGBOOK drawer also for CLOCK lines and clock-out notes. This makes a lot of sense to me, hopefully also to you. Also, org-log-state-notes-into-drawer has been renamed to org-log-into-drawer, please use only this variable. I'm loving the new tidiness of the LOGBOOK drawer. One quick question: Even though the change of state is placed in the drawer, because it is formatted as a list item it causes the main entry to be indented one level further (this, of course, isn't a new problem with change of state; I had just hoped that shoving it in a drawer would be an automatic cure!) * TODO Foo :LOGBOOK:... lorem ipsum Rather than * TODO Foo :LOGBOOK:... lorem ipsum Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [PATCH] fast tag selection interface
As a result of the 40 variables thread and assorted worg tutorials, I'm getting a little carried away with customising my workflow. Consequently, my tag list have grown to the extent that the fast tags selection interface is looking rather messy. The small patch below adds the capability to create arbitrary new lines, either by adding \n (backslash n, not a newline!) to your # +TAGS: or by adding (:newline . nil) to org-tag-alist. So I can have something like: - [a] @assorted [g] @gtd [c] @contexts [o] other [r] relevant [t] tags [m] more [f] for [d] different [p] projects - The patch is a very hacky cut and paste job with little understanding of the surrounding code, but I don't seem to have broken anything in my setup yet... Best wishes, Christopher - Modified lisp/org.el diff --git a/lisp/org.el b/lisp/org.el index c4cfacd..484df30 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -2066,7 +2066,8 @@ See the manual for details. (cons (string:tag Tag name) (character :tag Access char)) (const :tag Start radio group (:startgroup)) - (const :tag End radio group (:endgroup) + (const :tag End radio group (:endgroup)) + (const :tag New line (:newline) (defvar org-file-tags nil List of tags that can be inherited by all entries in the file. @@ -3398,6 +3399,7 @@ means to push this value onto the list in the variable.) (cond ((equal e {) (push '(:startgroup) tgs)) ((equal e }) (push '(:endgroup) tgs)) +((equal e \\n) (push '(:newline) tgs)) ((string-match (org-re ^\\([[:alnum:]...@]+\\)(\\(.\\))$) e) (push (cons (match-string 1 e) (string-to-char (match-string 2 e))) @@ -3534,6 +3536,7 @@ Respect keys that are already there. (cond ((equal e '(:startgroup)) (push e new)) ((equal e '(:endgroup)) (push e new)) + ((equal e '(:newline)) (push e new)) (t (setq k (car e) c2 nil) (if (cdr e) @@ -8866,6 +8869,8 @@ Returns the new TODO keyword, or nil if no state change should occur. ((equal e '(:endgroup)) (setq ingroup nil cnt 0) (insert }\n)) + ((equal e '(:newline)) + (insert \n )) (t (setq tg (car e) c (cdr e)) (if ingroup (push tg (car groups))) @@ -10316,6 +10321,8 @@ Returns the new tags string, or nil to not change the current settings. ((equal e '(:endgroup)) (setq ingroup nil cnt 0) (insert }\n)) +((equal e '(:newline)) + (insert \n )) (t (setq tg (car e) c2 nil) (if (cdr e) ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Custom agenda views: todo-state-down
I'm having a little difficulty with org-agenda-sorting-strategy: If I create a tags or tags-todo view, then todo-state-down (or todo- state-up) appears to be ignored. For example: - (P Priority #A tasks tags-todo +PRIORITY=\A\ ((org-agenda-skip-timestamp-if-done t) (org-agenda-sorting-strategy '(todo-state-down effort-up category- keep)) (org-agenda-overriding-header Priority #A tasks: ))) - fails to sort by todo-state. On the other hand: - (Qt TODO entries - @mac alltodo ((org-agenda-files (list ~/Sites/org/mac_A.org)) (org-agenda-sorting-strategy '(priority-down todo-state-down category-keep)) (org-agenda-overriding-header TODO entries - @mac: ))) - sorts as expected. Interestingly, if the second example is included as part of a block agenda, then it also fails. Any suggestions? Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Can't customize org-export-latex-classes
On 29 Jan 2009, at 19:48, Hsiu-Khuern Tang wrote: In Org-mode 6.19b, running M-x customize-variable org-export-latex-classes gives an error No match. Have you (require 'org-export-latex) in your .emacs? Best, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Please test 6.19a
On 26 Jan 2009, at 07:24, Carsten Dominik wrote: On Jan 25, 2009, at 11:50 PM, Christopher Suckling wrote: On 25 Jan 2009, at 16:06, Carsten Dominik wrote: I just uploaded org 6.19a into Emacs CVS, so that it can still be part of the Emacs 23.1 pretest and release. Please test the latest release and let me know as soon as possible if there are any regressions. Two small niggles. 1) :VISIBILITY: property Suppose I have the headings * Foo * Bar * COMMENT setup for buffer :PROPERTIES: :VISIBILITY: folded :END: #+STARTUP: overview #+Rest of options go here On loading the file, *Foo and *Bar are folder, as expected. *COMMENT, however shows its content. Changing value of :VISIBILITY: has no effect. I'm afraid I can't pinpoint in which version this started to happen, but I'm fairly certain it was in the last fortnight. I cannot reproduce this, works fine for me. Anything the the *Messages* buffer that indicates that visiting a new buffer in Org-mode crashes half-way, i.e. before the ful setup has finished? Nothing in *Messages*, but I suspect: My fault: I had (setq org-show-entry-below t) in my .emacs from playing around with sparse trees. Setting it to (default . nil) fixes the VISIBILITY problem. So I learn that org-show-entry-below takes priority over VISIBILITY properties... Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Please test 6.19a
On 25 Jan 2009, at 16:06, Carsten Dominik wrote: I just uploaded org 6.19a into Emacs CVS, so that it can still be part of the Emacs 23.1 pretest and release. Please test the latest release and let me know as soon as possible if there are any regressions. Two small niggles. 1) :VISIBILITY: property Suppose I have the headings * Foo * Bar * COMMENT setup for buffer :PROPERTIES: :VISIBILITY: folded :END: #+STARTUP: overview #+Rest of options go here On loading the file, *Foo and *Bar are folder, as expected. *COMMENT, however shows its content. Changing value of :VISIBILITY: has no effect. I'm afraid I can't pinpoint in which version this started to happen, but I'm fairly certain it was in the last fortnight. 2) LaTeX export, tables and timestamps ** Foo ** Bar |Foo|[2009-02-25 Sun]|Bar| If I select a region from ** Bar to Bar|, and then org-export-latex-to- buffer, then the timestamp is omitted. If I select a region from ** Foo to Bar| and then org-export-latex-to-buffer, then the timestamp is included. Not sure if this is recent behaviour of not; it's a few months since I've had cause to export a table. Apologies that I can't further narrow down these bugs; it's a daft couple of weeks. Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] re-search and org-link
I currently use the following hook to achieve the level of detail I like from a sparse tree: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle I combine this hook with (setq org-show-following-heading nil) (setq org-show-entry-below t) This works great unless regexp is within a fontified org-link. Then Emacs hangs and I get the OS X spinning beach-ball. There is a very easy workaround as re-search-backward has no problem with an org-link if font-locking is turned off for the buffer: (add-hook 'org-occur-hook (lambda () (goto-char (point-max)) (font-lock-mode) (while (re-search-backward regexp nil t) (show-subtree) (org-cycle) (org-cycle)) (font-lock-mode))) Practically, I'm content with my solution, but I thought I'd mention it should the bug lie within the org-link code and bite anyone else in other situations. OS X 10.5.6, Emacs 23.0.60.1 (NS), Org-mode 6.18c Best wishes, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] [Patch] Fixes elisp links in org files
Following elisp links in org files has been broken since commit 4954225ce37. This small patch fixes them. Best wishes, Christopher diff --git a/lisp/org.el b/lisp/org.el index 395..6d52dd9 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -6877,8 +6877,8 @@ application the system uses for this file type. 'face 'org-warning (message %s = %s cmd (if (equal (string-to-char cmd) ?\() - (call-interactively (read cmd)) -(eval (read cmd + (eval (read cmd)) + (call-interactively (read cmd (error Abort (t ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] MacOSX: Notifications with Growl
On Mon, Nov 03, 2008 at 04:49:24PM +0100, Alex Ott wrote: Hi all I wrote small note about show notifications with Growl under Mac OS X. This could be useful when using org-mode. Note is could be found on my site http://xtalk.msk.su/~ott/en/writings/EmacsMacOSXAndGrowl.html Nice. Was looking to add this to my Quicksilver suite of scripts http://claviclaws.net/org when I'm back from holiday. You've saved me a bit of effort! Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] keeping track of sent emails in org?
On Wed, Oct 29, 2008 at 02:07:57PM +0100, Georg C. F. Greve wrote: I just saw this thread and believe that http://www.emacswiki.org/emacs/org-mairix.el might contain parts of the answer, at least. I've been trying to come up with a better solution, and kept meaning to come back to it, but haven't managed thus far. The fundamental problem of getting the message ID, which is sufficient for linking to an article through mairix search has been solved, though. For the very few people who use OS X, mutt, Quicksilver and org-mode, I've got a solution to this at http://claviclaws.net/org/ I use Quicksilver to trigger an AppleScript which send a key command to mutt, triggering the following macro: macro index,pager I pipe-message/usr/bin/formail -X Message-ID -X Subject | cut -d\\ -f1 | tr -d \\ | ~/.mutt/org-mairix-link.sh\n This uses formail to pass the Message-ID and Subject to a shell script (available at above site) which in turn formats an org-mairix link and sends it to the Emacs kill-ring. Hope this might be of some use, Christopher ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode