1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-15 07:41:09 -08:00
Commit graph

20787 commits

Author SHA1 Message Date
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
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
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
Juri Linkov
d7d1f75e5e *** empty log message *** 2005-12-11 09:57:08 +00:00
Juri Linkov
5203cd0380 (display_completion_list_1): Call `minibuffer_completion_contents'
instead of using `nil' as second arg of `Fdisplay_completion_list'.
(keys_of_minibuf): Unbind SPC in Vminibuffer_local_filename_completion_map
(see also related change on 2005-12-06).
2005-12-11 09:50:53 +00:00
Richard M. Stallman
06100606c1 (Frequire): Treat evaluating from a source file
like loading the file.
2005-12-11 05:10:08 +00:00
Richard M. Stallman
356e6d8de4 (Flog): Doc fix. 2005-12-11 05:09:00 +00:00
Richard M. Stallman
83c1cf6df6 (Finsert_file_contents): Set Vdeactivate_mark when we change the buffer. 2005-12-11 05:08:18 +00:00
Richard M. Stallman
7c0ab7d9e4 Comment and whitespace changes. 2005-12-11 05:07:16 +00:00
YAMAMOTO Mitsuharu
ac8fcf0f17 *** empty log message *** 2005-12-11 01:06:48 +00:00
YAMAMOTO Mitsuharu
4d4983fdb3 (syms_of_macselect) <mac-apple-event-map>:
Initialize to nil.  Keymap is now created in lisp/term/mac-win.el.
2005-12-11 01:06:29 +00:00
YAMAMOTO Mitsuharu
77892c7340 (main) [MAC_OS8]: Undo previous change. 2005-12-11 01:06:20 +00:00
Karoly Lorentey
16986fcfcc Merged in changes from CVS trunk.
Patches applied:

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

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

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


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-447
2005-12-10 21:18:28 +00:00
YAMAMOTO Mitsuharu
4b3eb40742 *** empty log message *** 2005-12-10 01:50:23 +00:00
YAMAMOTO Mitsuharu
0f8dad4545 (enum event_kind) [MAC_OS]: Add new MAC_APPLE_EVENT event. 2005-12-10 01:50:12 +00:00
YAMAMOTO Mitsuharu
24d5a45ded (mac_make_lispy_event_code, mac_aedesc_to_lisp): Add externs.
(create_apple_event_from_event_ref) [TARGET_API_MAC_CARBON]: Likewise.
(Fmac_get_preference): Add EXFUN.
2005-12-10 01:50:02 +00:00
YAMAMOTO Mitsuharu
6a0b5d3781 (Qmac_ready_for_drag_n_drop, Qapplication, Qabout)
(Qpreferences): Remove variables.
(syms_of_macterm) : Don't initialize them.
(Qhicommand) [USE_CARBON_EVENTS]: New variable.
(syms_of_macterm) [USE_CARBON_EVENTS]: Initialize it.
(init_required_apple_events, do_ae_open_application)
(do_ae_print_documents, do_ae_open_documents)
(do_ae_quit_application): Remove functions and prototypes.
(mac_ready_for_apple_events, Qundefined, init_apple_event_handler)
(mac_find_apple_event_spec): Add externs.
(mac_store_application_menu_event): Remove function.
(mac_store_apple_event, mac_make_lispy_event_code): New functions.
(mac_handle_command_event): Create Apple event from Carbon event.
Use mac_store_apple_event instead of mac_store_application_menu_event.
[MAC_OSX] (mac_store_services_event): Likewise.
(struct SelectionRange, SelectionRange): Remove struct and typedef.
[MAC_OS8] (main): Call init_apple_event_handler instead of
init_required_apple_events.
(mac_initialize) [MAC_OSX]: Likewise.
[!USE_CARBON_EVENTS] (mac_wait_next_event): Use
mac_ready_for_apple_events instead of Qmac_ready_for_drag_n_drop.
2005-12-10 01:49:53 +00:00
YAMAMOTO Mitsuharu
28714a27a1 Include keymap.h.
(mac_ready_for_apple_events): New variable.
(Vmac_apple_event_map, Qmac_apple_event_class)
(Qmac_apple_event_id): New variables.
(syms_of_macselect): Initialize them.
(Qundefined, mac_store_apple_event): Add externs.
(struct apple_event_binding): New struct.
(find_event_binding_fun, find_event_binding)
(mac_find_apple_event_spec, defer_apple_events)
(mac_handle_apple_event, init_apple_event_handler)
(copy_scrap_flavor_data): New functions.
(Fmac_process_deferred_apple_events): New defun.
(syms_of_macselect): Defsubr it.
(mac_store_services_event): Fix extern.
(mac_handle_service_event): Don't allocate Lisp objects during
asynchronous input processing.  Use mac_store_services_event
instead of mac_store_application_menu_event.
2005-12-10 01:49:44 +00:00
YAMAMOTO Mitsuharu
31b6888a5c (Qundecoded_file_name): New variable.
(syms_of_mac): Initialize it.
(mac_aelist_to_lisp, mac_aedesc_to_lisp): New functions.
[TARGET_API_MAC_CARBON] (create_apple_event_from_event_ref): New
function.
(Fmac_coerce_ae_data): New defun.
(syms_of_mac): Defsubr it.
2005-12-10 01:49:36 +00:00
YAMAMOTO Mitsuharu
f66c49cc1c (Qmac_apple_event) [MAC_OS]: New variable.
(syms_of_keyboard) [MAC_OS]: Initialize it.
(make_lispy_event) [MAC_OS]: Build lisp event for MAC_APPLE_EVENT.
2005-12-10 01:49:24 +00:00
YAMAMOTO Mitsuharu
dac5344bda (init_image) [MAC_OS]: Don't call EnterMovies.
[!HAVE_GIF && MAC_OS] (gif_load): Call EnterMovies.
2005-12-10 01:49:15 +00:00
YAMAMOTO Mitsuharu
a7b2485287 (main) [MAC_OS8]: Call syms_of_keymap before syms_of_macselect. 2005-12-10 01:49:06 +00:00