From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: beginning-of-defun (again) Date: Thu, 29 Oct 2015 15:57:50 +0100 Message-ID: <87ziz17mdt.fsf@fencepost.gnu.org> References: <56320200.4050503@online.de> <20151029124605.GC2510@acm.fritz.box> <56321791.8040809@online.de> <878u6l94yr.fsf@fencepost.gnu.org> <56323162.30801@online.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446130687 18921 80.91.229.3 (29 Oct 2015 14:58:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 29 Oct 2015 14:58:07 +0000 (UTC) Cc: Alan Mackenzie , emacs-devel@gnu.org To: Andreas =?iso-8859-1?Q?R=F6hler?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 29 15:58:05 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 1ZroeM-00008T-NZ for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 15:57:58 +0100 Original-Received: from localhost ([::1]:44617 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZroeL-00030z-WA for ged-emacs-devel@m.gmane.org; Thu, 29 Oct 2015 10:57:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZroeH-0002xQ-87 for emacs-devel@gnu.org; Thu, 29 Oct 2015 10:57:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZroeG-0008UA-41 for emacs-devel@gnu.org; Thu, 29 Oct 2015 10:57:53 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:48064) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZroeG-0008U6-0g; Thu, 29 Oct 2015 10:57:52 -0400 Original-Received: from localhost ([127.0.0.1]:33650 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.82) (envelope-from ) id 1ZroeF-0002s3-Eo; Thu, 29 Oct 2015 10:57:51 -0400 Original-Received: by lola (Postfix, from userid 1000) id F07CBDF96B; Thu, 29 Oct 2015 15:57:50 +0100 (CET) In-Reply-To: <56323162.30801@online.de> ("Andreas =?iso-8859-1?Q?R=F6hler?= =?iso-8859-1?Q?=22's?= message of "Thu, 29 Oct 2015 15:46:58 +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: 2001:4830:134:3::e 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:192905 Archived-At: Andreas R=F6hler writes: > On 29.10.2015 14:31, David Kastrup wrote: >> Andreas R=F6hler writes: >> >>> On 29.10.2015 13:46, Alan Mackenzie wrote: >>>> Hello, Andreas. >>>> >>>> On Thu, Oct 29, 2015 at 12:24:48PM +0100, Andreas R=F6hler wrote: >>>>> Hi guys, >>>>> maybe it's time to have a reasonable default-behavior of >>>>> beginning-of-defun in Emacs Lisp. >>>>> IMO there is no reason for stuff like >>>>> open-paren-in-column-0-is-defun-start >>>> Unfortunately, there is. Setting it to nil ensures accurate recogniti= on >>>> of non-nested parens, >>> Sorry, Alan, but if there is no syntax expecting a start in column 0, >>> there is no reason to assume that. >>> >>> Relying on such means working in some cases, in other not. You won't >>> want that. >> If Emacs becomes too slow for useful work otherwise, that's no >> alternative to it sometimes making assumptions leading to bad >> highlighting. >> > > Where it was proven Emacs is slow WRT an reasonable implementation, if > such a thing doesn't exist? It's not more than 2 years ago or so that I had open-paren-in-column-0-is-defun-start set to nil for a while. I reset it eventually since it caused holdups in scheme-mode (which, being based on lisp-mode, is one of the most modern modes) when working on LilyPond. Possibly also for working on Elisp. I don't remember the details completely, but I do remember that I had usability reasons to reset it again to its default value. > AFAIK the current buggy one predates parse-partial-sexp and that part > was never reconsidered WRT pps since. parse-partial-sexp is not exactly new. --=20 David Kastrup