X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/84eb0351d8be4811897c8cf62a69757ff5d14001..0e963201d03d9229bb8ac4323291d2b0119526ed:/lisp/tree-widget.el diff --git a/lisp/tree-widget.el b/lisp/tree-widget.el index 77159573c9..c1bb2a7adc 100644 --- a/lisp/tree-widget.el +++ b/lisp/tree-widget.el @@ -1,6 +1,6 @@ ;;; tree-widget.el --- Tree widget -;; Copyright (C) 2004-2011 Free Software Foundation, Inc. +;; Copyright (C) 2004-2016 Free Software Foundation, Inc. ;; Author: David Ponce ;; Maintainer: David Ponce @@ -115,7 +115,6 @@ ;; ;;; Code: -(eval-when-compile (require 'cl)) (require 'wid-edit) ;;; Customization @@ -295,9 +294,9 @@ Typically it should contain something like this: (tree-widget-set-parent-theme \"my-parent-theme\") (tree-widget-set-image-properties - (if (featurep 'xemacs) - '(:ascent center) - '(:ascent center :mask (heuristic t)) + (if (featurep \\='xemacs) + \\='(:ascent center) + \\='(:ascent center :mask (heuristic t)) ))" (or name (setq name (or tree-widget-theme "default"))) (unless (string-equal name (tree-widget-theme-name)) @@ -657,6 +656,8 @@ This hook should be local in the buffer setup to display widgets.") (widget-get tree :dynargs))) tree)) +(defvar widget-glyph-enable) ; XEmacs + (defun tree-widget-value-create (tree) "Create the TREE tree-widget." (let* ((node (tree-widget-node tree)) @@ -792,7 +793,7 @@ Each function is passed a tree-widget. If the value of the :open property is non-nil the tree has been expanded, else collapsed. This hook should be local in the buffer setup to display widgets.") -(defun tree-widget-action (tree &optional event) +(defun tree-widget-action (tree &optional _event) "Handle the :action of the TREE tree-widget. That is, toggle expansion of the TREE tree-widget. Ignore the EVENT argument."