From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yassin Philip Newsgroups: gmane.emacs.help Subject: Re: Search occurrences of character at point Date: Fri, 4 Aug 2017 16:37:25 +0100 Organization: ManyRecords Message-ID: <65ac4197-ec13-332a-484f-1937470e381e@riseup.net> References: <86wp6ja7ru.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501864077 26179 195.159.176.226 (4 Aug 2017 16:27:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 4 Aug 2017 16:27:57 +0000 (UTC) To: Emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 04 18:27:53 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ddfRv-000681-PH for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 18:27:43 +0200 Original-Received: from localhost ([::1]:53797 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddfS1-0007bi-TH for geh-help-gnu-emacs@m.gmane.org; Fri, 04 Aug 2017 12:27:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ddefS-0007FW-5O for help-gnu-emacs@gnu.org; Fri, 04 Aug 2017 11:37:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ddefM-0005ou-8D for help-gnu-emacs@gnu.org; Fri, 04 Aug 2017 11:37:38 -0400 Original-Received: from mx1.riseup.net ([198.252.153.129]:57313) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ddefM-0005mM-0D for help-gnu-emacs@gnu.org; Fri, 04 Aug 2017 11:37:32 -0400 Original-Received: from cotinga.riseup.net (unknown [10.0.1.164]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.riseup.net", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.riseup.net (Postfix) with ESMTPS id ED1911A0005 for ; Fri, 4 Aug 2017 15:37:28 +0000 (UTC) Original-Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: philcm@riseup.net) by (cotinga) with ESMTPSA id 55F065D8A8 In-Reply-To: <86wp6ja7ru.fsf@gmail.com> Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 198.252.153.129 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:113925 Archived-At: 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: =C2=AD (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 > --=20 Yassin Philip New album NOW http://yassinphilip.bitbucket.io