1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-25 05:52:42 -08:00
emacs/src
Karoly Lorentey 9628b8878f lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work.
(here): New variable.
(decode_options): Use it.
(ec_get_tty, ec_set_tty, init_tty, window_change, hang_up_signal): New functions.
(window_change_signal, init_signals, reset_tty, init_pty, copy_from_to): Ditto.
(pty_conversation): Ditto.
(main): Use them.
(master, pty_name, old_tty, tty, old_tty_valid, tty_erase_char): New variables.
(flow_control, meta_key, _sobuf, in_conversation, quit_conversation): Ditto.

lisp/server.el (server-process-filter): Added support for opening a new terminal frame.

dispextern.h (get_frame_size): Renamed to get_tty_size, added tty_output parameter.

dispnew.c (Fredraw_frame): fflush the current terminal instead of stdout.
(direct_output_for_insert, direct_output_forward_char, update_frame_1): Ditto.
(Fding, bitch_at_user): Ditto.
(update_frame_1): Count pending output for current terminal instead of stdout.
(window_change_signal): Resize all terminals.
(change_frame_size): Don't resize all terminals to the same size.

frame.c (Vterminal_frame): Removed.
(syms_of_frame): Removed declaration of Vterminal_frame.
(make_terminal_frame): Set the top frame of the terminal to the new frame.
(Fmake_terminal_frame): Get a new frame size from get_tty_size, don't copy it.
(do_switch_frame): Handle terminal frame visibility.
(next_frame, prev_frame): Skip over frames on different terminals.

frame.h (Vterminal_frame): Removed.

keyboard.c (input_fd): Removed.
(read_avail_input): Removed first argument from read_socket_hook.
Try to read from each available tty, until one succeeds.
(Fsuspend_emacs): Don't suspend if there are multiple terminals.

lisp.h (get_frame_size): Removed superflous declaration.

xterm.c (Xtread_socket): Removed first parameter.
macterm.h (XTread_socket): Ditto.
w32inevt.c (w32_console_read_socket): Ditto.
w32term.c (w32_read_socket): Ditto.

sysdep.c (input_fd): Removed.
(change_input_fd): Removed.
(discard_tty_input): Discard pending input on _all_ input descriptors.
(stuff_char, tabs_safe_p): Use current terminal instead of input_fd.
(init_baud_rate, request_sigio, unrequest_sigio): Ditto.
(init_sys_modes, reset_sys_modes): Ditto.
(narrow_foreground_group, widen_foreground_group): Use stdin.
(init_sys_modes, reset_sys_modes): otty parameter renamed to tty_out.
(get_frame_size): Renamed to get_tty_size, added tty_out parameter.

term.c (read_socket_hook): Removed first parameter.
(clear_end_of_line): Use updating_frame, if possible.
(write_glyphs, insert_glyphs, ins_del_lines): Ditto.
(term_init): Renamed get_frame_size to get_tty_size.

termchar.h (struct tty_output): New entries: top_frame,
previous_terminal_frame.

termhooks.h (read_socket_hook): Removed first parameter.

window.c (init_window_once): Removed reference to Vterminal_frame.

xdisp.c (previous_terminal_frame): Moved to struct tty_output.
(redisplay_internal): Updated to use previous_terminal_frame in tty_output.
Allow for simultaneous refresh of multiple ttys.


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-5
2003-12-26 04:24:54 +00:00
..
bitmaps
m (XPNTR): Don't redefine. 2003-11-18 00:17:42 +00:00
s (LD_SWITCH_SYSTEM_TEMACS) 2003-11-24 13:13:14 +00:00
.dbxinit
.gdbinit Add arch taglines 2003-09-01 15:45:59 +00:00
.gdbinit-union Add arch taglines 2003-09-01 15:45:59 +00:00
.gitignore
abbrev.c Add arch taglines 2003-09-01 15:45:59 +00:00
acldef.h Add arch taglines 2003-09-01 15:45:59 +00:00
alloc.c (make_float, Fcons): Clear the markbit at init time. 2003-11-18 00:39:13 +00:00
alloca.c Add arch taglines 2003-09-01 15:45:59 +00:00
atimer.c Add arch taglines 2003-09-01 15:45:59 +00:00
atimer.h Don't include lisp.h. 2003-09-19 14:36:22 +00:00
blockinput.h Add arch taglines 2003-09-01 15:45:59 +00:00
buffer.c (syms_of_buffer): Document %i' and %I' constructs for 2003-09-08 07:52:23 +00:00
buffer.h Add arch taglines 2003-09-01 15:45:59 +00:00
bytecode.c (mark_byte_stack, unmark_byte_stack): Ignore the markbit. 2003-09-11 21:58:32 +00:00
callint.c Add arch taglines 2003-09-01 15:45:59 +00:00
callproc.c Add arch taglines 2003-09-01 15:45:59 +00:00
casefiddle.c Add arch taglines 2003-09-01 15:45:59 +00:00
casetab.c Add arch taglines 2003-09-01 15:45:59 +00:00
category.c Add arch taglines 2003-09-01 15:45:59 +00:00
category.h Add arch taglines 2003-09-01 15:45:59 +00:00
ccl.c Remove period at end of error message. 2003-11-16 16:17:09 +00:00
ccl.h Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog *** empty log message *** 2003-12-01 13:06:41 +00:00
ChangeLog.1 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.2 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.3 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.4 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.5 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.6 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.7 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.8 Add arch taglines 2003-09-01 15:45:59 +00:00
ChangeLog.9 Add arch taglines 2003-09-01 15:45:59 +00:00
charset.c Add arch taglines 2003-09-01 15:45:59 +00:00
charset.h Add arch taglines 2003-09-01 15:45:59 +00:00
chpdef.h Add arch taglines 2003-09-01 15:45:59 +00:00
cm.c Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
cm.h Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
cmds.c Add arch taglines 2003-09-01 15:45:59 +00:00
coding.c (coding_restore_composition): Lisp_Object/int mixup. 2003-11-17 23:23:15 +00:00
coding.h Add arch taglines 2003-09-01 15:45:59 +00:00
commands.h Add arch taglines 2003-09-01 15:45:59 +00:00
composite.c (syms_of_composite): Don't make the compostion hash table week. 2003-12-01 12:33:13 +00:00
composite.h Add arch taglines 2003-09-01 15:45:59 +00:00
config.in Add HAVE_GTK_MULTIDISPLAY 2003-11-16 16:06:58 +00:00
COPYING
cxux-crt0.s Add arch taglines 2003-09-01 15:45:59 +00:00
data.c (Qinteger): Exported. 2003-11-21 18:26:21 +00:00
dired.c (Ffile_attributes): Parameter ID-FORMAT added and included in call to file 2003-11-21 18:27:51 +00:00
dispextern.h lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
dispnew.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
disptab.h Add arch taglines 2003-09-01 15:45:59 +00:00
doc.c Add arch taglines 2003-09-01 15:45:59 +00:00
doprnt.c Add arch taglines 2003-09-01 15:45:59 +00:00
dosfns.c Add arch taglines 2003-09-01 15:45:59 +00:00
dosfns.h Add arch taglines 2003-09-01 15:45:59 +00:00
ecrt0.c Add arch taglines 2003-09-01 15:45:59 +00:00
editfns.c (region_limit): Support any non-zero value of BEGINNINGP. 2003-09-07 16:26:52 +00:00
emacs.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
epaths.in Add arch taglines 2003-09-01 15:45:59 +00:00
eval.c (Fdefvaralias): Doc fix. 2003-10-31 17:25:20 +00:00
fileio.c Add variable use-file-dialog to control use of file dialogs. 2003-11-29 10:44:36 +00:00
filelock.c Add arch taglines 2003-09-01 15:45:59 +00:00
filemode.c Add arch taglines 2003-09-01 15:45:59 +00:00
firstfile.c Add arch taglines 2003-09-01 15:45:59 +00:00
floatfns.c (Flogb): Don't use VALMASK. 2003-11-05 16:45:11 +00:00
fns.c Add variable use-file-dialog to control use of file dialogs. 2003-11-29 10:44:36 +00:00
fontset.c Remove period at end of error message. 2003-11-16 16:17:09 +00:00
fontset.h Add arch taglines 2003-09-01 15:45:59 +00:00
frame.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
frame.h lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
getloadavg.c Add arch taglines 2003-09-01 15:45:59 +00:00
getpagesize.h Add arch taglines 2003-09-01 15:45:59 +00:00
gmalloc.c Add arch taglines 2003-09-01 15:45:59 +00:00
gnu.h Add arch taglines 2003-09-01 15:45:59 +00:00
gtkutil.c Implement multiple display handling for GTK. 2003-11-16 16:05:24 +00:00
gtkutil.h Implement multiple display handling for GTK. 2003-11-16 16:05:24 +00:00
hftctl.c Add arch taglines 2003-09-01 15:45:59 +00:00
indent.c Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
indent.h Add arch taglines 2003-09-01 15:45:59 +00:00
insdel.c Add arch taglines 2003-09-01 15:45:59 +00:00
intervals.c (graft_intervals_into_buffer): Handle over_used when splitting UNDER. 2003-09-30 12:33:19 +00:00
intervals.h Add EXFUN for Fget_char_property_and_overlay. 2003-11-30 17:12:40 +00:00
ioctl.h Add arch taglines 2003-09-01 15:45:59 +00:00
keyboard.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
keyboard.h (EVENT_CLICK_COUNT, POSN_SCROLLBAR_PART): Fix defines. 2003-11-27 21:16:36 +00:00
keymap.c (map_keymap): Don't abort when binding is a vector. 2003-10-03 08:30:55 +00:00
keymap.h Add arch taglines 2003-09-01 15:45:59 +00:00
lastfile.c Add arch taglines 2003-09-01 15:45:59 +00:00
lisp.h lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
lread.c Add arch taglines 2003-09-01 15:45:59 +00:00
mac.c (struct my_group): Added. 2003-11-22 23:00:59 +00:00
macfns.c Add arch taglines 2003-09-01 15:45:59 +00:00
macgui.h Add arch taglines 2003-09-01 15:45:59 +00:00
macmenu.c Add arch taglines 2003-09-01 15:45:59 +00:00
macros.c Add arch taglines 2003-09-01 15:45:59 +00:00
macros.h Add arch taglines 2003-09-01 15:45:59 +00:00
macterm.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
macterm.h Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
Makefile.in Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
makefile.nt Add arch taglines 2003-09-01 15:45:59 +00:00
makefile.w32-in (emacs.o, coding.o, bytecode.o): Sync dependancies with Makefile.in. 2003-10-02 23:17:33 +00:00
marker.c Add arch taglines 2003-09-01 15:45:59 +00:00
md5.c Add arch taglines 2003-09-01 15:45:59 +00:00
md5.h Add arch taglines 2003-09-01 15:45:59 +00:00
mem-limits.h Add arch taglines 2003-09-01 15:45:59 +00:00
minibuf.c Add arch taglines 2003-09-01 15:45:59 +00:00
mktime.c Add arch taglines 2003-09-01 15:45:59 +00:00
msdos.c Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
msdos.h Add arch taglines 2003-09-01 15:45:59 +00:00
ndir.h Add arch taglines 2003-09-01 15:45:59 +00:00
param.h Add arch taglines 2003-09-01 15:45:59 +00:00
point.h Add arch taglines 2003-09-01 15:45:59 +00:00
pre-crt0.c Add arch taglines 2003-09-01 15:45:59 +00:00
prefix-args.c Add arch taglines 2003-09-01 15:45:59 +00:00
print.c Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
process.c Remove period at end of error message. 2003-11-16 16:17:09 +00:00
process.h Add arch taglines 2003-09-01 15:45:59 +00:00
puresize.h Add arch taglines 2003-09-01 15:45:59 +00:00
ralloc.c Add arch taglines 2003-09-01 15:45:59 +00:00
README
regex.c (MAX_BUF_SIZE): Reduce to 2**15. 2003-10-13 18:48:14 +00:00
regex.h Add arch taglines 2003-09-01 15:45:59 +00:00
region-cache.c Add arch taglines 2003-09-01 15:45:59 +00:00
region-cache.h Add arch taglines 2003-09-01 15:45:59 +00:00
scroll.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
search.c Add arch taglines 2003-09-01 15:45:59 +00:00
sound.c Add arch taglines 2003-09-01 15:45:59 +00:00
stamp-h.in
strftime.c Add arch taglines 2003-09-01 15:45:59 +00:00
sunfns.c Remove period at end of error message. 2003-11-16 16:17:09 +00:00
syntax.c Add arch taglines 2003-09-01 15:45:59 +00:00
syntax.h Add arch taglines 2003-09-01 15:45:59 +00:00
sysdep.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
sysselect.h Add arch taglines 2003-09-01 15:45:59 +00:00
syssignal.h Add arch taglines 2003-09-01 15:45:59 +00:00
systime.h Add arch taglines 2003-09-01 15:45:59 +00:00
systty.h Add arch taglines 2003-09-01 15:45:59 +00:00
syswait.h Add arch taglines 2003-09-01 15:45:59 +00:00
temacs.opt
term.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
termcap.c Add arch taglines 2003-09-01 15:45:59 +00:00
termchar.h lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
termhooks.h lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
terminfo.c Add arch taglines 2003-09-01 15:45:59 +00:00
termopts.h Add a level of indirection to terminal characteristics. 2003-12-24 18:55:24 +00:00
textprop.c (Fget_char_property_and_overlay): New function. 2003-11-30 17:08:28 +00:00
tparam.c Add arch taglines 2003-09-01 15:45:59 +00:00
uaf.h Add arch taglines 2003-09-01 15:45:59 +00:00
undo.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexaix.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexalpha.c Don't include varargs.h. 2003-09-17 13:30:23 +00:00
unexapollo.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexconvex.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexec.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexelf.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexenix.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexhp9k800.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexmacosx.c These are Nozomu Ando's changes to build Emacs to run under X Window 2003-10-31 19:42:47 +00:00
unexmips.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexnext.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexsni.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexsol.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexsunos4.c Add arch taglines 2003-09-01 15:45:59 +00:00
unexw32.c Add arch taglines 2003-09-01 15:45:59 +00:00
vlimit.h Add arch taglines 2003-09-01 15:45:59 +00:00
vm-limit.c Add arch taglines 2003-09-01 15:45:59 +00:00
w16select.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32.c (struct the_group): Added. 2003-11-22 23:01:18 +00:00
w32.h Add arch taglines 2003-09-01 15:45:59 +00:00
w32bdf.c Remove period at end of error message. 2003-11-16 16:17:09 +00:00
w32bdf.h Add arch taglines 2003-09-01 15:45:59 +00:00
w32console.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32fns.c Remove period at end of error message. 2003-11-16 16:17:09 +00:00
w32gui.h Add arch taglines 2003-09-01 15:45:59 +00:00
w32heap.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32heap.h Add arch taglines 2003-09-01 15:45:59 +00:00
w32inevt.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
w32inevt.h Add arch taglines 2003-09-01 15:45:59 +00:00
w32menu.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32proc.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32reg.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32select.c Add arch taglines 2003-09-01 15:45:59 +00:00
w32term.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
w32term.h Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
w32xfns.c Add arch taglines 2003-09-01 15:45:59 +00:00
widget.c Add arch taglines 2003-09-01 15:45:59 +00:00
widget.h Add arch taglines 2003-09-01 15:45:59 +00:00
widgetprv.h Add arch taglines 2003-09-01 15:45:59 +00:00
window.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
window.h Add arch taglines 2003-09-01 15:45:59 +00:00
xdisp.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
xfaces.c Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
xfns.c Implemented multiple tty support. 2003-12-25 06:59:31 +00:00
xmenu.c Implement multiple display handling for GTK. 2003-11-16 16:05:24 +00:00
xrdb.c Add arch taglines 2003-09-01 15:45:59 +00:00
xselect.c Add arch taglines 2003-09-01 15:45:59 +00:00
xsmfns.c Add arch taglines 2003-09-01 15:45:59 +00:00
xterm.c lib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs more work. 2003-12-26 04:24:54 +00:00
xterm.h Implement multiple display handling for GTK. 2003-11-16 16:05:24 +00:00

This directory contains the source files for the C component of GNU Emacs.
Nothing in this directory is needed for using Emacs once it is built
and installed, if the dumped Emacs (on Unix systems) or the Emacs
executable and map files (on VMS systems) are copied elsewhere.

See the files ../README and then ../INSTALL for installation instructions.

Under GNU and Unix systems, the file `Makefile.in' is used as a
template by the script `../configure' to produce `Makefile.c'.  The
same script then uses `cpp' to produce the machine-dependent
`Makefile' from `Makefile.c'; `Makefile' is the file which actually
controls the compilation of Emacs.  Most of this should work
transparently to the user; you should only need to run `../configure',
and then type `make'.

See the file VMSBUILD in this directory for instructions on compiling,
linking and building Emacs on VMS.

The files `*.com' and `temacs.opt' are used on VMS only.
The files `vlimit.h', `ioclt.h' and `param.h' are stubs to
allow compilation on VMS with the minimum amount of #ifdefs.

`uaf.h' contains VMS uaf structure definitions.  This is only needed if
you define READ_SYSUAF.  This should only be done for single-user
systems where you are not overly concerned with security, since it
either requires that you install Emacs with SYSPRV or make SYSUAF.DAT
world readable.  Otherwise, Emacs can determine information about the
current user, but no one else.