unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: help-gnu-emacs@gnu.org
Subject: Re: A search problem in emacs
Date: Tue, 05 Mar 2013 16:22:45 +0100	[thread overview]
Message-ID: <51360DC5.3010606@easy-emacs.de> (raw)
In-Reply-To: <CAAzVxgPW8QwwyYMVfRyE0zaWFVN9k+mSf_WxRFSR6p4Oavz5Hg@mail.gmail.com>

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	other threads:[~2013-03-05 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05  3:02 A search problem in emacs source liu
2013-03-05 15:22 ` Andreas Röhler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51360DC5.3010606@easy-emacs.de \
    --to=andreas.roehler@easy-emacs.de \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).