unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#11067: 24.0.94.1; diff-buffer-with-file
@ 2012-03-22 14:54 Arni Magnusson
  2012-03-23 21:34 ` Glenn Morris
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Arni Magnusson @ 2012-03-22 14:54 UTC (permalink / raw)
  To: 11067

I'm running Emacs 24.0.94.1 alpha,

http://alpha.gnu.org/gnu/emacs/windows/emacs-20120319-r107630-bin-i386.zip

and `diff-buffer-with-file' is not working like it did in Emacs 23.4.1

1. Start emacs -Q
2. Set `diff-command' to "winmerge" and `diff-switches' to nil
3. Open a file, say c:/gnu/emacs/BUGS, make some changes without saving
4. M-x diff-buffer-with-file

Emacs 23.4.1 performs this task very nicely, but Emacs 24.0.94.1 alpha 
provides the external program with args that cannot be compared:

   c:\gnu\emacs\-L
   c:\gnu\emacs\BUGS

Examining the Emacs *Diff* buffer provides some insights. In Emacs 23.4.1 
it contains

   winmerge "c:/gnu/emacs/BUGS" "c:/Temp/buffer-content-3436L7C"

which looks sensible, but in Emacs 24.0.94.1 alpha it the *Diff* buffer 
contains

   winmerge "-L" "c:/gnu/emacs/BUGS" "-L" "#<buffer BUGS>" 
"c:/gnu/emacs/BUGS" "c:/Temp/buffer-content-2640boz"

which looks like 6 args instead of 2, including some "-L" options (even 
after specifically disabling all diff switches) and "#<buffer BUGS>" 
(probably of no use to an external program).

To me, it looks like version 24.0.94.1 of `diff-buffer-with-file' in 
diff.el should try harder to mimic the behavior of version 23.4.1 in 
files.el.

Many thanks,

Arni





^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2013-02-11  8:29 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 14:54 bug#11067: 24.0.94.1; diff-buffer-with-file Arni Magnusson
2012-03-23 21:34 ` Glenn Morris
2012-03-23 21:39   ` Glenn Morris
2012-03-24  1:49   ` Stefan Monnier
2012-03-24  6:15     ` Eli Zaretskii
2012-03-24 18:27     ` Glenn Morris
2012-03-24 21:12       ` Paul Eggert
2012-03-25  3:23         ` Stefan Monnier
2013-02-11  8:29           ` Glenn Morris
2012-03-24  1:53 ` Stefan Monnier
2012-03-24  2:28   ` Arni Magnusson
2012-03-24  6:13   ` Eli Zaretskii
2012-03-24 18:19 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).