diff options
| author | Juri Linkov | 2019-11-24 00:22:46 +0200 |
|---|---|---|
| committer | Juri Linkov | 2019-11-24 00:22:46 +0200 |
| commit | 4b5d04be44af36cb2faccd368de063cf376282ca (patch) | |
| tree | 587358591551d040473728b2b5344b8e0a37c472 /etc | |
| parent | 8934762bb37273e6606097de92dcc2556456acd2 (diff) | |
| download | emacs-4b5d04be44af36cb2faccd368de063cf376282ca.tar.gz emacs-4b5d04be44af36cb2faccd368de063cf376282ca.zip | |
Use new macro debounce-reduce to make mouse scaling of images more responsive
* lisp/emacs-lisp/timer.el (debounce, debounce-reduce): New macros.
* lisp/image.el (image-increase-size, image-decrease-size):
Use funcall to call image--change-size-function.
(image--change-size-function): Move code from defun of
image--change-size to defvar that has the value of lambda
returned from debounce-reduce. (Bug#38187)
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
| @@ -2796,6 +2796,11 @@ doing computations on a decoded time structure), 'make-decoded-time' | |||
| 2796 | filled out), and 'encoded-time-set-defaults' (which fills in nil | 2796 | filled out), and 'encoded-time-set-defaults' (which fills in nil |
| 2797 | elements as if it's midnight January 1st, 1970) have been added. | 2797 | elements as if it's midnight January 1st, 1970) have been added. |
| 2798 | 2798 | ||
| 2799 | ** New macros 'debounce' and 'debounce-reduce' postpone function call | ||
| 2800 | until after specified time have elapsed since the last time it was invoked. | ||
| 2801 | This improves performance of processing events occurring rapidly | ||
| 2802 | in quick succession. | ||
| 2803 | |||
| 2799 | ** 'define-minor-mode' automatically documents the meaning of ARG. | 2804 | ** 'define-minor-mode' automatically documents the meaning of ARG. |
| 2800 | 2805 | ||
| 2801 | +++ | 2806 | +++ |