diff options
| author | Stefan Monnier | 2022-09-24 10:32:39 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-09-24 10:32:39 -0400 |
| commit | 0cc107ac090a67a01e237d48ee5c158eb95f6337 (patch) | |
| tree | 49118d502cf9168492895ff956a800cb47e4f53b | |
| parent | 2bacd9115f15111a2b229ea21776bab2fd5839b1 (diff) | |
| parent | 583ebfa4148a817e144fe0f517e2ea81530f252c (diff) | |
| download | emacs-0cc107ac090a67a01e237d48ee5c158eb95f6337.tar.gz emacs-0cc107ac090a67a01e237d48ee5c158eb95f6337.zip | |
Merge branch 'emacs-28'
| -rw-r--r-- | lisp/progmodes/hideshow.el | 4 | ||||
| -rw-r--r-- | src/keyboard.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/progmodes/hideshow.el b/lisp/progmodes/hideshow.el index c0796fc2eeb..359fd429329 100644 --- a/lisp/progmodes/hideshow.el +++ b/lisp/progmodes/hideshow.el | |||
| @@ -797,6 +797,8 @@ and `case-fold-search' are both t." | |||
| 797 | 797 | ||
| 798 | (defun hs-already-hidden-p () | 798 | (defun hs-already-hidden-p () |
| 799 | "Return non-nil if point is in an already-hidden block, otherwise nil." | 799 | "Return non-nil if point is in an already-hidden block, otherwise nil." |
| 800 | ;; FIXME: We should probably also consider ourselves "in" a hidden block | ||
| 801 | ;; when point is right at the edge after a hidden block (bug#52092). | ||
| 800 | (save-excursion | 802 | (save-excursion |
| 801 | (let ((c-reg (hs-inside-comment-p))) | 803 | (let ((c-reg (hs-inside-comment-p))) |
| 802 | (if (and c-reg (nth 0 c-reg)) | 804 | (if (and c-reg (nth 0 c-reg)) |
| @@ -948,7 +950,7 @@ The hook `hs-hide-hook' is run; see `run-hooks'." | |||
| 948 | "Toggle hiding/showing of a block. | 950 | "Toggle hiding/showing of a block. |
| 949 | See `hs-hide-block' and `hs-show-block'. | 951 | See `hs-hide-block' and `hs-show-block'. |
| 950 | Argument E should be the event that triggered this action." | 952 | Argument E should be the event that triggered this action." |
| 951 | (interactive) | 953 | (interactive (list last-nonmenu-event)) |
| 952 | (hs-life-goes-on | 954 | (hs-life-goes-on |
| 953 | (posn-set-point (event-end e)) | 955 | (posn-set-point (event-end e)) |
| 954 | (if (hs-already-hidden-p) | 956 | (if (hs-already-hidden-p) |
diff --git a/src/keyboard.c b/src/keyboard.c index ca51c80da04..da244904a4a 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -11797,6 +11797,9 @@ DEFUN ("posn-at-point", Fposn_at_point, Sposn_at_point, 0, 2, 0, | |||
| 11797 | doc: /* Return position information for buffer position POS in WINDOW. | 11797 | doc: /* Return position information for buffer position POS in WINDOW. |
| 11798 | POS defaults to point in WINDOW; WINDOW defaults to the selected window. | 11798 | POS defaults to point in WINDOW; WINDOW defaults to the selected window. |
| 11799 | 11799 | ||
| 11800 | If POS is in invisible text or is hidden by `display' properties, | ||
| 11801 | this function may report on buffer positions before or after POS. | ||
| 11802 | |||
| 11800 | Return nil if POS is not visible in WINDOW. Otherwise, | 11803 | Return nil if POS is not visible in WINDOW. Otherwise, |
| 11801 | the return value is similar to that returned by `event-start' for | 11804 | the return value is similar to that returned by `event-start' for |
| 11802 | a mouse click at the upper left corner of the glyph corresponding | 11805 | a mouse click at the upper left corner of the glyph corresponding |