all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* delete text block
@ 2003-11-14 17:35 Herbert Fritsch
  2003-11-14 19:04 ` roodwriter
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Herbert Fritsch @ 2003-11-14 17:35 UTC (permalink / raw)


Hi

There are some text blocks. They all are different but beginn with the same
word and end with the same "lastword*".There are many lines. How can I
delete these blocks? 

Thanks for help

Herbert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: delete text block
  2003-11-14 17:35 delete text block Herbert Fritsch
@ 2003-11-14 19:04 ` roodwriter
  2003-11-15  9:45   ` Herbert Fritsch
  2003-11-14 21:41 ` Bruce Ingalls
  2003-11-16 23:14 ` Stefan Monnier
  2 siblings, 1 reply; 5+ messages in thread
From: roodwriter @ 2003-11-14 19:04 UTC (permalink / raw)


Herbert Fritsch wrote:

> Hi
> 
> There are some text blocks. They all are different but beginn with the
> same word and end with the same "lastword*".There are many lines. How can
> I delete these blocks?
> 
> Thanks for help
> 
> Herbert

Would a macro work? Search for the first word, then start a region (set 
mark), search for the ending word, then delete. Repeat.

--Rod

-- 
Author of "Linux for Non-Geeks--Clear-eyed Answered for Practical Consumers" 
and "Boring Stories from Uncle Rod." Both are available at 
http://www.rodwriterpublishing.com/index.html

To reply by e-mail, take the extra "o" out of the name.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: delete text block
  2003-11-14 17:35 delete text block Herbert Fritsch
  2003-11-14 19:04 ` roodwriter
@ 2003-11-14 21:41 ` Bruce Ingalls
  2003-11-16 23:14 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Bruce Ingalls @ 2003-11-14 21:41 UTC (permalink / raw)


Herbert Fritsch wrote:
> There are some text blocks. They all are different but beginn with the same
> word and end with the same "lastword*".There are many lines. How can I
> delete these blocks? 

With transient-mark-mode, and perhaps pc-keys, I can do S-move cursor
then do a search, which selects a region, which can be deleted, cut, or 
copied.

BTW, in Emacs v21.3.50.1, S-C-right/left no longer works properly: 
nothing gets selected.
I first have to select at least one char with S-arrow, and then continue.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: delete text block
  2003-11-14 19:04 ` roodwriter
@ 2003-11-15  9:45   ` Herbert Fritsch
  0 siblings, 0 replies; 5+ messages in thread
From: Herbert Fritsch @ 2003-11-15  9:45 UTC (permalink / raw)


Sorry, my question was not clear. I need a regular expression for this.
Herbert

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: delete text block
  2003-11-14 17:35 delete text block Herbert Fritsch
  2003-11-14 19:04 ` roodwriter
  2003-11-14 21:41 ` Bruce Ingalls
@ 2003-11-16 23:14 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2003-11-16 23:14 UTC (permalink / raw)


> There are some text blocks. They all are different but beginn with the same
> word and end with the same "lastword*".There are many lines. How can I
> delete these blocks? 

C-M-% firstword\(.* C-q C-j \)*.*lastword RET RET


        Stefan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-11-16 23:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-14 17:35 delete text block Herbert Fritsch
2003-11-14 19:04 ` roodwriter
2003-11-15  9:45   ` Herbert Fritsch
2003-11-14 21:41 ` Bruce Ingalls
2003-11-16 23:14 ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.