diff options
| author | Karl Heuer | 1994-04-02 04:08:50 +0000 |
|---|---|---|
| committer | Karl Heuer | 1994-04-02 04:08:50 +0000 |
| commit | 9f31d21b2ce3bf2be9b9b63a8c215e74d08a9ff0 (patch) | |
| tree | c28ea3a7956e6c5340f97700d7587aa8e58f1af8 /src/buffer.c | |
| parent | f726257eb4edf956d9ae4115eaa48ce19980b943 (diff) | |
| download | emacs-9f31d21b2ce3bf2be9b9b63a8c215e74d08a9ff0.tar.gz emacs-9f31d21b2ce3bf2be9b9b63a8c215e74d08a9ff0.zip | |
(list_buffers_1): Set buffer contents, then mode.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c index ed8c3518644..36d0e042d5f 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -1085,7 +1085,7 @@ validate_region (b, e) | |||
| 1085 | args_out_of_range (*b, *e); | 1085 | args_out_of_range (*b, *e); |
| 1086 | } | 1086 | } |
| 1087 | 1087 | ||
| 1088 | Lisp_Object | 1088 | static Lisp_Object |
| 1089 | list_buffers_1 (files) | 1089 | list_buffers_1 (files) |
| 1090 | Lisp_Object files; | 1090 | Lisp_Object files; |
| 1091 | { | 1091 | { |
| @@ -1104,11 +1104,6 @@ list_buffers_1 (files) | |||
| 1104 | XFASTINT (minspace) = 1; | 1104 | XFASTINT (minspace) = 1; |
| 1105 | 1105 | ||
| 1106 | Fset_buffer (Vstandard_output); | 1106 | Fset_buffer (Vstandard_output); |
| 1107 | |||
| 1108 | tail = intern ("Buffer-menu-mode"); | ||
| 1109 | if (!EQ (tail, current_buffer->major_mode) | ||
| 1110 | && (tem = Ffboundp (tail), !NILP (tem))) | ||
| 1111 | call0 (tail); | ||
| 1112 | Fbuffer_disable_undo (Vstandard_output); | 1107 | Fbuffer_disable_undo (Vstandard_output); |
| 1113 | current_buffer->read_only = Qnil; | 1108 | current_buffer->read_only = Qnil; |
| 1114 | 1109 | ||
| @@ -1162,7 +1157,9 @@ list_buffers_1 (files) | |||
| 1162 | write_string ("\n", -1); | 1157 | write_string ("\n", -1); |
| 1163 | } | 1158 | } |
| 1164 | 1159 | ||
| 1165 | current_buffer->read_only = Qt; | 1160 | tail = intern ("Buffer-menu-mode"); |
| 1161 | if ((tem = Ffboundp (tail), !NILP (tem))) | ||
| 1162 | call0 (tail); | ||
| 1166 | set_buffer_internal (old); | 1163 | set_buffer_internal (old); |
| 1167 | return desired_point; | 1164 | return desired_point; |
| 1168 | } | 1165 | } |