[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] scratch/hyperbole 30fbe524e5 07/15: (kview:char-visible-p): Delet
|
From: |
Stefan Monnier |
|
Subject: |
[elpa] scratch/hyperbole 30fbe524e5 07/15: (kview:char-visible-p): Delete function |
|
Date: |
Sun, 21 May 2023 18:50:54 -0400 (EDT) |
branch: scratch/hyperbole
commit 30fbe524e592371063eb0a4b4c927f7b2008e01a
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: Stefan Monnier <monnier@iro.umontreal.ca>
(kview:char-visible-p): Delete function
* kotl/kview.el (kview:first-invisible-point): Use `kview:char-invisible-p`.
(kview:char-visible-p): Delete function.
---
kotl/kview.el | 14 ++++----------
1 file changed, 4 insertions(+), 10 deletions(-)
diff --git a/kotl/kview.el b/kotl/kview.el
index b510192257..fd039d4cb6 100644
--- a/kotl/kview.el
+++ b/kotl/kview.el
@@ -630,21 +630,13 @@ level."
;;;###autoload
(defun kview:char-invisible-p (&optional pos)
"Return t if the character after point is invisible/hidden, else nil."
+ ;; FIXME: A.k.a (invisible-p (or pos (point)))
(or pos (setq pos (point)))
(when (or (kproperty:get pos 'invisible)
(delq nil (mapcar (lambda (o) (overlay-get o 'invisible))
(overlays-at (or pos (point))))))
t))
-;;;###autoload
-(defun kview:char-visible-p (&optional pos)
- "Return t if the character after point is visible, else nil."
- (unless pos
- (setq pos (point)))
- (and (not (kproperty:get pos 'invisible))
- (not (delq nil (mapcar (lambda (o) (overlay-get o 'invisible))
- (overlays-at (or pos (point))))))))
-
(defun kview:create (buffer-name
&optional id-counter top-cell-attributes
label-type level-indent label-separator
@@ -708,6 +700,8 @@ are used.
(defun kview:end-of-actual-line ()
"Go to the end of the current line whether collapsed or not."
+ ;; FIXME: This "[\n\r]" is a leftover from when kotl was using
+ ;; `selective-display'. We should use `end-of-line' nowadays.
(when (re-search-forward "[\n\r]" nil 'move)
(backward-char 1)))
@@ -744,7 +738,7 @@ Value may be the character immediately after point."
(unless pos
(setq pos (point)))
(let ((end (kcell-view:end-contents pos)))
- (while (and pos (< pos end) (kview:char-visible-p pos))
+ (while (and pos (< pos end) (not (kview:char-invisible-p pos)))
(if (kproperty:get pos 'invisible)
(setq pos (kproperty:next-single-change pos 'invisible nil end))
(let ((overlay (car (delq nil (mapcar (lambda (o) (when (overlay-get o
'invisible) o))
- [elpa] branch scratch/hyperbole created (now 91a371631a), Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole aaaf6cfeea 01/15: * hload-path.el (hyperb:dir): Use `macroexp-file-name`, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole ab2ca7fdf5 05/15: Get rid of `hyperb:stack-frame`, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 91a371631a 15/15: * hyrolo.el: A few cosmetic tweaks, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole c4c9abe70f 03/15: Try and avoid using `hyperb:stack-frame`, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 96b7ce0f45 04/15: (kotl-mode:pre-self-insert-command): Use buffer-locally at top-level, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 9a148b300e 02/15: * hversion.el (hyperb:path-being-loaded): Delete function, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 7927b78a42 06/15: Fix compilation of test file, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 30fbe524e5 07/15: (kview:char-visible-p): Delete function,
Stefan Monnier <=
- [elpa] scratch/hyperbole d9a32c26f3 08/15: * hact.el: Fix broken lexical-binding cookie, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 8763db49e1 10/15: hyperbole-autoloads.el: Remove needless definitions, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 1ee361c05d 11/15: * hycontrol.el (hycontrol-windows-mode-map): Don't autoload, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 04f3fdc53d 14/15: Fix a few minor miscompilations and warnings, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 0670cc54b0 09/15: * hyperbole.el: Preload `kotl-autoloads`, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 967814d82e 13/15: (man-show): Fix miscompilation, Stefan Monnier, 2023/05/21
- [elpa] scratch/hyperbole 3252a81433 12/15: * hui-select.el: Fix a few warnings and improve some docstrings, Stefan Monnier, 2023/05/21