Obtaining the Example Programs

If you're using a Web browser, you can get the examples from ftp://ftp.oreilly.com/published/oreilly/nutshell/emacs_extensions.

FTP

To use FTP, you need a machine with direct access to the Internet. A sample session is shown, with what you should type in boldface.

% ftp ftp.oreilly.com
Connected to ftp.oreilly.com.
220 FTP server (Version 6.21 Tue Mar 10 22:09:55 EST 1992) ready.
Name (ftp.oreilly.com:yourname): anonymous
331 Guest login ok, send domain style e-mail address as password.
Password: yourname@yourhost.com (use your user name and host here)
230 Guest login ok, access restrictions apply.
ftp> cd /published/oreilly/nutshell/emacs_extensions
250 CWD command successful.
ftp> binary (Very important! You must specify binary transfer for gzipped files.)
200 Type set to I.
ftp> get examples.tar.gz
200 PORT command successful.
150 Opening BINARY mode data connection for examples.tar.gz.
226 Transfer complete.
ftp> quit
221 Goodbye.
%

The file is a gzipped tar archive; extract the files from the archive by typing:

% gzip -dc examples.tar.gz | tar -xvf -

System V systems require the following tar command instead:

% gzip -dc examples.tar.gz | tar -xvof -

If gzip is not available on your system, use separate uncompress and tar commands.

% uncompress examples.tar.gz
% tar xvf examples.tar

Get Writing GNU Emacs Extensions now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.