Fix non-exist function

Emacs does not have 'replace-in-string' function.
This commit is contained in:
Syohei YOSHIDA 2015-11-05 19:32:03 +09:00
parent 0003236802
commit 5c58afb3de
1 changed files with 2 additions and 2 deletions

View File

@ -409,8 +409,8 @@ it is started."
(save-excursion
(goto-char utop-prompt-min)
(forward-line -1)
(let ((line (replace-in-string (thing-at-point 'line) "\n" "")))
(set-text-properties 0 (length line) nil line)
(let ((line (buffer-substring-no-properties
(line-beginning-position) (line-end-position))))
(message line)))))
;; Poor man's identifier at point