From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: How to search for characters displayed as octal codes in the buffer? Date: Tue, 16 Jul 2019 19:30:27 -0500 Message-ID: References: Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="186850"; mail-complaints-to="usenet@blaine.gmane.org" Cc: "help-gnu-emacs@gnu.org" To: ndame Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 17 02:31:26 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hnXqw-000mSu-2D for geh-help-gnu-emacs@m.gmane.org; Wed, 17 Jul 2019 02:31:26 +0200 Original-Received: from localhost ([::1]:53182 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnXqu-0005bD-BW for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jul 2019 20:31:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49417) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hnXqp-0005au-Vc for help-gnu-emacs@gnu.org; Tue, 16 Jul 2019 20:31:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hnXqo-00007f-It for help-gnu-emacs@gnu.org; Tue, 16 Jul 2019 20:31:19 -0400 Original-Received: from aye.elm.relay.mailchannels.net ([23.83.212.6]:55657) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hnXqm-0008Cw-OZ for help-gnu-emacs@gnu.org; Tue, 16 Jul 2019 20:31:18 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id CC2172C1E84; Wed, 17 Jul 2019 00:30:34 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (100-96-38-48.trex.outbound.svc.cluster.local [100.96.38.48]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id E01BD2C1D16; Wed, 17 Jul 2019 00:30:33 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from mi3-ss4.a2hosting.com ([TEMPUNAVAIL]. [68.66.200.199]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.17.3); Wed, 17 Jul 2019 00:30:34 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Minister-Bored: 01617cf2094be515_1563323434578_451661761 X-MC-Loop-Signature: 1563323434578:1033502627 X-MC-Ingress-Time: 1563323434578 Original-Received: from [162.251.11.6] (port=56761 helo=[192.168.1.121]) by mi3-ss4.a2hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1hnXpz-00Fgg1-Um; Tue, 16 Jul 2019 20:30:28 -0400 In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 23.83.212.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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:121182 Archived-At: > On Jul 14, 2019, at 9:50 AM, ndame wrote: >=20 > Sometimes I have unprintable characters in the buffer which display = with an octal code (e.g. \232). instead of a character (text copied from = elsewhere, etc.) How can I find these without knowing the exact codes? >=20 > I'd like to find all such places in the buffer where a character = appears with an octal code, but I have UTF characters too in the buffer = which display properly, so using nonascii is not the answer. It sounds like you have characters that do not fit into the encoding = that the buffer is selected for. I can=E2=80=99t think of a viable way = to =E2=80=9Csearch=E2=80=9D for these. You might look at Chapter 22[1] of the emacs manual. And=E2=80=A6 maybe = this wiki page[2] might help. [1] = https://ftp.gnu.org/old-gnu/Manuals/emacs-20.7/html_chapter/emacs_22.html [2] https://www.emacswiki.org/emacs/FindingNonAsciiCharacters