42
42
(require 'cl-lib )
43
43
(require 'etags )
44
44
45
- (defvar haskell-interactive-mode-history-index )
46
- (make-variable-buffer-local 'haskell-interactive-mode-history-index )
45
+ (defvar-local haskell-interactive-mode-history-index 0 )
47
46
48
- (defvar haskell-interactive-mode-history (list ))
49
- (make-variable-buffer-local 'haskell-interactive-mode-history )
47
+ (defvar-local haskell-interactive-mode-history (list ))
50
48
51
- (defvar haskell-interactive-mode-old-prompt-start
52
- nil
49
+ (defvar-local haskell-interactive-mode-old-prompt-start nil
53
50
" Mark used for the old beginning of the prompt." )
54
- (make-variable-buffer-local 'haskell-interactive-mode-old-prompt-start )
55
51
56
52
(defun haskell-interactive-prompt-regex ()
57
53
" Generate a regex for searching for any occurence of the prompt\
@@ -111,11 +107,10 @@ Key bindings:
111
107
" Mark used to figure out where the end of the current result output is.
112
108
Used to distinguish betwen user input." )
113
109
114
- (defvar haskell-interactive-previous-buffer nil
110
+ (defvar-local haskell-interactive-previous-buffer nil
115
111
" Records the buffer to which `haskell-interactive-switch-back' should jump.
116
112
This is set by `haskell-interactive-switch' , and should otherwise
117
113
be nil." )
118
- (make-variable-buffer-local 'haskell-interactive-previous-buffer )
119
114
120
115
; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
121
116
; ; Hooks
@@ -327,8 +322,7 @@ SESSION, otherwise operate on the current buffer."
327
322
(insert (substring prompt 0 1 )
328
323
(propertize (substring prompt 1 )
329
324
'front-sticky t )))
330
- (let ((marker (set (make-local-variable 'haskell-interactive-mode-prompt-start )
331
- (make-marker ))))
325
+ (let ((marker (setq-local haskell-interactive-mode-prompt-start (make-marker ))))
332
326
(set-marker marker (point )))
333
327
(when haskell-interactive-mode-scroll-to-bottom
334
328
(haskell-interactive-mode-scroll-to-bottom))))
@@ -346,8 +340,7 @@ SESSION, otherwise operate on the current buffer."
346
340
'rear-nonsticky t
347
341
'result t )))
348
342
(haskell-interactive-mode-handle-h)
349
- (let ((marker (set (make-local-variable 'haskell-interactive-mode-result-end )
350
- (make-marker ))))
343
+ (let ((marker (setq-local haskell-interactive-mode-result-end (make-marker ))))
351
344
(set-marker marker
352
345
(point )
353
346
(current-buffer )))
0 commit comments