;;; 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.
+;; 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
;; Author: Olin Shivers <shivers@cs.cmu.edu>
;; Simon Marshall <simon@gnu.org>
;; 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))
+ (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
+2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
+
+ * alloc.c (make_number): The arg can be bigger than `int'.
+ * lisp.h (make_number): Make prototype more precise.
+
+ * process.c, dired.c (Vfile_name_coding_system)
+ (Vdefault_file_name_coding_system):
+ * callproc.c (Vdoc_file_name, Vfile_name_coding_system)
+ (Vdefault_file_name_coding_system): Remove unused declarations.
+
2005-03-24 Jan Dj\e,Ad\e(Brv <jan.h.d@swipnet.se>
* xmenu.c (create_and_show_popup_menu): Just remove menu and return
if it failed to pop up (Gnome "show pointer on ctrl" option makes
menus fail to pop up).
-2005-03-24 Stefan <monnier@iro.umontreal.ca>
+2005-03-24 Stefan Monnier <monnier@iro.umontreal.ca>
* xdisp.c (get_next_display_element): Also use `\ ' & `\-' for latin-9.
+ Just prepend a backslash without replacing the NBSP by an SPC.
2005-03-22 Kim F. Storm <storm@cua.dk>