projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
406fd97
)
Fix shr--set-target-ids test for empty buffer
author
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 21 Jun 2022 18:51:33 +0000
(20:51 +0200)
committer
Lars Ingebrigtsen
<larsi@gnus.org>
Tue, 21 Jun 2022 18:51:46 +0000
(20:51 +0200)
* lisp/net/shr.el (shr--set-target-ids): Fix the check for an
empty buffer (which may be narrowed).
lisp/net/shr.el
patch
|
blob
|
history
diff --git
a/lisp/net/shr.el
b/lisp/net/shr.el
index b269607e323203c7e690eb9fe062fc24c9a4a1b9..0645f4721a31d803b782bc3a742ba019f34e4e3d 100644
(file)
--- a/
lisp/net/shr.el
+++ b/
lisp/net/shr.el
@@
-399,7
+399,7
@@
DOM should be a parse tree as generated by
(defun shr--set-target-ids (ids)
;; If the buffer is empty, there's no point in setting targets.
- (unless (zerop (
buffer-size
))
+ (unless (zerop (
- (point-max) (point-min)
))
;; We may have several targets in the same place (if you have
;; several <span id='foo'> things after one another). So group
;; them by position.