aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2019-11-24 00:22:46 +0200
committerJuri Linkov2019-11-24 00:22:46 +0200
commit4b5d04be44af36cb2faccd368de063cf376282ca (patch)
tree587358591551d040473728b2b5344b8e0a37c472 /etc
parent8934762bb37273e6606097de92dcc2556456acd2 (diff)
downloademacs-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/NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 3bf4c81014b..819637b79fc 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2796,6 +2796,11 @@ doing computations on a decoded time structure), 'make-decoded-time'
2796filled out), and 'encoded-time-set-defaults' (which fills in nil 2796filled out), and 'encoded-time-set-defaults' (which fills in nil
2797elements as if it's midnight January 1st, 1970) have been added. 2797elements as if it's midnight January 1st, 1970) have been added.
2798 2798
2799** New macros 'debounce' and 'debounce-reduce' postpone function call
2800until after specified time have elapsed since the last time it was invoked.
2801This improves performance of processing events occurring rapidly
2802in 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+++