home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3704 < prev    next >
Encoding:
Internet Message Format  |  1992-08-12  |  3.8 KB

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ames!sun-barr!rutgers!news.cs.indiana.edu!umn.edu!thompson
  2. From: thompson@atlas.socsci.umn.edu (T. Scott Thompson)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: C-s problems
  5. Message-ID: <thompson.713629017@kiyotaki.econ.umn.edu>
  6. Date: 12 Aug 92 14:16:57 GMT
  7. References: <1992Aug11.200128.25622@seas.smu.edu> <KEVIN.92Aug12100941@buffalobill.edscom.demon.co.uk>
  8. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  9. Distribution: gnu.emacs.help
  10. Organization: University of Minnesota
  11. Lines: 67
  12. Nntp-Posting-Host: kiyotaki.econ.umn.edu
  13.  
  14. kevin@edscom.demon.co.uk (Kevin Broadey) writes:
  15.  
  16. >In article <1992Aug11.200128.25622@seas.smu.edu> pedersen@seas.smu.edu (Ted Pedersen) writes:
  17.  
  18. >   I am a new emacs user and am having a very good time learning my way around.
  19. >   However, a problem has come up. It seems that whenever I use the C-s key
  20. >   (either as a part of a C-x C-s command or to do a forward search) I just 
  21. >   lock up. Nothing registers on the little mini buffer and I usually have to 
  22. >   bail all the way out of emacs. Note that C-r (the backward search) works very
  23. >   well. Anybody have any ideas of what this might be and/or what I can do to
  24. >   get around it.
  25.  
  26. >   Thanks,
  27. >   Ted Pedersen
  28.  
  29.  
  30. >This looks like a flow control problem, because C-s (otherwise known as XOFF)
  31. >is a standard way for a terminal to tell the host to stop sending it
  32. >characters.
  33.  
  34. >Now, Emacs ought to set the terminal driver to pass flow control characters
  35. >straight through (rather than action them), so my guess is you're using
  36. >something like a DEC-VT220...
  37.  
  38. >In the `Communications Set-Up' menu is a field at the start of the second line
  39. >which reads "XOFF at 64", "XOFF at 128" or "NO XOFF".  If it is set to one of
  40. >the first two, typing `C-s' causes the VT to lock the display _immediately_,
  41. >wait for a few more characters (maybe), then send `C-s' to the host.  What you
  42. >need to do is set it to "NO XOFF" so that the VT passes `C-s' straight to the
  43. >host.
  44.  
  45. This doesn't sound right to me.  More precisely, it is incomplete.
  46. Your explanation essentially states that the terminal sends C-s (XOFF)
  47. to the host when you press C-s at the keyboard.  This is undoubtably
  48. correct, but is probably not the source of the problem.  After all,
  49. sending out C-s is exactly what we want the terminal to do!
  50.  
  51. I do not know the specifics of the DEC-VT220, but I suspect that the
  52. various "XOFF" commands mentioned control how the terminal responds to
  53. data arriving too fast from the host.  That is, when you set "XOFF at
  54. 64" this probably means "OK terminal, if your input buffer has less
  55. than 64 free bytes you should _automatically_ send out a C-s to tell
  56. the host to stop sending."
  57.  
  58. But this is a digression.  The real problem is that when the host
  59. _receives_ the C-s it is interpretting it as the message "stop sending
  60. characters" instead of passing it along to emacs.  That is, the
  61. flowcontrol processing _at_the_recieving_end_ prevents emacs from ever
  62. seeing the C-s.  It also causes the host to temporarily stop echoing
  63. characters back to the terminal, which is why your terminal _appears_
  64. to be locked.  (It isn't really locked in all likelihood.)
  65.  
  66. Ideally emacs will turn off XON/XOFF flowcontrol at the host
  67. automatically when it is in command. However there are situations when
  68. emacs cannot do the job.  For example, I usually connect to my host
  69. through a network terminal server that does its own flowcontrol
  70. processing.  Unless I turn that off (manually) when I make the
  71. connection, the host never even receives the C-s, since it is
  72. intercepted and processed by the terminal server.
  73.  
  74. Bottom line: The problem _is_ flow control.  The solution is likely to
  75. be more complicated than simply turning off XON/XOFF flowcontrol at
  76. the terminal end.
  77.  
  78. T. Scott Thompson               thompson@atlas.socsci.umn.edu
  79. Dept. of Economics
  80. University of Minnesota
  81.