Skip to content

Commit bd27341

Browse files
committed
Fix unset dime-write-string-function bug (#60)
1 parent 055afa2 commit bd27341

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dime-repl.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,6 @@ This is automatically synchronized from Dylan.")
411411
(setq font-lock-defaults nil)
412412
(setq mode-name "REPL")
413413
(setq dime-current-thread :repl-thread)
414-
(setq dime-write-string-function 'dime-repl-write-string)
415414
(set (make-local-variable 'scroll-conservatively) 20)
416415
(set (make-local-variable 'scroll-margin) 0)
417416
(when dime-repl-history-file
@@ -1486,6 +1485,7 @@ expansion will be added to the REPL's history.)"
14861485
(remove-hook 'dime-connected-hook 'dime-repl-connected-hook-function))
14871486

14881487
(setq dime-output-target-to-marker-function 'dime-repl-target-to-marker)
1488+
(setq dime-write-string-function 'dime-repl-write-string)
14891489
(add-hook 'dime-repl-mode-hook 'dime-repl-add-easy-menu)
14901490
(add-hook 'dime-sync-project-and-directory-hook
14911491
'dime-repl-sync-project-and-directory)

dime.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5406,7 +5406,7 @@ This is 0 if START and END at the same line."
54065406
(- (count-lines start end)
54075407
(if (save-excursion (goto-char end) (bolp)) 0 1)))
54085408

5409-
(defvar-local dime-write-string-function nil)
5409+
(defvar dime-write-string-function nil)
54105410

54115411
(defun dime-write-string (string &optional target)
54125412
"Insert STRING in the REPL buffer or some other TARGET.

0 commit comments

Comments
 (0)