Gosling Emacs Explained

Gosling Emacs / Unipress Emacs
Author:James Gosling
Developer:UniPress
Operating System:Unix, VMS
Programming Language:C
Genre:Text editor

Gosling Emacs (often shortened to "Gosmacs" or "gmacs") is a discontinued Emacs implementation written in 1981 by James Gosling in C.

Gosling initially allowed Gosling Emacs to be redistributed with no formal restrictions, as required by the "Emacs commune" since the 1970s,[1] only asking for a letter acknowledging his authorship.[2] Later, wishing to move on and after a failed search for people who would maintain it under the same rights, he finally sold his version of Emacs to UniPress because they agreed to sell it under reasonable terms. The dispute between Richard Stallman and UniPress inspired the creation of the first formal license for Emacs, which later became the GPL, as Congress had introduced copyright for software in 1980.[3]

Features

Gosling Emacs was especially noteworthy because of the effective redisplay code, which used a dynamic programming technique to solve the classical string-to-string correction problem. The algorithm was quite sophisticated; that section of the source was headed by a skull-and-crossbones in ASCII art,[4] warning any would-be improver that even if they thought they understood how the display code worked, they probably did not.

Distribution

Since Gosling had permitted its unrestricted redistribution, Richard Stallman used some Gosling Emacs code in the initial version of GNU Emacs.[5] Among other things, he rewrote part of the Gosling code headed by the skull-and-crossbones comment and made it "...shorter, faster, clearer and more extensible."

In 1983 UniPress began selling Gosling Emacs on Unix for $395 and on VMS for $2,500, marketing it as "EMACS–multi-window text editor (Gosling version)".[6]

Controversially, Unipress asked Stallman to stop distributing his version of Emacs for Unix.[7] UniPress never took legal action against Stallman or his nascent Free Software Foundation, believing "hobbyists and academics could never produce an Emacs that could compete" with their product. All Gosling Emacs code was removed from GNU Emacs by version 16.56 (July 1985),[8] with the possible exception of a few particularly involved sections of the display code. The latest versions of GNU Emacs (since August 2004) do not feature the skull-and-crossbones warning.

Extension language

Its extension language, Mocklisp, has a syntax that appears similar to Lisp, but Mocklisp does not have lists, only strings and arrays. The Mocklisp interpreter, built by Gosling and a collaborator, was replaced by a full Lisp interpreter in GNU Emacs.[7]

References

Notes and References

  1. Book: 6. The Emacs Commune. https://www.oreilly.com/openbook/freedom/ch06.html. Free as in freedom. 0-596-00287-4. Sam Williams. 2002. "O'Reilly Media, Inc." .
  2. Web site: Oral History of James Gosling, part 1 of 2 . Hansen Hsu and Marc Weber . 10 October 2019 . youtube . Computer History Museum . 5 June 2023.
  3. Book: 9. The GNU General Public License. https://www.oreilly.com/openbook/freedom/ch09.html. Free as in freedom. 0-596-00287-4. Sam Williams. 2002. "O'Reilly Media, Inc." . registration.
  4. Web site: Ultra-hot screen management package . . n.d. . February 12, 2022.
  5. Book: Making and Unmaking Intellectual Property . Christopher Kelty . Mario Biagioli . Peter Jaszi . Martha Woodmansee . 2015 . University of Chicago Press . 9780226172491 . ...Stallman was using code from Gosling, based on permission that Gosling had given to Labalme, but Labalme had written code for Gosling that he had commercialized without telling Labalme..
  6. News: Unix Spoken Here / and MS-DOS, and VMS too! . BYTE . Dec 1983 . 8 March 2016 . 334 . advertisement.
  7. Book: 7. A Stark Moral Choice. https://www.oreilly.com/openbook/freedom/ch07.html. Free as in freedom. 0-596-00287-4. Sam Williams. 2002. "O'Reilly Media, Inc." . According to the developer, Gosling, while a PhD student at Carnegie Mellon, had assured early collaborators that their work would remain accessible. When UniPress caught wind of Stallman's project, however, the company threatened to enforce the copyright...In the course of reverse-engineering Gosling's interpreter, Stallman would create a fully functional Lisp interpreter, rendering the need for Gosling's original interpreter moot. . registration.
  8. Web site: Emacs timeline. Jamie Zawinski. 8 March 1999.