# HG changeset patch # User Richard M. Stallman # Date 864154146 0 # Node ID 08062aad7ef6f0a6919b3c4e1e21c3f393210e97 # Parent 88e528f3dc49670309b5be04095746e6ab67654f (crisp-last-last-command): Renamed from last-last-command and defvar added. diff -r 88e528f3dc49 -r 08062aad7ef6 lisp/emulation/crisp.el --- a/lisp/emulation/crisp.el Tue May 20 18:37:35 1997 +0000 +++ b/lisp/emulation/crisp.el Tue May 20 18:49:06 1997 +0000 @@ -88,9 +88,12 @@ (defvar crisp-load-hook nil "Hooks to run after loadint the CRiSP emulator package.") -(defvar crisp-version "crisp.el release 1.1/$Revision: 1.3 $" +(defvar crisp-version "crisp.el release 1.1/$Revision: 1.4 $" "The release number and RCS version for the CRiSP emulator.") +(defvar crisp-last-last-command nil + "The command *before* the last command.") + (if (string-match "XEmacs\\Lucid" emacs-version) (add-minor-mode 'crisp-mode-enabled crisp-mode-modeline-string) (or (assq 'crisp-mode-enabled minor-mode-alist) @@ -177,13 +180,14 @@ consecutive use moves point to the beginning of the buffer." (interactive nil) (cond - ((and (eq last-command 'crisp-home) (eq last-last-command 'crisp-home)) + ((and (eq last-command 'crisp-home) + (eq crisp-last-last-command 'crisp-home)) (goto-char (point-min))) ((eq last-command 'crisp-home) (move-to-window-line 0)) (t (beginning-of-line))) - (setq last-last-command last-command)) + (setq crisp-last-last-command last-command)) (defun crisp-end () "\"End\" point, the way CRiSP would do it. @@ -192,14 +196,14 @@ consecutive use moves point to the end of the buffer." (interactive nil) (cond - ((and (eq last-command 'crisp-end) (eq last-last-command 'crisp-end)) + ((and (eq last-command 'crisp-end) (eq crisp-last-last-command 'crisp-end)) (goto-char (point-max))) ((eq last-command 'crisp-end) (move-to-window-line -1) (end-of-line)) (t (end-of-line))) - (setq last-last-command last-command)) + (setq crisp-last-last-command last-command)) ;; Now enable the mode