aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-11-08 16:58:07 +0000
committerStefan Monnier2007-11-08 16:58:07 +0000
commitf56f00fa571d6174cd3a618873c71d00d114142b (patch)
treeded79c4a5590b5fc778bd94b0a63082a0c36e59b
parent2cddada065a732925171ebc629fa2a451db3d462 (diff)
downloademacs-f56f00fa571d6174cd3a618873c71d00d114142b.tar.gz
emacs-f56f00fa571d6174cd3a618873c71d00d114142b.zip
(smerge-refine-subst): Pass "-d" to diff.
-rw-r--r--lisp/ChangeLog10
-rw-r--r--lisp/smerge-mode.el11
2 files changed, 15 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 11cf35c54ed..d78f776bc19 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,14 +1,18 @@
12007-11-08 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * smerge-mode.el (smerge-refine-subst): Pass "-d" to diff.
4
12007-11-07 Michael Albinus <michael.albinus@gmx.de> 52007-11-07 Michael Albinus <michael.albinus@gmx.de>
2 6
3 * net/tramp.el (tramp-handle-substitute-in-file-name): Don't 7 * net/tramp.el (tramp-handle-substitute-in-file-name):
4 expand the remote connection identification. 8 Don't expand the remote connection identification.
5 (tramp-find-shell, tramp-open-connection-setup-interactive-shell): 9 (tramp-find-shell, tramp-open-connection-setup-interactive-shell):
6 Set also $PS2 and $PS3 when setting $PS1. Check for shell echoing 10 Set also $PS2 and $PS3 when setting $PS1. Check for shell echoing
7 before calling stty. 11 before calling stty.
8 12
9 * net/tramp-cache.el (tramp-cache-print) 13 * net/tramp-cache.el (tramp-cache-print)
10 (tramp-dump-connection-properties): Fix docstring. 14 (tramp-dump-connection-properties): Fix docstring.
11 (tramp-list-connections): Renamed from 15 (tramp-list-connections): Rename from
12 `tramp-cache-list-connections'. 16 `tramp-cache-list-connections'.
13 17
14 * net/tramp-cmds.el (tramp-cleanup-connection): Apply it. 18 * net/tramp-cmds.el (tramp-cleanup-connection): Apply it.
diff --git a/lisp/smerge-mode.el b/lisp/smerge-mode.el
index cd5c7c20f8d..18ca1a34181 100644
--- a/lisp/smerge-mode.el
+++ b/lisp/smerge-mode.el
@@ -790,12 +790,17 @@ replace chars to try and eliminate some spurious differences."
790 (unwind-protect 790 (unwind-protect
791 (with-temp-buffer 791 (with-temp-buffer
792 (let ((coding-system-for-read 'emacs-mule)) 792 (let ((coding-system-for-read 'emacs-mule))
793 ;; Don't forget -a to make sure diff treats it as a text file
794 ;; even if it contains \0 and such.
795 (call-process diff-command nil t nil 793 (call-process diff-command nil t nil
796 (if (and smerge-refine-ignore-whitespace 794 (if (and smerge-refine-ignore-whitespace
797 (not smerge-refine-weight-hack)) 795 (not smerge-refine-weight-hack))
798 "-aw" "-a") 796 ;; Pass -a so diff treats it as a text file even
797 ;; if it contains \0 and such.
798 ;; Pass -d so as to get the smallest change, but
799 ;; also and more importantly because otherwise it
800 ;; may happen that diff doesn't behave like
801 ;; smerge-refine-weight-hack expects it to.
802 ;; See http://thread.gmane.org/gmane.emacs.devel/82685.
803 "-awd" "-ad")
799 file1 file2)) 804 file1 file2))
800 ;; Process diff's output. 805 ;; Process diff's output.
801 (goto-char (point-min)) 806 (goto-char (point-min))