all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* A search problem in emacs
@ 2013-03-05  3:02 source liu
  2013-03-05 15:22 ` Andreas Röhler
  0 siblings, 1 reply; 2+ messages in thread
From: source liu @ 2013-03-05  3:02 UTC (permalink / raw)
  To: help-gnu-emacs

Hi, list

Do you have any suggestions when you are doing search in a buff with
many same words (i come to it when i'm doing search in a xml file)

xml always have tags,
============= sample text =============
<t></t> something <t>something</t> ......
===================================

what i want to do is to make the curse at the Nth (say 56th) </t> tag,
now i played the trick as vim

M-x viper-mode , press "/" enter </t>,  press "56" "n".

is there "emacs" ways search of doing so?  i've no idea of it


-- 
Liu An
Institution of modern physics, Shanghai, China



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

* Re: A search problem in emacs
  2013-03-05  3:02 A search problem in emacs source liu
@ 2013-03-05 15:22 ` Andreas Röhler
  0 siblings, 0 replies; 2+ messages in thread
From: Andreas Röhler @ 2013-03-05 15:22 UTC (permalink / raw)
  To: help-gnu-emacs

Am 05.03.2013 04:02, schrieb source liu:
> Hi, list
>
> Do you have any suggestions when you are doing search in a buff with
> many same words (i come to it when i'm doing search in a xml file)
>
> xml always have tags,
> ============= sample text =============
> <t></t> something <t>something</t> ......
> ===================================
>
> what i want to do is to make the curse at the Nth (say 56th) </t> tag,
> now i played the trick as vim
>
> M-x viper-mode , press "/" enter </t>,  press "56" "n".
>
> is there "emacs" ways search of doing so?  i've no idea of it
>
>

Don't see it. Maybe try this:

M-x NUMBER ar-search-forward RET SEARCH-TERM RET

(defun ar-search-forward (count)
   "Go to the COUNT's occurrence of search-term. "
   (interactive "p")
   (let ((string (completing-read "Search: " (car kill-ring))))
     (kill-new string)
     (search-forward string nil t count)))




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

end of thread, other threads:[~2013-03-05 15:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05  3:02 A search problem in emacs source liu
2013-03-05 15:22 ` Andreas Röhler

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.