From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Bremner Newsgroups: gmane.emacs.bugs Subject: bug#24882: 25.1; edebug-defun fails when lparen in string at BOL Date: Wed, 30 Nov 2016 07:59:44 -0400 Message-ID: <87h96pmb4f.fsf@tethera.net> References: <87k2cidpbb.fsf@zancas.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480507333 27759 195.159.176.226 (30 Nov 2016 12:02:13 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 30 Nov 2016 12:02:13 +0000 (UTC) Cc: 24882@debbugs.gnu.org To: Matt Armstrong , John Mastro Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 30 13:02:02 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC3aK-0005ZO-UO for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 13:02:01 +0100 Original-Received: from localhost ([::1]:43066 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC3aO-0004hD-Tb for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Nov 2016 07:02:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36622) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cC3Yb-0003d1-0M for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:00:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cC3YR-0007kk-O3 for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:00:13 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:59856) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cC3YR-0007kQ-LP for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:00:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cC3YR-0002jz-7g for bug-gnu-emacs@gnu.org; Wed, 30 Nov 2016 07:00:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: David Bremner Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 30 Nov 2016 12:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24882 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24882-submit@debbugs.gnu.org id=B24882.148050719210485 (code B ref 24882); Wed, 30 Nov 2016 12:00:03 +0000 Original-Received: (at 24882) by debbugs.gnu.org; 30 Nov 2016 11:59:52 +0000 Original-Received: from localhost ([127.0.0.1]:47022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC3YG-0002j3-K2 for submit@debbugs.gnu.org; Wed, 30 Nov 2016 06:59:52 -0500 Original-Received: from fethera.tethera.net ([198.245.60.197]:57835) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cC3YE-0002iv-KA for 24882@debbugs.gnu.org; Wed, 30 Nov 2016 06:59:51 -0500 Original-Received: from remotemail by fethera.tethera.net with local (Exim 4.84_2) (envelope-from ) id 1cC3Xp-0003TE-3v; Wed, 30 Nov 2016 06:59:25 -0500 Original-Received: (nullmailer pid 4255 invoked by uid 1000); Wed, 30 Nov 2016 11:59:44 -0000 In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126301 Archived-At: Matt Armstrong writes: > Indeed this heuristic appears to be intentional, justified by an apeal > to efficiency. The Emacs manual uses an example very similar to > `edebug-fail' above as a "what not to do" case: > https://www.gnu.org/software/emacs/manual/html_node/emacs/Left-Margin-Paren.html > > David, if you agree with this rationale, mind closing the bug? For what it's worth, I don't agree with the rationale. The debugger should work on all syntactically correct defuns. If left parens in the left margin are forbidden in emacs lisp, then I expect a syntax error during normal evaluation. At minimum, the debugger should detect this situation, rather than silently doing the wrong thing.