Path: utzoo!utgpu!watmath!iuvax!mailrus!tut.cis.ohio-state.edu!armadillo.cis.ohio-state.edu!lum From: lum@armadillo.cis.ohio-state.edu (Lum Johnson) Newsgroups: news.newusers.questions Subject: Re: Re: editing .newsrc Message-ID: <57215@tut.cis.ohio-state.edu> Date: 9 Aug 89 20:33:55 GMT References: <354@wet.UUCP> <2354@bingvaxu.cc.binghamton.edu> <1736@frog.UUCP> <56990@tut.cis.ohio-state.edu> Reply-To: Lum JohnsonDistribution: na Organization: The Ohio State University, IRCC/CIS Joint Computing Laboratory Lines: 35 In article <56990@tut.cis.ohio-state.edu> Lum Johnson writes: > > M-< C-s ! ;; Find first exclamation mark > C-x ( ;; Begin keyboard macro > C-s , ;; Find first comma > C-e M-b C-@ ;; Set mark before last number on line > C-r ! Space 1 - ;; Find `! 1-' earlier on line > C-s ;; Move to end of `! 1-' field > C-w ;; Remove text from point to mark > C-x ) ;; End keyboard macro > C-u C-u C-u C-x e ;; Execute macro 64 times Oops. It seems that I have been unconsciously compensating for one of the little inconsistencies between GNU Emacs and real thing, ITS/TWENEX Emacs. For the above to work, you must replace the line: > C-s ;; Move to end of `! 1-' field with the line: > C-s Escape ;; Move to end of `! 1-' field It just happens that, for GNU Emacs, C-w is a different command in a search string than anywhere else (try Help K C-s, if you are interested - Help is C-h by default), so the preceding search must be explicitly terminated before C-w does what one normally expects it to. Surprise surprise! Lum -=- -- Lum Johnson lum@cis.ohio-state.edu lum@osu-20.ircc.ohio-state.edu "You got it kid -- the large print giveth and the small print taketh away." -------