diff options
author | Miles Bader <miles@gnu.org> | 2002-08-19 05:03:38 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 2002-08-19 05:03:38 +0000 |
commit | cb587cfea62a957d3d98cd4916f38dd381609cc0 (patch) | |
tree | 5731ea0c8953a31306ba2be255bff773017b8d0c /lisp/ielm.el | |
parent | b6d3b7440b87cb3ae226e07298931359767aa137 (diff) | |
download | emacs-cb587cfea62a957d3d98cd4916f38dd381609cc0.tar.gz |
[original idea from Luc Teirlinck <teirllm@mail.auburn.edu>]
(inferior-emacs-lisp-mode): Give `comint-inhibit-carriage-motion' a
local value of t.
Diffstat (limited to 'lisp/ielm.el')
-rw-r--r-- | lisp/ielm.el | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el index 9143609c9a1..55d1e59857f 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el @@ -1,6 +1,6 @@ ;;; ielm.el --- interaction mode for Emacs Lisp -;; Copyright (C) 1994 Free Software Foundation, Inc. +;; Copyright (C) 1994, 2002 Free Software Foundation, Inc. ;; Author: David Smith <maa036@lancaster.ac.uk> ;; Maintainer: FSF @@ -452,18 +452,24 @@ Customised bindings may be defined in `ielm-map', which currently contains: '(ielm-font-lock-keywords nil nil ((?: . "w") (?- . "w") (?* . "w")))) ;; A dummy process to keep comint happy. It will never get any input - (if (comint-check-proc (current-buffer)) nil + (unless (comint-check-proc (current-buffer)) ;; Was cat, but on non-Unix platforms that might not exist, so ;; use hexl instead, which is part of the Emacs distribution. (start-process "ielm" (current-buffer) "hexl") (process-kill-without-query (ielm-process)) (goto-char (point-max)) + + ;; Lisp output can include raw characters that confuse comint's + ;; carriage control code. + (set (make-local-variable 'comint-inhibit-carriage-motion) t) + ;; Add a silly header (insert ielm-header) (ielm-set-pm (point-max)) (comint-output-filter (ielm-process) ielm-prompt) (set-marker comint-last-input-start (ielm-pm)) (set-process-filter (get-buffer-process (current-buffer)) 'comint-output-filter)) + (run-hooks 'ielm-mode-hook)) (defun ielm-get-old-input nil |