changeset 72621:82f0fddf878e

(shell-filter-ctrl-a-ctrl-b): Check if `comint-last-output-start' is a marker by using `markerp' and check if it has a position by using `marker-position', and use this position for `goto-char'.
author Juri Linkov <juri@jurta.org>
date Sat, 02 Sep 2006 23:30:21 +0000
parents 70dd4b1e1daf
children adb1cbfb05ca
files lisp/shell.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/shell.el	Sat Sep 02 23:29:18 2006 +0000
+++ b/lisp/shell.el	Sat Sep 02 23:30:21 2006 +0000
@@ -483,7 +483,9 @@
 The argument STRING is ignored."
   (let ((pmark (process-mark (get-buffer-process (current-buffer)))))
     (save-excursion
-      (goto-char (or comint-last-output-start (point-min)))
+      (goto-char (or (and (markerp comint-last-output-start)
+			  (marker-position comint-last-output-start))
+		     (point-min)))
       (while (re-search-forward "[\C-a\C-b]" pmark t)
         (replace-match "")))))