From: Piet v. O. <pi...@cs...> - 2002-03-05 09:30:07
|
I can't get ange-ftp working on the OSX version of emacs 21.1.30. When I open with e.g. C-x d ftp.gnu.org:/gnu/emacs it just hangs. I can see the ftp process with ps in a terminal: 6686 ?? S 0:00.00 /usr/bin/ftp -i -n -g -v but I have to kill it to get out of the hang. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
From: Gilbert H. <ha...@Pr...> - 2002-03-05 15:48:29
|
Did you apply Andrew's patches? My patched version runs ange-ftp fine. Gil Here's from Andrew's earlier message: > http://sourceforge.net/mailarchive/forum.php?thread_id=257777&forum_id=5272 > http://sourceforge.net/mailarchive/forum.php?thread_id=257780&forum_id=5272 > http://sourceforge.net/mailarchive/forum.php?thread_id=257781&forum_id=5272 > > For now please apply these yourself. The last one is especially > important if you use subprocesses (like ispell). |
From: Andrew C. <ak...@sh...> - 2002-03-05 17:27:50
|
Hi Gil and Piet, Thank you for the bug report and response. I believe the problem is in fact caused by my patch http://sourceforge.net/mailarchive/forum.php?thread_id=257781&forum_id=5272 because it prevents Emacs from using PTY's, which seem to be required by ange-ftp (see comments in ange-ftp.el). So if one goes in s/darwin.h and changes /* #define HAVE_PTYS */ to #define HAVE_PTYS ange-ftp will work again. I remember that I needed to disable PTY's because the implementation on Mac OS X seemed to be losing characters because of an apparently 1024-character fixed size buffer. I don't know whether the problem has been fixed or not but now I can't seem to find a way to demonstrate this. My suggestion is to keep PTY's on now and see if anything breaks. Also see comments in ange-ftp.el for a suggestion for a different fix using a gateway. Andrew. |
From: Piet v. O. <pi...@cs...> - 2002-03-08 09:15:09
|
>>>>> Andrew Choi <ak...@sh...> (AC) writes: AC> Hi Gil and Piet, AC> Thank you for the bug report and response. I believe the problem is AC> in fact caused by my patch AC> http://sourceforge.net/mailarchive/forum.php?thread_id=257781&forum_id=5272 AC> because it prevents Emacs from using PTY's, which seem to be required AC> by ange-ftp (see comments in ange-ftp.el). So if one goes in AC> s/darwin.h and changes AC> /* #define HAVE_PTYS */ AC> to AC> #define HAVE_PTYS AC> ange-ftp will work again. I remember that I needed to disable PTY's AC> because the implementation on Mac OS X seemed to be losing characters AC> because of an apparently 1024-character fixed size buffer. I don't AC> know whether the problem has been fixed or not but now I can't seem to AC> find a way to demonstrate this. AC> My suggestion is to keep PTY's on now and see if anything breaks. AC> Also see comments in ange-ftp.el for a suggestion for a different fix AC> using a gateway. Thanks, it works. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
From: Piet v. O. <pi...@cs...> - 2002-03-08 16:33:07
|
I would like to try the current CVS emacs on Mac OSX. Especially since it has many updates concerning character encodings (Mac-Roman, ISO-8859-15 etc). However the patch that Andrew supplied is not applicable to the CVS version. Especially since they contain diffs for the configure files etc. Are there diffs that only apply to the sources, i.e. a minimal set of patches that could be merged in the CVS sources? -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
From: Andrew C. <ak...@sh...> - 2002-03-08 17:05:12
|
> I would like to try the current CVS emacs on Mac OSX. Especially since it > has many updates concerning character encodings (Mac-Roman, ISO-8859-15 > etc). > However the patch that Andrew supplied is not applicable to the CVS > version. Especially since they contain diffs for the configure files etc. > Are there diffs that only apply to the sources, i.e. a minimal set of > patches that could be merged in the CVS sources? Hi Piet, I'm currently working on that. There have been many changes since version 21.1, so a few problems show up after the patches are applied to the current code in the CVS. Once I fix these problems, I'll try to merge the changes into the CVS so the latest version that runs on Mac OS X will be generally available. Unfortunately I can only work on this maybe a day or two per week now. Andrew. |
From: Piet v. O. <pi...@cs...> - 2002-03-08 20:22:10
|
>>>>> Andrew Choi <ak...@sh...> (AC) writes: >> I would like to try the current CVS emacs on Mac OSX. Especially since it >> has many updates concerning character encodings (Mac-Roman, ISO-8859-15 >> etc). >> However the patch that Andrew supplied is not applicable to the CVS >> version. Especially since they contain diffs for the configure files etc. >> Are there diffs that only apply to the sources, i.e. a minimal set of >> patches that could be merged in the CVS sources? AC> Hi Piet, AC> I'm currently working on that. There have been many changes since AC> version 21.1, so a few problems show up after the patches are applied AC> to the current code in the CVS. AC> Once I fix these problems, I'll try to merge the changes into the CVS AC> so the latest version that runs on Mac OS X will be generally AC> available. Unfortunately I can only work on this maybe a day or two AC> per week now. Thanks. If I can help, just let me know. I have a few bugs to report, although I can't give a detailed account of what is wrong: Emacs hangs quite often. The only recourse then is to kill it (e.g. with Force quit). An example of when this happens: 1. I had (setq-default TeX-master nil) which causes auctex to always prompt for a master file when you open a new .tex file. At that moment it hang (always). It took me some time to find that I had to diable that statement to let me open new TeX files without getting the hang. It seems to hang in a select in readline... (one of the C functions) 2. Debugging elisp with edebug-defun: Sooner or later emacs will complain that x-selection-exists-p is undefined. It is disabled in the source and enabling it just makes emacs hang immediately. When I define it with a dummy (just returning nil) emacs hangs almost immediately, namely at the first time it prompts you. This thing makes debugging elisp code extremely difficult. Apparently there is something wrong in the input handling. Good luck an be assured of my thankfulness for your porting emacs. Without your port I wouldn't have bought an iBook, so Apple should also be grateful for your efforts. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
From: Piet v. O. <pi...@cs...> - 2002-03-27 09:36:15
|
I have applied the patch to get ange-ftp working (enable #define HAVE_PTYS in src/s/darwin.h) but now I experience loss of process output, especially with AUCTEX. I do have the rest of the corresponding patches applied, i.e in process.c the line FD_CLR (0, &Atemp); is added. With the #define HAVE_PTYS commented out and all other things the same I don't have the loss of output. -- Piet van Oostrum <pi...@cs...> URL: http://www.cs.uu.nl/~piet [PGP] Private email: P.v...@hc... |
From: Andrew C. <ak...@sh...> - 2002-03-29 07:24:42
|
> I have applied the patch to get ange-ftp working (enable #define > HAVE_PTYS in src/s/darwin.h) but now I experience loss of process > output, especially with AUCTEX. I do have the rest of the > corresponding patches applied, i.e in process.c the line FD_CLR (0, > &Atemp); is added. > > With the #define HAVE_PTYS commented out and all other things the > same I don't have the loss of output. Hi Piet, If you check the macosx-dev list at Omnigroup, you'll notice that other people are having problems with pty's losing characters too! Before that problem is fixed, please try the following. Compile pty support into Emacs (i.e., #define HAVE_PTYS in s/darwin.h). Then set process-connection-type to nil in .emacs (or lisp/term/mac-win.el). This will cause Emacs to use pipes by default. Ange-ftp will also work because it locally sets process-connection-type to t before opening a connection, causing pty's to be used. This is not a good long term solution but will let you use Emacs with ange-ftp and other packages that uses processes. Andrew. |