 \\{erlang-shell-mode-map}"
   (interactive
    (when current-prefix-arg
-     (list ((read-shell-command "Erlang command: ")))))
+     (list (read-shell-command "Erlang command: "))))
   (require 'comint)
   (let (cmd opts)
     (if command

(and (erlang-soft-require 'xref)
     (erlang-soft-require 'cl-generic)
     (erlang-soft-require 'eieio)
     ;; The purpose of using eval here is to avoid compilation
     ;; warnings in emacsen without cl-defmethod etc.
     (eval


(if (fboundp 'advice-add)
    ;; Emacs 24.4+
    (require 'etags)
    (advice-add 'etags-tags-completion-table :around
                #'erlang-etags-tags-completion-table-advice)
  ;; Emacs 23.1-24.3
