diff --git a/helm-rg.el b/helm-rg.el index 9722fa0..1fde7ea 100644 --- a/helm-rg.el +++ b/helm-rg.el @@ -673,8 +673,8 @@ particular ripgrep option and set of options." "Specification for starting directory to invoke ripgrep in. Used in `helm-rg--interpret-starting-dir'. Possible values: -'default => Use `default-directory'. -'git-root => Use \"git rev-parse --show-toplevel\" (see +\='default => Use `default-directory'. +\='git-root => Use \"git rev-parse --show-toplevel\" (see `helm-rg-git-executable'). => Use the directory at path ." :type '(choice symbol string) @@ -1069,7 +1069,7 @@ any results." (helm-rg--make-face 'helm-rg-error-message "no results for input") (helm-rg--make-face 'font-lock-string-face input-repr) (helm-rg--make-face 'helm-rg-error-message err-msg)))) - (helm-attrset 'name helm-src-name) + (helm-set-attr 'name helm-src-name) dummy-proc)) (defun helm-rg--validate-or-make-dummy-process (input) @@ -1137,7 +1137,7 @@ functions." :noquery t)) (helm-src-name (format "argv: %s" (helm-rg--join " " argv)))) - (helm-attrset 'name helm-src-name) + (helm-set-attr 'name helm-src-name) (set-process-query-on-exit-flag real-proc nil) real-proc)) @@ -1463,7 +1463,7 @@ TODO: add ert testing for this function!" (defun helm-rg--current-line-contents () "`helm-current-line-contents' doesn't keep text properties." - (buffer-substring (point-at-bol) (point-at-eol))) + (buffer-substring (line-beginning-position) (line-end-position))) (cl-defun helm-rg--nullable-states-different (a b &key (cmp #'eq)) "Compare A and B respecting nullability using CMP. diff --git a/tests/helm-rg-test.el b/tests/helm-rg-test.el index e239644..322b960 100644 --- a/tests/helm-rg-test.el +++ b/tests/helm-rg-test.el @@ -63,14 +63,14 @@ (defun helm-rg-test--assert-current-line (line) "Assert the contents of the current line, either in the `helm-rg' buffer, or in a matched file." - (let ((cur-line (buffer-substring (point-at-bol) (point-at-eol)))) + (let ((cur-line (buffer-substring (line-beginning-position) (line-end-position)))) (should (equal cur-line line)))) (helm-rg-test--define-interactive-test test-helm-rg/helm-resume "Test that the right file is visited when resuming a `helm-rg' session with `helm-resume'." (helm-rg-test--delayed-do (helm-keyboard-quit)) - (with-helm-quittable + (with-local-quit (helm-rg-test--find-gpl)) (let ((helm-rg-buf helm-last-buffer)) (sit-for helm-rg-test--time-step)