From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: How to search for any quoted-insert ctrl character Date: Sat, 30 Jan 2016 20:35:17 +0200 Message-ID: <87io2adifu.fsf@iki.fi> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1454178959 10318 80.91.229.3 (30 Jan 2016 18:35:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 30 Jan 2016 18:35:59 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Deric Bytes Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 30 19:35:50 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aPaN6-0000cS-5u for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2016 19:35:44 +0100 Original-Received: from localhost ([::1]:39475 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPaN5-0005LT-CO for geh-help-gnu-emacs@m.gmane.org; Sat, 30 Jan 2016 13:35:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPaMu-0005LM-Fe for help-gnu-emacs@gnu.org; Sat, 30 Jan 2016 13:35:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aPaMp-0003Om-Fd for help-gnu-emacs@gnu.org; Sat, 30 Jan 2016 13:35:32 -0500 Original-Received: from mta-out1.inet.fi ([62.71.2.193]:50673 helo=johanna2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aPaMp-0003OB-5B for help-gnu-emacs@gnu.org; Sat, 30 Jan 2016 13:35:27 -0500 RazorGate-KAS: Status: not_detected RazorGate-KAS: Rate: 0 RazorGate-KAS: Envelope from: RazorGate-KAS: Version: 5.5.3 RazorGate-KAS: LuaCore: 80 2014-11-10_18-01-23 260f8afb9361da3c7edfd3a8e3a4ca908191ad29 RazorGate-KAS: Lua profiles 69136 [Nov 12 2014] RazorGate-KAS: Method: none Original-Received: from mithlond.arda (84.251.143.106) by johanna2.inet.fi (9.0.002.03-2-gbe5d057) id 5697DD890143B28A; Sat, 30 Jan 2016 20:35:18 +0200 Original-Received: from dtw by mithlond.arda with local (Exim 4.84) (envelope-from ) id 1aPaMf-0005iv-Ur; Sat, 30 Jan 2016 20:35:17 +0200 In-Reply-To: (Deric Bytes's message of "Sat, 30 Jan 2016 10:11:39 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.90 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 62.71.2.193 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108930 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Deric Bytes [2016-01-30 10:11:39-08] wrote: > I want to do a re-search-forward for any ^ charcter, even if it is a > quoted-insert symbol > > > The following expression will not see text that has been entered using > 'quoted-insert' > > > (re-search-forward "^") > > I want it to match the following three quoted-insert characters (and all = others) > > ^R > ^T > ^P Whey you type C-q C-r you don't get ^ character but the Control+R character (Unicode U+0012). It's just displayed as ^R. When you want to search for those characters you need to put them literally in your regexp string: (re-search-forward "[^R^T^P^]") Use C-q C-r, C-q C-t and C-q C-p to insert them. =2D-=20 /// Teemu Likonen - .-.. // // PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 /// --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWrQJlAAoJEHGdadMkU5RQo04P/1gj3jqj5jADELWOOkC5m0Wc M3DWK3R6DjDB56378EXTuLfuDpXYYaTc3yUgzNzZEM3MVm5tYxh0i24nh49JDrY/ NUc6gFVycEOW6ZwC8giGiE0BzrZfPnEPQ3Sxk6J3PruhiCZZhYT9N9EAc5y8u47H g0V9o/uWgUKLan2cSc1kM9fhy2hxbJcLodjcLy+9hdhbjzN+4rzDwI66zgj9TZsL +r87E8aBrffPV9/TmK7kSkegLMdNf3e50h3brsLw9HpF9iv9Xbhw4I0EnpRgDnrU PtHoq99Xb687XpVXGUsnFvosOnzpNtukt+zAQjxC8ts+2CoW3IDxZyWIr4rxDXtr 1LWqnzeZe0qph3dXRGCJD5f3sNlkIdO13J6wDm847soXnw07DkfdhexL7IU8YXAW 2nZg/uuSiGIsxap8tp71C924umSD7OlbQZyR3sxfGWutXvAWmfz5Le3y7qcvMHaf h9PzysSVvTu8mM07uhvu7ZrSmJSLa09gnysQPDj6nm5CJqhf7fen88MJ3Lgw0ttL 93P8mLUBJCaOW+wGBTL8f/g2Vkf73t6DkzirrEzYd96fXRRkdv072BPBkzghtYMA YRQSlROXN5rLbGJUr8+Rdhb5kQa/Uqs9K8kbfoC2x91ZgA1EXajsbDD1jTSukUlY OGkybIrveZgq7P48wW1V =NSZ5 -----END PGP SIGNATURE----- --=-=-=--