From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Oleh Krehel Newsgroups: gmane.emacs.devel Subject: Re: beginning-of-defun (again) Date: Thu, 29 Oct 2015 12:52:07 +0100 Message-ID: <87twp951ug.fsf@gmail.com> References: <56320200.4050503@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446119518 22528 80.91.229.3 (29 Oct 2015 11:51:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2015 11:51:58 +0000 (UTC) Cc: emacs-devel@gnu.org To: Andreas =?utf-8?Q?R=C3=B6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 29 12:51:52 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 1ZrlkD-0005eI-NV for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 12:51:49 +0100 Original-Received: from localhost ([::1]:43522 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZrlkD-0007Oo-8u for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 07:51:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42480) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrlk9-0007Oa-Ix for emacs-devel@gnu.org; Thu, 29 Oct 2015 07:51:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zrlk4-0000TC-Ix for emacs-devel@gnu.org; Thu, 29 Oct 2015 07:51:45 -0400 Original-Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:35547) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrlk4-0000T8-Bl for emacs-devel@gnu.org; Thu, 29 Oct 2015 07:51:40 -0400 Original-Received: by wicll6 with SMTP id ll6so225365318wic.0 for ; Thu, 29 Oct 2015 04:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=Hu/k8O9A+1ftSwKdQAyXDvoLb3GoQ1IRblTd/vODi5M=; b=U6EkyE9s4aKJWLEl5178RQ8n0mrIoBalzThWbqn6nnXQwM/XFJYcNQUyi0GvHwwCaF RtnwQ51Y5MWP8G/SqV1WrwMUyF4LxqO3kmud3dlJBX+AjvBZ1nQz90AQ2L/5KBOt6DQE Zn5afCoMImsk+22uaFrCWjhQbUQc/X5DdredWlUp+msJBfxw0XVkmkfoj6HzN/PVtx0R EbFRH3yysjuArPRL+Nw6fM0KWbhkEtwLUpUBlaeeuAEjMlbMDmCE7ZgnpwYKx3/jPtn9 srGEZv9+YWSSTulAAH0KHRXWXz7EsSnKWUNCvX5iKMp3V7mr0WoZ258B3ZmcPDkfJ39B uTUA== X-Received: by 10.194.172.1 with SMTP id ay1mr1694922wjc.101.1446119499764; Thu, 29 Oct 2015 04:51:39 -0700 (PDT) Original-Received: from firefly (dyn069045.nbw.tue.nl. [131.155.69.45]) by smtp.gmail.com with ESMTPSA id an7sm1387850wjc.44.2015.10.29.04.51.38 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Thu, 29 Oct 2015 04:51:38 -0700 (PDT) In-Reply-To: <56320200.4050503@online.de> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6hler\?\= \=\?utf-8\?Q\?\=22's\?\= message of "Thu, 29 Oct 2015 12:24:48 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::236 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:192880 Archived-At: Hi Andreas, Andreas R=C3=B6hler 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. > 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. And there's nothing else that makes "(" be on a new line, except for rare cases 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