aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2003-07-29 20:30:11 +0000
committerJuanma Barranquero2003-07-29 20:30:11 +0000
commitb909e366c00ab612a1d3dbfb14e9d9092db4d508 (patch)
tree1c599aeef9a561bb04cba8e997065f578ec198f4
parent631f20823c7f25c6ac6cdeed2f2f80ab28bb4fb5 (diff)
downloademacs-b909e366c00ab612a1d3dbfb14e9d9092db4d508.tar.gz
emacs-b909e366c00ab612a1d3dbfb14e9d9092db4d508.zip
(comint-read-noecho): Use `clear-string' instead of `fillarray'.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/comint.el8
2 files changed, 11 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index df3f6ec04e0..d8670af23da 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12003-07-29 Jesper Harder <harder@ifa.au.dk> (tiny change)
2
3 * comint.el (comint-read-noecho): Use `clear-string' instead of
4 `fillarray'.
5
12003-07-29 Thomas W Murphy <twm@andrew.cmu.edu> (tiny change) 62003-07-29 Thomas W Murphy <twm@andrew.cmu.edu> (tiny change)
2 7
3 * outline.el (outline-mode-hook): Add defvar. 8 * outline.el (outline-mode-hook): Add defvar.
@@ -6,7 +11,7 @@
6 11
7 * gdb-ui.el (gdb-setup-windows, gdb-restore-windows): Restore 12 * gdb-ui.el (gdb-setup-windows, gdb-restore-windows): Restore
8 assembler in source window if that is what has been selected. 13 assembler in source window if that is what has been selected.
9 (menu): Add gdb-restore-windows to menu. Make gdba 14 (menu): Add gdb-restore-windows to menu. Make gdba
10 specific menus only visible from gdba. 15 specific menus only visible from gdba.
11 16
122003-07-28 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change) 172003-07-28 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
@@ -18,7 +23,7 @@
18 23
19 * progmodes/gud.el (gdb-script-font-lock-keywords): 24 * progmodes/gud.el (gdb-script-font-lock-keywords):
20 Put `font-lock-function-name-face' on a symbol which includes 25 Put `font-lock-function-name-face' on a symbol which includes
21 `-' like `hook-run'. Put font-lock-variable-name-face 26 `-' like `hook-run'. Put font-lock-variable-name-face
22 on a symbol starting with $. 27 on a symbol starting with $.
23 28
242003-07-27 Markus Rost <rost@math.ohio-state.edu> 292003-07-27 Markus Rost <rost@math.ohio-state.edu>
diff --git a/lisp/comint.el b/lisp/comint.el
index 7834c091cbb..0fa6c36330c 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -269,7 +269,7 @@ This variable is buffer-local in all comint buffers."
269(defcustom comint-scroll-show-maximum-output t 269(defcustom comint-scroll-show-maximum-output t
270 "*Controls how to scroll due to interpreter output. 270 "*Controls how to scroll due to interpreter output.
271This variable applies when point is at the end of the buffer 271This variable applies when point is at the end of the buffer
272\(either because it was originally there, or because 272\(either because it was originally there, or because
273`comint-move-point-for-output' said to move it there) 273`comint-move-point-for-output' said to move it there)
274and output from the subprocess is inserted. 274and output from the subprocess is inserted.
275 275
@@ -1903,7 +1903,7 @@ filter and C-g is pressed, this function returns nil rather than a string).
1903Note that the keystrokes comprising the text can still be recovered 1903Note that the keystrokes comprising the text can still be recovered
1904\(temporarily) with \\[view-lossage]. Some people find this worrysome. 1904\(temporarily) with \\[view-lossage]. Some people find this worrysome.
1905Once the caller uses the password, it can erase the password 1905Once the caller uses the password, it can erase the password
1906by doing (fillarray STRING 0)." 1906by doing (clear-string STRING)."
1907 (let ((ans "") 1907 (let ((ans "")
1908 (newans nil) 1908 (newans nil)
1909 (c 0) 1909 (c 0)
@@ -1930,11 +1930,11 @@ by doing (fillarray STRING 0)."
1930 ((or (= c ?\r) (= c ?\n) (= c ?\e)) 1930 ((or (= c ?\r) (= c ?\n) (= c ?\e))
1931 (setq done t)) 1931 (setq done t))
1932 ((= c ?\C-u) 1932 ((= c ?\C-u)
1933 (fillarray ans 0) 1933 (clear-string ans)
1934 (setq ans "")) 1934 (setq ans ""))
1935 ((and (/= c ?\b) (/= c ?\177)) 1935 ((and (/= c ?\b) (/= c ?\177))
1936 (setq newans (concat ans (char-to-string c))) 1936 (setq newans (concat ans (char-to-string c)))
1937 (fillarray ans 0) 1937 (clear-string ans)
1938 (setq ans newans)) 1938 (setq ans newans))
1939 ((> (length ans) 0) 1939 ((> (length ans) 0)
1940 (aset ans (1- (length ans)) 0) 1940 (aset ans (1- (length ans)) 0)