aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/dired-aux.el3
-rw-r--r--lisp/mwheel.el30
-rw-r--r--lisp/net/eww.el3
-rw-r--r--lisp/vc/add-log.el2
4 files changed, 17 insertions, 21 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index b837fb4e5ea..e8b5e6755ea 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -1842,7 +1842,8 @@ Optional arg HOW-TO determines how to treat the target.
1842 rfn-list - list of the relative names for the marked files. 1842 rfn-list - list of the relative names for the marked files.
1843 fn-list - list of the absolute names for the marked files. 1843 fn-list - list of the absolute names for the marked files.
1844 target - the name of the target itself. 1844 target - the name of the target itself.
1845 The rest of into-dir are optional arguments. 1845 The rest of elements of the list returned by HOW-TO are optional
1846 arguments for the function that is the first element of the list.
1846 For any other return value, TARGET is treated as a directory." 1847 For any other return value, TARGET is treated as a directory."
1847 (or op1 (setq op1 operation)) 1848 (or op1 (setq op1 operation))
1848 (let* ((fn-list (dired-get-marked-files nil arg nil nil t)) 1849 (let* ((fn-list (dired-get-marked-files nil arg nil nil t))
diff --git a/lisp/mwheel.el b/lisp/mwheel.el
index cbd78137622..44c4989ad06 100644
--- a/lisp/mwheel.el
+++ b/lisp/mwheel.el
@@ -150,30 +150,18 @@ This can be slightly disconcerting, but some people prefer it."
150 150
151;;; For tilt-scroll 151;;; For tilt-scroll
152;;; 152;;;
153(defcustom mwheel-tilt-scroll-p nil 153(defcustom mouse-wheel-tilt-scroll nil
154 "Enable scroll using tilting mouse wheel." 154 "Enable scroll using tilting mouse wheel."
155 :group 'mouse 155 :group 'mouse
156 :type 'boolean 156 :type 'boolean
157 :version "26.1") 157 :version "26.1")
158 158
159(defcustom mwheel-flip-direction nil 159(defcustom mouse-wheel-flip-direction nil
160 "Swap direction of 'wheel-right and 'wheel-left." 160 "Swap direction of 'wheel-right and 'wheel-left."
161 :group 'mouse 161 :group 'mouse
162 :type 'boolean 162 :type 'boolean
163 :version "26.1") 163 :version "26.1")
164 164
165(defcustom mwheel-scroll-left-function 'scroll-left
166 "Function that does the job of scrolling left."
167 :group 'mouse
168 :type 'function
169 :version "26.1")
170
171(defcustom mwheel-scroll-right-function 'scroll-right
172 "Function that does the job of scrolling right."
173 :group 'mouse
174 :type 'function
175 :version "26.1")
176
177(eval-and-compile 165(eval-and-compile
178 (if (fboundp 'event-button) 166 (if (fboundp 'event-button)
179 (fset 'mwheel-event-button 'event-button) 167 (fset 'mwheel-event-button 'event-button)
@@ -211,6 +199,12 @@ This can be slightly disconcerting, but some people prefer it."
211(defvar mwheel-scroll-down-function 'scroll-down 199(defvar mwheel-scroll-down-function 'scroll-down
212 "Function that does the job of scrolling downward.") 200 "Function that does the job of scrolling downward.")
213 201
202(defvar mwheel-scroll-left-function 'scroll-left
203 "Function that does the job of scrolling left.")
204
205(defvar mwheel-scroll-right-function 'scroll-right
206 "Function that does the job of scrolling right.")
207
214(defvar mouse-wheel-left-event 208(defvar mouse-wheel-left-event
215 (if (or (featurep 'w32-win) (featurep 'ns-win)) 209 (if (or (featurep 'w32-win) (featurep 'ns-win))
216 'wheel-left 210 'wheel-left
@@ -293,13 +287,13 @@ non-Windows systems."
293 ;; Make sure we do indeed scroll to the end of the buffer. 287 ;; Make sure we do indeed scroll to the end of the buffer.
294 (end-of-buffer (while t (funcall mwheel-scroll-up-function))))) 288 (end-of-buffer (while t (funcall mwheel-scroll-up-function)))))
295 ((eq button mouse-wheel-left-event) ; for tilt scroll 289 ((eq button mouse-wheel-left-event) ; for tilt scroll
296 (when mwheel-tilt-scroll-p 290 (when mouse-wheel-tilt-scroll
297 (funcall (if mwheel-flip-direction 291 (funcall (if mouse-wheel-flip-direction
298 mwheel-scroll-right-function 292 mwheel-scroll-right-function
299 mwheel-scroll-left-function) amt))) 293 mwheel-scroll-left-function) amt)))
300 ((eq button mouse-wheel-right-event) ; for tilt scroll 294 ((eq button mouse-wheel-right-event) ; for tilt scroll
301 (when mwheel-tilt-scroll-p 295 (when mouse-wheel-tilt-scroll
302 (funcall (if mwheel-flip-direction 296 (funcall (if mouse-wheel-flip-direction
303 mwheel-scroll-left-function 297 mwheel-scroll-left-function
304 mwheel-scroll-right-function) amt))) 298 mwheel-scroll-right-function) amt)))
305 (t (error "Bad binding in mwheel-scroll")))) 299 (t (error "Bad binding in mwheel-scroll"))))
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index caac96a4859..66b1767b563 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1532,7 +1532,8 @@ Differences in #targets are ignored."
1532 eww-download-directory))) 1532 eww-download-directory)))
1533 (goto-char (point-min)) 1533 (goto-char (point-min))
1534 (re-search-forward "\r?\n\r?\n") 1534 (re-search-forward "\r?\n\r?\n")
1535 (write-region (point) (point-max) file) 1535 (let ((coding-system-for-write 'no-conversion))
1536 (write-region (point) (point-max) file))
1536 (message "Saved %s" file)))) 1537 (message "Saved %s" file))))
1537 1538
1538(defun eww-decode-url-file-name (string) 1539(defun eww-decode-url-file-name (string)
diff --git a/lisp/vc/add-log.el b/lisp/vc/add-log.el
index bc2be4aadb4..175c82f8c00 100644
--- a/lisp/vc/add-log.el
+++ b/lisp/vc/add-log.el
@@ -898,7 +898,7 @@ non-nil, otherwise in local time."
898 (insert (if use-hard-newlines hard-newline "\n") 898 (insert (if use-hard-newlines hard-newline "\n")
899 (if use-hard-newlines hard-newline "\n")) 899 (if use-hard-newlines hard-newline "\n"))
900 (forward-line -2) 900 (forward-line -2)
901 (indent-relative-maybe)) 901 (indent-relative-first-indent-point))
902 (t 902 (t
903 ;; Make a new item. 903 ;; Make a new item.
904 (while (looking-at "\\sW") 904 (while (looking-at "\\sW")