diff options
| author | Stefan Monnier | 2003-07-22 19:03:45 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2003-07-22 19:03:45 +0000 |
| commit | 599ca9c27b8985b97ec54fe681735c11bf275b89 (patch) | |
| tree | 0659967ff22c32e18c298852bfb78cdb49b95c8c /src | |
| parent | ae15c6c74bd84cdfe3566a837d4b6b15eef2c455 (diff) | |
| download | emacs-599ca9c27b8985b97ec54fe681735c11bf275b89.tar.gz emacs-599ca9c27b8985b97ec54fe681735c11bf275b89.zip | |
(get_minibuffer): Use it.
Diffstat (limited to 'src')
| -rw-r--r-- | src/minibuf.c | 23 |
1 files changed, 4 insertions, 19 deletions
diff --git a/src/minibuf.c b/src/minibuf.c index 89830b0391a..d265e8063f1 100644 --- a/src/minibuf.c +++ b/src/minibuf.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Minibuffer input and completion. | 1 | /* Minibuffer input and completion. |
| 2 | Copyright (C) 1985, 1986, 1993, 1994, 1995, 1996, 1997, 1998, 1999, | 2 | Copyright (C) 1985,86,93,94,95,96,97,98,99,2000,01,03 |
| 3 | 2000, 2001, 2003 Free Software Foundation, Inc. | 3 | Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -777,27 +777,12 @@ get_minibuffer (depth) | |||
| 777 | else | 777 | else |
| 778 | { | 778 | { |
| 779 | int count = SPECPDL_INDEX (); | 779 | int count = SPECPDL_INDEX (); |
| 780 | Lisp_Object overlay; | ||
| 781 | struct buffer *b = XBUFFER (buf); | ||
| 782 | |||
| 783 | /* `reset_buffer' blindly sets the list of overlays to NULL, so we | 780 | /* `reset_buffer' blindly sets the list of overlays to NULL, so we |
| 784 | have to empty the list, otherwise we end up with overlays that | 781 | have to empty the list, otherwise we end up with overlays that |
| 785 | think they belong to this buffer while the buffer doesn't know about | 782 | think they belong to this buffer while the buffer doesn't know about |
| 786 | them any more. */ | 783 | them any more. */ |
| 787 | while (b->overlays_before) | 784 | delete_all_overlays (XBUFFER (buf)); |
| 788 | { | 785 | reset_buffer (XBUFFER (buf)); |
| 789 | XSETMISC (overlay, b->overlays_before); | ||
| 790 | Fdelete_overlay (overlay); | ||
| 791 | } | ||
| 792 | while (b->overlays_after) | ||
| 793 | { | ||
| 794 | XSETMISC (overlay, b->overlays_after); | ||
| 795 | Fdelete_overlay (overlay); | ||
| 796 | } | ||
| 797 | eassert (b->overlays_before == NULL); | ||
| 798 | eassert (b->overlays_after == NULL); | ||
| 799 | |||
| 800 | reset_buffer (b); | ||
| 801 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); | 786 | record_unwind_protect (Fset_buffer, Fcurrent_buffer ()); |
| 802 | Fset_buffer (buf); | 787 | Fset_buffer (buf); |
| 803 | Fkill_all_local_variables (); | 788 | Fkill_all_local_variables (); |