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:
copilot-swe-agent[bot] 2026-02-10 12:19:22 +00:00
parent af855e3394
commit 9b89115b5d
3 changed files with 6 additions and 4 deletions

View File

@ -0,0 +1 @@
./ekp_c

View File

@ -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
View File

@ -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