emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/comint.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/comint.el
Date: Thu, 24 Mar 2005 16:21:13 -0500

Index: emacs/lisp/comint.el
diff -c emacs/lisp/comint.el:1.308 emacs/lisp/comint.el:1.309
*** emacs/lisp/comint.el:1.308  Wed Feb  9 15:50:43 2005
--- emacs/lisp/comint.el        Thu Mar 24 21:21:13 2005
***************
*** 1,7 ****
  ;;; comint.el --- general command interpreter in a window stuff
  
  ;; Copyright (C) 1988, 1990, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
! ;;   2000, 2001, 2002, 2003, 2004  Free Software Foundation, Inc.
  
  ;; Author: Olin Shivers <address@hidden>
  ;;    Simon Marshall <address@hidden>
--- 1,7 ----
  ;;; comint.el --- general command interpreter in a window stuff
  
  ;; Copyright (C) 1988, 1990, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
! ;;   2000, 2001, 2002, 2003, 2004, 2005  Free Software Foundation, Inc.
  
  ;; Author: Olin Shivers <address@hidden>
  ;;    Simon Marshall <address@hidden>
***************
*** 791,804 ****
    ;; This doesn't use "e" because it is supposed to work
    ;; for events without parameters.
    (interactive (list last-input-event))
-   (if event (mouse-set-point event))
    (let ((pos (point)))
!     (if (not (eq (get-char-property pos 'field) 'input))
        ;; No input at POS, fall back to the global definition.
        (let* ((keys (this-command-keys))
               (last-key (and (vectorp keys) (aref keys (1- (length keys)))))
               (fun (and last-key (lookup-key global-map (vector last-key)))))
          (and fun (call-interactively fun)))
        ;; There's previous input at POS, insert it at the end of the buffer.
        (goto-char (point-max))
        ;; First delete any old unsent input at the end
--- 791,806 ----
    ;; This doesn't use "e" because it is supposed to work
    ;; for events without parameters.
    (interactive (list last-input-event))
    (let ((pos (point)))
!     (if event (mouse-set-point event))
!     (if (not (eq (get-char-property (point) 'field) 'input))
        ;; No input at POS, fall back to the global definition.
        (let* ((keys (this-command-keys))
               (last-key (and (vectorp keys) (aref keys (1- (length keys)))))
               (fun (and last-key (lookup-key global-map (vector last-key)))))
+         (goto-char pos)
          (and fun (call-interactively fun)))
+       (setq pos (point))
        ;; There's previous input at POS, insert it at the end of the buffer.
        (goto-char (point-max))
        ;; First delete any old unsent input at the end




reply via email to

[Prev in Thread] Current Thread [Next in Thread]