]> git.eshelyaron.com Git - emacs.git/commitdiff
In window states don't deal with the mark.
authorJérémy Compostella <jeremy.compostella@gmail.com>
Wed, 25 Jan 2012 14:28:01 +0000 (15:28 +0100)
committerMartin Rudalics <rudalics@gmx.at>
Wed, 25 Jan 2012 14:28:01 +0000 (15:28 +0100)
* window.el (window--state-get-1, window--state-put-2): Don't
save and restore the mark.

lisp/ChangeLog
lisp/window.el

index 6a47a9f0ece90909a5e0e866f9f85083d0345dca..7a31115ac5da3e74ef079107cd3537d714f47bef 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-25  Jérémy Compostella  <jeremy.compostella@gmail.com>
+
+       * window.el (window--state-get-1, window--state-put-2): Don't
+       save and restore the mark.
+
 2012-01-25  Chong Yidong  <cyd@gnu.org>
 
        * custom.el (custom-variable-p): Doc fix.
index 9122904b0bb242046c75cee887c712140ab4a444..832a08dbbc704afc6024f3b05e59ceb395f5c125 100644 (file)
@@ -3622,10 +3622,7 @@ specific buffers."
                        (vscroll . ,(window-vscroll window))
                        (dedicated . ,(window-dedicated-p window))
                        (point . ,(if writable point (copy-marker point)))
-                       (start . ,(if writable start (copy-marker start)))
-                       ,@(when mark
-                           `((mark . ,(if writable
-                                          mark (copy-marker mark))))))))))))
+                       (start . ,(if writable start (copy-marker start))))))))))
         (tail
          (when (memq type '(vc hc))
            (let (list)
@@ -3809,11 +3806,7 @@ value can be also stored on disk and read back in a new session."
          ;; have been created and sized).
          (ignore-errors
            (set-window-start window (cdr (assq 'start state)))
-           (set-window-point window (cdr (assq 'point state)))
-           ;; I'm not sure whether we should set the mark here, but maybe
-           ;; it can be used.
-           (let ((mark (cdr (assq 'mark state))))
-             (when mark (set-mark mark))))
+           (set-window-point window (cdr (assq 'point state))))
          ;; Select window if it's the selected one.
          (when (cdr (assq 'selected state))
            (select-window window)))))))