aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2024-04-29 15:32:12 +0300
committerEli Zaretskii2024-04-29 15:32:12 +0300
commitf6ae5939b950bdec86471b02e81d1b3827546a2d (patch)
treeaf02f8074ca9e211304841892640abb655a9e0ff /lisp
parent3be382311fa03b9ec9c571b5e5737ff2d51bc2d3 (diff)
downloademacs-f6ae5939b950bdec86471b02e81d1b3827546a2d.tar.gz
emacs-f6ae5939b950bdec86471b02e81d1b3827546a2d.zip
; Fix documentation of recent commits.
* lisp/touch-screen.el (touch-screen-handle-point-up): Fix comments. * lisp/net/eww.el (eww-check-text-conversion, eww-select-file) (eww-toggle-checkbox, eww-submit): Doc fixes. * doc/emacs/input.texi (On-Screen Keyboards): Fix punctuation and wording.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/eww.el18
-rw-r--r--lisp/touch-screen.el11
2 files changed, 17 insertions, 12 deletions
diff --git a/lisp/net/eww.el b/lisp/net/eww.el
index 4bb491b9970..5a138dcc46a 100644
--- a/lisp/net/eww.el
+++ b/lisp/net/eww.el
@@ -1304,10 +1304,11 @@ This consults the entries in `eww-readable-urls' (which see)."
1304 1304
1305(defun eww-check-text-conversion () 1305(defun eww-check-text-conversion ()
1306 "Check if point is within a field and toggle text conversion. 1306 "Check if point is within a field and toggle text conversion.
1307If `text-conversion-style' is not `action' if point is within the 1307Set `text-conversion-style' to the value `action' if it isn't
1308prompt or `nil' otherwise, set it to such a value, so as to 1308already and point is within the prompt field, or if
1309guarantee that the input method functions properly for the 1309`text-conversion-style' is `nil', so as to guarantee that
1310purpose of typing within the ERC prompt." 1310the input method functions properly for the purpose of typing
1311within the ERC prompt."
1311 (when (and (eq major-mode 'eww-mode) 1312 (when (and (eq major-mode 'eww-mode)
1312 (fboundp 'set-text-conversion-style)) 1313 (fboundp 'set-text-conversion-style))
1313 (if (eq (car-safe (get-text-property (point) 'field)) 1314 (if (eq (car-safe (get-text-property (point) 'field))
@@ -1649,7 +1650,8 @@ just re-display the HTML already fetched."
1649 1650
1650(defun eww-select-file (&optional event) 1651(defun eww-select-file (&optional event)
1651 "Change the value of the upload file menu under point. 1652 "Change the value of the upload file menu under point.
1652EVENT, if non-nil, is the mouse event that preceded this command." 1653EVENT, if non-nil, is the mouse event that preceded this command.
1654Interactively, EVENT is the value of `last-nonmenu-event'."
1653 (interactive (list last-nonmenu-event) eww-mode) 1655 (interactive (list last-nonmenu-event) eww-mode)
1654 (when (and event (setq event (event-start event))) 1656 (when (and event (setq event (event-start event)))
1655 (goto-char (posn-point event))) 1657 (goto-char (posn-point event)))
@@ -1904,7 +1906,8 @@ See URL `https://developer.mozilla.org/en-US/docs/Web/HTML/Element/Input'.")
1904 1906
1905(defun eww-toggle-checkbox (&optional event) 1907(defun eww-toggle-checkbox (&optional event)
1906 "Toggle the value of the checkbox under point. 1908 "Toggle the value of the checkbox under point.
1907EVENT, if non-nil, is the mouse event that preceded this command." 1909EVENT, if non-nil, is the mouse event that preceded this command.
1910Interactively, EVENT is the value of `last-nonmenu-event'."
1908 (interactive (list last-nonmenu-event) eww-mode) 1911 (interactive (list last-nonmenu-event) eww-mode)
1909 (when (and event (setq event (event-start event))) 1912 (when (and event (setq event (event-start event)))
1910 (goto-char (posn-point event))) 1913 (goto-char (posn-point event)))
@@ -1977,7 +1980,8 @@ EVENT, if non-nil, is the mouse event that preceded this command."
1977 1980
1978(defun eww-submit (&optional event) 1981(defun eww-submit (&optional event)
1979 "Submit the form under point or EVENT. 1982 "Submit the form under point or EVENT.
1980EVENT, if non-nil, is the mouse event that preceded this command." 1983EVENT, if non-nil, is the mouse event that preceded this command.
1984Interactively, EVENT is the value of `last-nonmenu-event'."
1981 (interactive (list last-nonmenu-event) eww-mode) 1985 (interactive (list last-nonmenu-event) eww-mode)
1982 (when (and event (setq event (event-start event))) 1986 (when (and event (setq event (event-start event)))
1983 (goto-char (posn-point event))) 1987 (goto-char (posn-point event)))
diff --git a/lisp/touch-screen.el b/lisp/touch-screen.el
index 537780eb708..e44b266a617 100644
--- a/lisp/touch-screen.el
+++ b/lisp/touch-screen.el
@@ -1360,18 +1360,19 @@ is not read-only."
1360 (when command 1360 (when command
1361 (if (or (memq command touch-screen-set-point-commands) 1361 (if (or (memq command touch-screen-set-point-commands)
1362 ;; Users of packages that redefine 1362 ;; Users of packages that redefine
1363 ;; mouse-set-point, or other commands 1363 ;; `mouse-set-point', or other commands
1364 ;; recognized as defining the point, should 1364 ;; recognized as defining the point, should
1365 ;; not find the on screen keyboard 1365 ;; not find the on screen keyboard
1366 ;; inaccessible even with t-s-d-k enabled. 1366 ;; inaccessible even with
1367 ;; `touch-screen-display-keyboard' enabled.
1367 touch-screen-display-keyboard) 1368 touch-screen-display-keyboard)
1368 (if touch-screen-translate-prompt 1369 (if touch-screen-translate-prompt
1369 ;; Forgo displaying the virtual keyboard 1370 ;; Forgo displaying the virtual keyboard
1370 ;; should touch-screen-translate-prompt be 1371 ;; should `touch-screen-translate-prompt' be
1371 ;; set, for then the key won't be delivered 1372 ;; set, for then the key won't be delivered
1372 ;; to the command loop, but rather to a 1373 ;; to the command loop, but rather to a
1373 ;; caller of read-key-sequence such as 1374 ;; caller of `read-key-sequence' such as
1374 ;; describe-key. 1375 ;; `describe-key'.
1375 (throw 'input-event event) 1376 (throw 'input-event event)
1376 (if (and (or (not buffer-read-only) 1377 (if (and (or (not buffer-read-only)
1377 ;; Display the on screen 1378 ;; Display the on screen