comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » IDL Workbench Nits
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL Workbench Nits [message #58059 is a reply to message #58002] Fri, 11 January 2008 08:49 Go to previous message
Bob[3] is currently offline  Bob[3]
Messages: 60
Registered: December 2006
Member
On Jan 10, 4:45 pm, Paul van Delst <Paul.vanDe...@noaa.gov> wrote:
> Bob Crawford wrote:
>> On Jan 10, 3:43 pm, Abraham campbell <abra...@ittvis.com> wrote:
>>> There is a difference between multi-line paste and single-line paste.
>>> When you paste multiple lines into the command line window, it
>>> immediately executes each line, one at a time, without displaying the
>>> lines in the command line, and without you being able to modify the
>>> command before it's executed.  (NOTE: The last line of a multi-line
>>> paste is also executed immediately.)  However, with a single-line paste,
>>> the command is left in the command line window, and not immediately
>>> executed, so that you can modify it before executing it.
>
>>> What you might be running into is the case where you have a single
>>> statement, but you have also copied a newline character at the end of
>>> the statement.  When you paste this into the command line, it will
>>> behave like a multi-line paste and immediately execute the (single)
>>> command and not give you a chance to edit the command before execution.
>
>>> The presence of a carriage return/newline character anywhere in the
>>> pasted text determines the difference between multi-line and single-line
>>> paste behavior.
>
>>> Abraham- Hide quoted text -
>
>>> - Show quoted text -
>
>> If that is the case, then the copy/paste behaviour could be made more
>> intuitive/consistent if when there is only one carriage return/newline
>> character in the text (ie it's a single-line paste that just happens
>> to have a newline at the end) it gets stripped off before pasting.
>
> I don't see how that follows. Sometimes I copy/paste single lines and I want the newline
> included. Other times I don't. It depends.

It was merely a suggestion on how to get the copy/paste function to
work as intended (as given by Abraham's first paragraph description)
by handing the case of accidental newline characters being copied on
otherwise single-line copy/paste functions.

... and imho hitting the <enter> key after all single-line copy/pastes
is much less hassle than having a single-line pasted command
unintentionally execute (when I wanted to modify it).

> All the c.l.i-p ng traffic about the Workbench would seem to indicate that letting the
> application make the choices behind-the-scenes is just bad mojo of the 10ft pole variety.

I would agree with that generally - but in this case it's the user who
may be inadvertantly telling the Workbench the wrong intention - cr/nl
characters being largely invisible and easily copied by accident (at
least on Windows)

Bob.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: how to sort data based on other sorted data
Next Topic: IDL 7 Epiphany

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 13:43:50 PDT 2025

Total time taken to generate the page: 0.56167 seconds