From cb00cf5e52fd9030991ef8029fd0fa6e70343214 Mon Sep 17 00:00:00 2001 From: morioka Date: Sun, 25 Oct 1998 16:10:43 +0000 Subject: [PATCH] (dired-other-frame): Use `defun-maybe'. --- poe-xemacs.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/poe-xemacs.el b/poe-xemacs.el index 326aa47..6fecb42 100644 --- a/poe-xemacs.el +++ b/poe-xemacs.el @@ -56,12 +56,11 @@ ;;; @ dired ;;; -(or (fboundp 'dired-other-frame) - (defun dired-other-frame (dirname &optional switches) - "\"Edit\" directory DIRNAME. Like `dired' but makes a new frame." - (interactive (dired-read-dir-and-switches "in other frame ")) - (switch-to-buffer-other-frame (dired-noselect dirname switches))) - ) +(defun-maybe dired-other-frame (dirname &optional switches) + "\"Edit\" directory DIRNAME. Like `dired' but makes a new frame." + (interactive (dired-read-dir-and-switches "in other frame ")) + (switch-to-buffer-other-frame (dired-noselect dirname switches)) + ) ;;; @ to avoid bug of XEmacs 19.14 -- 1.7.10.4