diff --git a/CHANGELOG.org b/CHANGELOG.org index 4988819..eb993c1 100644 --- a/CHANGELOG.org +++ b/CHANGELOG.org @@ -21,4 +21,6 @@ - ~rustic-recompile~ will remember any universal arguments that is passed to it. - Fix ~rustic-cargo-upgrade~ in the presence of universal arguments. -- Fix ~rusti-cargo-clippy-rerun~ to use the last used arguments. +- Fix ~rustic-cargo-clippy-rerun~ to use the last used arguments. +- Implement ~rustic-babel-display-error-popup~ customization + option. Refer the variable docs for more details. diff --git a/README.md b/README.md index 341c793..e110479 100644 --- a/README.md +++ b/README.md @@ -672,6 +672,9 @@ Customization: of babel process - `rustic-babel-auto-wrap-main` wrap body into main function - `rustic-babel-default-toolchain` active toolchain for babel blocks +- `rustic-babel-display-error-popup` displays error popup on + compilation failure or when the exit code is non zero. Set it to nil + if you want it to be displayed as part of result block. ### lsp-mode diff --git a/test/rustic-babel-test.el b/test/rustic-babel-test.el index 4c03d80..e228f59 100644 --- a/test/rustic-babel-test.el +++ b/test/rustic-babel-test.el @@ -61,6 +61,16 @@ (should (eq (rustic-test-babel-check-results buf) nil)) (should-not (buffer-live-p rustic-babel-compilation-buffer-name)))) +(ert-deftest rustic-test-babel-error-no-popup () + (let* ((string "fn main() { + panic(\"hello world\"); + }") + (buf (rustic-test-get-babel-block string)) + (rustic-babel-display-error-popup t) + ) + (rustic-test-babel-execute-block buf) + (should (s-contains? "hello world" (rustic-test-babel-check-results buf))))) + (ert-deftest rustic-test-babel-error-results () (let* ((string "fn main() { let v = vec![1, 2, 3];