[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#30726: [26.0.91 9] optimistic forward-sexp
From: |
Glenn Morris |
Subject: |
bug#30726: [26.0.91 9] optimistic forward-sexp |
Date: |
Tue, 06 Mar 2018 02:47:44 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Andreas Röhler wrote:
> https://emacs.stackexchange.com/questions/39253/sh-mode-scan-error-containing-expression-ends-prematurely
Already reported as bug#30721.
(It would be great if people forwarding other people's stackexchange
issues would do basic checks first.)
> 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
Note that the OP meant you to run that as shell code to generate a file,
"out", and then visit it.
You appear to have discovered that using forward-sexp inside eg
(
)
will print "containing expression ends prematurely" ?