diff options
| author | Miles Bader | 2005-04-14 05:03:52 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-04-14 05:03:52 +0000 |
| commit | 4a4ae7ad21e9e53ed9a0006c39d69108333bc896 (patch) | |
| tree | 514ec70cdfdd49c518599e15b8fdf1e85850e7d7 /src/buffer.c | |
| parent | 6f14f88410854410caf4b402cfbe0f93a80c3f86 (diff) | |
| parent | 24531f226fb1150c3a52a3ebf9273d1af36062ea (diff) | |
| download | emacs-4a4ae7ad21e9e53ed9a0006c39d69108333bc896.tar.gz emacs-4a4ae7ad21e9e53ed9a0006c39d69108333bc896.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-37
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 241-257)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 59-65)
- Update from CVS
- Merge from emacs--cvs-trunk--0
- (mm-string-to-multibyte): Use Gnus trunk definition.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c index dcda7bc80ab..d24deb0a9a1 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -631,7 +631,21 @@ CLONE nil means the indirect buffer's state is reset to default values. */) | |||
| 631 | XMARKER (b->zv_marker)->insertion_type = 1; | 631 | XMARKER (b->zv_marker)->insertion_type = 1; |
| 632 | } | 632 | } |
| 633 | else | 633 | else |
| 634 | clone_per_buffer_values (b->base_buffer, b); | 634 | { |
| 635 | struct buffer *old_b = current_buffer; | ||
| 636 | |||
| 637 | clone_per_buffer_values (b->base_buffer, b); | ||
| 638 | b->filename = Qnil; | ||
| 639 | b->file_truename = Qnil; | ||
| 640 | b->display_count = make_number (0); | ||
| 641 | b->backed_up = Qnil; | ||
| 642 | b->auto_save_file_name = Qnil; | ||
| 643 | set_buffer_internal_1 (b); | ||
| 644 | Fset (intern ("buffer-save-without-query"), Qnil); | ||
| 645 | Fset (intern ("buffer-file-number"), Qnil); | ||
| 646 | Fset (intern ("buffer-stale-function"), Qnil); | ||
| 647 | set_buffer_internal_1 (old_b); | ||
| 648 | } | ||
| 635 | 649 | ||
| 636 | return buf; | 650 | return buf; |
| 637 | } | 651 | } |
| @@ -932,7 +946,7 @@ is the default binding of variable. */) | |||
| 932 | } | 946 | } |
| 933 | 947 | ||
| 934 | /* Return an alist of the Lisp-level buffer-local bindings of | 948 | /* Return an alist of the Lisp-level buffer-local bindings of |
| 935 | buffer BUF. That is, do't include the variables maintained | 949 | buffer BUF. That is, don't include the variables maintained |
| 936 | in special slots in the buffer object. */ | 950 | in special slots in the buffer object. */ |
| 937 | 951 | ||
| 938 | static Lisp_Object | 952 | static Lisp_Object |