From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Suckling Subject: Re: Problem with org-mac-message.el Date: Sun, 5 Apr 2009 22:43:52 +0100 Message-ID: <8103B75E-48DB-46AB-A43F-6905A9F0B9D4@gmail.com> References: <4DDA3A2E-81DA-4FAE-8D96-68D5E38E6667@gmail.com> <67BED2B7-68AC-4AF5-B4D3-15706A4FE6D5@gmail.com> <25FA0450-9B9A-42E0-93AF-14E53F3CB076@gmail.com> Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: multipart/mixed; boundary=Apple-Mail-9-815110900 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lqa8E-0000IH-TD for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 17:43:58 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lqa8D-0000Hw-MS for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 17:43:58 -0400 Received: from [199.232.76.173] (port=38184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lqa8D-0000Hs-AT for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 17:43:57 -0400 Received: from ey-out-1920.google.com ([74.125.78.145]:33522) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Lqa8C-0001gO-LD for emacs-orgmode@gnu.org; Sun, 05 Apr 2009 17:43:57 -0400 Received: by ey-out-1920.google.com with SMTP id 13so314155eye.24 for ; Sun, 05 Apr 2009 14:43:54 -0700 (PDT) In-Reply-To: <25FA0450-9B9A-42E0-93AF-14E53F3CB076@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode emacs-orgmode , Christopher Suckling --Apple-Mail-9-815110900 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 --Apple-Mail-9-815110900 Content-Disposition: attachment; filename=org-mac-message.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="org-mac-message.patch" Content-Transfer-Encoding: 7bit diff --git a/lisp/org-mac-message.el b/lisp/org-mac-message.el index fb71ebd..3ea55d8 100644 --- a/lisp/org-mac-message.el +++ b/lisp/org-mac-message.el @@ -1,4 +1,4 @@ -;;; org-mac-message.el --- Links to Apple Mail messages from within Org-mode +;;; org-mac-message.el --- Links to Apple Mail.app messages from within Org-mode ;; Copyright (C) 2008, 2009 Free Software Foundation, Inc. @@ -24,18 +24,18 @@ ;; along with GNU Emacs. If not, see . ;;; Commentary: -;; This file implements links to Apple Mail messages from within Org-mode. +;; This file implements links to Apple Mail.app messages from within Org-mode. ;; Org-mode does not load this module by default - if you would actually like ;; this to happen then configure the variable `org-modules'. ;; If you would like to create links to all flagged messages in an -;; Apple Mail account, please customize the variable +;; Mail.app account, please customize the variable ;; org-mac-mail-account and then call one of the following functions: -;; (org-mac-create-flagged-mail) copies a formatted list of links to -;; the kill ring. +;; (org-mac-message-insert-selected) inserts at point links to any +;; messages selected in Mail.app. -;; (org-mac-insert-flagged-mail) searches within an org-mode buffer +;; (org-mac-message-insert-flagged) searches within an org-mode buffer ;; for a specific heading, creating it if it doesn't exist. Any ;; message:// links within the first level of the heading are deleted ;; and replaced with links to flagged messages. @@ -160,9 +160,9 @@ of it." (message "Messages copied to kill-ring")) (defun org-mac-message-insert-selected () - "Insert a link to the messages currently selected in Apple Mail. + "Insert a link to the messages currently selected in Mail.app. This will use applescript to get the message-id and the subject of the -active mail in AppleMail and make a link out of it." +active mail in Mail.app and make a link out of it." (interactive) (org-mac-message-get-links "s") (yank)) --Apple-Mail-9-815110900 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit --Apple-Mail-9-815110900 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --Apple-Mail-9-815110900--