bpt/emacs.git
20 years agoBugfix festival.
Karoly Lorentey [Mon, 29 Dec 2003 07:16:26 +0000 (07:16 +0000)]
Bugfix festival.

lib-src/emacsclient.c (main_argc, main_argv): New variables.
(main): Initialize them.
(fail): Use them.
(window_change, copy_from_to): Don't kill if emacs_pid is zero.
(pty_conversation): Watch the command socket, too.  Read emacs_pid
here.  Emacs and emacsclient could deadlock if Emacs tried to do a
reset_sys_modes before sending its pid.

lisp/server.el: Automatically delete the client frame when done editing.
(server-frames): New variable.
(server-process-filter, server-sentinel, server-buffer-done): Use it.
(server-process-filter): Do a redisplay before evaluating other
parameters.  (Prevents "emacsclient -h -e '(delete-frame)'" from
messing up the system.

src/dispextern.h: Update prototypes.

src/dispnew.c (window_change_signal): Do nothing if !term_initted.
(init_display): Set the frame size from the tty data after term_init.

src/emacs.c (main): Make sure things that init_sys_modes needs are
initialized before init_display (which calls init_sys_modes now).
(sort_args): Use xfree, not free.
(shut_down_emacs) [!EMACS_HAVE_TTY_PGRP]: Use reset_all_sys_modes
instead of reset_sys_modes.

src/frame.c (make_terminal_frame): Sigh. Move terminal initialization
back to the middle of frame setup.  Handle errors by making sure that
the delete_tty() called from term_init() will see and delete this
frame.
(Fdelete_frame): Kill the frame before calling delete_tty().  Fix
condition for tty deletion.

src/keyboard.c (Fset_input_mode): Use reset_sys_modes on the current
terminal only.

src/lisp.h: Remove duplicate prototypes.

src/msdos.c (croak): use reset_all_sys_modes().

src/sysdeps.c (init_baud_rate): Added tty parameter, use it instead of CURTTY.
(child_setup_tty): Reset sigio on stdin, not CURTTY().
(reset_sigio): Added fd parameter, put explicit fcntl there.
(request_sigio, unrequest_sigio)[FASYNC]: Simply block/unblock the
SIGIO signal, don't touch the file params.  There are multiple ttys
now, and we can't disable the SIGIO from emacsclient.
(get_tty_size)[VMS]: Use tty_out instead of CURTTY().
(reset_sys_modes): Don't call cursor_to, clear_end_of_line; call
cmgoto and tty_clear_end_of_line instead.  The frame may already be
dead.  Updated reset_sigio call.

src/term.c (clear_and_of_line): Separate tty-dependent stuff to
tty_clear_end_of_line() for reset_sys_modes.
(tty_clear_end_of_line): New function.
(term_init): Added frame parameter, don't use selected_frame.
Set the frame's output_data.tty value (in case there is an error
later).  Set the frame size in Wcm, not in the frame.  Only free the
termcap buffer if there is a termcap-related error.  Call
init_sys_modes last, not first.
(deleting_tty): New variable.
(delete_tty): Use it for handling recursive calls.  Free deleted tty,
except its Wcm (there is still a dangling reference somewhere).

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-19

20 years agoTrivial changes
Karoly Lorentey [Sun, 28 Dec 2003 22:28:52 +0000 (22:28 +0000)]
Trivial changes

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-18

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sun, 28 Dec 2003 16:05:28 +0000 (16:05 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-1
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-2
   Update from CVS

 * miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-3
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-17

20 years agoMerged in changes from CVS HEAD
Karoly Lorentey [Sun, 28 Dec 2003 16:03:57 +0000 (16:03 +0000)]
Merged in changes from CVS HEAD

Patches applied:

 * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-138
   Update from CVS

 * miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-139
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-15

20 years agoAdd pointer text property. Add image maps.
Kim F. Storm [Sun, 28 Dec 2003 00:40:46 +0000 (00:40 +0000)]
Add pointer text property.  Add image maps.

20 years agoFix cursor glyph height on tall rows.
Kim F. Storm [Sun, 28 Dec 2003 00:15:01 +0000 (00:15 +0000)]
Fix cursor glyph height on tall rows.
Add image map feature.
Add pointer text property.

20 years ago(Qface, Qmouse_face): Remove unused externs.
Kim F. Storm [Sun, 28 Dec 2003 00:13:34 +0000 (00:13 +0000)]
(Qface, Qmouse_face): Remove unused externs.
(x_draw_hollow_cursor): Draw cursor using glyph's rather than
row's ascent and descent, to get a sensible height on tall rows.

20 years ago(x_set_mouse_color): Remove bogus x_check_errors call.
Kim F. Storm [Sun, 28 Dec 2003 00:13:10 +0000 (00:13 +0000)]
(x_set_mouse_color): Remove bogus x_check_errors call.
(Qimage): Remove extern (now in lisp.h).
(valid_image_p, parse_image_spec): Use IMAGEP macro.

20 years ago(cache_face): Abort if c->size exceeds MAX_FACE_ID.
Kim F. Storm [Sun, 28 Dec 2003 00:12:45 +0000 (00:12 +0000)]
(cache_face): Abort if c->size exceeds MAX_FACE_ID.

20 years ago(Qarrow, Qhand, Qtext, Qpointer): New variables for
Kim F. Storm [Sun, 28 Dec 2003 00:12:27 +0000 (00:12 +0000)]
(Qarrow, Qhand, Qtext, Qpointer): New variables for
pointer types.
(Qrelative_width, Qalign_to): Remove unused variables.
(Vvoid_text_area_pointer): Replace Vshow_text_cursor_in_void.
(QCmap, QCpointer, Qrect, Qcircle, Qpoly): New variables for
image maps.
(x_y_to_hpos_vpos): Return glyph relative coordinates through
new dx and dy args.
Remove buffer_only_p arg (always 0).  Simplify code accordingly.
(get_glyph_string_clip_rect): Draw cursor using glyph's rather
than row's ascent and height, to get sensible height on tall rows.
(build_desired_tool_bar_string): Remove Qimage extern.
(get_tool_bar_item): Fix call to x_y_to_hpos_vpos.
(produce_image_glyph): Adjust it.ascent to minimum row ascent if
image glyph is alone on the last line.
(append_glyph, append_composite_glyph, produce_image_glyph)
(append_stretch_glyph): Set glyph's ascent and descent.
(on_hot_spot_p): New function to check if position is inside an
rectangular, circular, or polygon-shaped image hot-spot,
(find_hot_spot): New function to search for image hot-spot.
(Flookup_image_map): New defun to search for image hot-spot.
(define_frame_cursor1): New aux function to determine frame pointer.
(note_mode_line_or_margin_highlight, note_mouse_highlight):
Handle `pointer' text property and :pointer image property to
control frame pointer shape.  Detect image hot-spots for pointer
and help_echo properties.  Use define_frame_cursor1.
(note_mouse_highlight): Use Vvoid_text_area_pointer.
(syms_of_xdisp): Defsubr new defun. Intern and staticpro new variables.
DEFVAR_LISP Vvoid_text_area_pointer instead of Vshow_text_cursor_in_void.

20 years ago(Qimage): Remove extern (now in lisp.h).
Kim F. Storm [Sun, 28 Dec 2003 00:11:49 +0000 (00:11 +0000)]
(Qimage): Remove extern (now in lisp.h).
(valid_image_p, parse_image_spec): Use IMAGEP macro.

20 years ago(IMAGEP): New macro to test for image object type.
Kim F. Storm [Sun, 28 Dec 2003 00:11:03 +0000 (00:11 +0000)]
(IMAGEP): New macro to test for image object type.
(Qimage): Declare extern.

20 years ago(Qimage): Remove extern (now in lisp.h).
Kim F. Storm [Sun, 28 Dec 2003 00:10:41 +0000 (00:10 +0000)]
(Qimage): Remove extern (now in lisp.h).
(QCmap): Declare extern.
(make_lispy_position): When position is inside image hot-spot,
use hot-spot element as posn element.

20 years ago(buffer_posn_from_coords): Fix calculation of dy for
Kim F. Storm [Sun, 28 Dec 2003 00:10:12 +0000 (00:10 +0000)]
(buffer_posn_from_coords): Fix calculation of dy for
image glyph using image's ascent.
(mode_line_string): Return image glyph as object clicked on.
Adjust y0 for image glyph using image's ascent.

20 years ago(FACE_ID_BITS, MAX_FACE_ID): New defines.
Kim F. Storm [Sun, 28 Dec 2003 00:09:49 +0000 (00:09 +0000)]
(FACE_ID_BITS, MAX_FACE_ID): New defines.
(struct glyph): New members, ascent and descent.  Used to save
this glyph's ascent and descent, instead of having.
(struct glyph): Declare member face_id using FACE_ID_BITS.
(find_hot_spot): Add prototype.

20 years ago(Qface, Qmouse_face): Remove unused externs.
Kim F. Storm [Sat, 27 Dec 2003 23:19:43 +0000 (23:19 +0000)]
(Qface, Qmouse_face): Remove unused externs.

20 years ago(Qmouse_click, Qevent_kind): Remove unused externs.
Kim F. Storm [Sat, 27 Dec 2003 23:16:53 +0000 (23:16 +0000)]
(Qmouse_click, Qevent_kind): Remove unused externs.

20 years ago(show_help_event): Remove unused code.
Kim F. Storm [Sat, 27 Dec 2003 22:24:01 +0000 (22:24 +0000)]
(show_help_event): Remove unused code.

20 years ago(eval.o): Depend on dispextern.h.
Kim F. Storm [Sat, 27 Dec 2003 22:03:40 +0000 (22:03 +0000)]
(eval.o): Depend on dispextern.h.

20 years agoHandle non-readable directories.
Kim F. Storm [Sat, 27 Dec 2003 21:56:51 +0000 (21:56 +0000)]
Handle non-readable directories.
(ido-decorations): Add 9th element for non-readable directory.
(ido-directory-nonreadable): New dynamic var.
(ido-set-current-directory): Set it.
(ido-read-buffer, ido-file-internal):
(ido-read-file-name, ido-read-directory-name): Let-bind it.
(ido-file-name-all-completions1): Return empty list for
non-readable directory.
(ido-exhibit): Print [Not readable] if directory is not readable.
(ido-expand-directory): New defun (based on tiny fix from Karl Chen).
(ido-read-file-name, ido-file-internal, ido-read-directory-name):
Use it.

20 years ago*** empty log message ***
Kim F. Storm [Sat, 27 Dec 2003 21:56:10 +0000 (21:56 +0000)]
*** empty log message ***

20 years ago(ls-lisp-insert-directory): Add parameter 'string in
Lars Hansen [Sat, 27 Dec 2003 18:12:39 +0000 (18:12 +0000)]
(ls-lisp-insert-directory): Add parameter 'string in
calls to directory-files-and-attributes and file-attributes.
(ls-lisp-format): Remove system dependent handling of user and
group id's.

20 years ago2003-12-12 Jesper Harder <harder@ifa.au.dk>
Per Abrahamsen [Sat, 27 Dec 2003 16:41:13 +0000 (16:41 +0000)]
2003-12-12  Jesper Harder <harder@ifa.au.dk>

* cus-edit.el (custom-add-parent-links): Define "many".

2003-12-08  Per Abrahamsen  <abraham@dina.kvl.dk>

* wid-edit.el (widget-child-value-get, widget-child-value-inline)
(widget-child-validate, widget-type-value-create)
(widget-type-default-get, widget-type-match): New functions.
(lazy): New widget.
(menu-choice, checklist, radio-button-choice, editable-list)
(group, documentation-string): Removed redundant (per 2003-10-25
change) calls to `widget-children-value-delete'.
(widget-choice-value-get, widget-choice-value-inline): Removed
functions.
(menu-choice): Updated widget.

20 years agoSmall change in README.multi-tty
Karoly Lorentey [Sat, 27 Dec 2003 14:24:02 +0000 (14:24 +0000)]
Small change in README.multi-tty

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-14

20 years agoREADME.multi-tty updates.
Karoly Lorentey [Sat, 27 Dec 2003 14:20:59 +0000 (14:20 +0000)]
README.multi-tty updates.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-13

20 years agoImplemented automatic deletion of terminals.
Karoly Lorentey [Sat, 27 Dec 2003 13:55:54 +0000 (13:55 +0000)]
Implemented automatic deletion of terminals.

lisp/server.el (server-process-filter): Switch to the new terminal frame.

src/frame.c (Fdelete_frame): Delete the tty if this was its the last frame.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-12

20 years agoAdded compilation instructions to README.multi-tty.
Karoly Lorentey [Sat, 27 Dec 2003 13:13:46 +0000 (13:13 +0000)]
Added compilation instructions to README.multi-tty.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-11

20 years agoCosmetic changes in README.multi-tty
Karoly Lorentey [Sat, 27 Dec 2003 12:55:32 +0000 (12:55 +0000)]
Cosmetic changes in README.multi-tty

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-10

20 years agoFully eliminated global tty state variables.
Karoly Lorentey [Sat, 27 Dec 2003 10:00:19 +0000 (10:00 +0000)]
Fully eliminated global tty state variables.

lib-src/emacsclient.c (main.c): Fix error message.

lisp/frame.el (make-frame-on-tty): New function.

lisp/server.el (server-process-filter): Notify emacsclient if there
was on error during evaluation.

src/cm.c: Fix remaining cases of direct Wcm references.

src/dispextern.h: Updated prototypes.

src/dispnew.c (Fredraw_frame): Fix set_terminal_modes call.
(init_display): Remove reference to meta_key.

src/frame.c (make_terminal_frame): Renamed first parameter to
tty_name.  Call term_init before creating the frame.
(Fmake_terminal_frame): Look up the `tty' and `tty-type' frame
parameters from the currently selected terminal before the global
default.
(Fdelete_frame): Make sure that the new selected frame is live.

src/keyboard.c (meta_key): Moved to struct tty_output.
(read_avail_input): Fix C syntax.  Update references to meta_key.
(Fsuspend_emacs): pass current tty to init_sys_modes via
record_unwind_protect.
(Fset_input_mode): Update references to meta_key.
(Fcurrent_input_mode): Ditto.

src/sysdep.c (init_sys_modes): Updated old_tty and meta_key
references.  Don't call set_terminal_modes, it needs termcap strings.
(reset_sys_modes): Call tty_reset_terminal_modes instead of
reset_terminal_modes.  Updated old_tty references.

src/term.c: Massive updates throuout the file.
(TS_*, TN_*): Moved to struct tty_output.
(RPov, delete_in_insert_mode se_is_so, costs_set, insert_mode): Ditto.
(standout_mode, specified_window, tty_cursor_hidden): Ditto.
(tty_set_terminal_modes, tty_reset_terminal_modes): New functions.
(turn_on_insert, turn_off_insert): Added tty parameter.
(turn_on_highlight, turn_off_highlight, toggle_highlight): Added tty parameter.
(tty_hide_cursor, tty_show_cursor): Ditto.
(background_highlight, highlight_if_desired): Ditto.
(tty_capable_p): Changed first parameter to tty_output.
(term_init): Make sure top_frame is initialized.  Don't exit on errors
if this would have been a secondary terminal.  Call set_terminal_modes
on the end.
(delete_tty): New function.
(delete_tty_1): New function.
(print_all_frames): New function, marginally useful for debugging.

src/termchar.h (struct tty_output): Changed old_tty to be a pointer.
Removed old_tty_valid member.  Added tty-specific variables from term.c.

src/xfaces.c (Ftty_supports_face_attributes_p): Update for new
tty_capable_p.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-9

20 years ago(rlog_options): Append -rbranchtag if CVS/Tag indicates
Paul Eggert [Sat, 27 Dec 2003 08:18:42 +0000 (08:18 +0000)]
(rlog_options): Append -rbranchtag if CVS/Tag indicates
a tag, and if the user has not specified an rlog option.
Adapted from a suggestion by Martin Stjernholm in
<http://mail.gnu.org/archive/html/bug-gnu-emacs/2003-07/msg00066.html>.
(Copyright): Update to 2003.

20 years agoFull support for multiple terminal I/O (with some rough edges).
Karoly Lorentey [Sat, 27 Dec 2003 01:12:57 +0000 (01:12 +0000)]
Full support for multiple terminal I/O (with some rough edges).

lib-src/emacsclient.c (emacs_pid): New variable.
(window_change): Forward the SIGWINCH signal to the Emacs process
after copying the size parameters to the proxy terminal.
(copy_from_to): New parameter (sigio), kill Emacs with SIGIO if it is
nonzero.
(main): Set emacs_pid.

lisp/server.el (server-process-filter): Send the pid of Emacs to emacsclient.

src/cm.c: Added tty parameters to all functions and all Wcm macro calls.

src/cm.h: Added tty parameters to all macros.   Updated function prototypes.
(Wcm): Moved to struct tty_output.

src/dispextern.h: Updated function prototypes.

src/dispnew.c: Added tty parameters to all Wcm macro calls.
(do_switch_frame): Make old frame obscured, not invisible, to solve
problems with other-frame.
(Wcm): Moved to struct tty_output.

src/keyboard.c (read_avail_input): Select the frame corresponding to
the tty that was read.  Slight rearrangement of tty loop.

src/lisp.h (tabs_safe_p): Removed duplicate prototype.

src/sysdep.c (hft_init, hft_reset): Added tty_output parameter.
(discard_tty_input): Discard input from all ttys on APOLLO, too.
Whatever it is.
(narrow_foreground_group, widen_foreground_group): Added tty parameter
(not really useful, the functions only work on the controlling tty.)
(tabs_safe_p): Added tty parameter.

src/term.c Added tty parameters to all Wcm macro calls.
Standardised updating_frame vs. selected frame and tty_output access.
(term_init): Allocate Wcm.
(syms_of_term): Provide the `multi-tty' feature.

src/termchar.h (struct tty_output): Added Wcm.

src/xdisp.c (try_window_id): Make sure we use the tty device
corresponding to the current frame.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-8

20 years ago*** empty log message ***
Kenichi Handa [Fri, 26 Dec 2003 11:39:22 +0000 (11:39 +0000)]
*** empty log message ***

20 years agoFixed two typos.
Karoly Lorentey [Fri, 26 Dec 2003 04:31:27 +0000 (04:31 +0000)]
Fixed two typos.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-7

20 years agoRemoved two files that were committed by mistake.
Karoly Lorentey [Fri, 26 Dec 2003 04:26:21 +0000 (04:26 +0000)]
Removed two files that were committed by mistake.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-6

20 years agolib-src/emacsclient.c: Implemented --here option (open a new Emacs tty). Needs...
Karoly Lorentey [Fri, 26 Dec 2003 04:24:54 +0000 (04:24 +0000)]
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

20 years ago(texinfo-multi-file-update): create a new list of included files,
Robert J. Chassell [Thu, 25 Dec 2003 20:20:50 +0000 (20:20 +0000)]
(texinfo-multi-file-update): create a new list of included files,
called `files-with-node-lines', that only have node lines.  This way
@include commands can include any file, such as version and update
files without node lines, not just files that are chapters.

20 years ago*** empty log message ***
Luc Teirlinck [Thu, 25 Dec 2003 18:07:44 +0000 (18:07 +0000)]
*** empty log message ***

20 years ago(ffap-read-file-or-url): Revert previous change.
Luc Teirlinck [Thu, 25 Dec 2003 17:44:48 +0000 (17:44 +0000)]
(ffap-read-file-or-url): Revert previous change.

20 years ago(Fcompleting_read): Undo previous change.
Luc Teirlinck [Thu, 25 Dec 2003 17:31:23 +0000 (17:31 +0000)]
(Fcompleting_read):  Undo previous change.

20 years ago(Fdirectory_files, Fdirectory_files_and_attributes):
Lars Hansen [Thu, 25 Dec 2003 17:12:59 +0000 (17:12 +0000)]
(Fdirectory_files, Fdirectory_files_and_attributes):
Arguments GCPRO'ed in call to file name handler.

20 years ago(Fringes): Fix typo "set-buffer-window" -> "set-window-buffer".
Markus Rost [Thu, 25 Dec 2003 14:10:31 +0000 (14:10 +0000)]
(Fringes): Fix typo "set-buffer-window" -> "set-window-buffer".

20 years ago(tgetst1): Scan for "%pN"; if all
Thien-Thi Nguyen [Thu, 25 Dec 2003 12:13:59 +0000 (12:13 +0000)]
(tgetst1): Scan for "%pN"; if all
N are continuous in [1,9], remove all "%pN".

20 years ago(jka-compr-insert-file-contents): Avoid error when
Andreas Schwab [Thu, 25 Dec 2003 11:06:14 +0000 (11:06 +0000)]
(jka-compr-insert-file-contents): Avoid error when
file not found.

20 years agoAdded a pointer to my archive to README.multi-tty
Karoly Lorentey [Thu, 25 Dec 2003 07:36:05 +0000 (07:36 +0000)]
Added a pointer to my archive to README.multi-tty

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-4

20 years agoUpdating_frame vs. selected_frame in term.c.
Karoly Lorentey [Thu, 25 Dec 2003 07:29:18 +0000 (07:29 +0000)]
Updating_frame vs. selected_frame in term.c.

* src/term.c (clear_end_of_line): Use updating_frame instead of selected_frame.
(set_scroll_region, clear_to_end, clear_frame, tty_show_cursor): Ditto.
(tty_hide_cursor, turn_on_highlight, turn_off_highlight): Ditto.
(turn_on_insert, turn_off_insert): Ditto.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-3

20 years agoImplemented multiple tty support.
Karoly Lorentey [Thu, 25 Dec 2003 06:59:31 +0000 (06:59 +0000)]
Implemented multiple tty support.

README.multi-tty: New file.

src/termchar.h (struct terminal): Renamed to struct tty_output.  Added name, type,
input, output, termscript, old_tty, term_initted, old_tty_valid,
background_pixel, foreground_pixel, next fields.
(TERMINAL_*): Renamed to TTY_* for brevity.
(CURRENT_TERMINAL): Renamed to CURTTY for brevity.
(tty_list): New variable.
(TERMINAL_PTR): Removed.
(FRAME_TTY): New function.
(TTY_NAME, TTY_TYPE): New macros.

src/term.c (current_terminal): Removed.  (_current_terminal): Removed.  (tty_list):
New variable.  (OUTPUT, OUTPUT1, OUTPUTL, OUTPUT_IF, OUTPUT1_IF): Added tty
parameter.  (set_terminal_modes): Added tty parameter.  (reset_terminal_modes):
Added tty parameter.  (cursor_to, raw_cursor_to): Updated cmgoto() calls.
(clear_end_of_line, write_glyphs): Add indirection to terminal output, updated
cmcheckmagic() calls.  (get_named_tty): New function.  (term_dummy_init): New
function.  (term_init): Added name parameter, added tty_output return value.
Changed algorithm to update tty_list.  Call init_sys_modes() to set up tty
mode on the newly opened terminal device.
(get_current_tty): New function, intended for debugging.

src/termhooks.h (termscript): Removed.

src/w32term.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Removed redundant
definition.
src/macterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Ditto.

src/window.c (init_window_once): Call make_terminal_frame with two zero parameters.

src/cm.h (emacs_tputs): New macro to set current_tty, and then call tputs().
(current_tty): New variable, for cmputc().
(cmcheckmagic, cmputc, cmgoto): Added prototypes.

src/cm.c (current_tty): New variable, for cmputc().
(cmputc): Use it.
(cmcheckmagic): Added tty parameter, look up terminal streams there.
(calccost): Added tty parameter.  Use emacs_tputs() instead of tputs().
(cmgoto): Added tty parameter.  Pass it on to calccost().  Use emacs_tputs()
instead of tputs().

src/dispextern.h (set_terminal_modes, reset_terminal_modes): Added tty parameter.
(term_init): Added name parameter (the filename of the terminal device). Added
return value (struct tty_output).

src/dispnew.c: Replace CURTTY() with local variables throughout the file (where applicable).
(termscript): Moved to struct tty_output.
(terminal_type): Removed.

src/emacs.c (main): Don't call init_sys_modes(), the new term_init() already does that
during init_display().
(shut_down_emacs): Call reset_all_sys_modes() instead of reset_sys_modes().

src/frame.c (Qtty, Qtty_type): New variables.
(syms_of_frame): Initialize them.
(tty_display): Removed.
(make_terminal_frame): New parameters (tty filename and type).
Initialize output_data.tty field instead of output_data.x.  Use term_init() to
find the right tty_output.  (Use term_dummy_init() during bootstrap.)
(Fmake_terminal_frame): Get device filename and type from frame parameters.

src/frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Do the right thing
if the frame is a tty.
(struct frame): New member in output_data: tty.
(make_terminal_frame): Updated of prototype.

src/keyboard.c (Fset_input_mode): Call reset_all_sys_modes(), not
reset_sys_modes().  Ditto with init_sys_modes().

src/lisp.h (tty_output): Added forward declaration.
(init_sys_modes, reset_sys_modes): Updated prototype.
(init_all_sys_modes, reset_all_sys_modes): New prototypes.

src/scroll.c: Replace CURTTY() with local variables throughout the file (where applicable).

src/sysdep.c (old_tty, term_initted, old_tty_valid): Moved to struct tty_output.(
(init_all_sys_modes): New function.
(init_sys_modes): Added tty_output parameter.  Use it.
(reset_all_sys_modes): New function.
(reset_sys_modes): Added tty_output parameter.  Use it.

src/Makefile.in: Update dependencies.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-2

20 years agoRemove trailing whitespace.
Luc Teirlinck [Thu, 25 Dec 2003 04:52:54 +0000 (04:52 +0000)]
Remove trailing whitespace.

20 years agoRemove trailing whitespace
Luc Teirlinck [Thu, 25 Dec 2003 04:20:44 +0000 (04:20 +0000)]
Remove trailing whitespace

20 years ago*** empty log message ***
Luc Teirlinck [Thu, 25 Dec 2003 04:03:49 +0000 (04:03 +0000)]
*** empty log message ***

20 years ago(Documentation Tips): Add anchor.
Luc Teirlinck [Thu, 25 Dec 2003 04:00:56 +0000 (04:00 +0000)]
(Documentation Tips): Add anchor.

20 years ago(How Programs Do Loading): Add anchor.
Luc Teirlinck [Thu, 25 Dec 2003 03:59:14 +0000 (03:59 +0000)]
(How Programs Do Loading): Add anchor.

20 years ago(Accessing Documentation): Add anchor.
Luc Teirlinck [Thu, 25 Dec 2003 03:57:38 +0000 (03:57 +0000)]
(Accessing Documentation): Add anchor.

20 years agoReplace all occurrences of @acronym{CAR} with @sc{car}, for
Luc Teirlinck [Thu, 25 Dec 2003 03:54:16 +0000 (03:54 +0000)]
Replace all occurrences of @acronym{CAR} with @sc{car}, for
consistency with the rest of the Elisp manual.  `car' and `cdr' are
historically acronyms, but are no longer widely thought of as such.

20 years ago(Pure Storage): Mention that `purecopy' does not copy text properties.
Luc Teirlinck [Thu, 25 Dec 2003 03:52:43 +0000 (03:52 +0000)]
(Pure Storage): Mention that `purecopy' does not copy text properties.
(Object Internals): Now 29 bits are used (in most implementations) to
address Lisp objects.

20 years ago(Variables with Restricted Values): New node.
Luc Teirlinck [Thu, 25 Dec 2003 03:49:55 +0000 (03:49 +0000)]
(Variables with Restricted Values): New node.

20 years ago(Lisp Data Types): Mention that certain variables can only take on a
Luc Teirlinck [Thu, 25 Dec 2003 03:45:43 +0000 (03:45 +0000)]
(Lisp Data Types): Mention that certain variables can only take on a
restricted set of values and add an xref to the new node "Variables
with Restricted Values".

20 years ago(Function Indirection): Describe the errors that `indirect-function'
Luc Teirlinck [Thu, 25 Dec 2003 03:42:52 +0000 (03:42 +0000)]
(Function Indirection): Describe the errors that `indirect-function'
can signal.
(Eval): Clarify the descriptions of `eval-region' and `values'.
Describe `eval-buffer' instead of `eval-current-buffer' and mention
`eval-current-buffer' as an alias for `current-buffer'.  Correct the
description and mention all optional arguments.

20 years ago(Process Information): Add anchor.
Luc Teirlinck [Thu, 25 Dec 2003 03:38:35 +0000 (03:38 +0000)]
(Process Information):  Add anchor.

20 years agoVarious small changes in addition to the following.
Luc Teirlinck [Thu, 25 Dec 2003 03:34:38 +0000 (03:34 +0000)]
Various small changes in addition to the following.
(Converting Representations): Clarify behavior of
`string-make-multibyte' and `string-to-multibyte' for unibyte all
ASCII arguments.
(Character Sets): Document the variable `charset-list' and adapt the
definition of the function `charset-list' accordingly.
(Translation of Characters): Clarify use of generic characters in
`make-translation-table'.  Clarify and correct the description of the
use of translation tables in encoding and decoding.
(User-Chosen Coding Systems): Correct and clarify the description of
`select-safe-coding-system'.
(Default Coding Systems): Clarify description of `file-coding-system-alist'.

20 years agoFixup some ChangeLogs
Miles Bader [Wed, 24 Dec 2003 23:32:12 +0000 (23:32 +0000)]
Fixup some ChangeLogs

20 years agoAdd .arch-inventory to .cvsignore
Miles Bader [Wed, 24 Dec 2003 23:31:55 +0000 (23:31 +0000)]
Add .arch-inventory to .cvsignore

20 years agoRevision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-137
Miles Bader [Wed, 24 Dec 2003 23:19:06 +0000 (23:19 +0000)]
Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-137

Add .arch-inventory to .cvsignore.

20 years ago*** empty log message ***
Markus Rost [Wed, 24 Dec 2003 23:19:04 +0000 (23:19 +0000)]
*** empty log message ***

20 years agoRevision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-135
Miles Bader [Wed, 24 Dec 2003 23:18:55 +0000 (23:18 +0000)]
Revision: miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-135

Make dired more robust for non-english locales.

lisp/dired.el (dired-between-files): Always use dired-move-to-filename,
which is more robust in non-english locales.

20 years ago(vc-dired-purge): Avoid error from `kill-line'.
Markus Rost [Wed, 24 Dec 2003 23:18:10 +0000 (23:18 +0000)]
(vc-dired-purge): Avoid error from `kill-line'.

20 years agoAdd a level of indirection to terminal characteristics.
Karoly Lorentey [Wed, 24 Dec 2003 18:55:24 +0000 (18:55 +0000)]
Add a level of indirection to terminal characteristics.

* src/termchar.h (struct terminal): New struct.
(must_write_spaces, min_padding_speed, line_ins_del_ok)
(char_ins_del_ok, scroll_region_ok, scroll_region_cost)
(memory_below_frame, fast_clear_end_of_line): Moved to struct
terminal.
(current_terminal): New variable.
(CURRENT_TERMINAL, TERMINAL_*): New accessor macros.
(min_padding_speed, dont_calculate_costs): Commented out (unused).

* src/term.c (_current_terminal): New variable.  Will be removed when
true multi-tty support is implemented.

* src/termopts.h (no_redraw_on_reenter): Moved here.

* src/term.c (set_terminal_window, ins_del_lines, calculate_costs)
(term_init): Use the accessor macros for terminal characteristics.
* src/dispnew.c (line_hash_code, line_draw_cost)
(direct_output_for_insert, update_frame_1, scrolling)
(update_frame_line): Ditto.
* src/macterm.c (mac_initialize): Ditto.
* src/msdos.c (internal_terminal_init): Ditto.
* src/scroll.c (calculate_scrolling, calculate_direct_scrolling)
(scrolling_1, scroll_cost): Ditto.
* src/sysdep.c (hft_init): Ditto.
* src/w32term.c (w32_initialize): Ditto.
* src/xdisp.c (try_window_id): Ditto.
* src/xterm.c (x_initialize): Ditto.

* etc/TODO: Add pointer to my tla archive.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-1

20 years agoRebuild.
Andreas Schwab [Wed, 24 Dec 2003 16:46:28 +0000 (16:46 +0000)]
Rebuild.

20 years agoCheck for <sys/socket.h>. Include it before
Andreas Schwab [Wed, 24 Dec 2003 16:45:27 +0000 (16:45 +0000)]
Check for <sys/socket.h>.  Include it before
including <net/if.h>.  Move check for <net/if.h> before its use.

20 years agotag of miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-137
Karoly Lorentey [Wed, 24 Dec 2003 16:09:13 +0000 (16:09 +0000)]
tag of miles@gnu.org--gnu-2003/emacs--cvs-trunk--0--patch-137

(automatically generated log message)

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--base-0

20 years ago* Makefile.in (install-arch-dep): Don't let cd output go into
Jan Djärv [Wed, 24 Dec 2003 12:02:26 +0000 (12:02 +0000)]
* Makefile.in (install-arch-dep): Don't let cd output go into
pipe for carbon_appdir.

20 years agoRebuild.
Andreas Schwab [Wed, 24 Dec 2003 10:46:12 +0000 (10:46 +0000)]
Rebuild.

20 years ago*** empty log message ***
Andreas Schwab [Wed, 24 Dec 2003 10:45:46 +0000 (10:45 +0000)]
*** empty log message ***

20 years ago(PKG_CHECK_MODULES): Fix quoting.
Andreas Schwab [Wed, 24 Dec 2003 10:45:25 +0000 (10:45 +0000)]
(PKG_CHECK_MODULES): Fix quoting.

20 years ago* gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.
Jan Djärv [Wed, 24 Dec 2003 10:35:24 +0000 (10:35 +0000)]
* gtkutil.c (xg_frame_set_char_size): Call x_wm_set_size_hint.

20 years ago* xfaces.c (lface_fully_specified_p): Take into account that
Jan Djärv [Wed, 24 Dec 2003 10:29:59 +0000 (10:29 +0000)]
* xfaces.c (lface_fully_specified_p): Take into account that
  MAC OS always have unspecified stipple.

20 years ago(shell-file-name-quote-list): Add backslash.
Andreas Schwab [Wed, 24 Dec 2003 10:05:48 +0000 (10:05 +0000)]
(shell-file-name-quote-list): Add backslash.

20 years ago(comint-quote-filename): Correctly handle backslash
Andreas Schwab [Wed, 24 Dec 2003 10:05:31 +0000 (10:05 +0000)]
(comint-quote-filename): Correctly handle backslash
in comint-file-name-quote-list.

20 years ago*** empty log message ***
Thien-Thi Nguyen [Wed, 24 Dec 2003 07:32:41 +0000 (07:32 +0000)]
*** empty log message ***

20 years ago(tparam1): Add handling for `%pN', which
Thien-Thi Nguyen [Wed, 24 Dec 2003 07:31:42 +0000 (07:31 +0000)]
(tparam1): Add handling for `%pN', which
means use param N for the next substitution.

20 years ago(main): For return code, no longer special-case VMS.
Thien-Thi Nguyen [Wed, 24 Dec 2003 06:49:23 +0000 (06:49 +0000)]
(main): For return code, no longer special-case VMS.
Instead, use `EXIT_SUCCESS' and `EXIT_FAILURE' from stdlib.h.

20 years ago(Fcolor_gray_p): Fix omission bug:
Thien-Thi Nguyen [Wed, 24 Dec 2003 06:39:58 +0000 (06:39 +0000)]
(Fcolor_gray_p): Fix omission bug:
In case `frame' is nil, consult the selected frame.
(Fcolor_supported_p): Likewise.

20 years ago*** empty log message ***
Luc Teirlinck [Wed, 24 Dec 2003 02:58:53 +0000 (02:58 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Kenichi Handa [Wed, 24 Dec 2003 02:10:56 +0000 (02:10 +0000)]
*** empty log message ***

20 years ago*** empty log message ***
Luc Teirlinck [Wed, 24 Dec 2003 02:09:42 +0000 (02:09 +0000)]
*** empty log message ***

20 years ago(ucs-set-table-for-input): If
Kenichi Handa [Wed, 24 Dec 2003 02:09:40 +0000 (02:09 +0000)]
(ucs-set-table-for-input): If
translation-table-for-encode is a symbol, get its
translation-table property.

20 years ago(set-default-coding-systems): Call
Kenichi Handa [Wed, 24 Dec 2003 02:08:54 +0000 (02:08 +0000)]
(set-default-coding-systems): Call
ucs-set-table-for-input for all buffers that don't have local
value of buffer-file-coding-system.

20 years ago(ffap-read-file-or-url): Eliminate reliance of the call to
Luc Teirlinck [Wed, 24 Dec 2003 02:07:48 +0000 (02:07 +0000)]
(ffap-read-file-or-url): Eliminate reliance of the call to
`completing-read' on a recently fixed bug.

20 years ago*** empty log message ***
Luc Teirlinck [Wed, 24 Dec 2003 00:21:03 +0000 (00:21 +0000)]
*** empty log message ***

20 years ago(Fset_char_table_range): Doc fix.
Luc Teirlinck [Wed, 24 Dec 2003 00:17:58 +0000 (00:17 +0000)]
(Fset_char_table_range): Doc fix.

20 years ago(PC-is-complete-p): delete.
Luc Teirlinck [Tue, 23 Dec 2003 23:42:28 +0000 (23:42 +0000)]
(PC-is-complete-p): delete.
(PC-do-completion): Replace all calls to `PC-is-complete-p' with calls
to `test-completion'.

20 years ago(fringe-query-style): Suggest `?' in minibuffer prompt (instead of
Luc Teirlinck [Tue, 23 Dec 2003 23:41:03 +0000 (23:41 +0000)]
(fringe-query-style): Suggest `?' in minibuffer prompt (instead of
<SPACE>) to get the list of possible fringe modes.  (<SPACE> only
works if both `partial-completion-mode' and `completion-auto-help' are
nil.)

20 years ago(Frandom, Fstring_make_multibyte): Doc fixes.
Luc Teirlinck [Tue, 23 Dec 2003 23:08:08 +0000 (23:08 +0000)]
(Frandom, Fstring_make_multibyte): Doc fixes.

20 years ago(Watch Expressions): Update.
Nick Roberts [Tue, 23 Dec 2003 22:48:58 +0000 (22:48 +0000)]
(Watch Expressions): Update.
(Commands of GUD): Include use of toolbar + breakpoints set from
fringe/margin.

20 years ago*** empty log message ***
Nick Roberts [Tue, 23 Dec 2003 22:48:14 +0000 (22:48 +0000)]
*** empty log message ***

20 years ago(read_minibuf): Allow INITIAL to be a cons of a string and an integer.
Luc Teirlinck [Tue, 23 Dec 2003 22:22:49 +0000 (22:22 +0000)]
(read_minibuf): Allow INITIAL to be a cons of a string and an integer.
Adapt the docstring accordingly.
(Fread_from_minibuffer): Delete code moved into read_minibuf.
Doc fix.
(Fread_minibuffer, Fread_no_blanks_input): Adapt to changes in
read_minibuf.
(Fcompleting_read): Delete code moved into read_minibuf.
(Ftest_completion): Make it handle obarrays and hash tables correctly.

20 years ago(gud-speedbar-buttons): Use speed-bar-edit-line
Nick Roberts [Tue, 23 Dec 2003 20:32:31 +0000 (20:32 +0000)]
(gud-speedbar-buttons): Use speed-bar-edit-line
to edit values when there are no children.

20 years ago(gdba, gdb-assembler-mode): Call the mode "Machine" as
Nick Roberts [Tue, 23 Dec 2003 20:31:21 +0000 (20:31 +0000)]
(gdba, gdb-assembler-mode): Call the mode "Machine" as
a mode called "Assembler" already exists.
(gdb-use-colon-colon-notation, gdb-show-changed-values): New
options.
(gud-watch): Use format option. Remove font properties from
string.
(gdb-var-create-handler, gdb-var-list-children-handler): Don't
bother about properties as there are none.
(gdb-var-create-handler, gdb-var-list-children-handler)
(gdb-var-update-handler): Call gdb-var-evaluate-expression-handler
with two arguments.
(gdb-var-evaluate-expression-handler, gdb-post-prompt): Let
speedbar show value changes with a different font.
(gdb-edit-value): New defun.
(gdb-clear-partial-output, gdb-clear-inferior-io)
(def-gdb-auto-update-handler): Use erase-buffer.
(gdb-frame-handler): Display watch expressions in
FUNCTION::VARIABLE format if required.

20 years ago*** empty log message ***
Nick Roberts [Tue, 23 Dec 2003 20:30:10 +0000 (20:30 +0000)]
*** empty log message ***

20 years ago(Info-unescape-quotes, Info-split-parameter-string)
John Paul Wallington [Tue, 23 Dec 2003 20:25:22 +0000 (20:25 +0000)]
(Info-unescape-quotes, Info-split-parameter-string)
(Info-goto-emacs-command-node): Doc fixes.

20 years ago#
André Spiegel [Wed, 3 Dec 2003 21:06:19 +0000 (21:06 +0000)]
#