From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Defining functions on the fly Date: Tue, 16 Jun 2015 11:42:53 +0200 Message-ID: <557FEF9D.5080701@easy-emacs.de> References: <557E99BE.2060407@easy-emacs.de> <557FBB3C.8060208@easy-emacs.de> <87lhfkjfvr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1434447813 29667 80.91.229.3 (16 Jun 2015 09:43:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 16 Jun 2015 09:43:33 +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 11:43:24 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 1Z4nOq-0000EU-Jw for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 11:43:20 +0200 Original-Received: from localhost ([::1]:38951 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4nOl-0003Ed-1r for geh-help-gnu-emacs@m.gmane.org; Tue, 16 Jun 2015 05:43:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60421) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4nOW-0003B3-2D for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 05:43:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4nOS-00006b-SQ for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 05:43:00 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.187]:62815) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4nOS-00006R-6T for help-gnu-emacs@gnu.org; Tue, 16 Jun 2015 05:42:56 -0400 Original-Received: from [192.168.178.31] ([95.119.63.133]) by mrelayeu.kundenserver.de (mreue001) with ESMTPSA (Nemesis) id 0LmzUL-1ZVsrz1XLB-00hKIp for ; Tue, 16 Jun 2015 11:42:54 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 In-Reply-To: <87lhfkjfvr.fsf@gnu.org> X-Provags-ID: V03:K0:SiwiAyFC24GbtP/9VuFxVfUwEHVqH+zFxylXaoFbTK4fZ2OSzw6 k2v1SeCxjsYY2Omx40DoBUtYa1SYtEz5psNsO4LVzSkh2UrHqzAJTDCk9vlLRwttsi2aqIz YzbxRCzNRIq97d8Ouz1BCNyNLlhniUq17weyphX13Mar7vq94BmS5SZbdOLhDqyosglu9QL Vwsy5ATV+f6hiBexqscow== X-UI-Out-Filterresults: notjunk:1;V01:K0:LRUDRShwFPg=:SPcLRJ7FQYev+GKavwFT7a CrCpduZDaCl++JUcmShtZiXw9vp93nNXzanUXWbl2r7bUpukStokkQIoxtGSW0hVmBvtpzKqr qbQiQCT9bhCHiDQkWVOfVtxMVgMJmutdkX5sagEc/l5Ml8LFV8rsTiSkDhiQQKozKP2gMHcrA bYKbB2n2E4JsAPX+3YitzmTw70caBKYhmbzfF6u6QUuIgTFJADvKGtqzugBanEkVTj0ACKRO1 qg2/me0VckKbUjwUVTbMkLZkPNSqf9zAcTi/xCXJ+xCVQgWjmt6a9frglJdBPzXXQ55KhECWq 9cwMvnnz1vwxsCcnqN2xRjzgDDbOpnY+VIsy+Kw/XrXI8CH6pGzIbCJtQOj+x4v1jZYcoORCd S5CebYqWvR6G6Kh9HHp6tz65a4sQY2+MMHWzsBM5ZrFkUbIs0LqY/HcdzHZ6wCM7rFp8dgsa0 zvHLeMAlAIOAzWPoQrK9HoeKPAm4zjmIrh2ghQeHSYBHkgYwUqoxsDpZgyNw49uuOH9EuOQAe mXQGnqahz+Ws7rBvvKOD03OJUII5H/LsGftLTtpg8Qvrq8SQ5aERF/SNLi96itraju170WH5A Y5SYp11VMur2FQQ29Wjm0WidPPp9+PK80q7QpY18eQEpYIXNsG3vO0IKM2OBENXbgeZQuxvEO ZxR+6OudxMHvkkf8K9FclxZSMoaFM5xlBqWj0ZidpDAk7Iw== 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:104972 Archived-At: Am 16.06.2015 um 09:01 schrieb Tassilo Horn: > Andreas Röhler writes: > >>>> 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. > There is: `forward-sexp' and `backward-sexp'. Expect sexp-navigation behaving the the following way: - if inside a form, go to the end resp. start - if at end of form, forward same level if form exist, or get level following point, or EOB - if at beginning of form, backward same level if form exist, or get level preceding point, or BOB Resp. when inside a literal, go to start resp. end. When in inside a comment, leave it, treat it like whitespace, repeat the command. Beside other shortcomings, for now docstring of forward-sexp says: "This command assumes point is not in a string or comment." A restriction, which is not acceptable.