unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* 23.0.60; Ediff's Apply Patch To A File fails
@ 2008-03-15 22:37 Peter Dyballa
  2008-03-16 18:01 ` Stefan Monnier
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2008-03-15 22:37 UTC (permalink / raw)
  To: emacs-pretest-bug

Hello!

I received files with patches. I opened one in GNU Emacs. When I  
chose from the Tools menu "Apply Patch To A File" it failed. When I  
had open in the other window the ELisp file to be patched, it worked  
with "Apply Patch To A Buffer" from the Tools menu. Is this the  
correct behaviour?

The patch(es) start like:

*** /tmp/tramp.el.~2.629.~	Fri Mar 14 09:46:55 2008
--- /tmp/tramp.el	Fri Mar 14 09:46:55 2008
***************
*** 3051,3073 ****
   First arg OP is either `copy' or `rename' and indicates the  
operation.
   FILENAME is the source file, NEWNAME the target file.
   KEEP-DATE is non-nil if NEWNAME should have the same timestamp as  
FILENAME."
!   (let ((modtime (nth 5 (file-attributes filename))))
...


or:

*** /home/albinus/src/tramp/lisp/tramp.el.~2.629.~	2008-02-09  
09:43:33.000000000 +0100
--- /home/albinus/src/tramp/lisp/tramp.el	2008-03-15  
17:57:33.000000000 +0100
***************
*** 3051,3073 ****
   First arg OP is either `copy' or `rename' and indicates the  
operation.
   FILENAME is the source file, NEWNAME the target file.
   KEEP-DATE is non-nil if NEWNAME should have the same timestamp as  
FILENAME."
!   (let ((modtime (nth 5 (file-attributes filename))))




In GNU Emacs 23.0.60.2 (powerpc-apple-darwin8.11.0, X toolkit, Xaw3d  
scroll bars)
  of 2008-03-15 on Latsche.local
Windowing system distributor `The XFree86 Project, Inc', version  
11.0.40400000
configured using `configure  '--without-pop' '--without-sound' '-- 
with-xft' '--with-libotf' '--with-dbus' '--with-x-toolkit=athena' '-- 
enable-font-backend' '--enable-locallisppath=/Library/Application  
Support/Emacs/calendar23:/Library/Application Support/Emacs/caml:/ 
Library/Application Support/Emacs:/sw/share/emacs21/site-lisp/elib'  
'PKG_CONFIG_PATH=/sw/lib/freetype219/lib/pkgconfig:/sw/lib/ 
fontconfig2/lib/pkgconfig:/sw/lib/pkgconfig:/sw/lib/system-openssl/ 
lib/pkgconfig:/sw/share/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/ 
pkgconfig:/usr/local/clamXav/lib/pkgconfig:/usr/X11R6/lib/pkgconfig'  
'CPPFLAGS=-no-cpp-precomp -D__BIND_NOSTATIC -I/sw/lib/fontconfig2/ 
include -I/sw/lib/freetype219/include -I/sw/lib/freetype219/include/ 
freetype2 -idirafter /usr/X11R6/include' 'CFLAGS=-ggdb -gfull - 
bind_at_load -Wno-pointer-sign -pipe -fPIC -mcpu=7450 -mtune=7450 - 
mno-powerpc64 -fast -mpim-altivec -ftree-vectorize -freorder-blocks- 
and-partition -fno-crossjumping' 'LDFLAGS=-bind_at_load -dead_strip - 
multiply_defined suppress -L/sw/lib/fontconfig2/lib -L/sw/lib/ 
freetype219/lib''

Important settings:
   value of $LC_ALL: nil
   value of $LC_COLLATE: nil
   value of $LC_CTYPE: de_DE.UTF-8
   value of $LC_MESSAGES: nil
   value of $LC_MONETARY: nil
   value of $LC_NUMERIC: nil
   value of $LC_TIME: nil
   value of $LANG: de_DE.UTF-8
   value of $XMODIFIERS: nil
   locale-coding-system: utf-8-unix
   default-enable-multibyte-characters: t

Major mode: Dired by name

Minor modes in effect:
   TeX-PDF-mode: t
   shell-dirtrack-mode: t
   show-paren-mode: t
   display-time-mode: t
   desktop-save-mode: t
   tooltip-mode: t
   mouse-wheel-mode: t
   menu-bar-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   blink-cursor-mode: t
   global-auto-composition-mode: t
   auto-composition-mode: t
   auto-compression-mode: t
   column-number-mode: t
   line-number-mode: t
   transient-mark-mode: t


--
Mit friedvollen Grüßen

   Pete

  "A designer knows he has arrived at perfection not when there is no  
longer anything to add, but when there is no longer anything to take  
away."
				– Antoine de Saint-Exupéry







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

* Re: 23.0.60; Ediff's Apply Patch To A File fails
  2008-03-15 22:37 23.0.60; Ediff's Apply Patch To A File fails Peter Dyballa
@ 2008-03-16 18:01 ` Stefan Monnier
  2008-03-16 18:12   ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Stefan Monnier @ 2008-03-16 18:01 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-pretest-bug

> When I [...] it failed.

Please characterize the failure.


        Stefan




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

* Re: 23.0.60; Ediff's Apply Patch To A File fails
  2008-03-16 18:01 ` Stefan Monnier
@ 2008-03-16 18:12   ` Peter Dyballa
  2008-03-16 20:20     ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Dyballa @ 2008-03-16 18:12 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: emacs-pretest-bug


Am 16.03.2008 um 19:01 schrieb Stefan Monnier:

> Please characterize the failure.


When trying to patch the file on disk, only a .rej file was created.  
When trying to patch the same file opened in a buffer, it worked, the  
complete patch was applied.

--
Greetings

   Pete

Our enemies are innovative and resourceful, and so are we. They never  
stop thinking about new ways to harm our country and our people, and  
neither do we.
				– Georges W. Bush







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

* Re: 23.0.60; Ediff's Apply Patch To A File fails
  2008-03-16 18:12   ` Peter Dyballa
@ 2008-03-16 20:20     ` Eli Zaretskii
  2008-03-16 23:14       ` Peter Dyballa
  0 siblings, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2008-03-16 20:20 UTC (permalink / raw)
  To: Peter Dyballa; +Cc: emacs-pretest-bug, monnier

> From: Peter Dyballa <Peter_Dyballa@freenet.de>
> Date: Sun, 16 Mar 2008 19:12:41 +0100
> Cc: emacs-pretest-bug@gnu.org
> 
> 
> Am 16.03.2008 um 19:01 schrieb Stefan Monnier:
> 
> > Please characterize the failure.
> 
> 
> When trying to patch the file on disk, only a .rej file was created.  
> When trying to patch the same file opened in a buffer, it worked, the  
> complete patch was applied.

Could be an EOL problem, or some other whitespace-related snafu?




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

* Re: 23.0.60; Ediff's Apply Patch To A File fails
  2008-03-16 20:20     ` Eli Zaretskii
@ 2008-03-16 23:14       ` Peter Dyballa
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Dyballa @ 2008-03-16 23:14 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-pretest-bug, monnier


Am 16.03.2008 um 21:20 schrieb Eli Zaretskii:

>>> Please characterize the failure.
>>
>>
>> When trying to patch the file on disk, only a .rej file was created.
>> When trying to patch the same file opened in a buffer, it worked, the
>> complete patch was applied.
>
> Could be an EOL problem, or some other whitespace-related snafu?


The patch files are undecided unix, the ELisp file to patch is  
incorrectly set up:

	;;; tramp.el --- Transparent Remote Access, Multiple Protocol
	;;; -*- mode: Emacs-Lisp; coding: utf-8; -*-

So it's ISO Latin-1: iso-latin-1-unix. (I'll write another bug report  
on this.)

--
Greetings

   Pete

There are two major products that come out of Berkeley: LSD and UNIX.  
We don't believe this to be a coincidence.
				- Jeremy S. Anderson







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

end of thread, other threads:[~2008-03-16 23:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-15 22:37 23.0.60; Ediff's Apply Patch To A File fails Peter Dyballa
2008-03-16 18:01 ` Stefan Monnier
2008-03-16 18:12   ` Peter Dyballa
2008-03-16 20:20     ` Eli Zaretskii
2008-03-16 23:14       ` Peter Dyballa

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).