Mercurial > emacs
comparison lisp/gnus/gnus-art.el @ 87187:54ba9c058e4a
(declare-function): Add compatibility declaration.
(w3-region, w3m-region, Info-menu): Declare as functions.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sun, 09 Dec 2007 02:04:18 +0000 |
parents | 5fe2474b99aa |
children | b968c7f9a8b4 |
comparison
equal
deleted
inserted
replaced
87186:b37f01064ecf | 87187:54ba9c058e4a |
---|---|
25 | 25 |
26 ;;; Commentary: | 26 ;;; Commentary: |
27 | 27 |
28 ;;; Code: | 28 ;;; Code: |
29 | 29 |
30 ;; For Emacs < 22.2. | |
31 (eval-and-compile | |
32 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | |
30 (eval-when-compile | 33 (eval-when-compile |
31 (require 'cl)) | 34 (require 'cl)) |
32 (defvar tool-bar-map) | 35 (defvar tool-bar-map) |
33 (defvar w3m-minor-mode-map) | 36 (defvar w3m-minor-mode-map) |
34 | 37 |
2703 ((functionp func) | 2706 ((functionp func) |
2704 (funcall func)) | 2707 (funcall func)) |
2705 (t | 2708 (t |
2706 (apply (car func) (cdr func)))))))))) | 2709 (apply (car func) (cdr func)))))))))) |
2707 | 2710 |
2711 ;; External. | |
2712 (declare-function w3-region "ext:w3-display" (st nd)) | |
2713 | |
2708 (defun gnus-article-wash-html-with-w3 () | 2714 (defun gnus-article-wash-html-with-w3 () |
2709 "Wash the current buffer with w3." | 2715 "Wash the current buffer with w3." |
2710 (mm-setup-w3) | 2716 (mm-setup-w3) |
2711 (let ((w3-strict-width (window-width)) | 2717 (let ((w3-strict-width (window-width)) |
2712 (url-standalone-mode t) | 2718 (url-standalone-mode t) |
2713 (url-gateway-unplugged t) | 2719 (url-gateway-unplugged t) |
2714 (w3-honor-stylesheets nil)) | 2720 (w3-honor-stylesheets nil)) |
2715 (condition-case () | 2721 (condition-case () |
2716 (w3-region (point-min) (point-max)) | 2722 (w3-region (point-min) (point-max)) |
2717 (error)))) | 2723 (error)))) |
2724 | |
2725 ;; External. | |
2726 (declare-function w3m-region "ext:w3m" (start end &optional url charset)) | |
2718 | 2727 |
2719 (defun gnus-article-wash-html-with-w3m () | 2728 (defun gnus-article-wash-html-with-w3m () |
2720 "Wash the current buffer with emacs-w3m." | 2729 "Wash the current buffer with emacs-w3m." |
2721 (mm-setup-w3m) | 2730 (mm-setup-w3m) |
2722 (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp) | 2731 (let ((w3m-safe-url-regexp mm-w3m-safe-url-regexp) |
7680 | 7689 |
7681 (defun gnus-button-handle-info-url-kde (url) | 7690 (defun gnus-button-handle-info-url-kde (url) |
7682 "Fetch KDE style info URL." | 7691 "Fetch KDE style info URL." |
7683 (gnus-info-find-node (gnus-url-unhex-string url))) | 7692 (gnus-info-find-node (gnus-url-unhex-string url))) |
7684 | 7693 |
7694 ;; (info) will autoload info.el | |
7695 (declare-function Info-menu "info" (menu-item &optional fork)) | |
7696 | |
7685 (defun gnus-button-handle-info-keystrokes (url) | 7697 (defun gnus-button-handle-info-keystrokes (url) |
7686 "Call `info' when pushing the corresponding URL button." | 7698 "Call `info' when pushing the corresponding URL button." |
7687 ;; For links like `C-h i d m gnus RET', `C-h i d m CC Mode RET'. | 7699 ;; For links like `C-h i d m gnus RET', `C-h i d m CC Mode RET'. |
7688 (info) | 7700 (info) |
7689 (Info-directory) | 7701 (Info-directory) |