diff options
| author | Stefan Monnier | 2008-01-05 05:25:13 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-01-05 05:25:13 +0000 |
| commit | f605fc58e2f4d76cf6d5a253b5919de378a1f9b0 (patch) | |
| tree | 7ea93917084f9c0fc733ac2a1d3dc31c0c3b2a1b /lisp | |
| parent | b26cd843e7bd2a82fea654dc81b6282f36911ac1 (diff) | |
| download | emacs-f605fc58e2f4d76cf6d5a253b5919de378a1f9b0.tar.gz emacs-f605fc58e2f4d76cf6d5a253b5919de378a1f9b0.zip | |
(vc-process-sentinel): Fix apparent typo.
(vc-do-command): Forcefully kill any left over process.
Use start-file-process.
(vc-annotate-get-time-set-line-props): Check we don't move backward.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/vc.el | 18 |
2 files changed, 22 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1aceeaa5242..910e3a8c63c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2008-01-05 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc.el (vc-process-sentinel): Fix apparent typo. | ||
| 4 | (vc-do-command): Forcefully kill any left over process. | ||
| 5 | Use start-file-process. | ||
| 6 | (vc-annotate-get-time-set-line-props): Check we don't move backward. | ||
| 7 | |||
| 1 | 2008-01-04 Michael Albinus <michael.albinus@gmx.de> | 8 | 2008-01-04 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 9 | ||
| 3 | * net/dbus.el (dbus-list-hash-table) | 10 | * net/dbus.el (dbus-list-hash-table) |
| @@ -6,8 +13,8 @@ | |||
| 6 | (dbus-handle-event): Apply return message if needed. | 13 | (dbus-handle-event): Apply return message if needed. |
| 7 | (dbus-event-serial-number): New defun. | 14 | (dbus-event-serial-number): New defun. |
| 8 | (dbus-event-service-name, dbus-event-path-name) | 15 | (dbus-event-service-name, dbus-event-path-name) |
| 9 | (dbus-event-interface-name, dbus-event-member-name): Adapt | 16 | (dbus-event-interface-name, dbus-event-member-name): |
| 10 | implementation to serial number. | 17 | Adapt implementation to serial number. |
| 11 | 18 | ||
| 12 | 2008-01-04 Juanma Barranquero <lekktu@gmail.com> | 19 | 2008-01-04 Juanma Barranquero <lekktu@gmail.com> |
| 13 | 20 | ||
diff --git a/lisp/vc.el b/lisp/vc.el index ddcb53a0cb6..7b82dc47d4a 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; vc.el --- drive a version-control system from within Emacs | 1 | ;;; vc.el --- drive a version-control system from within Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, |
| 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: FSF (see below for full credits) | 6 | ;; Author: FSF (see below for full credits) |
| 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| @@ -942,7 +942,7 @@ BUF defaults to \"*vc*\", can be a string and will be created if necessary." | |||
| 942 | (save-excursion | 942 | (save-excursion |
| 943 | (goto-char (process-mark p)) | 943 | (goto-char (process-mark p)) |
| 944 | (let ((cmds (process-get p 'vc-sentinel-commands))) | 944 | (let ((cmds (process-get p 'vc-sentinel-commands))) |
| 945 | (process-put p 'vc-postprocess nil) | 945 | (process-put p 'vc-sentinel-commands nil) |
| 946 | (dolist (cmd cmds) | 946 | (dolist (cmd cmds) |
| 947 | ;; Each sentinel may move point and the next one should be run | 947 | ;; Each sentinel may move point and the next one should be run |
| 948 | ;; at that new point. We could get the same result by having | 948 | ;; at that new point. We could get the same result by having |
| @@ -1032,6 +1032,13 @@ that is inserted into the command line before the filename." | |||
| 1032 | (string= (buffer-name) buffer)) | 1032 | (string= (buffer-name) buffer)) |
| 1033 | (eq buffer (current-buffer))) | 1033 | (eq buffer (current-buffer))) |
| 1034 | (vc-setup-buffer buffer)) | 1034 | (vc-setup-buffer buffer)) |
| 1035 | ;; If there's some previous async process still running, just kill it. | ||
| 1036 | (let ((oldproc (get-buffer-process (current-buffer)))) | ||
| 1037 | ;; If we wanted to wait for oldproc to finish before doing | ||
| 1038 | ;; something, we'd have used vc-eval-after. | ||
| 1039 | ;; Use `delete-process' rather than `kill-process' because we don't | ||
| 1040 | ;; want any of its output to appear from now on. | ||
| 1041 | (if oldproc (delete-process oldproc))) | ||
| 1035 | (let ((squeezed (remq nil flags)) | 1042 | (let ((squeezed (remq nil flags)) |
| 1036 | (inhibit-read-only t) | 1043 | (inhibit-read-only t) |
| 1037 | (status 0)) | 1044 | (status 0)) |
| @@ -1049,11 +1056,11 @@ that is inserted into the command line before the filename." | |||
| 1049 | ;; start-process does not support remote execution | 1056 | ;; start-process does not support remote execution |
| 1050 | (setq okstatus nil)) | 1057 | (setq okstatus nil)) |
| 1051 | (if (eq okstatus 'async) | 1058 | (if (eq okstatus 'async) |
| 1052 | ;; Run asynchronously | 1059 | ;; Run asynchronously. |
| 1053 | (let ((proc | 1060 | (let ((proc |
| 1054 | (let ((process-connection-type nil)) | 1061 | (let ((process-connection-type nil)) |
| 1055 | (apply 'start-process command (current-buffer) command | 1062 | (apply 'start-file-process command (current-buffer) |
| 1056 | squeezed)))) | 1063 | command squeezed)))) |
| 1057 | (if vc-command-messages | 1064 | (if vc-command-messages |
| 1058 | (message "Running %s in background..." full-command)) | 1065 | (message "Running %s in background..." full-command)) |
| 1059 | ;;(set-process-sentinel proc (lambda (p msg) (delete-process p))) | 1066 | ;;(set-process-sentinel proc (lambda (p msg) (delete-process p))) |
| @@ -3250,6 +3257,7 @@ The current time is used as the offset." | |||
| 3250 | (let ((bol (point)) | 3257 | (let ((bol (point)) |
| 3251 | (date (vc-call-backend vc-annotate-backend 'annotate-time)) | 3258 | (date (vc-call-backend vc-annotate-backend 'annotate-time)) |
| 3252 | (inhibit-read-only t)) | 3259 | (inhibit-read-only t)) |
| 3260 | (assert (>= (point) bol)) | ||
| 3253 | (put-text-property bol (point) 'invisible 'vc-annotate-annotation) | 3261 | (put-text-property bol (point) 'invisible 'vc-annotate-annotation) |
| 3254 | date)) | 3262 | date)) |
| 3255 | 3263 | ||