From: yamaoka Date: Mon, 22 Nov 1999 12:06:00 +0000 (+0000) Subject: (gnus-site-init-file): Use `condition-case' instead of `ignore-errors'. X-Git-Tag: t-gnus-6_13_3-03~2 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=b159d6da433afceb2e93c105ba3e39ea184f6364;p=elisp%2Fgnus.git- (gnus-site-init-file): Use `condition-case' instead of `ignore-errors'. Require `cl' using `eval-when-compile'. --- diff --git a/lisp/gnus-start.el b/lisp/gnus-start.el index 856981d..c9a4f4a 100644 --- a/lisp/gnus-start.el +++ b/lisp/gnus-start.el @@ -25,7 +25,7 @@ ;;; Code: -(require 'cl) +(eval-when-compile (require 'cl)) (eval-when-compile (require 'static)) (require 'gnus) (require 'gnus-win) @@ -48,10 +48,11 @@ If a file with the `.el' or `.elc' suffixes exists, it will be read instead." :type 'file) (defcustom gnus-site-init-file - (ignore-errors - (concat (file-name-directory - (directory-file-name installation-directory)) - "site-lisp/gnus-init")) + (condition-case nil + (concat (file-name-directory + (directory-file-name installation-directory)) + "site-lisp/gnus-init") + (error nil)) "*The site-wide Gnus Emacs-Lisp startup file name, or nil if none. If a file with the `.el' or `.elc' suffixes exists, it will be read instead." :group 'gnus-start