all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Searching around line breaks in hexl mode
@ 2006-04-07 19:12 jazzdman
  2006-04-07 21:39 ` Kevin Rodgers
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: jazzdman @ 2006-04-07 19:12 UTC (permalink / raw)


Hi,
     I'm trying to search for a particular numeric sequence in the
hexidecimal representation of the data in a file.  Is it possible
search through the file in such a way that it will look around the line
breaks?  For instance, I am look for the sequence 2800 5210.  However
the sequence 2800 occurs many times in the data, so its inconvenient to
look for just that.  Can this be done?


Thanks,

Jason Mazzotta

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

* Re: Searching around line breaks in hexl mode
  2006-04-07 19:12 Searching around line breaks in hexl mode jazzdman
@ 2006-04-07 21:39 ` Kevin Rodgers
       [not found] ` <mailman.190.1144446071.9609.help-gnu-emacs@gnu.org>
  2006-04-14 20:12 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Kevin Rodgers @ 2006-04-07 21:39 UTC (permalink / raw)


jazzdman@gmail.com wrote:
>      I'm trying to search for a particular numeric sequence in the
> hexidecimal representation of the data in a file.  Is it possible
> search through the file in such a way that it will look around the line
> breaks?  For instance, I am look for the sequence 2800 5210.  However
> the sequence 2800 occurs many times in the data, so its inconvenient to
> look for just that.  Can this be done?

Are you using Hexl mode?

In other modes, something like this should work:

M-C-s 2800 SPC 5210

because in incremental regexp search, SPC matches any sequence of
whitespace characters.

-- 
Kevin Rodgers

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

* Re: Searching around line breaks in hexl mode
       [not found] ` <mailman.190.1144446071.9609.help-gnu-emacs@gnu.org>
@ 2006-04-10 14:50   ` jazzdman
  2006-04-10 15:11     ` jazzdman
  0 siblings, 1 reply; 5+ messages in thread
From: jazzdman @ 2006-04-10 14:50 UTC (permalink / raw)


Yes, I am using Hexl mode.  However, despite your instructions (and
others I've found on the web that say the same thing), it doesn't
appear to work.  At least the emacs I'm using tries to match the space
character and then the SPC.  If I enter it as 2800SPC5210, nothing is
found either.

Jason Mazzotta

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

* Re: Searching around line breaks in hexl mode
  2006-04-10 14:50   ` jazzdman
@ 2006-04-10 15:11     ` jazzdman
  0 siblings, 0 replies; 5+ messages in thread
From: jazzdman @ 2006-04-10 15:11 UTC (permalink / raw)


Playing around some more, it appears that, despite the fact that you
can traverse that entire buffer via the arrow keys as three seperate
columns, when you do a search, emacs treats the entire buffer as one
big stream of data.  So, I used a different regular expression and
searched on the textual representation of the data, which looks like
this \.R. (with a newline character in there possibly):

(\.[^J]*.*?R\.

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

* Re: Searching around line breaks in hexl mode
  2006-04-07 19:12 Searching around line breaks in hexl mode jazzdman
  2006-04-07 21:39 ` Kevin Rodgers
       [not found] ` <mailman.190.1144446071.9609.help-gnu-emacs@gnu.org>
@ 2006-04-14 20:12 ` Stefan Monnier
  2 siblings, 0 replies; 5+ messages in thread
From: Stefan Monnier @ 2006-04-14 20:12 UTC (permalink / raw)


>      I'm trying to search for a particular numeric sequence in the
> hexidecimal representation of the data in a file.  Is it possible
> search through the file in such a way that it will look around the line
> breaks?  For instance, I am look for the sequence 2800 5210.  However
> the sequence 2800 occurs many times in the data, so its inconvenient to
> look for just that.  Can this be done?

In Emacs-CVS, isearch in IIRC hexl-mode allows you to just that.


        Stefan

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

end of thread, other threads:[~2006-04-14 20:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-07 19:12 Searching around line breaks in hexl mode jazzdman
2006-04-07 21:39 ` Kevin Rodgers
     [not found] ` <mailman.190.1144446071.9609.help-gnu-emacs@gnu.org>
2006-04-10 14:50   ` jazzdman
2006-04-10 15:11     ` jazzdman
2006-04-14 20:12 ` Stefan Monnier

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.