all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Why is this thing (isearch-search-fun) coded like this?
@ 2015-12-07 21:12 Alan Mackenzie
  2015-12-07 21:20 ` John Wiegley
  2015-12-07 21:32 ` Artur Malabarba
  0 siblings, 2 replies; 3+ messages in thread
From: Alan Mackenzie @ 2015-12-07 21:12 UTC (permalink / raw)
  To: emacs-devel

Hello, Emacs.

I'm absolutely stumped.

`isearch-search-fun', when called, returns a function "to use" for
searching.  To do this, it funcalls .....

.... `isearch-search-fun-default'.  This returns a constant lambda form.

CONSTANT LAMBDA FORMS ARE NOT EASY TO INSTRUMENT FOR EDEBUG!!!!

As an alternative, isearch-search-fun-default could simply return a
named function.  Even better, such a named function could simply be, and
be returned directly from `isearch-search-fun' without all the
superfluous funcalling.

Or am I missing something here?

All this "is a function which returns a function by funcalling a
function which returns a constant lambda form" has exhausted any desire
I had to debug my problem to a finish.

I'm tempted to rip out a lot of this stuff from Isearch to be able to
debug it.  Will I regret it if I do?

-- 
Alan Mackenzie (Nuremberg, Germany).



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

end of thread, other threads:[~2015-12-07 21:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-07 21:12 Why is this thing (isearch-search-fun) coded like this? Alan Mackenzie
2015-12-07 21:20 ` John Wiegley
2015-12-07 21:32 ` Artur Malabarba

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.