home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / emacs / help / 3445 < prev    next >
Encoding:
Text File  |  1992-07-22  |  2.3 KB  |  55 lines

  1. Path: sparky!uunet!darwin.sura.net!jvnc.net!yale.edu!qt.cs.utexas.edu!news.Brown.EDU!noc.near.net!chaos!splinter.coe.northeastern.edu
  2. From: ratinox@splinter.coe.northeastern.edu (Richard Pieri/Stainless Steel Rat)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: two little emacs questions
  5. Message-ID: <RATINOX.92Jul22153051@splinter.coe.northeastern.edu>
  6. Date: 22 Jul 92 19:30:51 GMT
  7. References: <BrsxzH.GzE@ecf.toronto.edu>
  8. Sender: usenet@chaos.DAC.Northeastern.edu
  9. Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
  10. Lines: 39
  11. In-reply-to: apollo@ecf.toronto.edu's message of 22 Jul 92 17:59:40 GMT
  12. X-Get-A-Clue: Have two, they're small.
  13. X-Signature-Virus-Protection: Version 1.51
  14. X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]
  15.  
  16. >>>>> On 22 Jul 92 17:59:40 GMT, apollo@ecf.toronto.edu (Vince Pugliese)
  17. >>>>> said:
  18.  
  19. VP> ok emacs gurus two quickies:
  20.  
  21. VP> 1) how do you go to the end of a paragraph? is there
  22. VP> such a control sequence?
  23.  
  24. From "command-appropos paragraph (C-h a paragraph)"
  25. backward-paragraph          ESC [, ESC O w
  26.   Function: Move backward to start of paragraph.  With arg, do it arg times.
  27. forward-paragraph          ESC ], ESC O y
  28.   Function: Move forward to end of paragraph.  With arg, do it arg times.
  29.  
  30. VP> 2) can one delete a character and leave the space there
  31. VP> originally occupied by the deleted character??
  32.  
  33. There isn't a built-in command to do this, but it would be easy to write a
  34. function to do it:
  35.  
  36. (defun delete-backward-char-keep-space ()
  37.   "Delete the previous character and replacing it with a space."
  38.   (interactive)
  39.   (delete-backward-char 1)
  40.   (insert-string " "))
  41.  
  42. It's cheezy, doesn't take arguments like delete-backward-char does, doesn't
  43. handle newlines at all, but that's what I get for a 1-minute hack :-).
  44.  
  45. --Rat
  46.  
  47. ||||| | | | |  |  |  |   |   |    |    |    |   |   |  |  |  |  | | | | | |||||
  48.                                                    __        ___ 
  49. Richard Pieri, Northeastern's Stainless Steel Rat/   | /| / /   | The Worlds
  50. Internet: ratinox@meceng.coe.northeastern.edu   /__  |/ |/ / /| | Welfare Works
  51.     UUCP: ...!northeastern.edu!splinter!ratinox/   | /| / / / | | Association:
  52.   BITNET: UA_RLP@NUHUB{.BITNET}               /__  |/ |/ / /  | | I will solve
  53.   USNail: 14 Westdale RD  Holbrook, MA 02343 /   | /| / / /___| | any problem
  54.  ICBMnet: 42 deg 1 min N, 71 deg 0 min W    /    |/ |/ /_//_____| for you.
  55.