Thanks, Eric. Indeed -- a compiler logic bug. The two lines were being
connected, just as you surmised. It was introduced when Jmol's code became
free-form (like Java and JavaScript) -- believe it or not, back in Jmol
11.7.42:


x = 3
  + 10 +
  5

print x

  18

That continuation applies to only three commands:

x = ....
print ...
log ...

and the compiler wasn't distinguishing

x = ...

from

set x ....

in this particular instant and so thought it was still "in math mode". You
probably hit the only possible case where % (the only binary math operator
that can appear at the end of a line) appears at the end of a set command.
Wow! I certainly missed that.

That's fixed for 12.1.9 and 12.0.11. You can check here:

http://chemapps.stolaf.edu/jmol/docs/examples-12/Jmol-12.zip



The temporary work-around is to add a semicolon after that particular
statement:

set echo ename1 20% 50%;
font echo 25 sans bold
color echo yellow
echo Hello


Sorry about that!

Bob

ps -- By the way, if you have any line that uses ( ) or { } in the standard
way, you can continue to the next line anywhere between the open and close
of those now:


select (
    ala
 || gly
)




On Sat, Aug 28, 2010 at 5:21 PM, Eric Martz <[email protected]>wrote:

> The following script works (as I think it should) in e.g. 11.6.RC12,
> but fails in 12.0.9.
>
> set echo ename1 20% 50%
> font echo 25 sans bold
> color echo yellow
> echo Hello
>
> The failure is that the "font echo ..." command is ignored. The
> problem is revealed when you use Up Arrow to recall the commands. The
> command ending in "%" is concatenated onto the next ("font echo")
> command, e.g. this becomes a "single" (non-functional) command:
>
> set echo ename1 20% 50% font echo 25 sans bold
>
> The problem does not occur, of course, if you enter one command at a
> time. It is only when you paste in all 4 commands as a multi-line
> script that the problem occurs. It also occurs when the multi-line
> script is run via "script filename.spt".
>
> Again, this problem does NOT occur in 11.6.RC12 or 11.6.14.
>
> The problem DOES occur in 11.8.2 and in 11.9.1 as well as 12.0.9.
>
> --------------
> A regression (pertaining only to the application):
>
> In 11.6, echos were reported in the Jmol console in a bold blue font,
> very nice!
>
> But starting in 11.8.2 they are reported in the console in the same
> thin black font as entered commands, making it easy to overlook them
> and hard to find them.
>
> ---------------
> Now here's something weird. Another regression? I am testing in
> Safari in Mac OS X with current Apple Java 1.5.0_24.
>
> For over a year, I failed to realize that to paste scripts into the
> Jmol console on a Mac, you need to use the WINDOWS shortcut Ctrl-V
> instead of the expected Mac shortcut Cmd-V. (The only way I knew how
> was to block, drag, and drop.)
>
> In the APPLICATION Jmol console, the only way to paste in is with
> WINDOWS syntax (Ctrl-V); Mac Cmd-V fails. This is true for 11.6-12.0.
>
> In the APPLET Jmol console for 11.6.RC12, Cmd-V pastes in (HOORAY!)
> in a nice bold font. Ctrl-V does nothing.
>
> But in APPLET Jmol console for 12.0.9, we're back to having to use
> WINDOWS syntax; Mac syntax doesn't work!
>
> -Eric
>
>
>
> ------------------------------------------------------------------------------
> Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
> Be part of this innovative community and reach millions of netbook users
> worldwide. Take advantage of special opportunities to increase revenue and
> speed time-to-market. Join now, and jumpstart your future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



-- 
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to