From fc79256de51e5e4f290007ad589465498805ef03 Mon Sep 17 00:00:00 2001 From: Colin Woodbury Date: Thu, 16 Sep 2021 21:16:32 -0700 Subject: [PATCH] fix(parinfer): robust check for shared Rust object This helps other platforms like Nix that put shared objects in interesting places. --- modules/editor/parinfer/doctor.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/modules/editor/parinfer/doctor.el b/modules/editor/parinfer/doctor.el index 092c982ba..79a9ff950 100644 --- a/modules/editor/parinfer/doctor.el +++ b/modules/editor/parinfer/doctor.el @@ -3,8 +3,5 @@ (unless (fboundp 'module-load) (warn! "Your emacs wasn't built with dynamic modules support. `parinfer-rust-mode' won't work")) (when (and (eq system-type 'berkeley-unix) - (not (file-readable-p (concat user-emacs-directory - ".local/etc/parinfer-rust/libparinfer_rust.so")))) - (warn! (concat "Could not read " user-emacs-directory - ".local/etc/parinfer-rust/libparinfer_rust.so. " - "`parinfer-rust-mode' won't work"))) + (not (file-readable-p parinfer-rust-library))) + (warn! (concat "Could not read " parinfer-rust-library ". `parinfer-rust-mode' won't work")))