Skip to content

Commit 8886f66

Browse files
committed
Fix "unused arg" warning in purescript-presentation-mode
I'm not sure if the mode is even useful in Purescript because I'm not exactly clear what it does (keep in mind this code was part of haskell-mode before fork happened), but let's for now at least make sure it doesn't produce warning and is included in compilation. Fixes warning: purescript-presentation-mode.el:38:33: Error: Unused lexical argument ‘session’
1 parent 817083f commit 8886f66

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ ELFILES = \
1616
purescript-mode.el \
1717
purescript-move-nested.el \
1818
purescript-navigate-imports.el \
19+
purescript-presentation-mode.el \
1920
purescript-simple-indent.el \
2021
purescript-sort-imports.el \
2122
purescript-str.el \

purescript-presentation-mode.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535

3636
(define-key purescript-presentation-mode-map (kbd "q") 'quit-window)
3737

38-
(defun purescript-present (name session code)
38+
(defun purescript-present (name _ code)
3939
"Present CODE in a popup buffer suffixed with NAME and set
4040
SESSION as the current purescript-session."
4141
(let* ((name (format "*PureScript Presentation%s*" name))

0 commit comments

Comments
 (0)