aboutsummaryrefslogtreecommitdiff
path: root/hcel-utils.el
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-09-21 15:14:50 +1000
committerYuchen Pei <hi@ypei.me>2022-09-21 15:14:50 +1000
commitdae8c96bfdcf81ff6e39890de2d3d1be788e552f (patch)
treec7879510ed692b02f45575ed16bd1e3673d0ea83 /hcel-utils.el
parent0d47d10cfe4ed7fb8ea7b8013b6593c868be8391 (diff)
Fixing some compile warnings
Diffstat (limited to 'hcel-utils.el')
-rw-r--r--hcel-utils.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/hcel-utils.el b/hcel-utils.el
index b44f885..08ff105 100644
--- a/hcel-utils.el
+++ b/hcel-utils.el
@@ -75,11 +75,12 @@ Example of an idSrcSpan:
(col-beg (alist-get 'column (alist-get 'start span)))
(line-end (alist-get 'line (alist-get 'end span)))
(col-end (alist-get 'column (alist-get 'end span))))
- (hcel- buffer-substring-line-column line-beg (1- col-beg) line-end (1- col-end))))
+ (hcel-buffer-substring-line-column line-beg (1- col-beg) line-end (1- col-end))))
;; buffers and strings manipulation
(defun hcel-goto-line-column (line column)
- (goto-line line)
+ (goto-char (point-min))
+ (forward-line (1- line))
(move-to-column column))
(defun hcel-unquote-html (html)
@@ -169,7 +170,7 @@ Example of an idSrcSpan:
(defun hcel-text-property-near-point (prop)
"Find property prop at point, or just before point."
(or (get-text-property (point) prop)
- (get-text-property (max 0 (1- (point))) prop)))
+ (get-text-property (max 1 (1- (point))) prop)))
(provide 'hcel-utils)
;;; hcel-utils.el ends here.