]> code.delx.au - gnu-emacs/blobdiff - lisp/wid-edit.el
Require rmail not just when compiling.
[gnu-emacs] / lisp / wid-edit.el
index 202ee215b148b3bedcd058d6db509f2040603501..ef89a01e050c042d6e72982c31286fa45ed7b3f3 100644 (file)
@@ -1,7 +1,7 @@
 ;;; wid-edit.el --- Functions for creating and using widgets -*-byte-compile-dynamic: t;-*-
 ;;
 ;; Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
-;;   2006, 2007, 2008  Free Software Foundation, Inc.
+;;   2006, 2007, 2008, 2009  Free Software Foundation, Inc.
 ;;
 ;; Author: Per Abrahamsen <abraham@dina.kvl.dk>
 ;; Maintainer: FSF
@@ -198,7 +198,7 @@ For a larger number of items, the minibuffer is used."
   :type 'integer)
 
 (defcustom widget-menu-minibuffer-flag nil
-  "*Control how to ask for a choice from the keyboard.
+  "Control how to ask for a choice from the keyboard.
 Non-nil means use the minibuffer;
 nil means read a single character."
   :group 'widgets
@@ -662,11 +662,7 @@ button is pressed or inactive, respectively.  These are currently ignored."
   (if (and (display-graphic-p)
           (setq image (widget-image-find image)))
       (progn (widget-put widget :suppress-face t)
-            (insert-image image
-                          (propertize
-                            ;; Use a `list' so it's unique and won't get
-                            ;; accidentally merged with neighbouring images.
-                           tag 'mouse-face (list widget-button-pressed-face))))
+            (insert-image image tag))
     (insert tag)))
 
 (defun widget-move-and-invoke (event)
@@ -3049,7 +3045,7 @@ widget.  If that isn't a list, it's evalled and expected to yield a list."
           (message "Only match"))
          ((null completion)
           (error "No match"))
-         ((not (eq t (compare-strings prefix nil nil completion nil nil 
+         ((not (eq t (compare-strings prefix nil nil completion nil nil
                                       completion-ignore-case)))
           (when completion-ignore-case
             ;; Replace field with completion in case its case is different.