aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ.D. Smith2007-01-31 05:53:30 +0000
committerJ.D. Smith2007-01-31 05:53:30 +0000
commit46bb060f6cbff56b608f762a24c558f36bec2dee (patch)
tree42249412ecdc37f00485593176b38370714af760
parent1583f1f5de9c64e0e1009d5bb2644420afe1f4a3 (diff)
downloademacs-46bb060f6cbff56b608f762a24c558f36bec2dee.tar.gz
emacs-46bb060f6cbff56b608f762a24c558f36bec2dee.zip
- Prevent non-keyword fontification by default.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/comint.el13
2 files changed, 17 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 440f40c7b34..b720fa75f4a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-01-31 J.D. Smith <jdsmith@as.arizona.edu>
2
3 * comint.el (comint-mode): Prevent non-keyword fontification by
4 default.
5
12007-01-31 Kenichi Handa <handa@m17n.org> 62007-01-31 Kenichi Handa <handa@m17n.org>
2 7
3 * international/quail.el (quail-store-decode-map-key): Store a 8 * international/quail.el (quail-store-decode-map-key): Store a
diff --git a/lisp/comint.el b/lisp/comint.el
index 26b0add8b76..2653728fa4e 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -653,7 +653,7 @@ Entry to this mode runs the hooks on `comint-mode-hook'."
653 (make-local-variable 'comint-accum-marker) 653 (make-local-variable 'comint-accum-marker)
654 (setq comint-accum-marker (make-marker)) 654 (setq comint-accum-marker (make-marker))
655 (make-local-variable 'font-lock-defaults) 655 (make-local-variable 'font-lock-defaults)
656 (setq font-lock-defaults '(nil)) 656 (setq font-lock-defaults '(nil t))
657 (add-hook 'change-major-mode-hook 'font-lock-defontify nil t) 657 (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
658 ;; This behavior is not useful in comint buffers, and is annoying 658 ;; This behavior is not useful in comint buffers, and is annoying
659 (set (make-local-variable 'next-line-add-newlines) nil)) 659 (set (make-local-variable 'next-line-add-newlines) nil))
@@ -1920,6 +1920,17 @@ Calls `comint-get-old-input' to get old input."
1920 (goto-char (process-mark process)) 1920 (goto-char (process-mark process))
1921 (insert input)))) 1921 (insert input))))
1922 1922
1923(defun comint-copy-old-input ()
1924 "Insert after prompt old input at point as new input to be edited.
1925Calls `comint-get-old-input' to get old input."
1926 (interactive)
1927 (let ((input (funcall comint-get-old-input))
1928 (process (get-buffer-process (current-buffer))))
1929 (if (not process)
1930 (error "Current buffer has no process")
1931 (goto-char (process-mark process))
1932 (insert input))))
1933
1923(defun comint-skip-prompt () 1934(defun comint-skip-prompt ()
1924 "Skip past the text matching regexp `comint-prompt-regexp'. 1935 "Skip past the text matching regexp `comint-prompt-regexp'.
1925If this takes us past the end of the current line, don't skip at all." 1936If this takes us past the end of the current line, don't skip at all."