diff options
| author | Stefan Monnier | 2006-06-14 15:38:10 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2006-06-14 15:38:10 +0000 |
| commit | 608f267107ecd28199fc5a84bc01d1b4540e6221 (patch) | |
| tree | fd05f92ed8f19d82d656e7399a5328f9e6ca977c | |
| parent | 633e63caff83abbad3da2a86921e10c83c566a22 (diff) | |
| download | emacs-608f267107ecd28199fc5a84bc01d1b4540e6221.tar.gz emacs-608f267107ecd28199fc5a84bc01d1b4540e6221.zip | |
(cvs-retrieve-revision): Use decode-coding-inserted-region.
| -rw-r--r-- | lisp/ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/pcvs.el | 22 |
2 files changed, 25 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4db176fb5be..f379f47fd6d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-06-14 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * pcvs.el (cvs-retrieve-revision): Use decode-coding-inserted-region. | ||
| 4 | |||
| 1 | 2006-06-13 Martin J. Reed <mjreed@essex.ac.uk> (tiny change) | 5 | 2006-06-13 Martin J. Reed <mjreed@essex.ac.uk> (tiny change) |
| 2 | 6 | ||
| 3 | * net/ldap.el (ldap-ldapsearch-args): Default to SASL search. | 7 | * net/ldap.el (ldap-ldapsearch-args): Default to SASL search. |
| @@ -14,7 +18,7 @@ | |||
| 14 | 18 | ||
| 15 | 2006-06-11 Robert J. Chassell <bob@rattlesnake.com> | 19 | 2006-06-11 Robert J. Chassell <bob@rattlesnake.com> |
| 16 | 20 | ||
| 17 | * textmodes/page-ext.el (pages-directory-for-addresses): | 21 | * textmodes/page-ext.el (pages-directory-for-addresses): |
| 18 | Including `pages-directory-address-mode' in the function results | 22 | Including `pages-directory-address-mode' in the function results |
| 19 | in the message "Buffer in which pages were found is deleted". | 23 | in the message "Buffer in which pages were found is deleted". |
| 20 | 24 | ||
| @@ -92,8 +96,7 @@ | |||
| 92 | 96 | ||
| 93 | 2006-06-06 Jesper Harder <harder@phys.au.dk> | 97 | 2006-06-06 Jesper Harder <harder@phys.au.dk> |
| 94 | 98 | ||
| 95 | * ediff-diff.el (ediff-test-utility): Protect against | 99 | * ediff-diff.el (ediff-test-utility): Protect against file-error. |
| 96 | file-error. | ||
| 97 | 100 | ||
| 98 | 2006-06-06 Chong Yidong <cyd@stupidchicken.com> | 101 | 2006-06-06 Chong Yidong <cyd@stupidchicken.com> |
| 99 | 102 | ||
| @@ -125,7 +128,7 @@ | |||
| 125 | cookies but no other non-empty fields. | 128 | cookies but no other non-empty fields. |
| 126 | (org-set-tags): Allow groups of mutually exclusive tags. | 129 | (org-set-tags): Allow groups of mutually exclusive tags. |
| 127 | (org-cmp-time): Sort 24:21 before items without time. | 130 | (org-cmp-time): Sort 24:21 before items without time. |
| 128 | (org-get-time-of-day): Fixed the interpretation of 12pm and 12am. | 131 | (org-get-time-of-day): Fix the interpretation of 12pm and 12am. |
| 129 | (org-open-at-point): Require double colon also for numbers. | 132 | (org-open-at-point): Require double colon also for numbers. |
| 130 | 133 | ||
| 131 | 2006-06-06 Kim F. Storm <storm@cua.dk> | 134 | 2006-06-06 Kim F. Storm <storm@cua.dk> |
| @@ -165,8 +168,8 @@ | |||
| 165 | 168 | ||
| 166 | 2006-06-05 Kenichi Handa <handa@m17n.org> | 169 | 2006-06-05 Kenichi Handa <handa@m17n.org> |
| 167 | 170 | ||
| 168 | * international/mule.el (find-auto-coding): Handle | 171 | * international/mule.el (find-auto-coding): |
| 169 | enable-character-translation in file header. | 172 | Handle enable-character-translation in file header. |
| 170 | 173 | ||
| 171 | 2006-06-04 Kim F. Storm <storm@cua.dk> | 174 | 2006-06-04 Kim F. Storm <storm@cua.dk> |
| 172 | 175 | ||
| @@ -235,8 +238,8 @@ | |||
| 235 | as well as `coding'. | 238 | as well as `coding'. |
| 236 | (hack-local-variables): Likewise. | 239 | (hack-local-variables): Likewise. |
| 237 | 240 | ||
| 238 | * international/mule.el (enable-character-translation): Put | 241 | * international/mule.el (enable-character-translation): |
| 239 | permanent-local and safe-local-variable properties. | 242 | Put permanent-local and safe-local-variable properties. |
| 240 | (find-auto-coding): Handle char-trans: tag. | 243 | (find-auto-coding): Handle char-trans: tag. |
| 241 | 244 | ||
| 242 | 2006-06-02 Juri Linkov <juri@jurta.org> | 245 | 2006-06-02 Juri Linkov <juri@jurta.org> |
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 5e322b9276a..89aeef53b80 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -1723,16 +1723,22 @@ Signal an error if there is no backup file." | |||
| 1723 | (message "Retrieving revision %s..." rev) | 1723 | (message "Retrieving revision %s..." rev) |
| 1724 | ;; Discard stderr output to work around the CVS+SSH+libc | 1724 | ;; Discard stderr output to work around the CVS+SSH+libc |
| 1725 | ;; problem when stdout and stderr are the same. | 1725 | ;; problem when stdout and stderr are the same. |
| 1726 | (let ((res (apply 'call-process cvs-program nil '(t nil) nil | 1726 | (let ((res |
| 1727 | "-q" "update" "-p" | 1727 | (let ((coding-system-for-read 'binary)) |
| 1728 | ;; If `rev' is HEAD, don't pass it at all: | 1728 | (apply 'call-process cvs-program nil '(t nil) nil |
| 1729 | ;; the default behavior is to get the head | 1729 | "-q" "update" "-p" |
| 1730 | ;; of the current branch whereas "-r HEAD" | 1730 | ;; If `rev' is HEAD, don't pass it at all: |
| 1731 | ;; stupidly gives you the head of the trunk. | 1731 | ;; the default behavior is to get the head |
| 1732 | (append (unless (equal rev "HEAD") (list "-r" rev)) | 1732 | ;; of the current branch whereas "-r HEAD" |
| 1733 | (list file))))) | 1733 | ;; stupidly gives you the head of the trunk. |
| 1734 | (append (unless (equal rev "HEAD") (list "-r" rev)) | ||
| 1735 | (list file)))))) | ||
| 1734 | (when (and res (not (and (equal 0 res)))) | 1736 | (when (and res (not (and (equal 0 res)))) |
| 1735 | (error "Something went wrong retrieving revision %s: %s" rev res)) | 1737 | (error "Something went wrong retrieving revision %s: %s" rev res)) |
| 1738 | ;; Figure out the encoding used and decode the byte-sequence | ||
| 1739 | ;; into a sequence of chars. | ||
| 1740 | (decode-coding-inserted-region | ||
| 1741 | (point-min) (point-max) file t nil nil t) | ||
| 1736 | (set-buffer-modified-p nil) | 1742 | (set-buffer-modified-p nil) |
| 1737 | (let ((buffer-file-name (expand-file-name file))) | 1743 | (let ((buffer-file-name (expand-file-name file))) |
| 1738 | (after-find-file)) | 1744 | (after-find-file)) |