]> git.eshelyaron.com Git - emacs.git/commitdiff
(idlwave-shell-send-command): When looking for a prompt, (forward-line 0)
authorMiles Bader <miles@gnu.org>
Mon, 7 Aug 2000 15:04:18 +0000 (15:04 +0000)
committerMiles Bader <miles@gnu.org>
Mon, 7 Aug 2000 15:04:18 +0000 (15:04 +0000)
  instead of (beginning-of-line), to avoid getting caught by an input field.

lisp/progmodes/idlw-shell.el

index c79c1f168e548d1c778f4b4ee5100cd1b9627c0b..07d703e6efaac4c6bf83149060f0186bf5ee54f6 100644 (file)
@@ -6,7 +6,7 @@
 ;; Author: Chris Chase <chase@att.com>
 ;; Maintainer: Carsten Dominik <dominik@strw.leidenuniv.nl>
 ;; Version: 4.2
-;; Date: $Date: 2000/06/15 17:58:23 $
+;; Date: $Date: 2000/06/20 12:49:42 $
 ;; Keywords: processes
 
 ;; This file is part of GNU Emacs.
@@ -886,7 +886,9 @@ and if `idlwave-shell-ready' is non-nil."
       (if (and idlwave-shell-ready
                ;; Check for IDL prompt
                (save-excursion
-                 (beginning-of-line)
+                ;; Using (forward-line 0) instead of beginning-of-line
+                ;; avoids any field constraints.
+                 (forward-line 0)
                  (looking-at idlwave-shell-prompt-pattern)))
           ;; IDL ready for command
           (if idlwave-shell-pending-commands