diff options
| author | Gregory Heytings | 2023-03-28 23:06:55 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2023-03-29 01:12:36 +0200 |
| commit | 7e26a5c774e7c71782d89abe1d4be125d8422a4b (patch) | |
| tree | 7e9ab1f0c27dc2945ff89cd595a30450925e0227 /src/buffer.c | |
| parent | 85ed1c9ca6b786763740766d77b1f806c2f301a1 (diff) | |
| download | emacs-7e26a5c774e7c71782d89abe1d4be125d8422a4b.tar.gz emacs-7e26a5c774e7c71782d89abe1d4be125d8422a4b.zip | |
Remove labeled restrictions before calling Fwiden
* src/editfns.c (labeled_restrictions_remove_in_current_buffer):
New function.
* src/lisp.h: Make it externally visible.
* src/xdisp.c (display_count_lines_logically):
* src/lread.c (readevalloop):
* src/indent.c (line_number_display_width):
* src/fileio.c (write_region):
* src/callproc.c (Fcall_process_region):
* src/buffer.c (Ferase_buffer): Use it.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 0c740775e5b..252231357bc 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2386,6 +2386,7 @@ Any narrowing restriction in effect (see `narrow-to-region') is removed, | |||
| 2386 | so the buffer is truly empty after this. */) | 2386 | so the buffer is truly empty after this. */) |
| 2387 | (void) | 2387 | (void) |
| 2388 | { | 2388 | { |
| 2389 | labeled_restrictions_remove_in_current_buffer (); | ||
| 2389 | Fwiden (); | 2390 | Fwiden (); |
| 2390 | 2391 | ||
| 2391 | del_range (BEG, Z); | 2392 | del_range (BEG, Z); |