summaryrefslogtreecommitdiff
path: root/lisp/find-file.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1998-05-22 23:36:06 +0000
committerRichard M. Stallman <rms@gnu.org>1998-05-22 23:36:06 +0000
commit6e9aac7491db0ca8fd6214105c4775103977beca (patch)
tree6d1ad463109d934805e70cc600ecde01aba6b030 /lisp/find-file.el
parent97c3c30c780b95d57f0f07636a8e49b1846f71a4 (diff)
downloademacs-6e9aac7491db0ca8fd6214105c4775103977beca.tar.gz
(ff-emacs-19, ff-xemacs): Functions deleted.
(ff-goto-click, ff-mouse-find-other-file) (ff-mouse-find-other-file-other-window): Just one definition. (locate-file): Definition deleted.
Diffstat (limited to 'lisp/find-file.el')
-rw-r--r--lisp/find-file.el69
1 files changed, 17 insertions, 52 deletions
diff --git a/lisp/find-file.el b/lisp/find-file.el
index b7e51c6f077..ebed0b73044 100644
--- a/lisp/find-file.el
+++ b/lisp/find-file.el
@@ -377,13 +377,6 @@ Variables of interest include:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Support functions
-(defun ff-emacs-19 ()
- (string-match "^19\\.[0-9]+\\.[0-9]+$" emacs-version))
-
-(defun ff-xemacs ()
- (or (string-match "Lucid" emacs-version)
- (string-match "XEmacs" emacs-version)))
-
(defun ff-find-the-other-file (&optional in-other-window)
"Find the header or source file corresponding to the current file.
Being on a `#include' line pulls in that file, but see the help on
@@ -771,53 +764,25 @@ called before `ff-post-load-hooks'."
'switch-to-buffer-other-window
buffer-or-name in-other-window nil))
-(cond
- ((ff-emacs-19)
- (defun ff-goto-click (event)
- (set-buffer (window-buffer (posn-window (event-end event))))
- (goto-char (posn-point (event-end event))))
-
- ;;;###autoload
- (defun ff-mouse-find-other-file (event)
- "Visit the file you click on."
- (interactive "e")
- (save-excursion
- (ff-goto-click event)
- (ff-find-other-file nil)))
+(defun ff-goto-click (event)
+ (set-buffer (window-buffer (posn-window (event-end event))))
+ (goto-char (posn-point (event-end event))))
- ;;;###autoload
- (defun ff-mouse-find-other-file-other-window (event)
- "Visit the file you click on."
- (interactive "e")
- (save-excursion
- (ff-goto-click event)
- (ff-find-other-file t)))
-
- ;;;###autoload
- (defun locate-file (fname dirs &optional suffix-list ignore-perms)
- "Defines XEmacs look-alike locate-file for GNU Emacs-19."
- (interactive)
- (ff-get-file dirs fname suffix-list))
- )
-
- ((ff-xemacs)
-
- ;;;###autoload
- (defun ff-mouse-find-other-file (event)
- "Visit the file you click on."
- (interactive "@e")
- (save-excursion
- (mouse-set-point event)
- (ff-find-other-file nil)))
+;;;###autoload
+(defun ff-mouse-find-other-file (event)
+ "Visit the file you click on."
+ (interactive "e")
+ (save-excursion
+ (ff-goto-click event)
+ (ff-find-other-file nil)))
- ;;;###autoload
- (defun ff-mouse-find-other-file-other-window (event)
- "Visit the file you click on."
- (interactive "@e")
- (save-excursion
- (mouse-set-point event)
- (ff-find-other-file t)))
- ))
+;;;###autoload
+(defun ff-mouse-find-other-file-other-window (event)
+ "Visit the file you click on."
+ (interactive "e")
+ (save-excursion
+ (ff-goto-click event)
+ (ff-find-other-file t)))
(provide 'find-file)