Skip to content

Commit 4e94b7d

Browse files
committed
purescript-mode.el: make purescript-literate truly buffer-local
It was defined with `defvar` and then made into buffer-local with (make-variable-buffer-local). The call though was only executed once, which is likely an omission as even the documentation states the variable supposed to be buffer-local. So fix that and make it truly buffer-local.
1 parent 08b295b commit 4e94b7d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

purescript-mode.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,15 +102,14 @@ sure all purescript customize definitions have been loaded."
102102
(customize-browse 'purescript))
103103

104104
;; Are we looking at a literate script?
105-
(defvar purescript-literate nil
105+
(defvar-local purescript-literate nil
106106
"*If not nil, the current buffer contains a literate PureScript script.
107107
Possible values are: `bird' and `tex', for Bird-style and LaTeX-style
108108
literate scripts respectively. Set by `purescript-mode' and
109109
`literate-purescript-mode'. For an ambiguous literate buffer -- i.e. does
110110
not contain either \"\\begin{code}\" or \"\\end{code}\" on a line on
111111
its own, nor does it contain \">\" at the start of a line -- the value
112112
of `purescript-literate-default' is used.")
113-
(make-variable-buffer-local 'purescript-literate)
114113
(put 'purescript-literate 'safe-local-variable 'symbolp)
115114
;; Default literate style for ambiguous literate buffers.
116115
(defcustom purescript-literate-default 'bird

0 commit comments

Comments
 (0)