home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / emacs / bug / 1707 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  2.3 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!sgi.com!shankar
  2. From: shankar@sgi.com (Shankar Unni)
  3. Newsgroups: gnu.emacs.bug
  4. Subject: Re: quoted-insert inserts in overwrite-mode
  5. Date: 25 Jan 1993 21:16:32 -0500
  6. Organization: Silicon Graphics, Inc.
  7. Lines: 44
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-emacs@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <1k1mdnINNs19@fido.asd.sgi.com>
  12. References: <9301221446.AA27834@sap-ag.de>
  13.  
  14. Bill Wohler (wohler@sap-ag.DE) wrote:
  15.  
  16. >   joe, i think the design came about because quoted-insert can insert
  17. >   1, 2 or more characters.  if quoted-insert overwrote, then if i had
  18. >   the word "hunchen" and i wanted to replace the 'u' with an
  19. >   "u-umlaut", the result would be "h\207en", NOT what i would want.
  20. >   perhaps an alternative design would be for quoted-insert in
  21. >   overwrite mode to overwrite only one character and insert the rest
  22. >   (ie "hunchen" -> "h\207nchen").  richard?
  23.  
  24. Barry Margolin adds:
  25.  
  26. > Assuming we get a variant of overwrite mode where quoted-insert overwrites,
  27. > would it be correct for it to overwrite just one character?  If I type C-q
  28. > C-a, the resulting character displays as "^A", so maybe it should overwrite
  29. > two characters.  And if I type C-q 200, the result is "\200", so it should
  30. > presumably replace four characters.
  31.  
  32. Excuse me? Am I missing something?  This sounds like a major red herring..
  33.  
  34. Consider the following case: suppose the existing text says:
  35.  
  36.    h\207nchen
  37.  
  38. where the \207 is a single character. If you position the cursor on the
  39. \207 in overwrite-mode and type "u", what does the display show now?
  40. hu207nchen or hunchen? It's not like you're replacing 4 characters with 1.
  41. 4 *screen positions* maybe, but not characters.
  42.  
  43. I see no reason why the reverse should not also be true: if you do a
  44. quoted-insert in overwrite-mode, *and if we adopt Joe Wells' definition*, I
  45. don't see that there are any logical contradictions or anomalies. If you
  46. are on the "u" in "hunchen", and type \2074, say, you should get
  47. "h\2074chen", where the single character "\207" has overwritten the "u" and
  48. the "4" has overwritten the "n".
  49.  
  50. So what the argument boils down to is, as always, "That's how it is done".
  51. --
  52. Shankar Unni                E-Mail:    shankar@sgi.com
  53. Silicon Graphics Inc.            Phone:    +1-415-390-2072
  54.  
  55.  
  56.  
  57.