Index: gnus-art.el =================================================================== RCS file: /usr/local/cvsroot/gnus/lisp/gnus-art.el,v retrieving revision 6.241 diff -u -w -r6.241 gnus-art.el --- gnus-art.el 2002/09/24 17:16:49 6.241 +++ gnus-art.el 2002/09/24 20:20:57 @@ -5295,7 +5295,8 @@ (defcustom gnus-button-guessed-mid-regexp (concat "^?\\)") +(defvar gnus-button-handle-describe-prefix "^\\(C-h\\|?\\)") (defun gnus-button-handle-describe-function (url) - "Call describe-function when pushing the corresponing URL button." + "Call describe-function when pushing the corresponding URL button." (describe-function (intern (gnus-replace-in-string url gnus-button-handle-describe-prefix "")))) (defun gnus-button-handle-describe-variable (url) - "Call describe-variable when pushing the corresponing URL button." + "Call describe-variable when pushing the corresponding URL button." (describe-variable (intern (gnus-replace-in-string url gnus-button-handle-describe-prefix "")))) @@ -5348,21 +5349,21 @@ ;; FIXME: Is is possible to implement this? Else it should be removed here ;; and in `gnus-button-alist'. (defun gnus-button-handle-describe-key (url) - "Call describe-key when pushing the corresponing URL button." + "Call describe-key when pushing the corresponding URL button." (error "not implemented")) -(defun gnus-button-handle-apropos (url) - "Call apropos when pushing the corresponing URL button." - (apropos (gnus-replace-in-string url gnus-button-handle-describe-prefix ""))) - (defun gnus-button-handle-apropos-command (url) - "Call apropos when pushing the corresponing URL button." - (apropos-command (gnus-replace-in-string url - gnus-button-handle-describe-prefix ""))) + "Call apropos when pushing the corresponding URL button." + (apropos-command + (gnus-replace-in-string url gnus-button-handle-describe-prefix ""))) (defun gnus-button-handle-apropos-variable (url) "Call apropos when pushing the corresponding URL button." - (apropos-variable (gnus-replace-in-string url gnus-button-handle-describe-prefix ""))) + (if (fboundp 'apropos-variable) + (apropos + (gnus-replace-in-string url gnus-button-handle-describe-prefix "")) + (apropos-variable + (gnus-replace-in-string url gnus-button-handle-describe-prefix "")))) (defcustom gnus-button-man-level 5 "*Integer that says how many man-related buttons Gnus will show. @@ -5414,18 +5415,18 @@ ("M-x[ \t\n]customize-[^ ]+[ \t\n]RET[ \t\n]\\([^ ]+\\)[ \t\n]RET" 0 (>= gnus-button-emacs-level 1) gnus-button-handle-custom 1) ;; Emacs help commands - ("M-x[ \t\n]apropos[ \t\n]\\([^ ]+\\)[ \t\n]RET" + ("M-x[ \t\n]+apropos[ \t\n]+RET[ \t\n]+\\([^ \t\n]+\\)[ \t\n]+RET" ;; regexp doesn't match arguments containing ` '. 0 (>= gnus-button-emacs-level 1) gnus-button-handle-apropos 1) - ("M-x[ \t\n]apropos-command[ \t\n]\\([^ ]+\\)[ \t\n]RET" 0 - (>= gnus-button-emacs-level 1) gnus-button-handle-apropos-command 1) - ("M-x[ \t\n]apropos-variable[ \t\n]\\([^ ]+\\)[ \t\n]RET" 0 - (>= gnus-button-emacs-level 1) gnus-button-handle-apropos-variable 1) - ("\\W\\(C-h\\|?\\)[ \t\n]f[ \t\n]\\([^ ]+\\)[ \t\n]RET" 0 - (>= gnus-button-emacs-level 1) gnus-button-handle-describe-function 2) - ("\\W\\(C-h\\|?\\)[ \t\n]v[ \t\n]\\([^ ]+\\)[ \t\n]RET" 0 - (>= gnus-button-emacs-level 1) gnus-button-handle-describe-variable 2) - ("\\W\\(C-h\\|?\\)[ \t\n]k[ \t\n]\\([^ ]+\\)[ \t\n]" 0 + ("M-x[ \t\n]+apropos-command[ \t\n]+RET[ \t\n]+\\([^ \t\n]+\\)[ \t\n]+RET" + 0 (>= gnus-button-emacs-level 1) gnus-button-handle-apropos-command 1) + ("M-x[ \t\n]+apropos-variable[ \t\n]+RET[ \t\n]+\\([^ \t\n]+\\)[ \t\n]+RET" + 0 (>= gnus-button-emacs-level 1) gnus-button-handle-apropos-variable 1) + ("\\W\\(C-h\\|?\\)[ \t\n]+f[ \t\n]+\\([^ \t\n]+\\)[ \t\n]+RET" + 0 (>= gnus-button-emacs-level 1) gnus-button-handle-describe-function 2) + ("\\W\\(C-h\\|?\\)[ \t\n]+v[ \t\n]+\\([^ \t\n]+\\)[ \t\n]+RET" + 0 (>= gnus-button-emacs-level 1) gnus-button-handle-describe-variable 2) + ("\\W\\(C-h\\|?\\)[ \t\n]+k[ \t\n]+\\([^ \t\n]+\\)[ \t\n]+" 0 ;; this regexp needs to be fixed! (>= gnus-button-emacs-level 9) gnus-button-handle-describe-key 2) ;; This is how URLs _should_ be embedded in text...