Skip to content

Commit 445b5f3

Browse files
committed
deprecated message for iex must be afterwards
1 parent ae54ab7 commit 445b5f3

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

elixir-deprecated.el

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@
4141
(defun elixir-deprecated--warning (function-name message)
4242
(let ((buffer (get-buffer "*Warnings*")))
4343
(when buffer
44-
(kill-buffer buffer)))
45-
(warn
46-
(concat "\n\n"
47-
(propertize "DEPRECATION WARNING: "
48-
'face 'elixir-deprecated--warning-face)
49-
(propertize (format "[ %s ]\n\n" function-name)
50-
'face 'elixir-deprecated--function-face)
51-
message)))
44+
(kill-buffer buffer))
45+
(display-warning :deprecated
46+
(concat "\n\n"
47+
(propertize "DEPRECATION WARNING: "
48+
'face 'elixir-deprecated--warning-face)
49+
(propertize (format "[ %s ]\n\n" function-name)
50+
'face 'elixir-deprecated--function-face)
51+
message)) :warning))
5252

5353
;; DEPRECATED MESSAGES FOR RELEASE 3.0.0
5454

elixir-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,15 +510,15 @@ Argument FILE-NAME ."
510510
"Elixir mode interactive REPL.
511511
Optional argument ARGS-P ."
512512
(interactive "P")
513-
(elixir-deprecated-use-alchemist "elixir-mode-iex")
514513
(let ((switches (if (equal args-p nil)
515514
'()
516515
(split-string (read-string "Additional args: ")))))
517516
(unless (comint-check-proc "*IEX*")
518517
(set-buffer
519518
(apply 'make-comint "IEX"
520519
elixir-iex-command nil switches))))
521-
(pop-to-buffer "*IEX*"))
520+
(pop-to-buffer "*IEX*")
521+
(elixir-deprecated-use-alchemist "elixir-mode-iex"))
522522

523523
;;;###autoload
524524
(defun elixir-mode-open-modegithub ()

0 commit comments

Comments
 (0)