annotate README @ 83420:521d3f18b3d1

Reimplement terminal parameters in C; clean up term.c, create terminal.c. * lisp/termdev.el (terminal-parameter-alist, terminal-parameters, terminal-parameter-p) (terminal-parameter, set-terminal-parameter, terminal-handle-delete-frame): Remove. * src/term.c (Vring_bell_function, device_list, initial_device) (next_device_id, ring_bell, update_begin, update_end) (set_terminal_window, cursor_to, raw_cursor_to) (clear_to_end, clear_frame, clear_end_of_line) (write_glyphs, insert_glyphs, delete_glyphs, ins_del_lines) (get_device, Fdisplay_name, create_device, delete_device) (Fdelete_display, Fdisplay_live_p, Fdisplay_list) Move to terminal.c. (syms_of_term): Move their initialization to terminal.c. * src/terminal.c: New file. (device_list, next_device_id, initial_device, Vring_bell_function) (ring_bell, update_begin, update_end, set_terminal_window) (cursor_to, raw_cursor_to, clear_to_end, clear_frame) (clear_end_of_line, write_glyphs, insert_glyphs, delete_glyphs) (ins_del_lines, get_device, create_device, delete_device) (Fdelete_display, Fdisplay_live_p, Fdisplay_list, Fdisplay_name): Move here. (mark_devices, get_terminal_param, store_terminal_param) (Fterminal_parameters, Fterminal_parameter) (Fmodify_terminal_parameters, Fset_terminal_parameter) (init_initial_device, delete_initial_device) (syms_of_terminal): New functions. * lisp/simple.el (normal-erase-is-backspace-setup-frame) (normal-erase-is-backspace-mode): Rephrase things without terminal-parameter-p. * lisp/termdev.el (terminal-getenv, terminal-setenv) (with-terminal-environment): Ditto. * mac/makefile.MPW (EmacsObjects): Add terminal.c.x. ({Src}terminal.c.x): Add dependencies. * src/Makefile.in (obj): Add terminal.o. (terminal.o): Add dependencies. [HAVE_CARBON]: Make terminal.o depend on macgui.h. * src/alloc.c (mark_devices): Declare. (Fgarbage_collect): Call `mark_devices'. * src/dispextern.h (set_scroll_region, turn_off_insert) (turn_off_highlight, background_highlight, clear_end_of_line_raw) (tty_clear_end_of_line, tty_setup_colors, delete_tty): Remove. (raw_cursor_to, clear_to_end, tty_turn_off_insert) (tty_turn_off_highlight): Add declaration. * src/emacs.c (main): Call `syms_of_terminal'. * src/frame.c (get_future_frame_param): New function. (Fmake_terminal_frame): Use it. * src/keyboard.c (pop_kboard): Remove unused variable. (Fset_output_flow_control): Return nil. * src/keymap.h (Fset_keymap_parent): Add EXFUN. * src/lisp.h (syms_of_terminal): Declare it. * src/sysdep.c (reset_sys_modes): Update for renames. * src/term.c (set_scroll_region): Rename to `tty_set_scroll_region'. (turn_on_insert): Rename to `tty_turn_on_insert'. (turn_off_insert): Rename to `tty_turn_off_insert'. (turn_off_highlight): Rename to `tty_turn_off_highlight'. (turn_on_highlight): Rename to `tty_turn_on_highlight'. (toggle_highligh): Rename to `tty_toggle_highlight'. (background_highlight): Rename to `tty_background_highlight'. (highlight_if_desired): Rename to `tty_highlight_if_desired'. (tty_ring_bell, tty_update_end, tty_set_terminal_window) (tty_set_scroll_region, tty_background_highlight) (tty_cursor_to, tty_raw_cursor_to, tty_clear_to_end) (tty_clear_frame, tty_clear_end_of_line, tty_write_glyphs) (tty_insert_glyphs, tty_delete_glyphs, tty_ins_del_lines) (term_get_fkeys, tty_setup_colors, dissociate_if_controlling_tty) (delete_tty): Add static modifier. (tty_reset_terminal_modes, tty_set_terminal_window) (tty_set_scroll_region, tty_background_highlight) (tty_highlight_if_desired, tty_cursor_to) (tty_raw_cursor_to, tty_clear_to_end, tty_clear_frame) (tty_clear_end_of_line, tty_write_glyphs, tty_insert_glyphs) (tty_delete_glyphs, tty_ins_del_lines, turn_on_face): Update for renames. * src/termhooks.h (param_alist): New member to struct device. * src/xterm.h (x_delete_device): Declare. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-460
author Karoly Lorentey <lorentey@elte.hu>
date Sun, 25 Dec 2005 20:06:58 +0000
parents 35ba943c8399
children c1e013e3dc0e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
83373
35ba943c8399 Set Emacs version number to 22.0.51 to allow parallel installations of CVS trunk and the multi-tty branch.
Karoly Lorentey <lorentey@elte.hu>
parents: 59996
diff changeset
1 This directory tree holds version 22.0.51 of GNU Emacs, the extensible,
25856
Dave Love <fx@gnu.org>
parents:
diff changeset
2 customizable, self-documenting real-time display editor.
Dave Love <fx@gnu.org>
parents:
diff changeset
3
Dave Love <fx@gnu.org>
parents:
diff changeset
4 You may encounter bugs in this release. If you do, please report
Dave Love <fx@gnu.org>
parents:
diff changeset
5 them; your bug reports are valuable contributions to the FSF, since
Dave Love <fx@gnu.org>
parents:
diff changeset
6 they allow us to notice and fix problems on machines we don't have, or
Dave Love <fx@gnu.org>
parents:
diff changeset
7 in code we don't use often. See the file BUGS for more information on
Dave Love <fx@gnu.org>
parents:
diff changeset
8 how to report bugs.
Dave Love <fx@gnu.org>
parents:
diff changeset
9
36122
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
10 See the file etc/NEWS for information on new features and other
36792
f4f0878e1455 Minor changes from Kim Storm <storm@filanet.dk>.
Eli Zaretskii <eliz@gnu.org>
parents: 36541
diff changeset
11 user-visible changes in recent versions of Emacs.
25856
Dave Love <fx@gnu.org>
parents:
diff changeset
12
Dave Love <fx@gnu.org>
parents:
diff changeset
13 The file INSTALL in this directory says how to bring up GNU Emacs on
36792
f4f0878e1455 Minor changes from Kim Storm <storm@filanet.dk>.
Eli Zaretskii <eliz@gnu.org>
parents: 36541
diff changeset
14 various systems, once you have loaded the entire subtree of this
f4f0878e1455 Minor changes from Kim Storm <storm@filanet.dk>.
Eli Zaretskii <eliz@gnu.org>
parents: 36541
diff changeset
15 directory.
25856
Dave Love <fx@gnu.org>
parents:
diff changeset
16
Dave Love <fx@gnu.org>
parents:
diff changeset
17 The file etc/PROBLEMS contains information on many common problems that
Dave Love <fx@gnu.org>
parents:
diff changeset
18 occur in building, installing and running Emacs.
Dave Love <fx@gnu.org>
parents:
diff changeset
19
Dave Love <fx@gnu.org>
parents:
diff changeset
20 Reports of bugs in Emacs should be sent to the mailing list
Dave Love <fx@gnu.org>
parents:
diff changeset
21 bug-gnu-emacs@gnu.org. See the "Bugs" section of the Emacs
Dave Love <fx@gnu.org>
parents:
diff changeset
22 manual for more information on how to report bugs. (The file `BUGS'
Dave Love <fx@gnu.org>
parents:
diff changeset
23 in this directory explains how you can find and read that section
Dave Love <fx@gnu.org>
parents:
diff changeset
24 using the Info files that come with Emacs.) See `etc/MAILINGLISTS'
Dave Love <fx@gnu.org>
parents:
diff changeset
25 for more information on mailing lists relating to GNU packages.
Dave Love <fx@gnu.org>
parents:
diff changeset
26
36792
f4f0878e1455 Minor changes from Kim Storm <storm@filanet.dk>.
Eli Zaretskii <eliz@gnu.org>
parents: 36541
diff changeset
27 The `etc' subdirectory contains several other files, named in capital
f4f0878e1455 Minor changes from Kim Storm <storm@filanet.dk>.
Eli Zaretskii <eliz@gnu.org>
parents: 36541
diff changeset
28 letters, which you might consider looking at when installing GNU
f4f0878e1455 Minor changes from Kim Storm <storm@filanet.dk>.
Eli Zaretskii <eliz@gnu.org>
parents: 36541
diff changeset
29 Emacs.
25856
Dave Love <fx@gnu.org>
parents:
diff changeset
30
Dave Love <fx@gnu.org>
parents:
diff changeset
31 The file `configure' is a shell script to acclimate Emacs to the
Dave Love <fx@gnu.org>
parents:
diff changeset
32 oddities of your processor and operating system. It creates the file
Dave Love <fx@gnu.org>
parents:
diff changeset
33 `Makefile' (a script for the `make' program), which automates the
Dave Love <fx@gnu.org>
parents:
diff changeset
34 process of building and installing Emacs. See INSTALL for more
Dave Love <fx@gnu.org>
parents:
diff changeset
35 detailed information.
Dave Love <fx@gnu.org>
parents:
diff changeset
36
Dave Love <fx@gnu.org>
parents:
diff changeset
37 The file `configure.in' is the input used by the autoconf program to
36268
475b449e3903 Amend autoconf/configure stuff.
Dave Love <fx@gnu.org>
parents: 36122
diff changeset
38 construct the `configure' script. Since Emacs has some configuration
475b449e3903 Amend autoconf/configure stuff.
Dave Love <fx@gnu.org>
parents: 36122
diff changeset
39 requirements that autoconf can't meet directly, and for historical
475b449e3903 Amend autoconf/configure stuff.
Dave Love <fx@gnu.org>
parents: 36122
diff changeset
40 reasons, `configure.in' uses an unholy marriage of custom-baked
475b449e3903 Amend autoconf/configure stuff.
Dave Love <fx@gnu.org>
parents: 36122
diff changeset
41 configuration code and autoconf macros. If you want to rebuild
475b449e3903 Amend autoconf/configure stuff.
Dave Love <fx@gnu.org>
parents: 36122
diff changeset
42 `configure' from `configure.in', you will need to install a recent
475b449e3903 Amend autoconf/configure stuff.
Dave Love <fx@gnu.org>
parents: 36122
diff changeset
43 version of autoconf and GNU m4.
36122
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
44
25856
Dave Love <fx@gnu.org>
parents:
diff changeset
45 The file `Makefile.in' is a template used by `configure' to create
Dave Love <fx@gnu.org>
parents:
diff changeset
46 `Makefile'.
Dave Love <fx@gnu.org>
parents:
diff changeset
47
Dave Love <fx@gnu.org>
parents:
diff changeset
48 The file `make-dist' is a shell script to build a distribution tar
Dave Love <fx@gnu.org>
parents:
diff changeset
49 file from the current Emacs tree, containing only those files
Dave Love <fx@gnu.org>
parents:
diff changeset
50 appropriate for distribution. If you make extensive changes to Emacs,
Dave Love <fx@gnu.org>
parents:
diff changeset
51 this script will help you distribute your version to others.
Dave Love <fx@gnu.org>
parents:
diff changeset
52
Dave Love <fx@gnu.org>
parents:
diff changeset
53 There are several subdirectories:
Dave Love <fx@gnu.org>
parents:
diff changeset
54
42214
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
55 `src' holds the C code for Emacs (the Emacs Lisp interpreter and
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47784
diff changeset
56 its primitives, the redisplay code, and some basic editing
42214
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
57 functions).
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
58 `lisp' holds the Emacs Lisp code for Emacs (most everything else).
49600
23a1cea22d13 Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents: 47784
diff changeset
59 `leim' holds the library of Emacs input methods, Lisp code and
42214
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
60 auxiliary data files required to type international characters
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
61 which can't be directly produced by your keyboard.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
62 `lib-src' holds the source code for some utility programs for use by or
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
63 with Emacs, like movemail and etags.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
64 `etc' holds miscellaneous architecture-independent data files
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
65 Emacs uses, like the tutorial text and the Zippy the Pinhead
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
66 quote database. The contents of the `lisp', `leim', `info',
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
67 `man', `lispref', and `lispintro' subdirectories are
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
68 architecture-independent too.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
69 `info' holds the Info documentation tree for Emacs.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
70 `man' holds the source code for the Emacs Manual. If you modify the
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
71 manual sources, you will need the `makeinfo' program to produce
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
72 an updated manual. `makeinfo' is part of the GNU Texinfo
46404
24100426242b Mention Texinfo 4.2 needed.
Richard M. Stallman <rms@gnu.org>
parents: 45511
diff changeset
73 package; you need version 4.2 or later of Texinfo.
42214
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
74 `lispref' holds the source code for the Emacs Lisp reference manual.
41438
ae71c1ab060d Add lispintro.
Eli Zaretskii <eliz@gnu.org>
parents: 41050
diff changeset
75 `lispintro' holds the source code for the Introduction to Programming
ae71c1ab060d Add lispintro.
Eli Zaretskii <eliz@gnu.org>
parents: 41050
diff changeset
76 in Emacs Lisp manual.
25856
Dave Love <fx@gnu.org>
parents:
diff changeset
77
42214
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
78 `msdos' holds configuration files for compiling Emacs under MSDOG.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
79 `vms' holds instructions and useful files for running Emacs under VMS.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
80 `nt' holds various command files and documentation files that pertain
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
81 to building and running Emacs on Windows 9X/ME/NT/2000/XP.
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
82 `mac' holds instructions, sources, and other useful files for building
515351759218 Add info about the `leim' directory
Eli Zaretskii <eliz@gnu.org>
parents: 41438
diff changeset
83 and running Emacs on the Mac.
36122
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
84
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
85 Building Emacs on non-Posix platforms requires to install tools
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
86 that aren't part of the standard distribution of the OS. The
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
87 platform-specific README files and installation instructions should
e6572f8d3aa8 Document that Texinfo 4.0 or later is required for producing the manual.
Eli Zaretskii <eliz@gnu.org>
parents: 36104
diff changeset
88 list the required tools.
47784
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
89
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
90 VMS info:
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
91
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
92 Emacs 19.x and above do not compile out of the box on OpenVMS.
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
93 Richard Levitte <levitte@lp.se> is distributing and maintaining a
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
94 version of Emacs (currently based on version 19.28, but soon moving to
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
95 19.34 and then 20.1) that compiles and works on OpenVMS 5.5 and above
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
96 on both VAX and Alpha architectures. For more information see
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
97
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
98 http://vms.gnu.org/software/released1/emacs.html#get_emacs_1928_kit
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
99
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
100 There is also some effort going on with Emacs 21. Source code is
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
101 available at ftp://ftp.nvg.ntnu.no/pub/vms/emacs/. Look for most
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
102 recent stuff with ls -lta.
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
103
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
104 It is a working "development" version (editing and much more works).
a51c8430272f Add info on VMS versions.
Richard M. Stallman <rms@gnu.org>
parents: 46404
diff changeset
105 More developers are needed; contact roart@nvg.ntnu.no.