|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #59916] Embedded tabs are executed when code is pasted in to command window |
Date: | Wed, 20 Jan 2021 13:48:43 -0500 (EST) |
User-agent: | Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Safari/537.36 |
Update of bug #59916 (project octave): Category: Octave Function => Interpreter Priority: 5 - Normal => 2 Item Group: Unexpected Error or Warning => Other Status: Need Info => Confirmed Summary: using % <comment> after end end-statement => Embedded tabs are executed when code is pasted in to command window _______________________________________________________ Follow-up Comment #4: Re-titling the bug, and lowering the priority. When code is pasted in to the Command Window that contains tabs, the interpreter/readline attempts to complete matches. This is not desirable, although there may be no way for the parser to understand whether it is dealing with pasted text versus typed input. For testing, I attach a file tst_tab.m. Copy the text in the file and then paste it in to an Octave Command Window. The result is octave:1> for t = 1:2 > end end endfor endmethods endswitch endclassdef endfunction endparfor end_try_catch endenumeration endgrent endproperties end_unwind_protect endevents endif endpwent endwhile > end% tab-comment (file #50757) _______________________________________________________ Additional Item Attachment: File name: tst_tab.m Size:0 KB <https://file.savannah.gnu.org/file/tst_tab.m?file_id=50757> _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?59916> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |