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.devel Subject: Re: beginning-of-defun (again) Date: Thu, 29 Oct 2015 13:11:38 +0100 Message-ID: <56320CFA.70606@online.de> References: <56320200.4050503@online.de> <87twp951ug.fsf@gmail.com> 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 1446120704 9876 80.91.229.3 (29 Oct 2015 12:11:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2015 12:11:44 +0000 (UTC) Cc: emacs-devel@gnu.org To: Oleh Krehel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 29 13:11:26 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 1Zrm3B-0004rb-Sa for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 13:11:26 +0100 Original-Received: from localhost ([::1]:43741 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrm3B-0005Ac-90 for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 08:11:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48848) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrm36-0005AQ-J2 for emacs-devel@gnu.org; Thu, 29 Oct 2015 08:11:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zrm32-00063k-E3 for emacs-devel@gnu.org; Thu, 29 Oct 2015 08:11:20 -0400 Original-Received: from mout.kundenserver.de ([212.227.17.13]:54306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrm32-00063Q-8D for emacs-devel@gnu.org; Thu, 29 Oct 2015 08:11:16 -0400 Original-Received: from [192.168.178.31] ([77.12.74.197]) by mrelayeu.kundenserver.de (mreue101) with ESMTPSA (Nemesis) id 0Lba15-1aKGMr2cXb-00lGH6; Thu, 29 Oct 2015 13:11:14 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.9) Gecko/20100915 Thunderbird/3.1.4 In-Reply-To: <87twp951ug.fsf@gmail.com> X-Provags-ID: V03:K0:eV/mnm1P8o/f5Vc+abct5B8odWUGUEB5Go6PsQEX6E0kJWwGjTk /3dsSYZEO0IQJw6z9gKnobydmuE/ltO1UVgy2IG2F54lojB5wVzAs1JJfEhYrwGEp1NOaiR E0HpbnqpQN0whfMcEMtOAceVyi3s5mmAVsrIlmzfdwBUKT4HklDsMVIqCWo1cddNIRbI1+5 ox3zm2fLMJjGU1GG/OwBA== X-UI-Out-Filterresults: notjunk:1;V01:K0:QVxrboAEGzQ=:7DmHGeDKXnGlAedD40LPm6 WT8c/FDpcFNvtGP0pNzkK4zcdK4Wm70HW8TAudNAlqJdTlr3G6gq4UwqXqPp5X0p/EYuC/3RI sIVbNBv6kLT3EeZeWsnYkpzbSDnZALLVQ1EpeOF60yY7YGqzu4rX1qWPYWREn0qYIJZK6z6Jo /2Dij8PkPTOcCCX6SCtdS5zMeKf1y/cmvdmY4VnMBBhlMLF+lTHrMq9c5BXBIUYqCCL8gfnPR EWFr6bax42QmSn++Q05q4xVMQHn6Z0A14cR9Cd9x34JK2kpZWAF+J32aT+MwzA/NCVtMoo8tn w4/5KTPG49Xc/Jl33XCGfbjQKC2qQBU1bvLoSisLm/HudH7nFSE51CCL15VOHKVv0q2mQoMc9 SBGKpI0ZQLX1LiKY5ytdoZBy1HwBHX1Be7AZyI3M/g/gY5OkxsYP3v6BKDmPeh5zhi4OeTqls Ls/F2SkzzPrjPMJY7JGL8fQh2zKR1sioqjodbgOKjgZSfFgwE0JRt1a45EoEyAVLTWgeZFGkk RT/i/1g1rOZCWP3eIuMBObUZcFR1pCrcfd0pTHfrqtQlUVceo2TfatQ78aibVzi676rbdG1Vq tNVUTslyVzg4dbTWawEQhNqKNs9jTbJNqeAxEv04miuzJf7Won/dm7B1wQv6GwdkkuYvrzZ59 Osk3hgFu9GKxBVqIYPfkjBVcMwTO/aRKEntRwqNG7d8tCe0Z0Q6cE8QdkuuYcnj4SOsGuaQ3k bl9y+XEqvjt0NEJI X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.17.13 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:192881 Archived-At: On 29.10.2015 12:52, Oleh Krehel wrote: > Hi Andreas, > > Andreas Röhler writes: > >> maybe it's time to have a reasonable default-behavior of >> beginning-of-defun in Emacs Lisp. > I think it works pretty well as is. > Unfortunatly not. When started from inside a string, which has an open paren at column 0, the default will stop there. Try from "bar": (defun foo () (insert " (bar)")) >> open-paren-in-column-0-is-defun-start > It's a strange variable that doesn't seem to do anything. The only > relevant setting is 0 or non-zero (the default). Setting it to 0 seems > to do nothing. Maybe someone could explain what it actually does. > >> A function resp. top-level-form starts if the beginning of a list is >> followed by a respective keyword. >> The list of keywords being customizable seems a plus :) > There's no reason for a defun to not start on a newline. Modes should honor the syntax, not impose conventions. > And there's > nothing else that makes "(" be on a new line, except for rare cases There is a plenty of rare cases, notably when meta-programming, i.e. if code is delivered by strings for insertion. > in > docstrings, where it can be escaped. So it seems that the problem is > already solved in a good way, without having to customize anything. > > Oleh