From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Why is this thing (isearch-search-fun) coded like this? Date: Mon, 07 Dec 2015 13:20:03 -0800 Message-ID: References: <20151207211212.GE1904@acm.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1449523225 7443 80.91.229.3 (7 Dec 2015 21:20:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 7 Dec 2015 21:20:25 +0000 (UTC) Cc: emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Dec 07 22:20:17 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a63Cf-0002D1-BE for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2015 22:20:13 +0100 Original-Received: from localhost ([::1]:56534 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a63Ce-0005Jw-SE for ged-emacs-devel@m.gmane.org; Mon, 07 Dec 2015 16:20:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48383) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a63Cb-0005GW-Ky for emacs-devel@gnu.org; Mon, 07 Dec 2015 16:20:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a63CY-0007Mr-G2 for emacs-devel@gnu.org; Mon, 07 Dec 2015 16:20:09 -0500 Original-Received: from mail-pf0-x230.google.com ([2607:f8b0:400e:c00::230]:34872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a63CY-0007Lv-B7 for emacs-devel@gnu.org; Mon, 07 Dec 2015 16:20:06 -0500 Original-Received: by pfu207 with SMTP id 207so3142pfu.2 for ; Mon, 07 Dec 2015 13:20:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version:content-type; bh=2yYFQLAok9hq0SFvrpRcMXxGxKkNJKJxH+YIz37zzSM=; b=BnB8z0dSBncWGOuse0kPUTBbE2ajn+CXhCI+8aj24VSKWlwiJpCvZ7esq4mZ8YNRdW ZHTgRmRWniGFd+QCkstsx8YpuahVLKmZjuXmCgjmIg5ObESzRG2PgqdZmkrvdaA2B4/D 6QEJNezj5gIktc6vRdhoCqTp0ukvHV7zmrdycCPkdkqCePSVxgnAPmU8EKRAcogr3Asp gJGkoHoGWW70yP22VFotzebUquJtydQJ62J9AirqSDTuNLm5H1NMuUU7Y1IS9yJXtZRd kZpf12s+qgd5o47I1K2Q8NUbnQwuUpLxhOv6MXv+GefoSBnBSQBB3zF2VpFH8NAwyShz ETmQ== X-Received: by 10.98.73.13 with SMTP id w13mr45824030pfa.72.1449523205450; Mon, 07 Dec 2015 13:20:05 -0800 (PST) Original-Received: from Vulcan.local (76-234-68-79.lightspeed.frokca.sbcglobal.net. [76.234.68.79]) by smtp.gmail.com with ESMTPSA id r26sm36543818pfa.45.2015.12.07.13.20.04 (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 07 Dec 2015 13:20:04 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 3FA7A10FB9710; Mon, 7 Dec 2015 13:20:04 -0800 (PST) In-Reply-To: <20151207211212.GE1904@acm.fritz.box> (Alan Mackenzie's message of "Mon, 7 Dec 2015 21:12:12 +0000") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.5 (darwin) Mail-Followup-To: Alan Mackenzie , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195973 Archived-At: >>>>> Alan Mackenzie writes: > 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. It does look like it should just return a function symbol, rather than a lambda. It's not even a closure. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2