diff options
| author | Chong Yidong | 2011-02-12 22:07:53 -0500 |
|---|---|---|
| committer | Chong Yidong | 2011-02-12 22:07:53 -0500 |
| commit | 75d4dcc9d2d109fc51e67c86017bce22e5f4252c (patch) | |
| tree | 53eb8e6e90ca888496616abb28114ca98abab6c8 | |
| parent | 8a36c07fc81f0ed28f03a5f014e7b490485036aa (diff) | |
| download | emacs-75d4dcc9d2d109fc51e67c86017bce22e5f4252c.tar.gz emacs-75d4dcc9d2d109fc51e67c86017bce22e5f4252c.zip | |
Use simple buttons, instead of widget buttons, in vc-log.
* 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.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/vc/log-view.el | 1 | ||||
| -rw-r--r-- | lisp/vc/vc.el | 30 |
3 files changed, 22 insertions, 17 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c29b62f078d..97937defc3a 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2011-02-13 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * vc/vc.el (vc-print-log-setup-buttons): Instead of using the | ||
| 4 | widget library for buttons, just use button.el. | ||
| 5 | |||
| 6 | * vc/log-view.el (log-view-mode-map): Don't inherit from | ||
| 7 | widget-keymap. | ||
| 8 | |||
| 1 | 2011-02-12 Glenn Morris <rgm@gnu.org> | 9 | 2011-02-12 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * emacs-lisp/cl-seq.el (union, nunion, intersection) | 11 | * emacs-lisp/cl-seq.el (union, nunion, intersection) |
diff --git a/lisp/vc/log-view.el b/lisp/vc/log-view.el index 11ffc9a5e36..f71c928c693 100644 --- a/lisp/vc/log-view.el +++ b/lisp/vc/log-view.el | |||
| @@ -147,7 +147,6 @@ | |||
| 147 | ("\M-n" . log-view-file-next) | 147 | ("\M-n" . log-view-file-next) |
| 148 | ("\M-p" . log-view-file-prev)) | 148 | ("\M-p" . log-view-file-prev)) |
| 149 | "Log-View's keymap." | 149 | "Log-View's keymap." |
| 150 | :inherit widget-keymap | ||
| 151 | :group 'log-view) | 150 | :group 'log-view) |
| 152 | 151 | ||
| 153 | (easy-menu-define log-view-mode-menu log-view-mode-map | 152 | (easy-menu-define log-view-mode-menu log-view-mode-map |
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index be0f568d304..815bdbfc5bf 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el | |||
| @@ -2014,22 +2014,20 @@ Not all VC backends support short logs!") | |||
| 2014 | (goto-char (point-max)) | 2014 | (goto-char (point-max)) |
| 2015 | (lexical-let ((working-revision working-revision) | 2015 | (lexical-let ((working-revision working-revision) |
| 2016 | (limit limit)) | 2016 | (limit limit)) |
| 2017 | (widget-create 'push-button | 2017 | (insert "\n") |
| 2018 | :notify (lambda (&rest ignore) | 2018 | (insert-text-button "Show 2X entries" |
| 2019 | (vc-print-log-internal | 2019 | 'action (lambda (&rest ignore) |
| 2020 | log-view-vc-backend log-view-vc-fileset | 2020 | (vc-print-log-internal |
| 2021 | working-revision nil (* 2 limit))) | 2021 | log-view-vc-backend log-view-vc-fileset |
| 2022 | :help-echo "Show the log again, and double the number of log entries shown" | 2022 | working-revision nil (* 2 limit))) |
| 2023 | "Show 2X entries") | 2023 | 'help-echo "Show the log again, and double the number of log entries shown") |
| 2024 | (widget-insert " ") | 2024 | (insert " ") |
| 2025 | (widget-create 'push-button | 2025 | (insert-text-button "Show unlimited entries" |
| 2026 | :notify (lambda (&rest ignore) | 2026 | 'action (lambda (&rest ignore) |
| 2027 | (vc-print-log-internal | 2027 | (vc-print-log-internal |
| 2028 | log-view-vc-backend log-view-vc-fileset | 2028 | log-view-vc-backend log-view-vc-fileset |
| 2029 | working-revision nil nil)) | 2029 | working-revision nil nil)) |
| 2030 | :help-echo "Show the log again, showing all entries" | 2030 | 'help-echo "Show the log again, including all entries")))) |
| 2031 | "Show unlimited entries")) | ||
| 2032 | (widget-setup))) | ||
| 2033 | 2031 | ||
| 2034 | (defun vc-print-log-internal (backend files working-revision | 2032 | (defun vc-print-log-internal (backend files working-revision |
| 2035 | &optional is-start-revision limit) | 2033 | &optional is-start-revision limit) |