diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/emacs-lisp/re-builder.el | 30 |
2 files changed, 19 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index eb23145c207..4501d08b4d2 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-08-17 John Paul Wallington <jpw@gnu.org> | ||
| 2 | |||
| 3 | * emacs-lisp/re-builder.el (reb-mode-map): Define within defvar. | ||
| 4 | (reb-force-update): Doc fix. | ||
| 5 | |||
| 1 | 2004-08-16 Richard M. Stallman <rms@gnu.org> | 6 | 2004-08-16 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * progmodes/which-func.el (which-func-update-1): Doc fix. | 8 | * progmodes/which-func.el (which-func-update-1): Doc fix. |
diff --git a/lisp/emacs-lisp/re-builder.el b/lisp/emacs-lisp/re-builder.el index 6eb1ffa2e54..77a12167c30 100644 --- a/lisp/emacs-lisp/re-builder.el +++ b/lisp/emacs-lisp/re-builder.el | |||
| @@ -45,7 +45,7 @@ | |||
| 45 | ;; call `reb-force-update' ("\C-c\C-u") which should reveal the error. | 45 | ;; call `reb-force-update' ("\C-c\C-u") which should reveal the error. |
| 46 | 46 | ||
| 47 | ;; The target buffer can be changed with `reb-change-target-buffer' | 47 | ;; The target buffer can be changed with `reb-change-target-buffer' |
| 48 | ;; ("\C-c\C-b"). Changing the target buffer automatically removes | 48 | ;; ("\C-c\C-b"). Changing the target buffer automatically removes |
| 49 | ;; the overlays from the old buffer and displays the new one in the | 49 | ;; the overlays from the old buffer and displays the new one in the |
| 50 | ;; target window. | 50 | ;; target window. |
| 51 | 51 | ||
| @@ -229,22 +229,20 @@ Except for Lisp syntax this is the same as `reb-regexp'.") | |||
| 229 | "Buffer to use for the RE Builder.") | 229 | "Buffer to use for the RE Builder.") |
| 230 | 230 | ||
| 231 | ;; Define the local "\C-c" keymap | 231 | ;; Define the local "\C-c" keymap |
| 232 | (defvar reb-mode-map nil | 232 | (defvar reb-mode-map |
| 233 | (let ((map (make-sparse-keymap))) | ||
| 234 | (define-key map "\C-c\C-c" 'reb-toggle-case) | ||
| 235 | (define-key map "\C-c\C-q" 'reb-quit) | ||
| 236 | (define-key map "\C-c\C-w" 'reb-copy) | ||
| 237 | (define-key map "\C-c\C-s" 'reb-next-match) | ||
| 238 | (define-key map "\C-c\C-r" 'reb-prev-match) | ||
| 239 | (define-key map "\C-c\C-i" 'reb-change-syntax) | ||
| 240 | (define-key map "\C-c\C-e" 'reb-enter-subexp-mode) | ||
| 241 | (define-key map "\C-c\C-b" 'reb-change-target-buffer) | ||
| 242 | (define-key map "\C-c\C-u" 'reb-force-update) | ||
| 243 | map) | ||
| 233 | "Keymap used by the RE Builder.") | 244 | "Keymap used by the RE Builder.") |
| 234 | 245 | ||
| 235 | (if (not reb-mode-map) | ||
| 236 | (progn | ||
| 237 | (setq reb-mode-map (make-sparse-keymap)) | ||
| 238 | (define-key reb-mode-map "\C-c\C-c" 'reb-toggle-case) | ||
| 239 | (define-key reb-mode-map "\C-c\C-q" 'reb-quit) | ||
| 240 | (define-key reb-mode-map "\C-c\C-w" 'reb-copy) | ||
| 241 | (define-key reb-mode-map "\C-c\C-s" 'reb-next-match) | ||
| 242 | (define-key reb-mode-map "\C-c\C-r" 'reb-prev-match) | ||
| 243 | (define-key reb-mode-map "\C-c\C-i" 'reb-change-syntax) | ||
| 244 | (define-key reb-mode-map "\C-c\C-e" 'reb-enter-subexp-mode) | ||
| 245 | (define-key reb-mode-map "\C-c\C-b" 'reb-change-target-buffer) | ||
| 246 | (define-key reb-mode-map "\C-c\C-u" 'reb-force-update))) | ||
| 247 | |||
| 248 | (defun reb-mode () | 246 | (defun reb-mode () |
| 249 | "Major mode for interactively building Regular Expressions. | 247 | "Major mode for interactively building Regular Expressions. |
| 250 | \\{reb-mode-map}" | 248 | \\{reb-mode-map}" |
| @@ -367,7 +365,7 @@ Except for Lisp syntax this is the same as `reb-regexp'.") | |||
| 367 | (reb-update-modestring)))) | 365 | (reb-update-modestring)))) |
| 368 | 366 | ||
| 369 | (defun reb-force-update () | 367 | (defun reb-force-update () |
| 370 | "Forces an update in the RE Builder target window without a match limit." | 368 | "Force an update in the RE Builder target window without a match limit." |
| 371 | (interactive) | 369 | (interactive) |
| 372 | 370 | ||
| 373 | (let ((reb-auto-match-limit nil)) | 371 | (let ((reb-auto-match-limit nil)) |