all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* regexp-search-ring
@ 2004-04-22 12:00 FCC
  2004-04-22 12:12 ` regexp-search-ring FCC
  0 siblings, 1 reply; 5+ messages in thread
From: FCC @ 2004-04-22 12:00 UTC (permalink / raw)


Hello all,

I am trying to find a way to isearch for a desired element of 
regexp-search-ring. One way is to use (nth m regexp-search-ring) for 
getting the mth element in the buffer *scratch*, and paste it to isearch 
prompt. Is there an easier way?

Thanks,

FCC.

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

* Re: regexp-search-ring
  2004-04-22 12:00 regexp-search-ring FCC
@ 2004-04-22 12:12 ` FCC
  2004-04-22 12:35   ` regexp-search-ring Sergei Pokrovsky
  0 siblings, 1 reply; 5+ messages in thread
From: FCC @ 2004-04-22 12:12 UTC (permalink / raw)




FCC wrote:

> Hello all,
> 
> I am trying to find a way to isearch for a desired element of 
> regexp-search-ring. One way is to use (nth m regexp-search-ring) for 
> getting the mth element in the buffer *scratch*, and paste it to isearch 
> prompt. Is there an easier way?
> 
> Thanks,
> 
> FCC.
> 

Or even better, it would be great to be able to browse the list with, 
for example, tab key and choose one.

Thanks again,

FCC.

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

* Re: regexp-search-ring
  2004-04-22 12:12 ` regexp-search-ring FCC
@ 2004-04-22 12:35   ` Sergei Pokrovsky
  2004-04-22 14:39     ` regexp-search-ring FCC
  0 siblings, 1 reply; 5+ messages in thread
From: Sergei Pokrovsky @ 2004-04-22 12:35 UTC (permalink / raw)


>>>>> "FCC" == FCC  <fcc509@netscape.net> writes:

  FCC> FCC wrote:

  >> Hello all, I am trying to find a way to isearch for a desired
  >> element of regexp-search-ring. One way is to use (nth m
  >> regexp-search-ring) for getting the mth element in the buffer
  >> *scratch*, and paste it to isearch prompt. Is there an easier
  >> way? Thanks, FCC.


  FCC> Or even better, it would be great to be able to browse the list
  FCC> with, for example, tab key and choose one.

Did you try

C-s M-p M-p M-p M-n  ...?

[...]

-- 
Sergei

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

* Re: regexp-search-ring
  2004-04-22 12:35   ` regexp-search-ring Sergei Pokrovsky
@ 2004-04-22 14:39     ` FCC
  2004-04-22 16:29       ` regexp-search-ring Kevin Rodgers
  0 siblings, 1 reply; 5+ messages in thread
From: FCC @ 2004-04-22 14:39 UTC (permalink / raw)




Sergei Pokrovsky wrote:
> 
>   FCC> Or even better, it would be great to be able to browse the list
>   FCC> with, for example, tab key and choose one.
> 
> Did you try
> 
> C-s M-p M-p M-p M-n  ...?
> 
> [...]
> 

This is magic! Thanks Sergei!
Best,
FCC.

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

* Re: regexp-search-ring
  2004-04-22 14:39     ` regexp-search-ring FCC
@ 2004-04-22 16:29       ` Kevin Rodgers
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2004-04-22 16:29 UTC (permalink / raw)


FCC wrote:
 > Sergei Pokrovsky wrote:
 >>   FCC> Or even better, it would be great to be able to browse the list
 >>   FCC> with, for example, tab key and choose one.
 >>
 >> Did you try
 >>
 >> C-s M-p M-p M-p M-n  ...?
 >
 > This is magic! Thanks Sergei!

It is not magic: Emacs is the extensible, customizable, self-documenting
real-time display editor.  For example, `C-h k C-s' shows:

| C-s runs the command isearch-forward
|    which is an interactive compiled Lisp function in `isearch'.
| (isearch-forward &optional REGEXP-P NO-RECURSIVE-EDIT)
|
| Do incremental search forward.
| With a prefix argument, do an incremental regular expression search instead.
|
| As you type characters, they add to the search string and are found.
| The following non-printing keys are bound in `isearch-mode-map'.
|
| Type DEL to cancel characters from end of search string.
| Type RET to exit, leaving point at location found.
| Type LFD (C-j) to match end of line.
| Type C-s to search again forward, C-r to search again backward.
| Type C-w to yank word from buffer onto end of search string and search for it.
| Type C-y to yank rest of line onto end of search string and search for it.
| Type M-y to yank last killed text onto end of search string and search for it.
| Type C-q to quote control character to search for it.
| C-g while searching or when search has failed cancels input back to what has
|  been found successfully.
| C-g when search is successful aborts and moves point to starting point.
|
| Type M-c to toggle search case-sensitivity.
| Type M-r to toggle regular-expression mode.
| Type M-e to edit the search string in the minibuffer.
|
| Also supported is a search ring of the previous 16 search strings.
| Type M-n to search for the next item in the search ring.
| Type M-p to search for the previous item in the search ring.
| Type M-TAB to complete the search string using the search ring.

-- 
Kevin Rodgers

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

end of thread, other threads:[~2004-04-22 16:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-22 12:00 regexp-search-ring FCC
2004-04-22 12:12 ` regexp-search-ring FCC
2004-04-22 12:35   ` regexp-search-ring Sergei Pokrovsky
2004-04-22 14:39     ` regexp-search-ring FCC
2004-04-22 16:29       ` regexp-search-ring Kevin Rodgers

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.