From: Alan Mackenzie <acm@muc.de>
To: emacs-devel@gnu.org
Subject: Why is this thing (isearch-search-fun) coded like this?
Date: Mon, 7 Dec 2015 21:12:12 +0000 [thread overview]
Message-ID: <20151207211212.GE1904@acm.fritz.box> (raw)
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).
next reply other threads:[~2015-12-07 21:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-07 21:12 Alan Mackenzie [this message]
2015-12-07 21:20 ` Why is this thing (isearch-search-fun) coded like this? John Wiegley
2015-12-07 21:32 ` Artur Malabarba
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20151207211212.GE1904@acm.fritz.box \
--to=acm@muc.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).