branch: elpa/inf-clojure
commit 4f8bed3c7e4d217f1a356381241f1092a6c2e43b
Author: Bozhidar Batsov <[email protected]>
Commit: Bozhidar Batsov <[email protected]>

    Fix lint and byte-compilation warnings
    
    - Shorten a docstring line exceeding 80 columns
    - Move closing parens to the same line (elisp-lint style)
    - Inline derived-mode-hook-name for Emacs 28-29 compatibility
---
 inf-clojure.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/inf-clojure.el b/inf-clojure.el
index d50e23482a..98acc8e587 100644
--- a/inf-clojure.el
+++ b/inf-clojure.el
@@ -146,8 +146,8 @@ via `inf-clojure--merge-repl-features'.")
     (clojure-clr . ,(inf-clojure--merge-repl-features
                      inf-clojure--clojure-repl-base-features
                      '((arglists .
-                                 "(try (-> '%s clojure.core/resolve 
clojure.core/meta :arglists) (catch Exception e nil))"))))
-))
+                                 "(try (-> '%s clojure.core/resolve 
clojure.core/meta :arglists) (catch Exception e nil))"))))))
+
 
 (defvar-local inf-clojure-repl-type nil
   "Symbol to define your REPL type.
@@ -577,7 +577,7 @@ whatever namespace the REPL is currently in."
 See command `inf-clojure-minor-mode'."
   (interactive)
   (dolist (mode (inf-clojure--get-preferred-major-modes))
-    (add-hook (derived-mode-hook-name mode) #'inf-clojure-minor-mode))
+    (add-hook (intern (concat (symbol-name mode) "-hook")) 
#'inf-clojure-minor-mode))
   (dolist (buffer (inf-clojure--clojure-buffers))
     (with-current-buffer buffer
       (inf-clojure-minor-mode +1))))
@@ -614,7 +614,7 @@ Clojure source.
     `inf-clojure-load-file' loads a Clojure file into the REPL.
     `inf-clojure-reload' reloads the current namespace (with `M--' prefix
     for :reload-all).
-    `inf-clojure-set-ns' sets the REPL namespace to the ns of the current 
buffer.
+    `inf-clojure-set-ns' sets the REPL namespace to the current ns.
 
     Prefixing the inf-clojure-eval/defun/region commands with
     a \\[universal-argument] causes a switch to the Clojure process buffer 
after

Reply via email to