aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c17
1 files changed, 4 insertions, 13 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 223683db6f3..332d6d51a81 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -42,9 +42,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
42#include "keymap.h" 42#include "keymap.h"
43#include "frame.h" 43#include "frame.h"
44 44
45#ifdef HAVE_XWIDGETS
46#include "xwidget.h"
47#endif /* HAVE_XWIDGETS */
48#ifdef WINDOWSNT 45#ifdef WINDOWSNT
49#include "w32heap.h" /* for mmap_* */ 46#include "w32heap.h" /* for mmap_* */
50#endif 47#endif
@@ -1758,11 +1755,6 @@ cleaning up all windows currently displaying the buffer to be killed. */)
1758 kill_buffer_processes (buffer); 1755 kill_buffer_processes (buffer);
1759 UNGCPRO; 1756 UNGCPRO;
1760 1757
1761#ifdef HAVE_XWIDGETS
1762 GCPRO1 (buffer);
1763 kill_buffer_xwidgets (buffer);
1764 UNGCPRO;
1765#endif /* HAVE_XWIDGETS */
1766 /* Killing buffer processes may run sentinels which may have killed 1758 /* Killing buffer processes may run sentinels which may have killed
1767 our buffer. */ 1759 our buffer. */
1768 if (!BUFFER_LIVE_P (b)) 1760 if (!BUFFER_LIVE_P (b))
@@ -5416,7 +5408,7 @@ syms_of_buffer (void)
5416 DEFSYM (Qoverwrite_mode, "overwrite-mode"); 5408 DEFSYM (Qoverwrite_mode, "overwrite-mode");
5417 Fput (Qoverwrite_mode, Qchoice, 5409 Fput (Qoverwrite_mode, Qchoice,
5418 list3 (Qnil, intern ("overwrite-mode-textual"), 5410 list3 (Qnil, intern ("overwrite-mode-textual"),
5419 intern ("overwrite-mode-binary"))); 5411 Qoverwrite_mode_binary));
5420 5412
5421 Fput (Qprotected_field, Qerror_conditions, 5413 Fput (Qprotected_field, Qerror_conditions,
5422 listn (CONSTYPE_PURE, 2, Qprotected_field, Qerror)); 5414 listn (CONSTYPE_PURE, 2, Qprotected_field, Qerror));
@@ -6204,6 +6196,7 @@ If the buffer has never been shown in a window, the value is nil. */);
6204See the command `transient-mark-mode' for a description of this minor mode. 6196See the command `transient-mark-mode' for a description of this minor mode.
6205 6197
6206Non-nil also enables highlighting of the region whenever the mark is active. 6198Non-nil also enables highlighting of the region whenever the mark is active.
6199The region is highlighted with the `region' face.
6207The variable `highlight-nonselected-windows' controls whether to highlight 6200The variable `highlight-nonselected-windows' controls whether to highlight
6208all windows or just the selected window. 6201all windows or just the selected window.
6209 6202
@@ -6334,6 +6327,8 @@ Functions running this hook are, `get-buffer-create',
6334 defsubr (&Soverlay_get); 6327 defsubr (&Soverlay_get);
6335 defsubr (&Soverlay_put); 6328 defsubr (&Soverlay_put);
6336 defsubr (&Srestore_buffer_modified_p); 6329 defsubr (&Srestore_buffer_modified_p);
6330
6331 Fput (intern_c_string ("erase-buffer"), Qdisabled, Qt);
6337} 6332}
6338 6333
6339void 6334void
@@ -6341,8 +6336,4 @@ keys_of_buffer (void)
6341{ 6336{
6342 initial_define_key (control_x_map, 'b', "switch-to-buffer"); 6337 initial_define_key (control_x_map, 'b', "switch-to-buffer");
6343 initial_define_key (control_x_map, 'k', "kill-buffer"); 6338 initial_define_key (control_x_map, 'k', "kill-buffer");
6344
6345 /* This must not be in syms_of_buffer, because Qdisabled is not
6346 initialized when that function gets called. */
6347 Fput (intern_c_string ("erase-buffer"), Qdisabled, Qt);
6348} 6339}