X-Git-Url: http://cgit.sxemacs.org/?a=blobdiff_plain;f=lisp%2Fgnus-vm.el;h=55f99653cc417bceef21254805530c46c505fb61;hb=ac910f70b3eab14b9341e9214cb0a5a5f3c218b6;hp=eaf07cf262b9b797ef38be4dea272acca701c508;hpb=9b139a13c0650a18872ebd64849560a97554afa8;p=gnus diff --git a/lisp/gnus-vm.el b/lisp/gnus-vm.el index eaf07cf26..55f99653c 100644 --- a/lisp/gnus-vm.el +++ b/lisp/gnus-vm.el @@ -1,17 +1,16 @@ ;;; gnus-vm.el --- vm interface for Gnus -;; Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -;; 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. +;; Copyright (C) 1994-2013 Free Software Foundation, Inc. ;; Author: Per Persson ;; Keywords: news, mail ;; This file is part of GNU Emacs. -;; GNU Emacs is free software; you can redistribute it and/or modify +;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by -;; the Free Software Foundation; either version 3, or (at your option) -;; any later version. +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. ;; GNU Emacs is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -19,9 +18,7 @@ ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License -;; along with GNU Emacs; see the file COPYING. If not, write to the -;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, -;; Boston, MA 02110-1301, USA. +;; along with GNU Emacs. If not, see . ;;; Commentary: @@ -38,12 +35,10 @@ (require 'gnus-msg) (eval-when-compile - (require 'cl) - (autoload 'vm-mode "vm") - (autoload 'vm-save-message "vm") - (autoload 'vm-forward-message "vm") - (autoload 'vm-reply "vm") - (autoload 'vm-mail "vm")) + (require 'cl)) + +(autoload 'vm-mode "vm") +(autoload 'vm-save-message "vm") (defvar gnus-vm-inhibit-window-system nil "Inhibit loading `win-vm' if using a window-system. @@ -54,10 +49,8 @@ Has to be set before gnus-vm is loaded.") (when window-system (require 'win-vm)))) -(when (not (featurep 'vm)) - (load "vm")) - (defun gnus-vm-make-folder (&optional buffer) + (require 'vm) (let ((article (or buffer (current-buffer))) (tmp-folder (generate-new-buffer " *tmp-folder*")) (start (point-min)) @@ -90,6 +83,7 @@ save those articles instead." (defun gnus-summary-save-in-vm (&optional folder) (interactive) + (require 'vm) (setq folder (gnus-read-save-file-name "Save %s in VM folder:" folder @@ -105,5 +99,4 @@ save those articles instead." (provide 'gnus-vm) -;;; arch-tag: 42ca7f88-a12f-461d-be3e-cac7efb44866 ;;; gnus-vm.el ends here