]> git.eshelyaron.com Git - emacs.git/commitdiff
Use simple buttons, instead of widget buttons, in vc-log.
authorChong Yidong <cyd@stupidchicken.com>
Sun, 13 Feb 2011 03:07:53 +0000 (22:07 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 13 Feb 2011 03:07:53 +0000 (22:07 -0500)
* lisp/vc/vc.el (vc-print-log-setup-buttons): Instead of using the
widget library for buttons, just use button.el.

* lisp/vc/log-view.el (log-view-mode-map): Don't inherit from
widget-keymap.

lisp/ChangeLog
lisp/vc/log-view.el
lisp/vc/vc.el

index c29b62f078d502f7a4e7bec42812d6fe928bc07d..97937defc3ac6a216ba04da84ce115747e701a00 100644 (file)
@@ -1,3 +1,11 @@
+2011-02-13  Chong Yidong  <cyd@stupidchicken.com>
+
+       * vc/vc.el (vc-print-log-setup-buttons): Instead of using the
+       widget library for buttons, just use button.el.
+
+       * vc/log-view.el (log-view-mode-map): Don't inherit from
+       widget-keymap.
+
 2011-02-12  Glenn Morris  <rgm@gnu.org>
 
        * emacs-lisp/cl-seq.el (union, nunion, intersection)
index 11ffc9a5e36c582062f798d3bebdc86016d489b7..f71c928c6937cbe89d248d0d975416c5b6caf733 100644 (file)
     ("\M-n" . log-view-file-next)
     ("\M-p" . log-view-file-prev))
   "Log-View's keymap."
-  :inherit widget-keymap
   :group 'log-view)
 
 (easy-menu-define log-view-mode-menu log-view-mode-map
index be0f568d3047b0b89e5797f739d0c04c4eb1caad..815bdbfc5bfba2f4456694a203a031c7ece31109 100644 (file)
@@ -2014,22 +2014,20 @@ Not all VC backends support short logs!")
     (goto-char (point-max))
     (lexical-let ((working-revision working-revision)
                  (limit limit))
-      (widget-create 'push-button
-                    :notify (lambda (&rest ignore)
-                              (vc-print-log-internal
-                               log-view-vc-backend log-view-vc-fileset
-                               working-revision nil (* 2 limit)))
-                    :help-echo "Show the log again, and double the number of log entries shown"
-                    "Show 2X entries")
-      (widget-insert "    ")
-      (widget-create 'push-button
-                    :notify (lambda (&rest ignore)
-                              (vc-print-log-internal
-                               log-view-vc-backend log-view-vc-fileset
-                               working-revision nil nil))
-                    :help-echo "Show the log again, showing all entries"
-                    "Show unlimited entries"))
-    (widget-setup)))
+      (insert "\n")
+      (insert-text-button "Show 2X entries"
+                         'action (lambda (&rest ignore)
+                                   (vc-print-log-internal
+                                    log-view-vc-backend log-view-vc-fileset
+                                    working-revision nil (* 2 limit)))
+                         'help-echo "Show the log again, and double the number of log entries shown")
+      (insert "    ")
+      (insert-text-button "Show unlimited entries"
+                         'action (lambda (&rest ignore)
+                                   (vc-print-log-internal
+                                    log-view-vc-backend log-view-vc-fileset
+                                    working-revision nil nil))
+                         'help-echo "Show the log again, including all entries"))))
 
 (defun vc-print-log-internal (backend files working-revision
                                       &optional is-start-revision limit)