]> git.eshelyaron.com Git - emacs.git/commitdiff
Stop vc from burying buffers sometimes
authorDaniel Colascione <dancol@dancol.org>
Tue, 21 Oct 2014 16:05:13 +0000 (17:05 +0100)
committerDaniel Colascione <dancol@dancol.org>
Tue, 21 Oct 2014 16:05:13 +0000 (17:05 +0100)
* vc/vc-dispatcher.el (vc-resynch-window): Tell view-mode not to
change window configuration when we turn it off.

1  2 
lisp/ChangeLog
lisp/vc/vc-dispatcher.el

diff --cc lisp/ChangeLog
index 6246227313c3ec1c4b8425e267032ac5372f3828,4608ed3aabecc88858c4406e5660d08b55af1d57..f066327c9b995fece54c23efe4d73c2d7a566306
@@@ -1,67 -1,3 +1,72 @@@
++2014-10-21  Daniel Colascione  <dancol@dancol.org>
++
++      * vc/vc-dispatcher.el (vc-resynch-window): Tell view-mode not to
++      change window configuration when we turn it off.
++
 +2014-10-21  Stefan Monnier  <monnier@iro.umontreal.ca>
 +
 +      Get rid of backend-dependent selection-handling functions for kill/yank
 +      and make it generic instead by relying on the lower-level selection
 +      management functions.
 +
 +      * select.el (select-enable-clipboard): Rename from
 +      gui-select-enable-clipboard.
 +      (select-enable-primary): Move from x-win.el and rename from
 +      x-select-enable-primary.
 +      (gui-last-selected-text): Remove.
 +      (gui--last-selected-text-clipboard, gui--last-selected-text-primary):
 +      New vars.
 +      (gui-select-text): Rewrite, based on x-win.el's old x-select-text.
 +      (gui-select-text-alist, gui-selection-value-alist): Remove.
 +      (x-select-request-type): Move from x-win.el.
 +      (gui--selection-value-internal): New function, taken from x-win's
 +      x-selection-value-internal.
 +      (gui-selection-value): Rewrite, based on x-win.el's old x-selection-value.
 +      (gui-set-selection-alist): Rename from gui-own-selection-alist and
 +      extend it to handle a nil value as a "disown" request.
 +      (gui-disown-selection-alist): Remove.
 +      (xselect-convert-to-delete): Adjust accordingly.
 +      (gui-set-selection): Simplify accordingly as well.  Use dotimes.
 +
 +      * term/x-win.el (x-last-selected-text-primary)
 +      (x-select-enable-primary): Remove (moved to select.el).
 +      (x-select-request-type): Move to select.el.
 +      (x-selection-value-internal, x--selection-value): Remove functions.
 +      (gui-selection-value, gui-select-text): Remove moethods.
 +      (gui-set-selection): Merge own and disown methods.
 +
 +      * term/w32-win.el (w32--select-text, w32--get-selection-value):
 +      Delete function (move functionality into w32--set-selection and
 +      w32--get-selection).
 +      (gui-select-text, gui-selection-value): Don't define methods.
 +      (w32--set-selection, w32--get-selection, w32--selection-owner-p):
 +      New functions.
 +      (gui-get-selection, gui-selection-owner-p, gui-selection-exists-p):
 +      Use them.
 +      (gui-selection-exists-p): Adjust to new name of C primitive.
 +
 +      * term/pc-win.el (w16-get-selection-value): Add dummy argument and drop
 +      test of gui-select-enable-clipboard, to make it usable as
 +      a gui-get-selection method.
 +      (gui-selection-exists-p): Adjust to new name of C primitive.
 +      (gui-set-selection): Merge own and disown methods.
 +      (gui-select-text, gui-selection-value): Delete methods.
 +      (w16--select-text): Delete function.
 +
 +      * term/ns-win.el (ns-get-pasteboard, ns-set-pasteboard)
 +      (ns-selection-value): Remove functions.
 +      (gui-select-text, gui-selection-value): Don't define method any more.
 +      (gui-set-selection): Merge the old own and disown methods.
 +      (gui-selection-exists-p, gui-get-selection): Adjust to new name of
 +      underlying C primitive.
 +
 +      * startup.el (command-line): Adjust now that `gui-method' expects nil
 +      for ttys.
 +
 +      * frame.el (gui-method): Use window-system rather than framep.
 +      (gui-method-declare): The tty case is now nil rather than t.
 +      (make-frame): Adjust accordingly.
 +
  2014-10-21  Stefan Monnier  <monnier@iro.umontreal.ca>
  
        * net/newst-reader.el (newsticker--image-read): Simplify.
index 4fd9691d2a2b83c32e1446f5ea44ca4751fa5f3a,4fd9691d2a2b83c32e1446f5ea44ca4751fa5f3a..d2125d57ba48cd464c70fe9877d94b37267731ae
@@@ -429,7 -429,7 +429,7 @@@ If the current buffer is a Dired buffer
  ;; even if the dispatcher client mode has messed with file contents (as in,
  ;; for example, VCS keyword expansion).
  
--(declare-function view-mode-exit "view" (&optional return-to-alist exit-action all-win))
++(declare-function view-mode-exit "view" (&optional exit-only exit-action all-win))
  
  (defun vc-position-context (posn)
    "Save a bit of the text around POSN in the current buffer.
@@@ -543,7 -543,7 +543,7 @@@ editing!
                    (if (file-writable-p file)
                        (and view-mode
                             (let ((view-old-buffer-read-only nil))
--                             (view-mode-exit)))
++                             (view-mode-exit t)))
                      (and (not view-mode)
                           (not (eq (get major-mode 'mode-class) 'special))
                           (view-mode-enter))))