Skip to content

Commit

Permalink
Fix unset dime-write-string-function bug (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
lassik committed Mar 27, 2021
1 parent 055afa2 commit bd27341
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dime-repl.el
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,6 @@ This is automatically synchronized from Dylan.")
(setq font-lock-defaults nil)
(setq mode-name "REPL")
(setq dime-current-thread :repl-thread)
(setq dime-write-string-function 'dime-repl-write-string)
(set (make-local-variable 'scroll-conservatively) 20)
(set (make-local-variable 'scroll-margin) 0)
(when dime-repl-history-file
Expand Down Expand Up @@ -1486,6 +1485,7 @@ expansion will be added to the REPL's history.)"
(remove-hook 'dime-connected-hook 'dime-repl-connected-hook-function))

(setq dime-output-target-to-marker-function 'dime-repl-target-to-marker)
(setq dime-write-string-function 'dime-repl-write-string)
(add-hook 'dime-repl-mode-hook 'dime-repl-add-easy-menu)
(add-hook 'dime-sync-project-and-directory-hook
'dime-repl-sync-project-and-directory)
Expand Down
2 changes: 1 addition & 1 deletion dime.el
Original file line number Diff line number Diff line change
Expand Up @@ -5406,7 +5406,7 @@ This is 0 if START and END at the same line."
(- (count-lines start end)
(if (save-excursion (goto-char end) (bolp)) 0 1)))

(defvar-local dime-write-string-function nil)
(defvar dime-write-string-function nil)

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

0 comments on commit bd27341

Please sign in to comment.