bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36219: GNU Emacs 26.1 --eval rejects trailing whitespace


From: Eli Zaretskii
Subject: bug#36219: GNU Emacs 26.1 --eval rejects trailing whitespace
Date: Sat, 15 Jun 2019 16:54:52 +0300

> From: Noam Postavsky <npostavs@gmail.com>
> Date: Sat, 15 Jun 2019 09:33:10 -0400
> Cc: 36219@debbugs.gnu.org
> 
> <andpuke@foxmail.com> writes:
> 
> > Since commit a90d5e6309c0306d931d398506b242c3eb4f40d7 which fixes bug #23159
> > the `--eval' command line option signals (error "Trailing garbage following
> > expression: %s") on more than one expression recevied.
> 
> > This causes some old shell script snippets which has trailing newline for
> > formatting no longer works, such as the follow script from
> > https://orgmode.org/manual/Batch-Execution.html#Batch-Execution
> 
> 
> > Since `eval-expression' accepts additional white space and newlines after a
> > single expression, this mismatch behavior of `--eval' should be considered 
> > as a
> > bug.
> >
> > My proposed fix is apply `string-trim-right` to received string of 
> > expression.
> >
> 
> I think I'd prefer checking the trailing garbage for whitespace, which
> is what eval-expression does.  See following patch:

SGTM, thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]