all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Custom searches, like interactively searching palindromes
@ 2010-10-01  9:50 Karan Bathla
  2010-10-01 13:36 ` Andreas Röhler
  0 siblings, 1 reply; 3+ messages in thread
From: Karan Bathla @ 2010-10-01  9:50 UTC (permalink / raw)
  To: help-gnu-emacs


Hi

I would like to know how one can interactively search for patterns that are not captured by regexes, like palindromes.

One approach would be to use \, to embed a lisp function, like it's availabe in regex-replace. Is it easy to modify existing functions (or make new ones using the ones available) to do this?

Or maybe something like (check-for-pattern palindrome), where palindrome is a function that takes a string and returns true if that string is palindrome. The function check-for-pattern does the search interactively feeding new string in the buffer to palindrome and highlighting them if they match. The problem I am facing here is writing the check-for-pattern function using the existing search functions.

Any other ways to do it ?

Thanks 
Karan


      



^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.1.1285926611.30610.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2010-10-01 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-01  9:50 Custom searches, like interactively searching palindromes Karan Bathla
2010-10-01 13:36 ` Andreas Röhler
     [not found] <mailman.1.1285926611.30610.help-gnu-emacs@gnu.org>
2010-10-01 13:58 ` Andreas Politz

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.