diff options
| author | Stefan Monnier | 2002-02-25 07:26:15 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2002-02-25 07:26:15 +0000 |
| commit | 565f89ec063da8226d29f5aa6300e72e732b89eb (patch) | |
| tree | 448cffd0bea407f3c54a71a3f996b819b0ca6294 | |
| parent | 0277b535be09ab13c023a854e498e8bf967ba0f0 (diff) | |
| download | emacs-565f89ec063da8226d29f5aa6300e72e732b89eb.tar.gz emacs-565f89ec063da8226d29f5aa6300e72e732b89eb.zip | |
(ielm-match-data): New var.
(inferior-emacs-lisp-mode): Make it buffer-local.
(ielm-eval-input): Use it to preserve match-data between inputs.
| -rw-r--r-- | lisp/ChangeLog | 75 | ||||
| -rw-r--r-- | lisp/ielm.el | 8 |
2 files changed, 44 insertions, 39 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 3d9e746ae26..99e73df3e17 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2002-02-25 Stefan Monnier <monnier@cs.yale.edu> | ||
| 2 | |||
| 3 | * ielm.el (ielm-match-data): New var. | ||
| 4 | (inferior-emacs-lisp-mode): Make it buffer-local. | ||
| 5 | (ielm-eval-input): Use it to preserve match-data between inputs. | ||
| 6 | |||
| 1 | 2002-02-24 Juanma Barranquero <jbarranquero@peoplecall.com> | 7 | 2002-02-24 Juanma Barranquero <jbarranquero@peoplecall.com> |
| 2 | 8 | ||
| 3 | * ielm.el (inferior-emacs-lisp-mode): Use hexl for the dummy process. | 9 | * ielm.el (inferior-emacs-lisp-mode): Use hexl for the dummy process. |
| @@ -18,8 +24,7 @@ | |||
| 18 | 24 | ||
| 19 | 2002-02-23 Colin Walters <walters@debian.org> | 25 | 2002-02-23 Colin Walters <walters@debian.org> |
| 20 | 26 | ||
| 21 | * calc/calcalg3.el (calc-invent-variables): Convert integer to | 27 | * calc/calcalg3.el (calc-invent-variables): Convert integer to string. |
| 22 | string. | ||
| 23 | * calc/calcalg2.el (math-solve-get-sign): Ditto. | 28 | * calc/calcalg2.el (math-solve-get-sign): Ditto. |
| 24 | 29 | ||
| 25 | * ibuffer.el (ibuffer-compile-format): Don't uselessly bind `pt' | 30 | * ibuffer.el (ibuffer-compile-format): Don't uselessly bind `pt' |
| @@ -28,8 +33,7 @@ | |||
| 28 | * ibuf-ext.el (ibuffer-old-time): Change to hours. | 33 | * ibuf-ext.el (ibuffer-old-time): Change to hours. |
| 29 | (ibuffer-mark-old-buffers): Handle it. | 34 | (ibuffer-mark-old-buffers): Handle it. |
| 30 | 35 | ||
| 31 | * shell.el (shell-pcomplete, shell-pcomplete-reverse): New | 36 | * shell.el (shell-pcomplete, shell-pcomplete-reverse): New functions. |
| 32 | functions. | ||
| 33 | (toplevel): Bind them. | 37 | (toplevel): Bind them. |
| 34 | (shell-mode): Don't set `comint-dynamic-complete-functions'; it is | 38 | (shell-mode): Don't set `comint-dynamic-complete-functions'; it is |
| 35 | not necessary now that we use pcomplete. | 39 | not necessary now that we use pcomplete. |
| @@ -47,14 +51,14 @@ | |||
| 47 | 51 | ||
| 48 | 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il> | 52 | 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
| 49 | 53 | ||
| 50 | * progmodes/etags.el (find-tag-noselect, find-tag) | 54 | * progmodes/etags.el (find-tag-noselect, find-tag) |
| 51 | (find-tag-other-window, find-tag-other-frame, find-tag-regexp): | 55 | (find-tag-other-window, find-tag-other-frame, find-tag-regexp): |
| 52 | Fix a typo in doc strings. | 56 | Fix a typo in doc strings. |
| 53 | 57 | ||
| 54 | 2002-02-20 Deepak Goel <deego@glue.umd.edu> | 58 | 2002-02-20 Deepak Goel <deego@glue.umd.edu> |
| 55 | 59 | ||
| 56 | * play/snake.el (snake-velocity-queue, snake-update-velocity) | 60 | * play/snake.el (snake-velocity-queue, snake-update-velocity) |
| 57 | (snake-final-x-velocity, snake-final-y-velocity): | 61 | (snake-final-x-velocity, snake-final-y-velocity): |
| 58 | New variable and functions. Store user's keypresses | 62 | New variable and functions. Store user's keypresses |
| 59 | into a queue and pop from the queue each subsequent turn. | 63 | into a queue and pop from the queue each subsequent turn. |
| 60 | (snake-update-game, snake-move-left) | 64 | (snake-update-game, snake-move-left) |
| @@ -62,7 +66,7 @@ | |||
| 62 | (snake-start-game): Use that queue. | 66 | (snake-start-game): Use that queue. |
| 63 | (snake-use-glyphs-flag): Renamed from snake-use-glyphs. | 67 | (snake-use-glyphs-flag): Renamed from snake-use-glyphs. |
| 64 | (snake-use-color-flag): Likewise. | 68 | (snake-use-color-flag): Likewise. |
| 65 | (snake-mode): Rename uses of those variables. | 69 | (snake-mode): Rename uses of those variables. |
| 66 | 70 | ||
| 67 | 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il> | 71 | 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
| 68 | 72 | ||
| @@ -73,25 +77,23 @@ | |||
| 73 | (compount-text-no-extensions): Renamed from compound-text. | 77 | (compount-text-no-extensions): Renamed from compound-text. |
| 74 | (x-ctext-no-extensions, ctext-no-extensions): Aliases for | 78 | (x-ctext-no-extensions, ctext-no-extensions): Aliases for |
| 75 | compound-text-no-extensions. | 79 | compound-text-no-extensions. |
| 76 | (compound-text): Redefined using post-read and pre-write | 80 | (compound-text): Redefined using post-read and pre-write conversions. |
| 77 | conversions. | ||
| 78 | 81 | ||
| 79 | * international/mule.el (non-standard-icccm-encodings-alist) | 82 | * international/mule.el (non-standard-icccm-encodings-alist) |
| 80 | (non-standard-designations-alist): New variables. | 83 | (non-standard-designations-alist): New variables. |
| 81 | (ctext-post-read-conversion, ctext-pre-write-conversion): New | 84 | (ctext-post-read-conversion, ctext-pre-write-conversion): |
| 82 | functions. | 85 | New functions. |
| 83 | 86 | ||
| 84 | 2002-02-21 Andre Spiegel <spiegel@gnu.org> | 87 | 2002-02-21 Andre Spiegel <spiegel@gnu.org> |
| 85 | 88 | ||
| 86 | Patch by Jonathan Kamens <jik@kamens.brookline.ma.us>. | 89 | Patch by Jonathan Kamens <jik@kamens.brookline.ma.us>. |
| 87 | 90 | ||
| 88 | * vc.el (vc-default-init-version): Update documentation to | 91 | * vc.el (vc-default-init-version): Update documentation to |
| 89 | indicate that the backend can override the default init version. | 92 | indicate that the backend can override the default init version. |
| 90 | (vc-register): Use the backend init-version function, if it | 93 | (vc-register): Use the backend init-version function, if it |
| 91 | exists, to determine the initial version of a file. | 94 | exists, to determine the initial version of a file. |
| 92 | (vc-diff-switches-list): Don't symbol-quote backend, since it's | 95 | (vc-diff-switches-list): Don't symbol-quote backend, since it's |
| 93 | already a symbol. Don't fail if vc-BACKEND-diff-switches isn't | 96 | already a symbol. Don't fail if vc-BACKEND-diff-switches isn't bound. |
| 94 | bound. | ||
| 95 | 97 | ||
| 96 | * vc-hooks.el (vc-mode-line): Set vc-mode to nil if the file is | 98 | * vc-hooks.el (vc-mode-line): Set vc-mode to nil if the file is |
| 97 | not version-controlled. This is necessary, e.g., if the file has | 99 | not version-controlled. This is necessary, e.g., if the file has |
| @@ -102,7 +104,7 @@ | |||
| 102 | 2002-02-21 Andre Spiegel <spiegel@gnu.org> | 104 | 2002-02-21 Andre Spiegel <spiegel@gnu.org> |
| 103 | 105 | ||
| 104 | Patch by Martin.Lorentzson@telia.com. | 106 | Patch by Martin.Lorentzson@telia.com. |
| 105 | 107 | ||
| 106 | * vc-cvs.el (vc-cvs-sticky-date-format-string): New variable. | 108 | * vc-cvs.el (vc-cvs-sticky-date-format-string): New variable. |
| 107 | (vc-cvs-sticky-tag-display): New variable. | 109 | (vc-cvs-sticky-tag-display): New variable. |
| 108 | (vc-cvs-mode-line-string): Add sticky-tag to the mode-line. | 110 | (vc-cvs-mode-line-string): Add sticky-tag to the mode-line. |
| @@ -387,8 +389,8 @@ | |||
| 387 | 389 | ||
| 388 | * register.el (describe-register-1): Access register contents here. | 390 | * register.el (describe-register-1): Access register contents here. |
| 389 | 391 | ||
| 390 | * textmodes/text-mode.el (text-mode-hook-identify): Restore | 392 | * textmodes/text-mode.el (text-mode-hook-identify): |
| 391 | previous definition. Add to text-mode-hook again. | 393 | Restore previous definition. Add to text-mode-hook again. |
| 392 | 394 | ||
| 393 | * mail/mailabbrev.el (define-mail-abbrev): Define as system abbrev. | 395 | * mail/mailabbrev.el (define-mail-abbrev): Define as system abbrev. |
| 394 | (mail-abbrev-in-expansion-header-p): Copy the code of mail-header-end | 396 | (mail-abbrev-in-expansion-header-p): Copy the code of mail-header-end |
| @@ -405,14 +407,13 @@ | |||
| 405 | 407 | ||
| 406 | 2002-02-12 Eli Zaretskii <eliz@is.elta.co.il> | 408 | 2002-02-12 Eli Zaretskii <eliz@is.elta.co.il> |
| 407 | 409 | ||
| 408 | * progmodes/pascal.el (pascal-imenu-generic-expression): Add | 410 | * progmodes/pascal.el (pascal-imenu-generic-expression): |
| 409 | menu-title and fix parentheses. | 411 | Add menu-title and fix parentheses. |
| 410 | 412 | ||
| 411 | 2002-02-12 Per Abrahamsen <abraham@dina.kvl.dk> | 413 | 2002-02-12 Per Abrahamsen <abraham@dina.kvl.dk> |
| 412 | 414 | ||
| 413 | * menu-bar.el (menu-bar-options-save): Removed `truncate-lines'. | 415 | * menu-bar.el (menu-bar-options-save): Removed `truncate-lines'. |
| 414 | (menu-bar-options-menu): Don't set default value for | 416 | (menu-bar-options-menu): Don't set default value for `truncate-lines'. |
| 415 | `truncate-lines'. | ||
| 416 | 417 | ||
| 417 | 2002-02-12 Per Abrahamsen <abraham@dina.kvl.dk> | 418 | 2002-02-12 Per Abrahamsen <abraham@dina.kvl.dk> |
| 418 | 419 | ||
| @@ -421,10 +422,10 @@ | |||
| 421 | marked as customized. | 422 | marked as customized. |
| 422 | 423 | ||
| 423 | * international/mule-cmds.el | 424 | * international/mule-cmds.el |
| 424 | (setup-specified-language-environment): Mark | 425 | (setup-specified-language-environment): |
| 425 | `current-language-environment' as customized. | 426 | Mark `current-language-environment' as customized. |
| 426 | (set-input-method): Mark | 427 | (set-input-method): Mark `default-input-method' as customized when |
| 427 | `default-input-method' as customized when called interactively. | 428 | called interactively. |
| 428 | (toggle-input-method): Ditto. | 429 | (toggle-input-method): Ditto. |
| 429 | 430 | ||
| 430 | 2002-02-11 Colin Walters <walters@verbum.org> | 431 | 2002-02-11 Colin Walters <walters@verbum.org> |
| @@ -448,7 +449,7 @@ | |||
| 448 | (menu-bar-showhide-menu): Ditto. | 449 | (menu-bar-showhide-menu): Ditto. |
| 449 | (menu-bar-options-menu): Ditto. | 450 | (menu-bar-options-menu): Ditto. |
| 450 | (menu-bar-scroll-bar-right, menu-bar-scroll-bar-left) | 451 | (menu-bar-scroll-bar-right, menu-bar-scroll-bar-left) |
| 451 | (menu-bar-scroll-bar-none): Removed. | 452 | (menu-bar-scroll-bar-none): Remove. |
| 452 | (menu-bar-showhide-scroll-bar-menu): Use customize aware lambda | 453 | (menu-bar-showhide-scroll-bar-menu): Use customize aware lambda |
| 453 | expressions instead. | 454 | expressions instead. |
| 454 | 455 | ||
| @@ -456,7 +457,7 @@ | |||
| 456 | (customize-set-variable): Ditto. | 457 | (customize-set-variable): Ditto. |
| 457 | (customize-save-variable): Ditto. | 458 | (customize-save-variable): Ditto. |
| 458 | (customize-set-variable): Load dependencies before setting value. | 459 | (customize-set-variable): Load dependencies before setting value. |
| 459 | (custom-load-symbol): Autoload it. | 460 | (custom-load-symbol): Autoload it. |
| 460 | (customize-mark-as-set): New function. | 461 | (customize-mark-as-set): New function. |
| 461 | 462 | ||
| 462 | 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il> | 463 | 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il> |
| @@ -471,9 +472,8 @@ | |||
| 471 | (strokes-help): Do not use doubled with-output-to-temp-buffer. | 472 | (strokes-help): Do not use doubled with-output-to-temp-buffer. |
| 472 | Fix the help string. | 473 | Fix the help string. |
| 473 | (strokes-prompt-user-save-strokes): Fix typo. | 474 | (strokes-prompt-user-save-strokes): Fix typo. |
| 474 | (strokes-list-strokes): Use proper exit-actionargument for | 475 | (strokes-list-strokes): Use proper exit-action argument for |
| 475 | view-buffer. | 476 | view-buffer. Update copyright notice. |
| 476 | Update copyright notice. | ||
| 477 | 477 | ||
| 478 | * international/mule-diag.el: Various doc and message fixes. | 478 | * international/mule-diag.el: Various doc and message fixes. |
| 479 | (non-iso-charset-alist): Add mac-roman. Don't add entries for | 479 | (non-iso-charset-alist): Add mac-roman. Don't add entries for |
| @@ -492,27 +492,26 @@ | |||
| 492 | 492 | ||
| 493 | 2002-02-10 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 493 | 2002-02-10 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 494 | 494 | ||
| 495 | * menu-bar.el (menu-bar-showhide-menu): Rename functions for | 495 | * menu-bar.el (menu-bar-showhide-menu): Rename functions for toggling. |
| 496 | toggling. | ||
| 497 | 496 | ||
| 498 | 2002-02-10 Michael Kifer <kifer@cs.stonybrook.edu> | 497 | 2002-02-10 Michael Kifer <kifer@cs.stonybrook.edu> |
| 499 | 498 | ||
| 500 | * viper-util.el (viper-read-key-sequence): fixed so it'll read | 499 | * viper-util.el (viper-read-key-sequence): Fix so it'll read |
| 501 | fast key sequences in emacs native mode | 500 | fast key sequences in emacs native mode |
| 502 | (viper-events-to-keys): deleted | 501 | (viper-events-to-keys): Delete. |
| 503 | 502 | ||
| 504 | * viper.el (describe-key, describe-key-briefly): get rid of | 503 | * viper.el (describe-key, describe-key-briefly): Get rid of |
| 505 | viper-events-to-keys. | 504 | viper-events-to-keys. |
| 506 | 505 | ||
| 507 | * ediff-init.el (ediff-has-gutter-support): Steven Turnbull's patch. | 506 | * ediff-init.el (ediff-has-gutter-support): Steven Turnbull's patch. |
| 508 | 507 | ||
| 509 | * ediff-wind.el (ediff-setup-control-frame): Use | 508 | * ediff-wind.el (ediff-setup-control-frame): |
| 510 | ediff-has-gutter-support. | 509 | Use ediff-has-gutter-support. |
| 511 | 510 | ||
| 512 | * ediff-util.el (ediff-dispose-of-variant-according-to-user): | 511 | * ediff-util.el (ediff-dispose-of-variant-according-to-user): |
| 513 | check if buff is alive. | 512 | check if buff is alive. |
| 514 | 513 | ||
| 515 | * ediff.el: typo in comment. | 514 | * ediff.el: Typo in comment. |
| 516 | 515 | ||
| 517 | 2002-02-09 Pavel Jan,Bm(Bk <Pavel@Janik.cz> | 516 | 2002-02-09 Pavel Jan,Bm(Bk <Pavel@Janik.cz> |
| 518 | 517 | ||
diff --git a/lisp/ielm.el b/lisp/ielm.el index 5db57a52b59..7000b1b265d 100644 --- a/lisp/ielm.el +++ b/lisp/ielm.el | |||
| @@ -103,6 +103,9 @@ such as `edebug-defun' to work with such inputs." | |||
| 103 | (defvar *** nil | 103 | (defvar *** nil |
| 104 | "Third-most-recent value evaluated in IELM.") | 104 | "Third-most-recent value evaluated in IELM.") |
| 105 | 105 | ||
| 106 | (defvar ielm-match-data nil | ||
| 107 | "Match data saved at the end of last command.") | ||
| 108 | |||
| 106 | ;;; System variables | 109 | ;;; System variables |
| 107 | 110 | ||
| 108 | (defvar ielm-working-buffer nil | 111 | (defvar ielm-working-buffer nil |
| @@ -313,6 +316,7 @@ simply inserts a newline." | |||
| 313 | (let ((*save *) | 316 | (let ((*save *) |
| 314 | (**save **) | 317 | (**save **) |
| 315 | (***save ***)) | 318 | (***save ***)) |
| 319 | (set-match-data ielm-match-data) | ||
| 316 | (save-excursion | 320 | (save-excursion |
| 317 | (set-buffer ielm-working-buffer) | 321 | (set-buffer ielm-working-buffer) |
| 318 | (condition-case err | 322 | (condition-case err |
| @@ -330,7 +334,8 @@ simply inserts a newline." | |||
| 330 | (error (setq ielm-result (ielm-format-error err)) | 334 | (error (setq ielm-result (ielm-format-error err)) |
| 331 | (setq ielm-error-type "Eval error")) | 335 | (setq ielm-error-type "Eval error")) |
| 332 | (quit (setq ielm-result "Quit during evaluation") | 336 | (quit (setq ielm-result "Quit during evaluation") |
| 333 | (setq ielm-error-type "Eval error"))))) | 337 | (setq ielm-error-type "Eval error")))) |
| 338 | (setq ielm-match-data (match-data))) | ||
| 334 | (setq ielm-error-type "IELM error") | 339 | (setq ielm-error-type "IELM error") |
| 335 | (setq ielm-result "More than one sexp in input")))) | 340 | (setq ielm-result "More than one sexp in input")))) |
| 336 | 341 | ||
| @@ -451,6 +456,7 @@ Customised bindings may be defined in `ielm-map', which currently contains: | |||
| 451 | (make-local-variable '**) | 456 | (make-local-variable '**) |
| 452 | (setq *** nil) | 457 | (setq *** nil) |
| 453 | (make-local-variable '***) | 458 | (make-local-variable '***) |
| 459 | (set (make-local-variable 'ielm-match-data) nil) | ||
| 454 | 460 | ||
| 455 | ;; font-lock support | 461 | ;; font-lock support |
| 456 | (make-local-variable 'font-lock-defaults) | 462 | (make-local-variable 'font-lock-defaults) |