all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* hexl-mode: searching for multi byte sequence?
@ 2015-07-13 17:55 Alfred M. Szmidt
  2015-07-14  7:07 ` Stephen J. Turnbull
  0 siblings, 1 reply; 3+ messages in thread
From: Alfred M. Szmidt @ 2015-07-13 17:55 UTC (permalink / raw)
  To: emacs-devel

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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-14 14:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-13 17:55 hexl-mode: searching for multi byte sequence? Alfred M. Szmidt
2015-07-14  7:07 ` Stephen J. Turnbull
2015-07-14 14:51   ` Eli Zaretskii

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.