diff options
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/sun-mouse.el | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/lisp/term/sun-mouse.el b/lisp/term/sun-mouse.el index 91c63fdb066..c77bba42d28 100644 --- a/lisp/term/sun-mouse.el +++ b/lisp/term/sun-mouse.el | |||
| @@ -133,19 +133,19 @@ Just like the Common Lisp function of the same name." | |||
| 133 | 133 | ||
| 134 | ;;; All the useful code bits | 134 | ;;; All the useful code bits |
| 135 | (defmacro sm::hit-code (hit) | 135 | (defmacro sm::hit-code (hit) |
| 136 | (` (nth 0 (, hit)))) | 136 | `(nth 0 ,hit)) |
| 137 | ;;; The button, or buttons if a chord. | 137 | ;;; The button, or buttons if a chord. |
| 138 | (defmacro sm::hit-button (hit) | 138 | (defmacro sm::hit-button (hit) |
| 139 | (` (logand sm::ButtonBits (nth 0 (, hit))))) | 139 | `(logand sm::ButtonBits (nth 0 ,hit))) |
| 140 | ;;; The shift, control, and meta flags. | 140 | ;;; The shift, control, and meta flags. |
| 141 | (defmacro sm::hit-shiftmask (hit) | 141 | (defmacro sm::hit-shiftmask (hit) |
| 142 | (` (logand sm::ShiftmaskBits (nth 0 (, hit))))) | 142 | `(logand sm::ShiftmaskBits (nth 0 ,hit))) |
| 143 | ;;; Set if a double click (but not a chord). | 143 | ;;; Set if a double click (but not a chord). |
| 144 | (defmacro sm::hit-double (hit) | 144 | (defmacro sm::hit-double (hit) |
| 145 | (` (logand sm::DoubleBits (nth 0 (, hit))))) | 145 | `(logand sm::DoubleBits (nth 0 ,hit))) |
| 146 | ;;; Set on button release (as opposed to button press). | 146 | ;;; Set on button release (as opposed to button press). |
| 147 | (defmacro sm::hit-up (hit) | 147 | (defmacro sm::hit-up (hit) |
| 148 | (` (logand sm::UpBits (nth 0 (, hit))))) | 148 | `(logand sm::UpBits (nth 0 ,hit))) |
| 149 | ;;; Screen x position. | 149 | ;;; Screen x position. |
| 150 | (defmacro sm::hit-x (hit) (list 'nth 1 hit)) | 150 | (defmacro sm::hit-x (hit) (list 'nth 1 hit)) |
| 151 | ;;; Screen y position. | 151 | ;;; Screen y position. |
| @@ -153,8 +153,8 @@ Just like the Common Lisp function of the same name." | |||
| 153 | ;;; Milliseconds since last hit. | 153 | ;;; Milliseconds since last hit. |
| 154 | (defmacro sm::hit-delta (hit) (list 'nth 3 hit)) | 154 | (defmacro sm::hit-delta (hit) (list 'nth 3 hit)) |
| 155 | 155 | ||
| 156 | (defmacro sm::hit-up-p (hit) ; A predicate. | 156 | (defmacro sm::hit-up-p (hit) ; A predicate. |
| 157 | (` (not (zerop (sm::hit-up (, hit)))))) | 157 | `(not (zerop (sm::hit-up ,hit)))) |
| 158 | 158 | ||
| 159 | ;;; | 159 | ;;; |
| 160 | ;;; Loc accessors. for sm::window-xy | 160 | ;;; Loc accessors. for sm::window-xy |
| @@ -166,12 +166,12 @@ Just like the Common Lisp function of the same name." | |||
| 166 | (defmacro eval-in-buffer (buffer &rest forms) | 166 | (defmacro eval-in-buffer (buffer &rest forms) |
| 167 | "Macro to switches to BUFFER, evaluates FORMS, returns to original buffer." | 167 | "Macro to switches to BUFFER, evaluates FORMS, returns to original buffer." |
| 168 | ;; When you don't need the complete window context of eval-in-window | 168 | ;; When you don't need the complete window context of eval-in-window |
| 169 | (` (let ((StartBuffer (current-buffer))) | 169 | `(let ((StartBuffer (current-buffer))) |
| 170 | (unwind-protect | 170 | (unwind-protect |
| 171 | (progn | 171 | (progn |
| 172 | (set-buffer (, buffer)) | 172 | (set-buffer ,buffer) |
| 173 | (,@ forms)) | 173 | ,@forms) |
| 174 | (set-buffer StartBuffer))))) | 174 | (set-buffer StartBuffer)))) |
| 175 | 175 | ||
| 176 | (put 'eval-in-buffer 'lisp-indent-function 1) | 176 | (put 'eval-in-buffer 'lisp-indent-function 1) |
| 177 | 177 | ||
| @@ -179,12 +179,12 @@ Just like the Common Lisp function of the same name." | |||
| 179 | ;;; | 179 | ;;; |
| 180 | (defmacro eval-in-window (window &rest forms) | 180 | (defmacro eval-in-window (window &rest forms) |
| 181 | "Switch to WINDOW, evaluate FORMS, return to original window." | 181 | "Switch to WINDOW, evaluate FORMS, return to original window." |
| 182 | (` (let ((OriginallySelectedWindow (selected-window))) | 182 | `(let ((OriginallySelectedWindow (selected-window))) |
| 183 | (unwind-protect | 183 | (unwind-protect |
| 184 | (progn | 184 | (progn |
| 185 | (select-window (, window)) | 185 | (select-window ,window) |
| 186 | (,@ forms)) | 186 | ,@forms) |
| 187 | (select-window OriginallySelectedWindow))))) | 187 | (select-window OriginallySelectedWindow)))) |
| 188 | (put 'eval-in-window 'lisp-indent-function 1) | 188 | (put 'eval-in-window 'lisp-indent-function 1) |
| 189 | 189 | ||
| 190 | ;;; | 190 | ;;; |
| @@ -196,14 +196,14 @@ Just like the Common Lisp function of the same name." | |||
| 196 | "Switches to each window and evaluates FORM. Optional argument | 196 | "Switches to each window and evaluates FORM. Optional argument |
| 197 | YESMINI says to include the minibuffer as a window. | 197 | YESMINI says to include the minibuffer as a window. |
| 198 | This is a macro, and does not evaluate its arguments." | 198 | This is a macro, and does not evaluate its arguments." |
| 199 | (` (let ((OriginallySelectedWindow (selected-window))) | 199 | `(let ((OriginallySelectedWindow (selected-window))) |
| 200 | (unwind-protect | 200 | (unwind-protect |
| 201 | (while (progn | 201 | (while (progn |
| 202 | (, form) | 202 | ,form |
| 203 | (not (eq OriginallySelectedWindow | 203 | (not (eq OriginallySelectedWindow |
| 204 | (select-window | 204 | (select-window |
| 205 | (next-window nil (, yesmini))))))) | 205 | (next-window nil ,yesmini)))))) |
| 206 | (select-window OriginallySelectedWindow))))) | 206 | (select-window OriginallySelectedWindow)))) |
| 207 | (put 'eval-in-window 'lisp-indent-function 0) | 207 | (put 'eval-in-window 'lisp-indent-function 0) |
| 208 | 208 | ||
| 209 | (defun move-to-loc (x y) | 209 | (defun move-to-loc (x y) |