From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Defining functions within functions? Date: Tue, 24 May 2016 14:56:26 -0700 (PDT) Message-ID: References: <87k2ilbblk.fsf@mbork.pl> <87mvngsfiw.fsf@web.de> <874m9n6t3o.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1464127057 5570 80.91.229.3 (24 May 2016 21:57:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 May 2016 21:57:37 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Marcin Borkowski , Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue May 24 23:57:25 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1b5KKH-0003wu-5u for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2016 23:57:21 +0200 Original-Received: from localhost ([::1]:55586 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5KKG-0007Eb-HR for geh-help-gnu-emacs@m.gmane.org; Tue, 24 May 2016 17:57:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5KJm-0007EK-3F for help-gnu-emacs@gnu.org; Tue, 24 May 2016 17:56:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b5KJh-0007dR-Tn for help-gnu-emacs@gnu.org; Tue, 24 May 2016 17:56:49 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:38271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b5KJh-0007dK-Jh for help-gnu-emacs@gnu.org; Tue, 24 May 2016 17:56:45 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u4OLucvn018257 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 24 May 2016 21:56:38 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u4OLucA7030784 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 24 May 2016 21:56:38 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u4OLuRKq007180; Tue, 24 May 2016 21:56:32 GMT In-Reply-To: <874m9n6t3o.fsf@mbork.pl> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:110100 Archived-At: > And I wanted to use the former variant, but it struck me as not very > elegant. As for the latter, I'm not sure I understand it exactly, but > I'll give it some thought. >=20 > For now, I decided to go with lambdas, but also to sprinkle the code > with comments. Old-fashioned, but should do the jon in my case. A suggestion: Post a concrete example of what you need, and see what concrete suggestions you get. Typically, this stuff is not complicated. The first thing to do, IMO, is to determine whether you really need/want to do something special/complicated. Why do you think you want a nested defun or other form of local function definition?