Mercurial > emacs
changeset 20073:74c909547230
(variable-link): New widget.
(widget-variable-link-action): New function.
(function-link): New widget.
(widget-function-link-action): New function.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Thu, 16 Oct 1997 18:22:36 +0000 |
parents | 92d2c2e3b3f3 |
children | 0b680b922b56 |
files | lisp/wid-edit.el |
diffstat | 1 files changed, 20 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/wid-edit.el Thu Oct 16 18:20:16 1997 +0000 +++ b/lisp/wid-edit.el Thu Oct 16 18:22:36 1997 +0000 @@ -1750,6 +1750,26 @@ (require 'browse-url) (funcall browse-url-browser-function (widget-value widget))) +;;; The `function-link' Widget. + +(define-widget 'function-link 'link + "A link to an Emacs function." + :action 'widget-function-link-action) + +(defun widget-function-link-action (widget &optional event) + "Show the function specified by WIDGET." + (describe-function (widget-value widget))) + +;;; The `variable-link' Widget. + +(define-widget 'variable-link 'link + "A link to an Emacs variable." + :action 'widget-variable-link-action) + +(defun widget-variable-link-action (widget &optional event) + "Show the variable specified by WIDGET." + (describe-variable (widget-value widget))) + ;;; The `file-link' Widget. (define-widget 'file-link 'link