jrincayc / ucblogo-code

Berkeley Logo interpreter
https://people.eecs.berkeley.edu/~bh/logo.html
GNU General Public License v3.0
187 stars 34 forks source link

EDIT omits " upon close & accept change (v6.1 running on MacOS 10.13.6) #72

Closed kgochko closed 1 year ago

kgochko commented 3 years ago

download Logo v6.1 from https://people.eecs.berkeley.edu/~bh/logo.html intall in /Applications click on UCB-Logo Icon

to "junk pr "FOO end

junk FOO

po "junk to junk pr "FOO end

ed "junk to junk pr "foo end close & accept changes

po "junk to junk pr foo end

junk I don't know how. to. foo in junk

ed "junk to junk pr "bar end close & accept changes

save f erall load f

po "junk to junk pr bar end ed "junk to junk pr "bar end

brianharvey commented 3 years ago

I can't duplicate this on MacOS 10.13. What platform are you on?

kgochko commented 3 years ago

Mid 2010 21.5” iMac running under macOS v10.13.6 3.06 GHz Intel Core i3 16 GB 1333 MHz DDR3 500 GB SSD ATI Radeon HD 4670 256 MB

I’ll try re-downloading & re-installing Logo to see what happens.

On Dec 7, 2020, at 6:57 PM, Brian Harvey notifications@github.com wrote:

I can't duplicate this on MacOS 10.13. What platform are you on?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jrincayc/ucblogo-code/issues/72#issuecomment-740254353, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJ7QZHSAC6EYLQZ3PEY53E3STVTWZANCNFSM4URFRO5Q.

kgochko commented 3 years ago

I deleted the old version of USB-Logo. re-downloaded v6.1 macOS version from https://people.eecs.berkeley.edu/~bh/logo.html unpacked (but didn't install) USBLogo.dmg clicked on the USBLogo icon got the exact same behavior.

I am able to use an external editor (Emacs) & use the LOAD command to get working procedures.

dmalec commented 3 years ago

I can replicate closely enough on OSX 10.15.7 I suspect I'm seeing the same underlying issue.

If I go to System Preferences -> Keyboard -> Text and toggle the Use smart quotes and dashes setting to checked, I see similar behavior:

? to junk
> pr "FOO
> end
junk defined
? junk
FOO
? po "junk
to junk
pr "FOO
end

? ed "junk

Go into internal editor and just change FOO to foo

to junk
pr “foo
end

Close and accept changes

? po "junk
to junk
pr    foo
end

? junk
I don't know how  to    foo  in junk
[pr    foo]
? 

Interestingly, the extended space in front of foo copy/pastes as “ (supporting smart quotes being the issue).

If I toggle Use smart quotes and dashes to unchecked (which is how I usually run), editing works as expected.

kgochko commented 3 years ago

That solved the problem (Smart Quotes was checked -- I didn't even know it existed) thanks for the help

dmalec commented 3 years ago

You're welcome, no worries :)