Karoly Lorentey
feba0cd640
Merged from miles@gnu.org--gnu-2005 (patch 677)
...
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-677
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-463
2005-12-26 03:16:59 +00:00
Karoly Lorentey
30663b475e
Fix compilation errors in previous commit.
...
* src/callproc.c (getenv_internal): Fix get_terminal_param call.
* dispextern.h (get_device): Move declaration to termhooks.h.
* termhooks.h (get_device): Move here.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-462
2005-12-26 02:21:31 +00:00
Karoly Lorentey
f105f403d2
Implement automatic terminal-local environment variables via `local-environment-variables'.
...
* lisp/env.el (setenv, getenv): Add optional terminal parameter. Update docs.
(setenv): Handle `local-environment-variables'.
(read-envvar-name): Also allow (and complete) local
environment variables on the current terminal.
* src/callproc.c: Include frame.h and termhooks.h, for terminal parameters.
(Qenvironment): New constant.
(Vlocal_environment_variables): New variable.
(syms_of_callproc): Register and initialize them.
(child_setup): Handle Vlocal_environment_variables.
(getenv_internal): Add terminal parameter. Handle
Vlocal_environment_variables.
(Fgetenv_internal): Add terminal parameter.
* src/termhooks.h (get_terminal_param): Declare.
* src/Makefile.in (callproc.o): Update dependencies.
* mac/makefile.MPW (callproc.c.x): Update dependencies.
* lisp/termdev.el (terminal-id): Make parameter optional.
(terminal-getenv, terminal-setenv, with-terminal-environment):
Disable functions.
* lisp/mule-cmds.el (set-locale-environment): Convert `terminal-getenv' calls
to `getenv'.
* lisp/rxvt.el (rxvt-set-background-mode): Ditto.
* lisp/x-win.el (x-initialize-window-system): Ditto.
* lisp/xterm.el (terminal-init-xterm): Ditto.
* lisp/server.el (server-process-filter): Fix reference to the 'display frame
parameter.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-461
2005-12-26 02:14:10 +00:00
Karoly Lorentey
ed8dad6b61
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
2005-12-25 20:06:58 +00:00
Karoly Lorentey
4beb2d71ea
Fix compilation error during non-X builds.
...
* src/keyboard.c (Fset_input_interrupt_mode): Fix compilation error
during non-X builds.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-459
2005-12-23 03:36:01 +00:00
Karoly Lorentey
7f227e762c
Pull a bugfix from CVS to prevent problems with the Debian semantic package.
...
* src/print.c (print_preprocess): Don't loose print_depth levels while iterating.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-458
2005-12-23 03:05:20 +00:00
Karoly Lorentey
a712a8c33b
Don't let x_initialize break 8-bit input on ttys. (Reported by Joakim Verona.) Split `set-input-mode'.
...
* lisp/international/encoded-kb.el (encoded-kbd-setup-display): Use `set-input-meta-mode'.
* lisp/linux.el (terminal-init-linux): Ditto.
* src/keyboard.c (Fset_input_interrupt_mode, Fset_output_flow_control)
(syms_of_keyboard): Defsubr them.
(Fset_input_meta_mode, Fset_quit_char): New functions.
(Fset_input_mode): Split to above functions.
* lisp.h: EXFUN the new functions.
* xterm.c (x_initialize): Use Fset_input_interrupt_mode.
* macterm.c (mac_initialize): Ditto.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-457
2005-12-23 03:00:55 +00:00
Karoly Lorentey
f35ca2fe35
Reimplement and extend support for terminal-local environment variables.
...
* lisp/termdev.el: New file. Move terminal parameter-related functions
here from frame.el.
(terminal-getenv, with-terminal-environment): Reimplement and extend.
(terminal-setenv, terminal-setenv-internal): New functions.
* lisp/frame.el (make-frame-on-tty, framep-on-display, suspend-frame):
Extend doc string, update parameter names.
(terminal-id, terminal-parameter-alist, terminal-parameters)
(terminal-parameter-p, terminal-parameter, set-terminal-parameter)
(terminal-handle-delete-frame, terminal-getenv, terminal-getenv)
(with-terminal-environment): Move to termdev.el.
* lisp/loadup.el: Load termdev as well.
* lisp/Makefile.in (lisp, shortlisp): Add termdev.elc.
* lisp/makefile.MPW (shortlisp): Ditto.
* lisp/ebuff-menu.el (electric-buffer-menu-mode-map): Bind C-z to
`suspend-frame', not `suspend-emacs'.
* lisp/echistory.el (electric-history-map): Ditto.
* lisp/ebrowse.el (ebrowse-electric-list-mode-map): Ditto.
* lisp/ebrowse.el (ebrowse-electric-position-mode-map): Ditto.
* lisp/startup.el (normal-splash-screen): Use `save-buffers-kill-display'
instead of `save-buffers-kill-emacs'.
* lisp/x-win.el (x-initialize-window-system): Add 'global-ok option to
`terminal-getenv'.
* src/term.c (suspend-tty): Update doc string.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-456
2005-12-22 21:02:45 +00:00
Juri Linkov
3bdba51db2
*** empty log message ***
2005-12-20 21:50:23 +00:00
Juri Linkov
c1d9dffd9a
(Fx_popup_menu): Add `else' to set Vmenu_updating_frame to nil
...
only if position is nil.
2005-12-20 21:38:27 +00:00
Juri Linkov
76a3c2cda5
(Fx_popup_menu): Set Vmenu_updating_frame to f if
...
position is non-nil, else set it to nil.
2005-12-20 21:37:36 +00:00
Karoly Lorentey
a18b8cb507
Implement full support for frame-local next-buffer' and previous-buffer'.
...
* frame.h (frame): New field `buried_buffer_list'.
* alloc.c (mark_object): Mark it.
* frame.c (make_frame): Initialize it.
* frame.h (Qburied_buffer_list): New symbol declaration.
* buffer.c (Fbuffer_list): Handle the buried-buffer-list frame parameter.
* buffer.c (record_buffer): Delete the buffer from the buried_buffer_list.
* buffer.c (Fbury_buffer): Add buffer to buried_buffer_list.
* frame.c (Qburied_buffer_list): New symbol.
(syms_of_frame): Initialize and staticpro it.
(frames_discard_buffer): Also remove buffer from buried-buffer-list.
(store_frame_param): Handle `buried-buffer-list' specially.
(Fframe_parameters): Handle `buried-buffer-list' specially.
* simple.el (last-buffer): Don't look at buried-buffer-list, rely on
`buffer-list' doing that for us.
(next-buffer): Simplify.
(previous-buffer): Simplify.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-455
2005-12-20 21:35:03 +00:00
Karoly Lorentey
e93b29568a
Merged from miles@gnu.org--gnu-2005 (patch 169-173, 671-676)
...
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-671
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-672
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-673
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-674
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-675
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-676
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-169
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-170
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-171
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-172
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-173
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-454
2005-12-19 19:57:22 +00:00
Karoly Lorentey
8d3cdf5650
Fix typo in previous commit.
...
* src/dispnew.c (window_change_signal): Fix typo.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-453
2005-12-19 16:13:20 +00:00
Stefan Monnier
addcdb7c89
(Vfunction_key_map): Docstring fix: mention that bindings can be functions.
2005-12-19 15:46:13 +00:00
YAMAMOTO Mitsuharu
faef8681cb
(syms_of_macterm) <mac-allow-anti-aliasing>: Fix unintended default
...
value change.
2005-12-19 09:56:00 +00:00
YAMAMOTO Mitsuharu
d6a90a49de
*** empty log message ***
2005-12-19 08:31:44 +00:00
YAMAMOTO Mitsuharu
862c94ca8e
(x_handle_dnd_message): Drag-and-drop items are now
...
stored in member `args' of struct input_event.
2005-12-19 08:31:33 +00:00
YAMAMOTO Mitsuharu
00cff0a110
(construct_drag_n_drop): Drag-and-drop items are now
...
stored in member `args' of struct input_event.
2005-12-19 08:31:23 +00:00
YAMAMOTO Mitsuharu
bf0f0659d9
(struct input_event): Fix comment for DRAG_N_DROP_EVENT.
2005-12-19 08:31:12 +00:00
YAMAMOTO Mitsuharu
cfe3a871cf
(create_apple_event_from_event_ref): Remove 5th argument from extern.
2005-12-19 08:31:04 +00:00
YAMAMOTO Mitsuharu
70ed951a16
(mac_do_receive_drag): Drag-and-drop items are now
...
stored in member `args' of struct input_event.
(x_use_underline_position_properties): Undo 2005-07-13 change.
(syms_of_macterm) <x-use-underline-position-properties>: Likewise.
(mac_use_core_graphics, mac_wheel_button_is_mouse_2)
(mac_pass_command_to_system, mac_pass_control_to_system): New
boolean variables renamed from Lisp_Object ones
Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
Vmac_pass_command_to_system, and Vmac_pass_control_to_system. All
uses changed.
(syms_of_macterm): DEFVAR_BOOL them. Remove previous DEFVAR_LISPs.
Make them user options.
(mac_handle_command_event, mac_store_services_event): Call
create_apple_event_from_event_ref without 5th argument.
(backtranslate_modified_keycode): Mask off modifier keys that are
mapped to some Emacs modifiers before passing it to KeyTranslate.
(syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
`mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
Fix docstrings of `mac-*-modifier'.
2005-12-19 08:30:56 +00:00
YAMAMOTO Mitsuharu
70e88ff1e4
(create_apple_event_from_event_ref): Remove arg `types'.
...
(do_applescript): Change argument types to Lisp_Object. All uses
changed.
2005-12-19 08:30:27 +00:00
YAMAMOTO Mitsuharu
82de1de962
(make_lispy_event): Drag-and-drop items are now
...
stored in member `args' of struct input_event.
2005-12-19 08:30:17 +00:00
Kenichi Handa
ce03bf76b9
Copyright fixed
2005-12-19 07:04:44 +00:00
Dan Nicolaescu
20d1c5c566
(Fx_backspace_delete_keys_p): In case we cannot determine
...
the answer, return `lambda', not nil.
2005-12-19 04:28:01 +00:00
Eli Zaretskii
abeb585559
*** empty log message ***
2005-12-17 17:29:36 +00:00
Eli Zaretskii
bb49fc13a6
(bootstrap-temacs): Warn that parts of commands enclosed in $(ARGQUOTE)s
...
should not be split between two lines, as that will break with GNU Make >3.80,
when sh.exe is used and arg quoting is with '..'.
2005-12-17 17:25:20 +00:00
Chong Yidong
6b8dfbf78a
2005-12-17 Chong Yidong <cyd@stupidchicken.com>
...
* print.c (print_preprocess): Just signal an error if print_depth
is exceeded.
2005-12-17 15:55:29 +00:00
Chong Yidong
04df9646f2
Revert last change.
2005-12-17 15:51:00 +00:00
Chong Yidong
2173b58252
* print.c (print_preprocess): Just signal an error if print_depth
...
is exceeded.
2005-12-17 15:46:16 +00:00
Eli Zaretskii
d912b87a54
Set a breakpoint on w32_abort.
2005-12-17 15:14:03 +00:00
Juri Linkov
2a502a3271
*** empty log message ***
2005-12-16 19:10:49 +00:00
Juri Linkov
b5e1e44946
(Fminibuffer_completion_contents): New Lisp function
...
created from minibuffer_completion_contents.
(minibuffer_completion_contents): Remove.
(do_completion, Fminibuffer_complete_word)
(Fminibuffer_completion_help): Replace minibuffer_completion_contents
with Fminibuffer_completion_contents.
(syms_of_minibuf): Add Sminibuffer_completion_contents.
(Fdisplay_completion_list): Doc fix.
(display_completion_list_1): Use `nil' for second arg of
`Fdisplay_completion_list'.
2005-12-16 19:03:17 +00:00
John Paul Wallington
eb2def1bc6
*** empty log message ***
2005-12-14 22:59:35 +00:00
Jan Djärv
bf63eb6967
* xfns.c (compute_tip_xy): Handle negative dx and dy.
...
* w32fns.c (compute_tip_xy): Ditto
* macfns.c (compute_tip_xy): Ditto
2005-12-14 20:58:33 +00:00
Chong Yidong
9b98e16125
* print.c (print_preprocess): Go to a deeper print_depth to avoid
...
print_object loop.
2005-12-14 20:49:46 +00:00
Kenichi Handa
89aa725ad6
(code_convert_region_unwind): GCPRO arg.
2005-12-14 00:43:36 +00:00
Karoly Lorentey
bedeffcffb
Work around Emacs crash on Konsole detach. (Tom Schutzer-Weissmann)
...
* src/dispnew.c (window_change_signal): Don't believe width/height values
that are impossibly small.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-452
2005-12-13 19:03:29 +00:00
Jan Djärv
7e8410d1ab
* (compute_tip_xy): Calculate root_y the same way as root_x,
...
i.e. dy is offset from top of frame instead of bottom.
2005-12-12 09:32:59 +00:00
Jan Djärv
57134802f7
* xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
...
i.e. dy is offset from top of frame instead of bottom.
* macfns.c (compute_tip_xy): Ditto.
* w32fns.c (compute_tip_xy): Ditto.
2005-12-12 09:32:15 +00:00
Jan Djärv
93c579e00e
* gtkutil.c (SSDATA): New macro to remove compiler warnings.
...
(xg_get_image_for_pixmap, xg_create_frame_widgets)
(xg_get_file_with_chooser): Use SSDATA instead of SDATA.
2005-12-12 08:08:56 +00:00
Jan Djärv
b79c8219e8
* xmenu.c (menubar_selection_callback): Do nothing if the callback
...
is for an unselected radio menu item.
2005-12-12 08:08:43 +00:00
Jan Djärv
3b006f5b67
* gtkutil.c (SSDATA): New macro to remove compiler warnings.
...
(xg_get_image_for_pixmap, xg_create_frame_widgets)
(xg_get_file_with_chooser): Use SSDATA instead of SDATA.
* xmenu.c (menubar_selection_callback): Do nothing if the callback
is for an unselected radio menu item.
2005-12-12 08:08:23 +00:00
Karoly Lorentey
5f6a587f30
Prevent core dumps with GTK by disabling secondary X connections there.
...
* src/xterm.c (x_term_init) [!HAVE_GTK_MULTIDISPLAY]:
Refuse to create secondary X connections.
* configure.in (HAVE_GTK_MULTIDISPLAY): Disable test, unconditionally undefine.
* configure: Regenerate.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-450
2005-12-12 03:15:52 +00:00
Karoly Lorentey
d68058039e
Fix "first non-ASCII character on new tty frames" problem.
...
* src/keyboard.c (kbd_buffer_store_event_hold): Simplify condition.
(read_key_sequence): Reinitialize fkey and keytran at each replay.
* src/coding.c (Fkeyboard_coding_system): Update doc.
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-449
2005-12-12 02:37:01 +00:00
Karoly Lorentey
be3d2d66d2
Merged in changes from CVS trunk.
...
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-667
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-668
Merge from gnus--rel--5.10
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-669
Update from CVS
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-670
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-157
Merge from emacs--cvs-trunk--0
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-158
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-159
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-160
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-161
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-162
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-163
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-164
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-165
Update from CVS: texi/message.texi: Fix default values.
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-166
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-167
Update from CVS
* miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-168
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-448
2005-12-11 22:42:40 +00:00
Richard M. Stallman
2cb33a9853
(syms_of_xdisp) <blink-cursor-alist>: Doc fix.
2005-12-11 15:40:37 +00:00
Richard M. Stallman
2231a9e22d
(EQ): Use == so args are computed just once.
2005-12-11 15:35:51 +00:00
Richard M. Stallman
49daa5b162
(Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
...
(Flookup_key): Doc fix.
(syms_of_keymap) <function-key-map>: Doc fix.
2005-12-11 15:35:14 +00:00