home *** CD-ROM | disk | FTP | other *** search
- 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
- From: ratinox@splinter.coe.northeastern.edu (Richard Pieri/Stainless Steel Rat)
- Newsgroups: gnu.emacs.help
- Subject: Re: two little emacs questions
- Message-ID: <RATINOX.92Jul22153051@splinter.coe.northeastern.edu>
- Date: 22 Jul 92 19:30:51 GMT
- References: <BrsxzH.GzE@ecf.toronto.edu>
- Sender: usenet@chaos.DAC.Northeastern.edu
- Organization: 3WA, Boston Office. Or Nu Meta Chi. Take your pick.
- Lines: 39
- In-reply-to: apollo@ecf.toronto.edu's message of 22 Jul 92 17:59:40 GMT
- X-Get-A-Clue: Have two, they're small.
- X-Signature-Virus-Protection: Version 1.51
- X-Posting-Software: GNUS 3.14.1 [ NNTP-based News Reader for GNU Emacs ]
-
- >>>>> On 22 Jul 92 17:59:40 GMT, apollo@ecf.toronto.edu (Vince Pugliese)
- >>>>> said:
-
- VP> ok emacs gurus two quickies:
-
- VP> 1) how do you go to the end of a paragraph? is there
- VP> such a control sequence?
-
- From "command-appropos paragraph (C-h a paragraph)"
- backward-paragraph ESC [, ESC O w
- Function: Move backward to start of paragraph. With arg, do it arg times.
- forward-paragraph ESC ], ESC O y
- Function: Move forward to end of paragraph. With arg, do it arg times.
-
- VP> 2) can one delete a character and leave the space there
- VP> originally occupied by the deleted character??
-
- There isn't a built-in command to do this, but it would be easy to write a
- function to do it:
-
- (defun delete-backward-char-keep-space ()
- "Delete the previous character and replacing it with a space."
- (interactive)
- (delete-backward-char 1)
- (insert-string " "))
-
- It's cheezy, doesn't take arguments like delete-backward-char does, doesn't
- handle newlines at all, but that's what I get for a 1-minute hack :-).
-
- --Rat
-
- ||||| | | | | | | | | | | | | | | | | | | | | | | |||||
- __ ___
- Richard Pieri, Northeastern's Stainless Steel Rat/ | /| / / | The Worlds
- Internet: ratinox@meceng.coe.northeastern.edu /__ |/ |/ / /| | Welfare Works
- UUCP: ...!northeastern.edu!splinter!ratinox/ | /| / / / | | Association:
- BITNET: UA_RLP@NUHUB{.BITNET} /__ |/ |/ / / | | I will solve
- USNail: 14 Westdale RD Holbrook, MA 02343 / | /| / / /___| | any problem
- ICBMnet: 42 deg 1 min N, 71 deg 0 min W / |/ |/ /_//_____| for you.
-