comparison lisp/ffap.el @ 68828:6129fc95cce2

Comment changes.
author Richard M. Stallman <rms@gnu.org>
date Sun, 12 Feb 2006 20:30:49 +0000
parents 3bd95f4f2941
children 72b641ca5ff3 d57ee9eab157
comparison
equal deleted inserted replaced
68827:9e3243a12c5f 68828:6129fc95cce2
285 (put 'ffap-url-fetcher 'risky-local-variable t) 285 (put 'ffap-url-fetcher 'risky-local-variable t)
286 286
287 287
288 ;;; Compatibility: 288 ;;; Compatibility:
289 ;; 289 ;;
290 ;; This version of ffap supports Emacs 20 only, see the ftp site 290 ;; This version of ffap supports only the Emacs it is distributed in.
291 ;; for a more general version. The following functions are necessary 291 ;; See the ftp site for a more general version. The following
292 ;; "leftovers" from the more general version. 292 ;; functions are necessary "leftovers" from the more general version.
293 293
294 (defun ffap-mouse-event nil ; current mouse event, or nil 294 (defun ffap-mouse-event nil ; current mouse event, or nil
295 (and (listp last-nonmenu-event) last-nonmenu-event)) 295 (and (listp last-nonmenu-event) last-nonmenu-event))
296 (defun ffap-event-buffer (event) 296 (defun ffap-event-buffer (event)
297 (window-buffer (car (event-start event)))) 297 (window-buffer (car (event-start event))))
728 (ffap-all-subdirs (substring dir 0 -2) ffap-kpathsea-depth) 728 (ffap-all-subdirs (substring dir 0 -2) ffap-kpathsea-depth)
729 (list dir)))) 729 (list dir))))
730 path))) 730 path)))
731 731
732 (defun ffap-locate-file (file &optional nosuffix path dir-ok) 732 (defun ffap-locate-file (file &optional nosuffix path dir-ok)
733 ;; The Emacs 20 version of locate-library could almost replace this, 733 ;; The current version of locate-library could almost replace this,
734 ;; except it does not let us override the suffix list. The 734 ;; except it does not let us override the suffix list. The
735 ;; compression-suffixes search moved to ffap-file-exists-string. 735 ;; compression-suffixes search moved to ffap-file-exists-string.
736 "A generic path-searching function, mimics `load' by default. 736 "A generic path-searching function, mimics `load' by default.
737 Returns path to file that \(load FILE\) would load, or nil. 737 Returns path to file that \(load FILE\) would load, or nil.
738 Optional NOSUFFIX, if nil or t, is like the fourth argument 738 Optional NOSUFFIX, if nil or t, is like the fourth argument