X-Git-Url: https://git.hcoop.net/bpt/emacs.git/blobdiff_plain/db55f368650667b0686cdcd36afa43d33ef219ca..75f4f1ac04a17d1deda0e3a8c82428df784e7f5a:/lisp/org/org-rmail.el diff --git a/lisp/org/org-rmail.el b/lisp/org/org-rmail.el index 05009990e5..068f4fe970 100644 --- a/lisp/org/org-rmail.el +++ b/lisp/org/org-rmail.el @@ -1,11 +1,12 @@ ;;; org-rmail.el --- Support for links to Rmail messages from within Org-mode -;; Copyright (C) 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +;; Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 +;; Free Software Foundation, Inc. ;; Author: Carsten Dominik ;; Keywords: outlines, hypermedia, calendar, wp ;; Homepage: http://orgmode.org -;; Version: 6.15a +;; Version: 6.20g ;; ;; This file is part of GNU Emacs. ;; @@ -34,7 +35,6 @@ (require 'org) ;; Declare external functions and variables -(declare-function rmail-narrow-to-non-pruned-header "rmail" ()) (declare-function rmail-show-message "rmail" (&optional n no-summary)) (declare-function rmail-what-message "rmail" ()) (defvar rmail-current-message) @@ -52,7 +52,8 @@ (save-restriction (when (eq major-mode 'rmail-summary-mode) (rmail-show-message rmail-current-message)) - (rmail-narrow-to-non-pruned-header) + (when (fboundp 'rmail-narrow-to-non-pruned-header) + (rmail-narrow-to-non-pruned-header)) (let* ((folder buffer-file-name) (message-id (mail-fetch-field "message-id")) (from (mail-fetch-field "from"))