(gnus-button-patch): New command.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 17 Apr 2006 12:58:43 +0000 (12:58 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Mon, 17 Apr 2006 12:58:43 +0000 (12:58 +0000)
lisp/ChangeLog
lisp/gnus-art.el

index f54b8be..118bb42 100644 (file)
@@ -2,6 +2,7 @@
 
        * gnus-art.el (gnus-article-treat-types): Do treatment of
        text/x-verbatim parts.
+       (gnus-button-patch): New command.
 
        * ietf-drums.el (ietf-drums-parse-address): Attempt parsing
        addresses that contain invalid characters.
index 105e60e..ca3d860 100644 (file)
@@ -7094,6 +7094,15 @@ specified by `gnus-button-alist'."
      (group
       (gnus-button-fetch-group url)))))
 
+(defun gnus-button-patch (library line)
+  "Visit an Emacs Lisp library LIBRARY on line LINE."
+  (interactive)
+  (let ((file (locate-library library)))
+    (unless file
+      (error "Couldn't find library %s" library))
+    (find-file file)
+    (goto-line (string-to-number line))))
+
 (defun gnus-button-handle-man (url)
   "Fetch a man page."
   (gnus-message 9 "`%s' `%s'" gnus-button-man-handler url)