emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-24 r116971: * src/window.c (save_window_save): Looku


From: Stefan Monnier
Subject: [Emacs-diffs] emacs-24 r116971: * src/window.c (save_window_save): Lookup window_point_insertion_type in
Date: Wed, 16 Apr 2014 14:00:43 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 116971
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15457
committer: Stefan Monnier <address@hidden>
branch nick: emacs-24
timestamp: Wed 2014-04-16 10:00:39 -0400
message:
  * src/window.c (save_window_save): Lookup window_point_insertion_type in
  the right buffer.
  (Qwindow_point_insertion_type): New var.
  (syms_of_window): Initialize it.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/w32term.c                  w32term.c-20091113204419-o5vbwnq5f7feedwu-950
  src/window.c                   window.c-20091113204419-o5vbwnq5f7feedwu-231
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-04-16 13:27:28 +0000
+++ b/src/ChangeLog     2014-04-16 14:00:39 +0000
@@ -1,3 +1,10 @@
+2014-04-16  Stefan Monnier  <address@hidden>
+
+       * window.c (save_window_save): Lookup window_point_insertion_type in
+       the right buffer (bug#15457).
+       (Qwindow_point_insertion_type): New var.
+       (syms_of_window): Initialize it.
+
 2014-04-16  Eli Zaretskii  <address@hidden>
 
        * unexcoff.c [MSDOS]: Include libc/atexit.h.
@@ -26,8 +33,8 @@
 
        * msdos.c (check_window_system): Remove unnecessary an
        incompatible duplicate function.
-       (sys_opendir, readlinkat, faccessat, fstatat, unsetenv): New
-       functions in support of new functionality.
+       (sys_opendir, readlinkat, faccessat, fstatat, unsetenv):
+       New functions in support of new functionality.
 
        * menu.c (single_menu_item): Add visual indication  of submenu
        also for menus on MSDOS frames.
@@ -211,7 +218,7 @@
        (adjust_after_replace):
        (replace_range): Pass value for new record_markers arg to
        delete_record.
-       * undo.c (record_marker_adjustment): Renamed to
+       * undo.c (record_marker_adjustment): Rename to
        record_marker_adjustments and made static.
        (record_delete): Check record_markers arg and call
        record_marker_adjustments.

=== modified file 'src/w32term.c'
--- a/src/w32term.c     2014-03-27 16:25:17 +0000
+++ b/src/w32term.c     2014-04-16 14:00:39 +0000
@@ -4726,7 +4726,7 @@
                           here since Windows sends a WM_MOVE message
                           BEFORE telling us the Window is minimized
                           when the Window is iconified, with 3000,3000
-                          as the co-ords. */
+                          as the co-ords.  */
                        x_real_positions (f, &f->left_pos, &f->top_pos);
 
                        inev.kind = DEICONIFY_EVENT;

=== modified file 'src/window.c'
--- a/src/window.c      2014-03-07 15:11:12 +0000
+++ b/src/window.c      2014-04-16 14:00:39 +0000
@@ -55,6 +55,7 @@
 static Lisp_Object Qscroll_up, Qscroll_down, Qscroll_command;
 static Lisp_Object Qsafe, Qabove, Qbelow, Qwindow_size, Qclone_of;
 static Lisp_Object Qfloor, Qceiling;
+static Lisp_Object Qwindow_point_insertion_type;
 
 static int displayed_window_lines (struct window *);
 static int count_windows (struct window *);
@@ -124,7 +125,7 @@
 /* Hook to run when window config changes.  */
 static Lisp_Object Qwindow_configuration_change_hook;
 
-/* Used by the function window_scroll_pixel_based */
+/* Used by the function window_scroll_pixel_based.  */
 static int window_scroll_pixel_based_preserve_x;
 static int window_scroll_pixel_based_preserve_y;
 
@@ -6618,7 +6619,8 @@
          else
            p->pointm = Fcopy_marker (w->pointm, Qnil);
          XMARKER (p->pointm)->insertion_type
-           = !NILP (Vwindow_point_insertion_type);
+           = !NILP (buffer_local_value_1 /* Don't signal error if void.  */
+                    (Qwindow_point_insertion_type, w->contents));
 
          p->start = Fcopy_marker (w->start, Qnil);
          p->start_at_line_beg = w->start_at_line_beg ? Qt : Qnil;
@@ -7235,6 +7237,7 @@
   DEFVAR_LISP ("window-point-insertion-type", Vwindow_point_insertion_type,
               doc: /* Type of marker to use for `window-point'.  */);
   Vwindow_point_insertion_type = Qnil;
+  DEFSYM (Qwindow_point_insertion_type, "window_point_insertion_type");
 
   DEFVAR_LISP ("window-configuration-change-hook",
               Vwindow_configuration_change_hook,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]