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

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

bug#3226: here-document syntax inference and completion is broken


From: Paul Nienaber
Subject: bug#3226: here-document syntax inference and completion is broken
Date: Tue, 05 May 2009 15:15:00 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b5pre) Gecko/20090503 Shredder/3.0b3pre

Steps to reproduce:

Cook yourself up a bash script and type a line of code like:
for i in $(/bin/vim <<

A default emacs install will complete with "EOF\n\nEOF" (in a more clever fashion so the rest of the line is undisturbed), and place the cursor on the new blank line. This is incorrect behaviour, as it breaks entry of BASH here-strings when the user's intent is still ambiguous. This should only respond to things ending in, for example "<< " or possibly "<<E", but certainly NOT just "<<". Further, emacs does something outright wrong: An attempt to fix the situation by inserting another '<' between the "<<" and "EOF" +results in ANOTHER pair of "EOF" being inserted in a syntactically invalid way.


~Paul Nienaber








reply via email to

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