changeset 101003:cc189e8cf211

Replace last-command-char with last-command-event.
author Glenn Morris <rgm@gnu.org>
date Fri, 09 Jan 2009 04:19:08 +0000
parents 3b3c7e10cd97
children 6f10422080eb
files lisp/ChangeLog lisp/textmodes/sgml-mode.el lisp/textmodes/table.el lisp/textmodes/two-column.el
diffstat 4 files changed, 10 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Fri Jan 09 04:15:52 2009 +0000
+++ b/lisp/ChangeLog	Fri Jan 09 04:19:08 2009 +0000
@@ -14,6 +14,7 @@
 	* progmodes/prolog.el, progmodes/sh-script.el, progmodes/simula.el:
 	* progmodes/tcl.el, progmodes/vera-mode.el, progmodes/verilog-mode.el:
 	* progmodes/vhdl-mode.el, progmodes/xscheme.el:
+	* textmodes/sgml-mode.el, textmodes/table.el, textmodes/two-column.el:
 	Replace last-command-char with last-command-event.
 
 2009-01-09  Dave Love  <fx@gnu.org>
--- a/lisp/textmodes/sgml-mode.el	Fri Jan 09 04:15:52 2009 +0000
+++ b/lisp/textmodes/sgml-mode.el	Fri Jan 09 04:19:08 2009 +0000
@@ -595,16 +595,16 @@
 (defun sgml-name-self ()
   "Insert a symbolic character name according to `sgml-char-names'."
   (interactive "*")
-  (sgml-name-char last-command-char))
+  (sgml-name-char last-command-event))
 
 (defun sgml-maybe-name-self ()
   "Insert a symbolic character name according to `sgml-char-names'."
   (interactive "*")
   (if sgml-name-8bit-mode
-      (let ((mc last-command-char))
+      (let ((mc last-command-event))
 	(if (< mc 256)
 	    (setq mc (unibyte-char-to-multibyte mc)))
-	(or mc (setq mc last-command-char))
+	(or mc (setq mc last-command-event))
 	(sgml-name-char mc))
     (self-insert-command 1)))
 
@@ -714,7 +714,7 @@
 	    (eq (aref tag 0) ?/))
 	(self-insert-command (prefix-numeric-value arg))
       (sgml-attributes tag)
-      (setq last-command-char ?\s)
+      (setq last-command-event ?\s)
       (or (> (point) point)
 	  (self-insert-command 1)))))
 
--- a/lisp/textmodes/table.el	Fri Jan 09 04:15:52 2009 +0000
+++ b/lisp/textmodes/table.el	Fri Jan 09 04:19:08 2009 +0000
@@ -6,7 +6,7 @@
 ;; Keywords: wp, convenience
 ;; Author: Takaaki Ota <Takaaki.Ota@am.sony.com>
 ;; Created: Sat Jul 08 2000 13:28:45 (PST)
-;; Revised: Wed Jan 03 2007 13:23:46 (PST)
+;; Revised: Thu Jan 08 2009 20:17:04 (PST)
 
 ;; This file is part of GNU Emacs.
 
@@ -3943,7 +3943,7 @@
 (defun *table--cell-self-insert-command ()
   "Table cell version of `self-insert-command'."
   (interactive "*")
-  (let ((char (table--unibyte-char-to-multibyte last-command-char)))
+  (let ((char (table--unibyte-char-to-multibyte last-command-event)))
     (if (eq buffer-undo-list t) nil
       (if (not (eq last-command this-command))
 	  (setq table-cell-self-insert-command-count 0)
--- a/lisp/textmodes/two-column.el	Fri Jan 09 04:15:52 2009 +0000
+++ b/lisp/textmodes/two-column.el	Fri Jan 09 04:19:08 2009 +0000
@@ -580,10 +580,10 @@
       ;; catch a mouse scroll on non-selected scrollbar
       (select-window
        (prog1 (selected-window)
-	 (and (consp last-command-char)
+	 (and (consp last-command-event)
 	      (not (eq (selected-window)
-		       (car (car (cdr last-command-char)))))
-	      (select-window (car (car (cdr last-command-char)))))
+		       (car (car (cdr last-command-event)))))
+	      (select-window (car (car (cdr last-command-event)))))
 	 ;; In some cases scrolling causes an error, but post-command-hook
 	 ;; shouldn't, and should always stay in the original window
 	 (condition-case ()