aboutsummaryrefslogtreecommitdiffstats
path: root/src/emacs.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* 2005-07-01 Masatake YAMATO <[email protected]>Masatake YAMATO2005-06-301-1/+7
| | | | | * emacs.c (main): Passing ADD_NO_RANDOMIZE to `personality'.
* Include w32heap.h, to avoid compiler warning about sbrk.Eli Zaretskii2005-06-041-0/+1
|
* (syms_of_emacs): Fix doc string for system-type.Nick Roberts2005-05-131-10/+10
|
* (main) [MAC_OS8]: Call init_atimer before mac_term_init.YAMAMOTO Mitsuharu2005-05-131-0/+3
|
* (USAGE3, USAGE4): Keep strings below 2048 bytes.Jason Rumney2005-05-021-4/+4
|
* (USAGE1): Add --basic-display and --quick options.Nick Roberts2005-04-281-1/+4
|
* (main) [MAC_OS8 || MAC_OSX && HAVE_CARBON]: Call syms_of_macselect.YAMAMOTO Mitsuharu2005-04-241-0/+2
|
* (standard_args): Rename --bare-bones to --quick.Richard M. Stallman2005-04-101-2/+4
| | | | Add -D aka --basic-display.
* (standard_args): Add -Q, --bare-bones, -bare-bones.Kim F. Storm2005-04-061-0/+2
|
* (Fkill_emacs): YAILOM.Stefan Monnier2005-03-171-1/+1
|
* (USAGE1): Replace Info node name "command arguments"Juri Linkov2005-03-051-2/+4
| | | | | | | | with "emacs invocation". (USAGE3): Fix usage of `--color=MODE' which actually doesn't allow arguments `--color' and `MODE' to be separated by space. Add --no-blinking-cursor, -nbc. (standard_args): Add -nbc, --no-blinking-cursor.
* (main): Change `#ifdef HAVE_CARBON' to `#if defined (MAC_OSX) &&YAMAMOTO Mitsuharu2005-03-041-3/+3
| | | | defined (HAVE_CARBON)'.
* (Fkill_emacs): Use EXIT_SUCCESS;Thien-Thi Nguyen2005-03-031-7/+2
| | | | no longer special-case VMS. Add bogus return value.
* 2004-11-08 Benjamin Riefenstahl <[email protected]>Jason Rumney2005-02-151-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * w32select.c: Summary: Thorough rework to implement Unicode clipboard operations and delayed rendering. Drop last_clipboard_text and related code, keep track of ownership via clipboard_owner instead. Drop old #if0 sections. (DEFAULT_LCID, ANSICP, OEMCP, QUNICODE, QANSICP, QOEMCP) (clipboard_owner, modifying_clipboard, cfg_coding_system) (cfg_codepage, cfg_lcid, cfg_clipboard_type, current_text) (current_coding_system, current_requires_encoding) (current_num_nls, current_clipboard_type, current_lcid): New static variables. (convert_to_handle_as_ascii, convert_to_handle_as_coded) (render, render_all, run_protected, lisp_error_handler) (owner_callback, create_owner, setup_config) (enum_locale_callback, cp_from_locale, coding_from_cp): New local functions. (term_w32select, globals_of_w32select): New global functions. (Fw32_set_clipboard_data): Ignore parameter FRAME, use clipboard_owner instead. Use delayed rendering and provide all text formats. Provide CF_LOCALE if necessary. (Fw32_get_clipboard_data): Handle CF_UNICODETEXT and CF_LOCALE. Fall back to CF_TEXT, if CF_UNICODETEXT is not available. Force DOS line-ends for decoding. (Fx_selection_exists_p): Handle CF_UNICODETEXT. (syms_of_w32select): Init and register new variables. * w32.h: Add prototypes for globals_of_w32select and term_w32select. Make the neighboring K&R declarations into prototypes, too. * emacs.c: Include w32.h to get function prototypes. (main): Call globals_of_w32select. * w32.c (term_ntproc): Call term_w32select. * mule-cmds.el (set-locale-environment): Remove call to set-selection-coding-system on Windows. * s/ms-w32.h: Guard MSC-specific #pragmas with an #ifdef.
* (syms_of_emacs): Improve docstring of `system-type'.Stefan Monnier2005-01-181-3/+12
|
* * dispextern.h: Change HAVE_CARBON to MAC_OS.Steven Tamm2004-12-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (struct glyph_string): Likewise. * emacs.c (main) [MAC_OS8]: Call mac_term_init instead of mac_initialize. * fileio.c (Fnext_read_file_uses_dialog_p, Fread_file_name): Change TARGET_API_MAC_CARBON to HAVE_CARBON. * fns.c (vector): Change MAC_OSX to MAC_OS. * frame.c (x_set_frame_parameters, x_report_frame_params) (x_set_fullscreen): Remove #ifndef HAVE_CARBON. (x_set_border_width, Vdefault_frame_scroll_bars): Change HAVE_CARBON to MAC_OS. * image.c [MAC_OS]: Include sys/stat.h. [MAC_OS && !MAC_OSX]: Include sys/param.h, ImageCompression.h, and QuickTimeComponents.h. * mac.c [!MAC_OSX] (mac_wait_next_event): Add extern. [!MAC_OSX] (select): Use mac_wait_next_event. [!MAC_OSX] (run_mac_command): Change EXEC_SUFFIXES to Vexec_suffixes. [!MAC_OSX] (select, run_mac_command): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (mac_clear_font_name_table): Add extern. (Fmac_clear_font_name_table): New defun. (syms_of_mac): Defsubr it. [MAC_OSX] (SELECT_POLLING_PERIOD_USEC): New define. [MAC_OSX] (select_and_poll_event): New function. [MAC_OSX] (sys_select): Use it. [MAC_OSX && SELECT_USE_CFSOCKET] (socket_callback): New function. [MAC_OSX && SELECT_USE_CFSOCKET] (SELECT_TIMEOUT_THRESHOLD_RUNLOOP, EVENT_CLASS_SOCK): New defines. [MAC_OSX] (sys_select) [SELECT_USE_CFSOCKET]: Use CFSocket and RunLoop for simultaneously monitoring two kinds of inputs, window events and process outputs, without periodically polling. * macfns.c (mac_initialized): Remove extern. (stricmp): Put in #if 0. All callers changed to use xstricmp in xfaces.c. (strnicmp): Decrement `n' at the end of each loop, not the beginning. (check_mac): Use the term "Mac native windows" instead of "Mac OS". (check_x_display_info, x_display_info_for_name): Sync with xfns.c. (mac_get_rdb_resource): New function (from w32reg.c). (x_get_string_resource): Use it. (install_window_handler): Add extern. (mac_window): New function. (Fx_create_frame): Use it instead of make_mac_frame. Set parameter for Qfullscreen. Call x_wm_set_size_hint. (Fx_open_connection, Fx_close_connection): New defuns. (syms_of_macfns): Defsubr them. (x_create_tip_frame) [TARGET_API_MAC_CARBON]: Add kWindowNoUpdatesAttribute to the window attribute. (x_create_tip_frame) [!TARGET_API_MAC_CARBON]: Use NewCWindow. (x_create_tip_frame): Don't call ShowWindow. (Fx_show_tip): Call ShowWindow. (Fx_file_dialog): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (mac_frame_parm_handlers): Set handlers for Qfullscreen. (syms_of_macfns) [MAC_OSX]: Initialize mac_in_use to 0. * macgui.h [!MAC_OSX]: Don't include Controls.h. Include Windows.h. (Window): Typedef to WindowPtr and move outside `#if TARGET_API_MAC_CARBON'. (XSizeHints): New struct. * macterm.c (x_update_begin, x_update_end) [TARGET_API_MAC_CARBON]: Disable screen updates during update of a frame. (x_draw_glyph_string_background, x_draw_glyph_string_foreground) [MAC_OS8]: Use XDrawImageString/XDrawImageString16. (construct_mouse_click): Put in #if 0. (x_check_fullscreen, x_check_fullscreen_move): Remove decls. (x_scroll_bar_create, x_scroll_bar_handle_click): Change `#ifdef TARGET_API_MAC_CARBON' to `#if TARGET_API_MAC_CARBON'. (activate_scroll_bars, deactivate_scroll_bars) [!TARGET_API_MAC_CARBON]: Use ActivateControl/DeactivateControl. (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window if the position is neither user-specified nor program-specified. (x_free_frame_resources): Free size_hints. (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints. (mac_clear_font_name_table): New function. (mac_do_list_fonts): Initialize font_name_table if needed. (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT around mac_do_list_fonts. (mac_unload_font): New function. (x_load_font): Add BLOCK_INPUT around XLoadQueryFont. (init_mac_drag_n_drop, mac_do_receive_drag): Enclose declarations and definitions with #if TARGET_API_MAC_CARBON. [USE_CARBON_EVENTS] (mac_handle_window_event): Add decl. (install_window_handler): Add decl. (do_window_update): Add BeginUpdate/EndUpdate for the tooltip window. Use UpdateControls. Get the rectangle that should be updated and restrict the target of expose_frame to it. (do_grow_window): Set minimum height/width according to size_hints. (do_grow_window) [TARGET_API_MAC_CARBON]: Use ResizeWindow. (do_zoom_window): Don't use x_set_window_size. [USE_CARBON_EVENTS] (mac_handle_window_event): New function. (install_window_handler): New function. [!USE_CARBON_EVENTS] (mouse_region): New variable. [!USE_CARBON_EVENTS] (mac_wait_next_event): New function. (XTread_socket) [USE_CARBON_EVENTS]: Move call to GetEventDispatcherTarget inside BLOCK_INPUT. (XTread_socket) [!USE_CARBON_EVENTS]: Use mac_wait_next_event. Update mouse_region when mouse is moved. (make_mac_frame): Remove. (make_mac_terminal_frame): Put in #ifdef MAC_OS8. Initialize mouse pointer shapes. Change values of f->left_pos and f->top_pos. Don't use make_mac_frame. Use NewCWindow. Don't call ShowWindow. (mac_initialize_display_info) [MAC_OSX]: Create mac_id_name from Vinvocation_name and Vsystem_name. (mac_make_rdb): New function (from w32term.c). (mac_term_init): Use it. Add BLOCK_INPUT. Error if display has already been opened. Don't pass argument to mac_initialize_display_info. Don't set dpyinfo->height/width. Add entries to x_display_list and x_display_name_list. (x_delete_display): New function. (mac_initialize): Don't call mac_initialize_display_info. (syms_of_macterm) [!MAC_OSX]: Don't call Fprovide. * macterm.h (check_mac): Add extern. (struct mac_output): New member size_hints. (FRAME_SIZE_HINTS): New macro. (mac_unload_font): Add extern. * xdisp.c (expose_window, expose_frame): Remove kludges for Mac. * xfaces.c (clear_font_table) [MAC_OS]: call mac_unload_font.
* (main): If batch mode, set Vundo_outer_limit to nil.Richard M. Stallman2004-12-231-1/+4
|
* * syssignal.h: Declare main_thread.Jan Djärv2004-12-151-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | (SIGNAL_THREAD_CHECK): New macro. * keyboard.c (input_available_signal): Move thread checking code to macro SIGNAL_THREAD_CHECK and call that macro. (interrupt_signal): Call SIGNAL_THREAD_CHECK. * alloc.c (uninterrupt_malloc): Move main_thread to emacs.c. * emacs.c: Define main_thread. (main): Initialize main_thread. (handle_USR1_signal, handle_USR2_signal, fatal_error_signal) (memory_warning_signal): Call SIGNAL_THREAD_CHECK. * floatfns.c (float_error): Call SIGNAL_THREAD_CHECK. * dispnew.c (window_change_signal): Call SIGNAL_THREAD_CHECK. * sysdep.c (select_alarm): Call SIGNAL_THREAD_CHECK. * process.c (send_process_trap, sigchld_handler): Call SIGNAL_THREAD_CHECK. * data.c (arith_error): Call SIGNAL_THREAD_CHECK. * atimer.c (alarm_signal_handler): Call SIGNAL_THREAD_CHECK.
* (main, Fdump_emacs): Don't touch malloc hooks if SYNC_INPUT.Stefan Monnier2004-12-111-1/+3
|
* * emacs.c (Fdump_emacs): Add ! defined (SYSTEM_MALLOC) aroundJan Djärv2004-12-071-1/+1
| | | | | | | reset_malloc_hooks. * keyboard.c (handle_async_input, input_available_signal): Add ! defined (SYSTEM_MALLOC) around thread code.
* * gtkutil.c: Include signal.h and syssignal.h.Jan Djärv2004-12-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | (xg_get_file_name): Block and unblock __SIGRTMIN if defined. * alloc.c: If HAVE_GTK_AND_PTHREAD, include pthread.h, new variables main_thread and alloc_mutex, define (UN)BLOCK_INPUT_ALLOC to use alloc_mutex to protect emacs_blocked_* calls and only do (UN)BLOCK_INPUT in the main thread. If not HAVE_GTK_AND_PTHREAD, (UN)BLOCK_INPUT_ALLOC is the same as (UN)BLOCK_INPUT. (emacs_blocked_free, emacs_blocked_malloc) (emacs_blocked_realloc): Use (UN)BLOCK_INPUT_ALLOC. (uninterrupt_malloc): Initialize main_thread and alloc_mutex. (reset_malloc_hooks): New function. * lisp.h: Declare reset_malloc_hooks. * emacs.c (Fdump_emacs): Call reset_malloc_hooks. * keyboard.c: Conditionally include pthread.h (handle_async_inpu, input_available_signalt): If not in the main thread, block signal, send signal to main thread and return.
* (malloc_initialize_hook): Don't free malloc_state_ptr ifKim F. Storm2004-11-301-4/+6
| | | | XMALLOC_OVERRUN_CHECK to avoid crash during load.
* (init_cmdargs): Set unibyte strings in Vcommand_line_args.Kenichi Handa2004-11-291-1/+5
|
* (Fdump_emacs): Fix format string.Kim F. Storm2004-11-091-1/+1
|
* * emacs.c (Fdump_emacs): Only output warning on GNU/Linux.Jan Djärv2004-11-071-4/+7
|
* Whitespace fixup.Andreas Schwab2004-11-071-7/+5
|
* (USAGE3): Delete --horizontal-scroll-bars, -hb.Richard M. Stallman2004-11-021-1/+0
|
* * emacs.c (my_heap_start, heap_bss_diff, MAX_HEAP_BSS_DIFF):Jan Djärv2004-10-201-1/+64
| | | | | | | | | | | | | | | New variables and constant. (main): Calculate heap_bss_diff. If we are dumping and the heap_bss_diff is greater than MAX_HEAP_BSS_DIFF, set PER_LINUX32 and exec ourself again. (Fdump_emacs): If heap_bss_diff is greater than MAX_HEAP_BSS_DIFF print a warning. * lastfile.c: Make my_endbss and my_endbss_static available on all platforms. * Makefile.in (RUN_TEMACS): Remove @SETARCH@. * config.in (HAVE_PERSONALITY_LINUX32): Regenerate.
* (Vsignal_USR1_hook, Vsignal_USR2_hook): Definitions deleted.Richard M. Stallman2004-06-241-20/+0
| | | | (syms_of_emacs): Lisp variables deleted.
* (shut_down_emacs): Inhibit redisplay during shutdown.Kim F. Storm2004-06-111-0/+5
|
* (main): Update copyright year.Richard M. Stallman2004-05-221-1/+1
|
* (gdb_array_mark_flag): Define.Andreas Schwab2004-05-151-0/+1
|
* (main) [VMS]: Fix var ref.Thien-Thi Nguyen2004-05-061-1/+1
|
* (gdb_use_union, gdb_use_lsb): New vars.Stefan Monnier2004-04-031-2/+11
| | | | (gdb_emacs_intbits): Remove.
* (main): Call syms_of_xmenu only if HAVE_MENUS is defined.Eli Zaretskii2004-03-131-0/+2
|
* Image consolidation:Kim F. Storm2004-03-111-3/+2
| | | | | (main) [HAVE_WINDOW_SYSTEM]: Add calls to syms_of_image and init_image. Remove call to init_xfns.
* Inserting Yamomotosan's changes for MacOSX image support, better supportSteven Tamm2004-02-261-1/+1
| | | | of Asian fonts, and some long awaited header cleanup and centralization.
* (USAGE1): Split into two halves.Eli Zaretskii2004-02-211-6/+10
| | | | | | (USAGE2): Second half of the old USAGE1. (USAGE3): Renamed from USAGE2. (USAGE4): Renamed from USAGE3.
* (USAGE1): Add --no-desktop. Move --display from USAGE2.Eli Zaretskii2004-02-211-51/+54
| | | | | | Fix --multibyte. Move --help, --version to USAGE2. Add alias --file. Fix -f, -l. Sort options. Untabify. (USAGE2): Add -hb. Fix --name, --title. Sort options. Untabify.
* (main) [HAVE_WINDOW_SYSTEM]: Call init_fringe_once,Kim F. Storm2004-02-081-0/+9
| | | | syms_of_fringe, and init_fringe.
* Remove period at end of error message.Jan Djärv2003-11-161-1/+1
|
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (main) [WINDOWSNT]: Move it here.Jason Rumney2003-05-211-1/+7
|
* Comment change.Richard M. Stallman2003-05-191-1/+1
|
* Include window.h.Stefan Monnier2003-05-141-1/+2
|
* Revisited my earlier fix for the following entry in etc/PROBLEMS: 'Emacs ↵Ben Key2002-12-181-0/+12
| | | | built on Windows 9x/ME crashes at startup on Windows XP, or Emacs builtpart of on XP crashes at startup on Windows 9x/ME.' Fixed several Windows API errors detected by BoundsChecker
* (main) [!VMS]: Avoid third arg.Dave Love2002-11-141-1/+7
|
* Fix typo in comment.Juanma Barranquero2002-10-181-1/+1
|
* Minor white space fix, just to supplement the log for previous change:Markus Rost2002-10-121-1/+1
| | | | (syms_of_emacs) <kill-emacs-hook>: Doc fix (not run in batch mode).