From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andreas =?UTF-8?Q?R=C3=B6hler?= Newsgroups: gmane.emacs.bugs Subject: bug#30726: [26.0.91 9] optimistic forward-sexp Date: Tue, 6 Mar 2018 08:16:47 +0100 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1520320584 29962 195.159.176.226 (6 Mar 2018 07:16:24 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 6 Mar 2018 07:16:24 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 To: 30726@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 06 08:16:19 2018 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 1et6pR-0005Qi-NI for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2018 08:16:05 +0100 Original-Received: from localhost ([::1]:53875 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et6rU-00067o-9n for geb-bug-gnu-emacs@m.gmane.org; Tue, 06 Mar 2018 02:18:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et6rO-00067T-4z for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:18:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et6rL-0008PQ-0C for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:18:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:38857) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1et6rK-0008PH-SX for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1et6rK-0004a1-D1 for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas =?UTF-8?Q?R=C3=B6hler?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 06 Mar 2018 07:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 30726 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.152032064117551 (code B ref -1); Tue, 06 Mar 2018 07:18:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 6 Mar 2018 07:17:21 +0000 Original-Received: from localhost ([127.0.0.1]:46754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et6qf-0004Z1-88 for submit@debbugs.gnu.org; Tue, 06 Mar 2018 02:17:21 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:35499) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1et6qd-0004Yp-Jt for submit@debbugs.gnu.org; Tue, 06 Mar 2018 02:17:20 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et6qX-0007yM-FW for submit@debbugs.gnu.org; Tue, 06 Mar 2018 02:17:14 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:37283) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1et6qX-0007yG-BH for submit@debbugs.gnu.org; Tue, 06 Mar 2018 02:17:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1et6qW-000636-6Z for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:17:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1et6qQ-0007x8-8k for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:17:12 -0500 Original-Received: from mout.kundenserver.de ([217.72.192.73]:50287) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1et6qP-0007v7-U0 for bug-gnu-emacs@gnu.org; Tue, 06 Mar 2018 02:17:06 -0500 Original-Received: from [192.168.178.35] ([188.100.68.149]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MabPt-1f8iww0Dw9-00K7L0 for ; Tue, 06 Mar 2018 08:17:03 +0100 Content-Language: en-US X-Provags-ID: V03:K0:1fRJuRXYi2gOVWSdfa5vltJq0cwgM66d+6eF2UEgjPnXvK4G+Ha arW21Si6QgU7StMDnMcTytHRynfThrVFKyZP0R6dU76H6Q+8p3U6/DmI/5Gb7R+NJXlU4yf IKOWVvwN+8SxmcDDJQZvgJetGCYfgHRGc1LAM/G+yD4ghVCiwAPYHaaU71lDw21ibY7u87j QnBhm3m7/qoLW5FAn9rHw== X-UI-Out-Filterresults: notjunk:1;V01:K0:tcppfO9DhxQ=:5wwV9apegUZDqPcxlxtW4Y GGBkIfwb8Ch3ymmIehlWbFOwXkuyFIr2SQdnpY6eOkg+R4DQh+ySmr8VVABPk1GbVO9m1ZKhE TXwePDkjPkbAkF92MqwKc8LDya5h/EwWREI9bfKD4Caf5PsxXX4rLPzUUXlByBf76E0/rRJg3 m1VSR1C0NSKK1SUKLbFJ/PIhBGznYGHG5yzBgqeAT/GspYmSFM1wwZvKAfAC4toeSb6CLavrV Tw2H1QGKfMzLdVYfWe5n09aTkN+uC4HRBLK1NZp6OIqaWB6N4kI/oF3jL5mdPx+BN5jOucVrx zQT+xHVFN/fCpmw5yoOcfP4Mc1F/8/BXvJJ2XQu7vXcHuyXKrZOTDVcEugUnrq2DUnG6dEdpw DbWwU4yoVmeGuTEl8mcaNpdQbjELECfoCuo4/Yx5YuLSWqkdLL4ZsXEJ/3ZWk/DsAG0N6nu6Y 7n869U4LjOhhB/3SbEzA4q/UGaNNryFz9FCN9q6UYPMCom/tRdtS9m0qUYjS/fJd476nohgVO v+mTPGpVRR/7AGJHhL5ltDYMGE4qd1fATIGB+jPw87XdfW9tkzWy8IggpeqEMJ+lCg42hqfgc xOQE8n2k+4CECadbxSqj8pOZsik2sUnkD40KawQInkVHNATFvulIVy9KrM1UIBBSa7kBKh5Z4 sMTxKeD8q+FJhuahRoJUgY1Bf3WOOKbVl+ZUjeqRRjGlMllqAsFoIcjRPsJ/EFS+6iCGWQIFP +tMLG4I6ZtS6Dq2pmb1qsUfYblUXU0GsBeZ/A8XG6AKr32cgcwtxeqiZ9tU= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:143949 Archived-At: In GNU Emacs 26.0.91 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2018-01-27 From https://emacs.stackexchange.com/questions/39253/sh-mode-scan-error-containing-expression-ends-prematurely Error occurs when forward-sexp is called from closing paren at last line of example code below (echo '#!/bin/bash' echo 'myfunc() {' echo "cat <<'z'" seq 135 echo zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz echo z echo '}') >out Bug-source is in but-last line of the def in lisp.el, where (goto-char (or (scan-sexps (point) arg) (buffer-end arg))) scan-sexps sends the error. Wrapping in into (ignore-errors... (or (ignore-errors (scan-sexps (point) arg)) makes it gone. Cheers, Andreas