7
현재 줄이 "비어 있는지"확인하는 가장 쉬운 방법 (공백 무시)?
현재 줄이 비어 있는지 확인하고 싶습니다 (공백 만 포함 된 경우 여전히 비어 있음). 내 초기 버전은 다음과 같습니다. (defun strip-text-properties(txt) (set-text-properties 0 (length txt) nil txt) txt) (defun is-current-line-empty () (interactive) (setq c-line (thing-at-point 'line)) (string-match "^\s*$" (strip-text-properties c-line))) 현재 줄이 비어 있는지 확인하는 가장 쉬운 방법은 무엇입니까?
14
whitespace