From: Yassin Philip <philcm@gnu.org>
To: Emacs <help-gnu-emacs@gnu.org>
Subject: Re: Search occurrences of character at point
Date: Fri, 4 Aug 2017 16:37:25 +0100 [thread overview]
Message-ID: <65ac4197-ec13-332a-484f-1937470e381e@riseup.net> (raw)
In-Reply-To: <86wp6ja7ru.fsf@gmail.com>
Well, you could use a rx regexp function like this:
(defun find-nonascii ()
(interactive)
(if (re-search-forward (rx nonascii))
(message "There it is: (%s)"
(buffer-substring-no-properties
(match-beginning 0) (match-end 0)))
(message "doh!")))
yPhil
On 04/08/17 12:31, Guido Van Hoecke wrote:
> Hi,
>
> I sometimes have to edit some text where I want to find all occurences
> of some non-standard character, such as Char: (173, #o255, #xad, ...)
>
> I'd like a way to have the cursor sit on such a character and hit a key
> to position it at the next occurrence of said character.
>
> I'm sure there's a way to do this?
>
> Any ideas, anyone?
>
> TIA,
>
> Guido
>
--
Yassin Philip New album NOW
http://yassinphilip.bitbucket.io
next prev parent reply other threads:[~2017-08-04 15:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-04 11:31 Search occurrences of character at point Guido Van Hoecke
2017-08-04 15:37 ` Yassin Philip [this message]
2017-08-04 15:47 ` Drew Adams
2017-08-04 16:09 ` Yuri Khan
2017-08-04 17:08 ` Drew Adams
2017-08-04 18:23 ` Guido Van Hoecke
2017-08-04 16:42 ` John Ankarström
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=65ac4197-ec13-332a-484f-1937470e381e@riseup.net \
--to=philcm@gnu.org \
--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.
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.