From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Defining functions on the fly Date: Tue, 16 Jun 2015 07:59:24 +0200 Message-ID: <557FBB3C.8060208@easy-emacs.de> References: <557E99BE.2060407@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1434434405 13330 80.91.229.3 (16 Jun 2015 06:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 06:00:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 16 07:59:55 2015 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 1Z4jud-0004ZA-Fo for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 07:59:55 +0200 Original-Received: from localhost ([::1]:37941 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4juc-00036l-Lv for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 01:59:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37961) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4juR-00036V-7b for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 01:59:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4juN-0003bu-8E for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 01:59:43 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:49655) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4juM-0003bm-V0 for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 01:59:39 -0400 Original-Received: from [192.168.178.31] ([95.119.63.133]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0Lo5wv-1ZWtn62nKD-00gEOp for ; Tue, 16 Jun 2015 07:59:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: X-Provags-ID: V03:K0:z+x2k6f+chkjE3hkITehR96wew9YB03gwwZi27kHrvFTCR87nqX spiood32BGJC72yDrym32oPH66l0pZ69h9OFnfLfoeimH/C0rAj4YzOMr+kWi/FceFkRCJ0 efkJgDAWy5aLPVxfge3vvbExJToCuy3ZbBVF+4jkdWeaSyqvHyfcGx5KOZQS0X+Jt3SBPIy kwnZDbKyzLllJYn317YEw== X-UI-Out-Filterresults: notjunk:1;V01:K0:pW+JJ4Mr2io=:omVXulVZmTS/jBmFu4j+U5 3rS1LvlVv/fiXoEZY3eZsJbtCRSU4dqwN8z+CIUsCuuAd6rpBHoI4UTUsPqqW5aPvp7b0KAK7 5qMa/XY+3JoH48ZxVbAdHnR70Q5h3H/x+S1sArffvGau2f7ifSY1bgdRKLW6fKibOIdVp4EJ4 oiZitpzVnzF8iusPHdne0wlm5ZB6rdptLrHOislTSynWI9E2G1gu9JDwtd5e0heV3AhAmNaPN YLPaPa+5BQ3nu+byXqixne+ZlwjpE5Wg8h3rUHIUBVmZ9D0XLQRqkTpT6TqKainjGRHPfD35t D8CRHmScDc0tIR5EVHVs9qaS3gGLd2Yd/jLqdvTNz5IKNzwUCkK9YMmjpS4n/RpRV5+hu8ckO N4dAXgKC9tIFa/iwpTOuRB/XSBcYkVGBLa44buCdDERpcl3L5wiqlxtfPVKUJyKGa4L2Aa9ND qnClRStjFKBIwggviXRI+ayKkjnZaVrhCgGGD4PQfWbowLtQC2Wh6Cj9OHZfsKyMN/BFU3u9r 52nIXoWLQHsfk+IhdTUxbKJKnrPWpZhHjLUeKoyTTuuOXwEBCx0Ri5b085ihJYK7zd/vXdH5G CPbV4sEYJZ4T0ClJll8JW0H7mgSB9UZ3c2V8mAzqMV4OSO7oTJG0KeSubdy5wHq3SlBXRMAai vZHTKFngljBHyXsCFunnQGRvp0f3GPFdBEMhgdFu/RWub2/JRIPWjfVI48SPYhusuFycDXssn PkjxyyGlZnVR/2axHd8NX+8eRoFjOCNhSktWTkvHASunDV02eAXrfNMYHno= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.126.187 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:104968 Archived-At: Am 15.06.2015 um 14:52 schrieb Stefan Monnier: >> i'm probably misunderstanding you, but does: >> (defun (intern (concat "current-prefix-" foo) ... >> do what you need? > (defalias (intern (concat "current-prefix-" foo) ...) ...) can work, but > not with defun. In any case, some concrete example of what he needs to > do would go a long way. > > > Stefan Currently Emacs provides some scheme to fontify source code and some basic moves: linewise, symbol, word, paragraph, sexp. There is no idea of statement, block/loop or expression and a poor top-level --beginning/end-of-defun. Just trying to implement a kind of default for this.