diff options
| author | Glenn Morris | 2007-11-27 04:07:26 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-11-27 04:07:26 +0000 |
| commit | 36b5be6bd4ee9e33816c747167224d14d81596e0 (patch) | |
| tree | 6bab644486e032c86876905001a9b1afa71a4fe6 | |
| parent | 47330d3f425aa06c721afe1f8875203f5d90ef0d (diff) | |
| download | emacs-36b5be6bd4ee9e33816c747167224d14d81596e0.tar.gz emacs-36b5be6bd4ee9e33816c747167224d14d81596e0.zip | |
(ffap-bug, ffap-submit-bug): Redefine as obsolete aliases for
report-emacs-bug.
(gnus-summary-select-article, gnus-configure-windows): Declare as functions.
| -rw-r--r-- | lisp/ffap.el | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/lisp/ffap.el b/lisp/ffap.el index 8c338bd947a..af269559bfd 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el | |||
| @@ -1045,6 +1045,9 @@ Assumes the buffer has not changed." | |||
| 1045 | ;; Older: (apply 'copy-region-as-kill ffap-string-at-point-region) | 1045 | ;; Older: (apply 'copy-region-as-kill ffap-string-at-point-region) |
| 1046 | (message "Copied to kill ring: %s" str)))) | 1046 | (message "Copied to kill ring: %s" str)))) |
| 1047 | 1047 | ||
| 1048 | ;; External. | ||
| 1049 | ;;;(declare-function w3-view-this-url "w3" (&optional no-show)) | ||
| 1050 | |||
| 1048 | (defun ffap-url-at-point nil | 1051 | (defun ffap-url-at-point nil |
| 1049 | "Return url from around point if it exists, or nil." | 1052 | "Return url from around point if it exists, or nil." |
| 1050 | ;; Could use w3's url-get-url-at-point instead. Both handle "URL:", | 1053 | ;; Could use w3's url-get-url-at-point instead. Both handle "URL:", |
| @@ -1687,20 +1690,8 @@ Only intended for interactive use." | |||
| 1687 | 1690 | ||
| 1688 | ;;; Bug Reporter: | 1691 | ;;; Bug Reporter: |
| 1689 | 1692 | ||
| 1690 | (defun ffap-bug nil | 1693 | (define-obsolete-function-alias 'ffap-bug 'report-emacs-bug "23.1") |
| 1691 | "Submit a bug report for the ffap package." | 1694 | (define-obsolete-function-alias 'ffap-submit-bug 'report-emacs-bug "23.1") |
| 1692 | ;; Important: keep the version string here in synch with that at top | ||
| 1693 | ;; of file! Could use lisp-mnt from Emacs 19, but that would depend | ||
| 1694 | ;; on being able to find the ffap.el source file. | ||
| 1695 | (interactive) | ||
| 1696 | (require 'reporter) | ||
| 1697 | (let ((reporter-prompt-for-summary-p t)) | ||
| 1698 | (reporter-submit-bug-report | ||
| 1699 | "Michelangelo Grigni <mic@mathcs.emory.edu>" | ||
| 1700 | "ffap" | ||
| 1701 | (mapcar 'intern (all-completions "ffap-" obarray 'boundp))))) | ||
| 1702 | |||
| 1703 | (fset 'ffap-submit-bug 'ffap-bug) ; another likely name | ||
| 1704 | 1695 | ||
| 1705 | 1696 | ||
| 1706 | ;;; Hooks for Gnus, VM, Rmail: | 1697 | ;;; Hooks for Gnus, VM, Rmail: |
| @@ -1724,6 +1715,13 @@ Only intended for interactive use." | |||
| 1724 | (defvar gnus-summary-buffer) | 1715 | (defvar gnus-summary-buffer) |
| 1725 | (defvar gnus-article-buffer) | 1716 | (defvar gnus-article-buffer) |
| 1726 | 1717 | ||
| 1718 | ;; This code is called from gnus. | ||
| 1719 | (declare-function gnus-summary-select-article "gnus-sum" | ||
| 1720 | (&optional all-headers force pseudo article)) | ||
| 1721 | |||
| 1722 | (declare-function gnus-configure-windows "gnus-win" | ||
| 1723 | (setting &optional force)) | ||
| 1724 | |||
| 1727 | (defun ffap-gnus-wrapper (form) ; used by both commands below | 1725 | (defun ffap-gnus-wrapper (form) ; used by both commands below |
| 1728 | (and (eq (current-buffer) (get-buffer gnus-summary-buffer)) | 1726 | (and (eq (current-buffer) (get-buffer gnus-summary-buffer)) |
| 1729 | (gnus-summary-select-article)) ; get article of current line | 1727 | (gnus-summary-select-article)) ; get article of current line |