help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: A search problem in emacs


From: Andreas Röhler
Subject: Re: A search problem in emacs
Date: Tue, 05 Mar 2013 16:22:45 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130215 Thunderbird/17.0.3

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)))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]