From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ams@gnu.org (Alfred M. Szmidt) Newsgroups: gmane.emacs.devel Subject: hexl-mode: searching for multi byte sequence? Date: Mon, 13 Jul 2015 13:55:38 -0400 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1436810162 19580 80.91.229.3 (13 Jul 2015 17:56:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2015 17:56:02 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 13 19:56:02 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZEhxR-0001Z6-NG for ged-emacs-devel@m.gmane.org; Mon, 13 Jul 2015 19:56:01 +0200 Original-Received: from localhost ([::1]:55979 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEhxQ-0006Ic-Nl for ged-emacs-devel@m.gmane.org; Mon, 13 Jul 2015 13:56:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEhx6-0006IE-MQ for emacs-devel@gnu.org; Mon, 13 Jul 2015 13:55:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZEhx5-0007p2-1i for emacs-devel@gnu.org; Mon, 13 Jul 2015 13:55:40 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:56830) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZEhx4-0007os-MC for emacs-devel@gnu.org; Mon, 13 Jul 2015 13:55:38 -0400 Original-Received: from ams by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1ZEhx4-0004U8-Ex for emacs-devel@gnu.org; Mon, 13 Jul 2015 13:55:38 -0400 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:187857 Archived-At: Is there some way in hexl-mode to search for a (hex, octal, ...) byte sequence? Currently, C-s behaves a bit strange in at least two regards: 1) If file contains the byte sequence #xDEADBEAF, depending on how they are aligned (odd or even word), one has to look for "DEAD BEAF" and "DE ADBE AF". 00000000: dead beaf 0000 0000 0000 0000 0000 0000 ................ 00000000: 00de adbe af00 0000 0000 0000 0000 0000 ................ 2) If the byte sequence continues on a new line, i.e. 00000000: 0000 0000 0000 0000 0000 0000 0000 dead ................ 00000010: beaf 0000 0000 0000 0000 0000 0000 0000 ................ Then it is impossible to find the string at all. Cheers, Alfred.