Skip to content

Commit fac101f

Browse files
committed
Fix spurious uses of message
(message fmt ...) first argument is treated as format and %-signs are format signs.
1 parent 0a2b3b9 commit fac101f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

haskell-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ generated."
11681168
"Echo STR in mini-buffer.
11691169
Given string is shrinken to single line, multiple lines just
11701170
disturbs the programmer."
1171-
(message (haskell-mode-one-line str (frame-width))))
1171+
(message "%s" (haskell-mode-one-line str (frame-width))))
11721172

11731173
(defun haskell-mode-one-line (str width)
11741174
"Try to fit STR as much as possible on one line according to given WIDTH."

haskell.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,7 @@ If `haskell-process-load-or-reload-prompt' is nil, accept `default'."
303303
(?n))))
304304
;; unwind
305305
(haskell-mode-toggle-interactive-prompt-state t)))
306-
(message
307-
(format "The Haskell process `%s' is dearly departed." process-name)))))
306+
(message "The Haskell process `%s' is dearly departed." process-name))))
308307

309308
(defun haskell-process ()
310309
"Get the current process from the current session."

0 commit comments

Comments
 (0)