all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Coding system used by call-process-region?
@ 2007-03-06 15:35 Lennart Borgman (gmail)
  2007-03-06 16:07 ` Andreas Schwab
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-06 15:35 UTC (permalink / raw)
  To: Emacs Devel

What coding system is used by call-process-region? Where is it documented?

How do I temporary (just for the call of call-process-region) change the 
end of line type used

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

* Re: Coding system used by call-process-region?
  2007-03-06 15:35 Coding system used by call-process-region? Lennart Borgman (gmail)
@ 2007-03-06 16:07 ` Andreas Schwab
  2007-03-06 22:59   ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: Andreas Schwab @ 2007-03-06 16:07 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Emacs Devel

"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:

> What coding system is used by call-process-region? Where is it documented?

See find-operation-coding-system.

> How do I temporary (just for the call of call-process-region) change the
> end of line type used

let-bind coding-system-for-read/write.  For more information, apropros is
your friend.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

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

* Re: Coding system used by call-process-region?
  2007-03-06 16:07 ` Andreas Schwab
@ 2007-03-06 22:59   ` Lennart Borgman (gmail)
  2007-03-07  4:12     ` Eli Zaretskii
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-06 22:59 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: Emacs Devel

Andreas Schwab wrote:
> "Lennart Borgman (gmail)" <lennart.borgman@gmail.com> writes:
> 
>> What coding system is used by call-process-region? Where is it documented?
> 
> See find-operation-coding-system.
> 
>> How do I temporary (just for the call of call-process-region) change the
>> end of line type used
> 
> let-bind coding-system-for-read/write.  For more information, apropros is
> your friend.
> 
> Andreas.

Thanks. That helped a bit while thinking about why things go wrong on 
w32 with ediff and patch. But not all the way, unfortunately.

Has anyone got ediff patch functions working on w32 using gnuwin32 patch?

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

* Re: Coding system used by call-process-region?
  2007-03-06 22:59   ` Lennart Borgman (gmail)
@ 2007-03-07  4:12     ` Eli Zaretskii
  2007-03-07 13:05       ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: Eli Zaretskii @ 2007-03-07  4:12 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: emacs-devel

> Date: Tue, 06 Mar 2007 23:59:56 +0100
> From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
> Cc: Emacs Devel <emacs-devel@gnu.org>
> 
> Has anyone got ediff patch functions working on w32 using gnuwin32 patch?

Please send a complete self-contained example, together with the file
to patch and the patch itself, and please explain what doesn't work as
expected for you.

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

* Re: Coding system used by call-process-region?
  2007-03-07  4:12     ` Eli Zaretskii
@ 2007-03-07 13:05       ` Lennart Borgman (gmail)
  2007-03-07 13:27         ` martin rudalics
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-07 13:05 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 783 bytes --]

Eli Zaretskii wrote:
>> Date: Tue, 06 Mar 2007 23:59:56 +0100
>> From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
>> Cc: Emacs Devel <emacs-devel@gnu.org>
>>
>> Has anyone got ediff patch functions working on w32 using gnuwin32 patch?
> 
> Please send a complete self-contained example, together with the file
> to patch and the patch itself, and please explain what doesn't work as
> expected for you.


Here it is:

You need the gnuwin32 patch.exe in your path. Then do

   emacs -Q

Open the file the-patch.diff. Create a new buffer with C-x b. Insert the 
file file-to-patch.txt in this.

Then from the menus select Tools - Apply patch - To a Buffer ...

Choose the patch and buffer to patch from above. After this Emacs 
freezes, at least for me (CVS from 070306).



[-- Attachment #2: file-to-patch.txt --]
[-- Type: text/plain, Size: 88 bytes --]

This is the buffer to patch on the next line:
Change this line.
End of buffer to patch.

[-- Attachment #3: the-patch.diff --]
[-- Type: text/plain, Size: 249 bytes --]

--- file-to-patch.txt	2007-03-07 13:52:57.062500000 +0100
+++ patched-file.txt	2007-03-07 13:53:24.046875000 +0100
@@ -1,3 +1,3 @@
 This is the buffer to patch on the next line:
-Change this line.
+Now this line is patched.
 End of buffer to patch.

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

* Re: Coding system used by call-process-region?
  2007-03-07 13:05       ` Lennart Borgman (gmail)
@ 2007-03-07 13:27         ` martin rudalics
  2007-03-07 14:09           ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: martin rudalics @ 2007-03-07 13:27 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Eli Zaretskii, emacs-devel

> Here it is:
> 
> You need the gnuwin32 patch.exe in your path. Then do
> 
>   emacs -Q
> 
> Open the file the-patch.diff. Create a new buffer with C-x b. Insert the 
> file file-to-patch.txt in this.
> 
> Then from the menus select Tools - Apply patch - To a Buffer ...
> 
> Choose the patch and buffer to patch from above. After this Emacs 
> freezes, at least for me (CVS from 070306).

Works here with patch 2.5.9 on WindowsME (although I don't
understand why C-x b is needed and my build is older).

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

* Re: Coding system used by call-process-region?
  2007-03-07 13:27         ` martin rudalics
@ 2007-03-07 14:09           ` Lennart Borgman (gmail)
  2007-03-07 17:46             ` martin rudalics
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-07 14:09 UTC (permalink / raw)
  To: martin rudalics; +Cc: Eli Zaretskii, emacs-devel

martin rudalics wrote:
>> Here it is:
>>
>> You need the gnuwin32 patch.exe in your path. Then do
>>
>>   emacs -Q
>>
>> Open the file the-patch.diff. Create a new buffer with C-x b. Insert 
>> the file file-to-patch.txt in this.
>>
>> Then from the menus select Tools - Apply patch - To a Buffer ...
>>
>> Choose the patch and buffer to patch from above. After this Emacs 
>> freezes, at least for me (CVS from 070306).
> 
> Works here with patch 2.5.9 on WindowsME (although I don't
> understand why C-x b is needed and my build is older).

Thanks. Strange. I am using the same verison of patch, but I am using XP 
Pro. What date is your build from?

I do not know if C-x b is needed. I just happened to do it that way and 
found it convenient for testing.

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

* Re: Coding system used by call-process-region?
  2007-03-07 14:09           ` Lennart Borgman (gmail)
@ 2007-03-07 17:46             ` martin rudalics
  2007-03-07 18:10               ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: martin rudalics @ 2007-03-07 17:46 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Eli Zaretskii, emacs-devel

> Thanks. Strange. I am using the same verison of patch, but I am using XP 
> Pro. What date is your build from?

The last bootstrap is from December 27, with a couple of patches I applied
since then.  Maybe you can try this with an older build.

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

* Re: Coding system used by call-process-region?
  2007-03-07 17:46             ` martin rudalics
@ 2007-03-07 18:10               ` Lennart Borgman (gmail)
  2007-03-07 18:30                 ` martin rudalics
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-07 18:10 UTC (permalink / raw)
  To: martin rudalics; +Cc: Eli Zaretskii, emacs-devel

martin rudalics wrote:
>> Thanks. Strange. I am using the same verison of patch, but I am using 
>> XP Pro. What date is your build from?
> 
> The last bootstrap is from December 27, with a couple of patches I applied
> since then.  Maybe you can try this with an older build.

Thanks. I just tried a build from 2006-12-10. The same problem occurs 
with XP Pro. Emacs freezes. (C-g does not work, ESC ESC ESC does not 
work. I just have to kill Emacs and stand beeing asked that blatant and 
intrusive request "Please tell M... about this problem".)

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

* Re: Coding system used by call-process-region?
  2007-03-07 18:10               ` Lennart Borgman (gmail)
@ 2007-03-07 18:30                 ` martin rudalics
  2007-03-07 21:13                   ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: martin rudalics @ 2007-03-07 18:30 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Eli Zaretskii, emacs-devel

> Thanks. I just tried a build from 2006-12-10. The same problem occurs 
> with XP Pro. Emacs freezes. (C-g does not work, ESC ESC ESC does not 
> work. I just have to kill Emacs and stand beeing asked that blatant and 
> intrusive request "Please tell M... about this problem".)

Does it freeze too when you try to patch a file?

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

* Re: Coding system used by call-process-region?
  2007-03-07 18:30                 ` martin rudalics
@ 2007-03-07 21:13                   ` Lennart Borgman (gmail)
  2007-03-07 22:13                     ` martin rudalics
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-07 21:13 UTC (permalink / raw)
  To: martin rudalics; +Cc: Eli Zaretskii, emacs-devel

martin rudalics wrote:
>> Thanks. I just tried a build from 2006-12-10. The same problem occurs 
>> with XP Pro. Emacs freezes. (C-g does not work, ESC ESC ESC does not 
>> work. I just have to kill Emacs and stand beeing asked that blatant 
>> and intrusive request "Please tell M... about this problem".)
> 
> Does it freeze too when you try to patch a file?

You mean from outside Emacs? No, it works outside of Emacs. (Or, perhaps 
rather "it can work outside Emacs - if you just get the line endings 
correct, since patch does not care to help you with it".)

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

* Re: Coding system used by call-process-region?
  2007-03-07 21:13                   ` Lennart Borgman (gmail)
@ 2007-03-07 22:13                     ` martin rudalics
  2007-03-07 22:27                       ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: martin rudalics @ 2007-03-07 22:13 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Eli Zaretskii, emacs-devel

>> Does it freeze too when you try to patch a file?
> 
> 
> You mean from outside Emacs?

I meant from inside Emacs.

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

* Re: Coding system used by call-process-region?
  2007-03-07 22:13                     ` martin rudalics
@ 2007-03-07 22:27                       ` Lennart Borgman (gmail)
  2007-03-07 22:32                         ` martin rudalics
  0 siblings, 1 reply; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-07 22:27 UTC (permalink / raw)
  To: martin rudalics; +Cc: Eli Zaretskii, emacs-devel

martin rudalics wrote:
>>> Does it freeze too when you try to patch a file?
>>
>>
>> You mean from outside Emacs?
> 
> I meant from inside Emacs.

But which command do you mean then? If you mean Apply Hunk 
(diff-apply-hunk) I have learned that it does not use an external patch 
program.

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

* Re: Coding system used by call-process-region?
  2007-03-07 22:27                       ` Lennart Borgman (gmail)
@ 2007-03-07 22:32                         ` martin rudalics
  2007-03-07 23:15                           ` Lennart Borgman (gmail)
  0 siblings, 1 reply; 15+ messages in thread
From: martin rudalics @ 2007-03-07 22:32 UTC (permalink / raw)
  To: Lennart Borgman (gmail); +Cc: Eli Zaretskii, emacs-devel

> But which command do you mean then? If you mean Apply Hunk 
> (diff-apply-hunk) I have learned that it does not use an external patch 
> program.

I meant `ediff-patch-file' instead of `ediff-patch-buffer'.

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

* Re: Coding system used by call-process-region?
  2007-03-07 22:32                         ` martin rudalics
@ 2007-03-07 23:15                           ` Lennart Borgman (gmail)
  0 siblings, 0 replies; 15+ messages in thread
From: Lennart Borgman (gmail) @ 2007-03-07 23:15 UTC (permalink / raw)
  To: martin rudalics; +Cc: Eli Zaretskii, emacs-devel

martin rudalics wrote:
>> But which command do you mean then? If you mean Apply Hunk 
>> (diff-apply-hunk) I have learned that it does not use an external 
>> patch program.
> 
> I meant `ediff-patch-file' instead of `ediff-patch-buffer'.

I think I did once (not quite sure), but it will not make any difference 
since they are both using ediff-patch-file-internal and it is there 
Emacs freezes, in the call to call-process-region.

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

end of thread, other threads:[~2007-03-07 23:15 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-06 15:35 Coding system used by call-process-region? Lennart Borgman (gmail)
2007-03-06 16:07 ` Andreas Schwab
2007-03-06 22:59   ` Lennart Borgman (gmail)
2007-03-07  4:12     ` Eli Zaretskii
2007-03-07 13:05       ` Lennart Borgman (gmail)
2007-03-07 13:27         ` martin rudalics
2007-03-07 14:09           ` Lennart Borgman (gmail)
2007-03-07 17:46             ` martin rudalics
2007-03-07 18:10               ` Lennart Borgman (gmail)
2007-03-07 18:30                 ` martin rudalics
2007-03-07 21:13                   ` Lennart Borgman (gmail)
2007-03-07 22:13                     ` martin rudalics
2007-03-07 22:27                       ` Lennart Borgman (gmail)
2007-03-07 22:32                         ` martin rudalics
2007-03-07 23:15                           ` Lennart Borgman (gmail)

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.