diff options
| author | Juanma Barranquero | 2005-08-24 15:56:02 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-08-24 15:56:02 +0000 |
| commit | 4add8580fb456ebd6473217ea0df47a393dce4db (patch) | |
| tree | cd5279a0c38c24b824d0bb3d36d6c6b13ee22ba6 /lisp | |
| parent | 05470ac85c1a925c04ed571066f79949bbad772f (diff) | |
| download | emacs-4add8580fb456ebd6473217ea0df47a393dce4db.tar.gz emacs-4add8580fb456ebd6473217ea0df47a393dce4db.zip | |
(icon-edit, *mouse-window*, *mouse-x*, *mouse-y*, menu, char):
Defvar at compile time.
(sc::menu): Declare it before use.
(sc::pack-one-line): Use `let', not `let*'.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 26 | ||||
| -rw-r--r-- | lisp/obsolete/sun-curs.el | 19 |
2 files changed, 36 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 36352a189c3..f3375f339b2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2005-08-24 Juanma Barranquero <lekktu@gmail.com> | 1 | 2005-08-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * emerge.el (merge-begin, merge-end, template, A-begin, A-end) | ||
| 4 | (B-begin, B-end, diff, diff-vector, valid-diff): Defvar at compile | ||
| 5 | time to silence the byte-compiler. | ||
| 6 | |||
| 3 | * ibuffer.el (ibuffer-compile-make-eliding-form) | 7 | * ibuffer.el (ibuffer-compile-make-eliding-form) |
| 4 | (ibuffer-check-formats): Use `with-no-warnings' to hide references | 8 | (ibuffer-check-formats): Use `with-no-warnings' to hide references |
| 5 | to `ibuffer-elide-long-columns' (which is defined on ibuffer.el, | 9 | to `ibuffer-elide-long-columns' (which is defined on ibuffer.el, |
| @@ -15,9 +19,25 @@ | |||
| 15 | (ibuffer-cached-formats, ibuffer-cached-elide-long-columns): | 19 | (ibuffer-cached-formats, ibuffer-cached-elide-long-columns): |
| 16 | Declare them before use. | 20 | Declare them before use. |
| 17 | 21 | ||
| 18 | * emerge.el (merge-begin, merge-end, template, A-begin, A-end) | 22 | * info-xref.el (info-xref-xfile-alist, info-xref-filename-heading) |
| 19 | (B-begin, B-end, diff, diff-vector, valid-diff): Defvar at compile | 23 | (info-xref-good, info-xref-bad): Defvar at compile time. |
| 20 | time to silence the byte-compiler. | 24 | |
| 25 | * obsolete/mlsupport.el (filter-region, execute-monitor-command): | ||
| 26 | Use `let*' instead of `let'. | ||
| 27 | |||
| 28 | * obsolete/sun-curs.el (icon-edit, *mouse-window*, *mouse-x*) | ||
| 29 | (*mouse-y*, menu, char): Defvar at compile time. | ||
| 30 | (sc::menu): Declare it before use. | ||
| 31 | (sc::pack-one-line): Use `let', not `let*'. | ||
| 32 | |||
| 33 | * obsolete/swedish.el (news-inews-hook, news-group-hook-alist) | ||
| 34 | (mail-send-hook): Defvar at compile time. | ||
| 35 | |||
| 36 | * term/bg-mouse.el (bg-mouse-x, bg-mouse-y, bg-cursor-window): | ||
| 37 | Defvar at compile time. | ||
| 38 | |||
| 39 | * term/sun-mouse.el (current-global-mousemap) | ||
| 40 | (current-local-mousemap): Declare them before use. | ||
| 21 | 41 | ||
| 22 | 2005-08-24 Carsten Dominik <dominik@science.uva.nl> | 42 | 2005-08-24 Carsten Dominik <dominik@science.uva.nl> |
| 23 | 43 | ||
diff --git a/lisp/obsolete/sun-curs.el b/lisp/obsolete/sun-curs.el index 99cba421350..de372fe6836 100644 --- a/lisp/obsolete/sun-curs.el +++ b/lisp/obsolete/sun-curs.el | |||
| @@ -32,7 +32,12 @@ | |||
| 32 | ;;; | 32 | ;;; |
| 33 | ;;; 9-dec-86 Jeff Peck, Sun Microsystems Inc. <peck@sun.com> | 33 | ;;; 9-dec-86 Jeff Peck, Sun Microsystems Inc. <peck@sun.com> |
| 34 | 34 | ||
| 35 | (eval-when-compile (require 'cl)) | 35 | (eval-when-compile |
| 36 | (require 'cl) | ||
| 37 | (defvar *edit-icon*) (defvar char) | ||
| 38 | ;; These are from term/sun-mouse.el | ||
| 39 | (defvar *mouse-window*) (defvar *mouse-x*) (defvar *mouse-y*) (defvar menu)) | ||
| 40 | |||
| 36 | (require 'sun-fns) | 41 | (require 'sun-fns) |
| 37 | 42 | ||
| 38 | (eval-and-compile | 43 | (eval-and-compile |
| @@ -79,9 +84,11 @@ Otherwise, ICON should be a vector or the name of a vector of [x y 32-chars]" | |||
| 79 | (if (symbolp icon) (setq icon (symbol-value icon))) | 84 | (if (symbolp icon) (setq icon (symbol-value icon))) |
| 80 | (sun-change-cursor-icon icon)) | 85 | (sun-change-cursor-icon icon)) |
| 81 | 86 | ||
| 87 | ;; This does not make much sense... | ||
| 82 | (make-local-variable '*edit-icon*) | 88 | (make-local-variable '*edit-icon*) |
| 89 | |||
| 90 | (defvar icon-edit nil) | ||
| 83 | (make-variable-buffer-local 'icon-edit) | 91 | (make-variable-buffer-local 'icon-edit) |
| 84 | (setq-default icon-edit nil) | ||
| 85 | (or (assq 'icon-edit minor-mode-alist) | 92 | (or (assq 'icon-edit minor-mode-alist) |
| 86 | (push '(icon-edit " IconEdit") minor-mode-alist)) | 93 | (push '(icon-edit " IconEdit") minor-mode-alist)) |
| 87 | 94 | ||
| @@ -109,9 +116,6 @@ Otherwise, ICON should be a vector or the name of a vector of [x y 32-chars]" | |||
| 109 | (insert char) | 116 | (insert char) |
| 110 | (sc::goto-hotspot)) | 117 | (sc::goto-hotspot)) |
| 111 | 118 | ||
| 112 | (defun sc::menu-function (window x y) | ||
| 113 | (sun-menu-evaluate window (1+ x) y sc::menu)) | ||
| 114 | |||
| 115 | (defmenu sc::menu | 119 | (defmenu sc::menu |
| 116 | ("Cursor Menu") | 120 | ("Cursor Menu") |
| 117 | ("Pack & Use" sc::pack-buffer-to-cursor) | 121 | ("Pack & Use" sc::pack-buffer-to-cursor) |
| @@ -127,6 +131,9 @@ Otherwise, ICON should be a vector or the name of a vector of [x y 32-chars]" | |||
| 127 | ("Quit" sc::quit-edit) | 131 | ("Quit" sc::quit-edit) |
| 128 | ) | 132 | ) |
| 129 | 133 | ||
| 134 | (defun sc::menu-function (window x y) | ||
| 135 | (sun-menu-evaluate window (1+ x) y sc::menu)) | ||
| 136 | |||
| 130 | (defun sc::quit-edit () | 137 | (defun sc::quit-edit () |
| 131 | (interactive) | 138 | (interactive) |
| 132 | (bury-buffer (current-buffer)) | 139 | (bury-buffer (current-buffer)) |
| @@ -202,7 +209,7 @@ Otherwise, ICON should be a vector or the name of a vector of [x y 32-chars]" | |||
| 202 | ) | 209 | ) |
| 203 | 210 | ||
| 204 | (defun sc::pack-one-line (dummy) | 211 | (defun sc::pack-one-line (dummy) |
| 205 | (let* (char chr1 chr2) | 212 | (let (char chr1 chr2) |
| 206 | (setq char 0 chr1 (mapconcat 'sc::pack-one-char "12345678" "") chr1 char) | 213 | (setq char 0 chr1 (mapconcat 'sc::pack-one-char "12345678" "") chr1 char) |
| 207 | (setq char 0 chr2 (mapconcat 'sc::pack-one-char "12345678" "") chr2 char) | 214 | (setq char 0 chr2 (mapconcat 'sc::pack-one-char "12345678" "") chr2 char) |
| 208 | (forward-line 1) | 215 | (forward-line 1) |