aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2002-06-20 07:30:16 +0000
committerMiles Bader2002-06-20 07:30:16 +0000
commit3848dd73d7a425f994286d4580b8fe3ac2f89cc5 (patch)
treebaea38bb5d09449580c04e6b40c93a905aa8898d
parentcf6af551a38728f755798441db19be2d7adb2860 (diff)
downloademacs-3848dd73d7a425f994286d4580b8fe3ac2f89cc5.tar.gz
emacs-3848dd73d7a425f994286d4580b8fe3ac2f89cc5.zip
(comint-get-old-input-default): Strip text properties for fields too.
(comint-output-filter): Run output-filter functions before setting up the prompt.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/comint.el9
2 files changed, 10 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index c3ede33d669..ae5a8eca617 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,13 +1,14 @@
12002-06-20 Miles Bader <miles@gnu.org> 12002-06-20 Miles Bader <miles@gnu.org>
2 2
3 * international/characters.el: Re-enable code giving word syntax 3 * comint.el (comint-get-old-input-default): Strip text properties
4 to certain japanese-jisx0208 characters. 4 for fields too.
5
62002-06-18 Miles Bader <miles@gnu.org>
7 5
8 * comint.el (comint-output-filter): Run output-filter functions 6 * comint.el (comint-output-filter): Run output-filter functions
9 before setting up the prompt. 7 before setting up the prompt.
10 8
9 * international/characters.el: Re-enable code giving word syntax
10 to certain japanese-jisx0208 characters.
11
112002-06-19 Glenn Morris <gmorris@ast.cam.ac.uk> 122002-06-19 Glenn Morris <gmorris@ast.cam.ac.uk>
12 13
13 * progmodes/f90.el (f90-type-def-re): Fix value. 14 * progmodes/f90.el (f90-type-def-re): Fix value.
diff --git a/lisp/comint.el b/lisp/comint.el
index 9ae5947714e..bdbe2fdb709 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -1660,6 +1660,9 @@ This function should be in the list `comint-output-filter-functions'."
1660 ;; Advance process-mark 1660 ;; Advance process-mark
1661 (set-marker (process-mark process) (point)) 1661 (set-marker (process-mark process) (point))
1662 1662
1663 (run-hook-with-args 'comint-output-filter-functions string)
1664 (goto-char (process-mark process)) ; in case a filter moved it
1665
1663 (unless comint-use-prompt-regexp-instead-of-fields 1666 (unless comint-use-prompt-regexp-instead-of-fields
1664 (let ((inhibit-read-only t)) 1667 (let ((inhibit-read-only t))
1665 (add-text-properties comint-last-output-start (point) 1668 (add-text-properties comint-last-output-start (point)
@@ -1684,9 +1687,7 @@ This function should be in the list `comint-output-filter-functions'."
1684 (overlay-put comint-last-prompt-overlay 1687 (overlay-put comint-last-prompt-overlay
1685 'font-lock-face 'comint-highlight-prompt)))) 1688 'font-lock-face 'comint-highlight-prompt))))
1686 1689
1687 (goto-char saved-point) 1690 (goto-char saved-point)))))))
1688
1689 (run-hook-with-args 'comint-output-filter-functions string)))))))
1690 1691
1691(defun comint-preinput-scroll-to-bottom () 1692(defun comint-preinput-scroll-to-bottom ()
1692 "Go to the end of buffer in all windows showing it. 1693 "Go to the end of buffer in all windows showing it.
@@ -1794,7 +1795,7 @@ the current line with any initial string matching the regexp
1794`comint-prompt-regexp' removed." 1795`comint-prompt-regexp' removed."
1795 (let ((bof (field-beginning))) 1796 (let ((bof (field-beginning)))
1796 (if (eq (get-char-property bof 'field) 'input) 1797 (if (eq (get-char-property bof 'field) 'input)
1797 (field-string bof) 1798 (field-string-no-properties bof)
1798 (comint-bol) 1799 (comint-bol)
1799 (buffer-substring-no-properties (point) (line-end-position))))) 1800 (buffer-substring-no-properties (point) (line-end-position)))))
1800 1801