diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-10-21 22:49:17 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2002-10-21 22:49:17 +0000 |
commit | 66f067937bc07860c3f3a3845c4e0f11febfbf25 (patch) | |
tree | 6906fdc75dd45328f61908b4596ca7792019d5fe /lisp/ielm.el | |
parent | 87b3b78a06600621062815a878d836ddeab9a14e (diff) | |
download | emacs-66f067937bc07860c3f3a3845c4e0f11febfbf25.tar.gz |
(inferior-emacs-lisp-mode): If hexl not found, use cat. point-min != 1.
Diffstat (limited to 'lisp/ielm.el')
-rw-r--r-- | lisp/ielm.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/ielm.el b/lisp/ielm.el index d2c015b18bd..5e8be90d797 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el @@ -419,8 +419,8 @@ simply inserts a newline." "Major mode for interactively evaluating Emacs Lisp expressions. Uses the interface provided by `comint-mode' (which see). -* \\<ielm-map>\\[ielm-send-input] evaluates the sexp following the prompt. There must be at most - one top-level sexp per prompt. +* \\<ielm-map>\\[ielm-send-input] evaluates the sexp following the prompt. There must be at most + one top level sexp per prompt. * \\[ielm-return] inserts a newline and indents, or evaluates a complete expression (but see variable `ielm-dynamic-return'). @@ -499,7 +499,9 @@ Customised bindings may be defined in `ielm-map', which currently contains: (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") + (condition-case nil + (start-process "ielm" (current-buffer) "hexl") + (file-error (start-process "ielm" (current-buffer) "cat"))) (process-kill-without-query (ielm-process)) (goto-char (point-max)) @@ -512,7 +514,7 @@ Customised bindings may be defined in `ielm-map', which currently contains: (ielm-set-pm (point-max)) (unless comint-use-prompt-regexp-instead-of-fields (add-text-properties - 1 (point-max) + (point-min) (point-max) '(rear-nonsticky t field output inhibit-line-move-field-capture t))) (comint-output-filter (ielm-process) ielm-prompt) (set-marker comint-last-input-start (ielm-pm)) |