diff options
| author | Stefan Kangas | 2020-11-19 17:46:16 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2020-11-19 20:44:55 +0100 |
| commit | 842fc2d01ebf7ff2d41bce2d8a0b25c30d41941b (patch) | |
| tree | aafe88e3f9fa4d9c99600db67c99e3f0c447e3cc /lisp/ffap.el | |
| parent | 493e19b97f8561638f042fb166cd69a384718edd (diff) | |
| download | emacs-842fc2d01ebf7ff2d41bce2d8a0b25c30d41941b.tar.gz emacs-842fc2d01ebf7ff2d41bce2d8a0b25c30d41941b.zip | |
Remove some compat code from ffap.el
* lisp/ffap.el (ffap-mouse-event, ffap-event-buffer): Make obsolete.
(ffap-menu-ask, ffap-at-mouse): Adjust callers.
Diffstat (limited to 'lisp/ffap.el')
| -rw-r--r-- | lisp/ffap.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el index 9ad421c2777..d4bddd0574f 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -301,15 +301,14 @@ disable ffap most of the time." | |||
| 301 | :version "20.3") | 301 | :version "20.3") |
| 302 | 302 | ||
| 303 | 303 | ||
| 304 | ;;; Compatibility: | 304 | ;;; Obsolete: |
| 305 | ;; | ||
| 306 | ;; This version of ffap supports only the Emacs it is distributed in. | ||
| 307 | ;; See the ftp site for a more general version. The following | ||
| 308 | ;; functions are necessary "leftovers" from the more general version. | ||
| 309 | 305 | ||
| 310 | (defun ffap-mouse-event () ; current mouse event, or nil | 306 | (defun ffap-mouse-event () ; current mouse event, or nil |
| 307 | (declare (obsolete nil "28.1")) | ||
| 311 | (and (listp last-nonmenu-event) last-nonmenu-event)) | 308 | (and (listp last-nonmenu-event) last-nonmenu-event)) |
| 309 | |||
| 312 | (defun ffap-event-buffer (event) | 310 | (defun ffap-event-buffer (event) |
| 311 | (declare (obsolete nil "28.1")) | ||
| 313 | (window-buffer (car (event-start event)))) | 312 | (window-buffer (car (event-start event)))) |
| 314 | 313 | ||
| 315 | 314 | ||
| @@ -1736,7 +1735,9 @@ Function CONT is applied to the entry chosen by the user." | |||
| 1736 | (let (choice) | 1735 | (let (choice) |
| 1737 | (cond | 1736 | (cond |
| 1738 | ;; Emacs mouse: | 1737 | ;; Emacs mouse: |
| 1739 | ((and (fboundp 'x-popup-menu) (ffap-mouse-event)) | 1738 | ((and (fboundp 'x-popup-menu) |
| 1739 | (listp last-nonmenu-event) | ||
| 1740 | last-nonmenu-event) | ||
| 1740 | (setq choice | 1741 | (setq choice |
| 1741 | (x-popup-menu | 1742 | (x-popup-menu |
| 1742 | t | 1743 | t |
| @@ -1829,7 +1830,7 @@ Return value: | |||
| 1829 | (ffap-guesser)))) | 1830 | (ffap-guesser)))) |
| 1830 | (cond | 1831 | (cond |
| 1831 | (guess | 1832 | (guess |
| 1832 | (set-buffer (ffap-event-buffer e)) | 1833 | (set-buffer (window-buffer (car (event-start e)))) |
| 1833 | (ffap-highlight) | 1834 | (ffap-highlight) |
| 1834 | (unwind-protect | 1835 | (unwind-protect |
| 1835 | (progn | 1836 | (progn |