Mercurial > emacs
comparison lisp/ielm.el @ 89966:d8411455de48
Revision: miles@gnu.org--gnu-2004/emacs--unicode--0--patch-32
Merge from emacs--cvs-trunk--0
Patches applied:
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-486
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-487
Tweak permissions
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-488
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-489
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-490
Update from CVS: man/fixit.texi (Spelling): Fix typo.
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-491
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-494
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-495
Update from CVS: Add missing lisp/mh-e files
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-496
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-499
Update from CVS
* miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-500
- miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-513
Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Fri, 27 Aug 2004 07:00:34 +0000 |
parents | 4c90ffeb71c5 80dba6d2451b |
children | 3ebd9bdb4fe5 |
comparison
equal
deleted
inserted
replaced
89965:5e9097d1ad99 | 89966:d8411455de48 |
---|---|
196 "Additional expressions to highlight in ielm buffers.") | 196 "Additional expressions to highlight in ielm buffers.") |
197 | 197 |
198 ;;; Completion stuff | 198 ;;; Completion stuff |
199 | 199 |
200 (defun ielm-tab nil | 200 (defun ielm-tab nil |
201 "Possibly indent the current line as lisp code." | 201 "Possibly indent the current line as Lisp code." |
202 (interactive) | 202 (interactive) |
203 (if (or (eq (preceding-char) ?\n) | 203 (if (or (eq (preceding-char) ?\n) |
204 (eq (char-syntax (preceding-char)) ? )) | 204 (eq (char-syntax (preceding-char)) ? )) |
205 (progn | 205 (progn |
206 (ielm-indent-line) | 206 (ielm-indent-line) |
207 t))) | 207 t))) |
208 | 208 |
209 (defun ielm-complete-symbol nil | 209 (defun ielm-complete-symbol nil |
210 "Complete the lisp symbol before point." | 210 "Complete the Lisp symbol before point." |
211 ;; A wrapper for lisp-complete symbol that returns non-nil if | 211 ;; A wrapper for lisp-complete symbol that returns non-nil if |
212 ;; completion has occurred | 212 ;; completion has occurred |
213 (let* ((btick (buffer-modified-tick)) | 213 (let* ((btick (buffer-modified-tick)) |
214 (cbuffer (get-buffer "*Completions*")) | 214 (cbuffer (get-buffer "*Completions*")) |
215 (ctick (and cbuffer (buffer-modified-tick cbuffer)))) | 215 (ctick (and cbuffer (buffer-modified-tick cbuffer)))) |
526 ;; Was cat, but on non-Unix platforms that might not exist, so | 526 ;; Was cat, but on non-Unix platforms that might not exist, so |
527 ;; use hexl instead, which is part of the Emacs distribution. | 527 ;; use hexl instead, which is part of the Emacs distribution. |
528 (condition-case nil | 528 (condition-case nil |
529 (start-process "ielm" (current-buffer) "hexl") | 529 (start-process "ielm" (current-buffer) "hexl") |
530 (file-error (start-process "ielm" (current-buffer) "cat"))) | 530 (file-error (start-process "ielm" (current-buffer) "cat"))) |
531 (process-kill-without-query (ielm-process)) | 531 (set-process-query-on-exit-flag (ielm-process) nil) |
532 (goto-char (point-max)) | 532 (goto-char (point-max)) |
533 | 533 |
534 ;; Lisp output can include raw characters that confuse comint's | 534 ;; Lisp output can include raw characters that confuse comint's |
535 ;; carriage control code. | 535 ;; carriage control code. |
536 (set (make-local-variable 'comint-inhibit-carriage-motion) t) | 536 (set (make-local-variable 'comint-inhibit-carriage-motion) t) |