fix: address code review feedback - improve docstrings and use defalias consistently
Co-authored-by: Kinneyzhang <38454496+Kinneyzhang@users.noreply.github.com>
This commit is contained in:
parent
af855e3394
commit
9b89115b5d
1
_codeql_detected_source_root
Symbolic link
1
_codeql_detected_source_root
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
./ekp_c
|
||||||
@ -260,8 +260,7 @@ Whitespace runs are preserved as separate boxes; CJK punctuation attaches to pre
|
|||||||
|
|
||||||
;;; Rust Module Support (currently unused — ekp_rust/ directory does not exist)
|
;;; Rust Module Support (currently unused — ekp_rust/ directory does not exist)
|
||||||
|
|
||||||
(defun ekp-rust-module-reload (module)
|
(defalias 'ekp-rust-module-reload #'ekp--module-reload)
|
||||||
(ekp--module-reload module))
|
|
||||||
|
|
||||||
(defun ekp-module-dir ()
|
(defun ekp-module-dir ()
|
||||||
(when-let ((root-dir (ekp-root-dir)))
|
(when-let ((root-dir (ekp-root-dir)))
|
||||||
|
|||||||
6
ekp.el
6
ekp.el
@ -541,10 +541,12 @@ Uses binary search for O(log n) lookup."
|
|||||||
(= (aref vec lo) n))))
|
(= (aref vec lo) n))))
|
||||||
|
|
||||||
(defalias 'ekp--hyphenate-p #'ekp--sorted-vector-member-p
|
(defalias 'ekp--hyphenate-p #'ekp--sorted-vector-member-p
|
||||||
"Return non-nil if position N ends with hyphenation.")
|
"Return non-nil if position N in HYPHEN-POSITIONS ends with hyphenation.
|
||||||
|
HYPHEN-POSITIONS is a sorted vector of indices where hyphenation can occur.")
|
||||||
|
|
||||||
(defalias 'ekp--flagged-p #'ekp--sorted-vector-member-p
|
(defalias 'ekp--flagged-p #'ekp--sorted-vector-member-p
|
||||||
"Return non-nil if position N is a flagged (forced) break.")
|
"Return non-nil if position N in FLAGGED-POSITIONS is a flagged (forced) break.
|
||||||
|
FLAGGED-POSITIONS is a sorted vector of indices where forced breaks occur.")
|
||||||
|
|
||||||
;;;; Dynamic Programming Line Breaking
|
;;;; Dynamic Programming Line Breaking
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user