help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suppressing load messages


From: Lennart Borgman (gmail)
Subject: Re: Suppressing load messages
Date: Wed, 12 Mar 2008 18:56:40 +0100
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666

It should be acceptable to writers of emacs-script utilities to
explicitly load anything that is needed.


It looks like you get a load message if you use load-library, but not if you use require:

;; Use this with
;;   emacs -Q -batch -l hello.el
;; to test for load output messages
(unless (featurep 'ido)
  (message "* ido not loaded, will do (require 'ido) now:")
  (require 'ido))
(unless (featurep 'cua-base)
(message "* cua-base not loaded, will do (load-library \"cua-base\") now:")
  (load-library "cua-base"))
(message "\nHello World!")




reply via email to

[Prev in Thread] Current Thread [Next in Thread]