emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/nix-mode 14322f186f 189/500: Use locate-library instead of


From: ELPA Syncer
Subject: [nongnu] elpa/nix-mode 14322f186f 189/500: Use locate-library instead of find-library
Date: Sat, 29 Jan 2022 08:27:05 -0500 (EST)

branch: elpa/nix-mode
commit 14322f186fc2a36bfb7d5351bc80e24c50cf6e3e
Author: Matthew Bauer <mjbauer95@gmail.com>
Commit: Matthew Bauer <mjbauer95@gmail.com>

    Use locate-library instead of find-library
    
    find-library opens a new buffer
---
 nix-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/nix-mode.el b/nix-mode.el
index 8b56aba274..c3463b72b4 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -462,8 +462,8 @@ STRING-TYPE type of string based off of Emacs syntax table 
types"
 (nix-create-menu)
 
 ;; TODO: find a better way to load this
-(when (find-library "company") (require 'nix-company nil 'noerror))
-(when (find-library "mmm-mode") (require 'nix-mode-mmm nil 'noerror))
+(when (locate-library "company") (require 'nix-company nil 'noerror))
+(when (locate-library "mmm-mode") (require 'nix-mode-mmm nil 'noerror))
 
 ;;;###autoload
 (defun nix-build (&optional attr dir)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]