summaryrefslogtreecommitdiff
path: root/src/emacs.c
Commit message (Collapse)AuthorAgeFilesLines
* (syms_of_emacs) <path-separator>: Doc fix.Eli Zaretskii2007-01-091-1/+2
|
* (main): Rename user signals to sigusr1 and sigusr2.Kim F. Storm2006-12-191-2/+2
|
* (USAGE3): Clarify documentation of --color.Eli Zaretskii2006-12-151-1/+1
|
* (handle_user_signal): Move function to keyboard.c.YAMAMOTO Mitsuharu2006-12-141-20/+2
| | | | (main): Use add_user_signal for SIGUSR1 and SIGUSR2.
* (syms_of_emacs): Doc fix.Juanma Barranquero2006-12-081-1/+2
|
* (handle_USR1_signal, handle_USR2_signal): Replace by...Kim F. Storm2006-12-041-22/+7
| | | | | | (handle_user_signal): ... this, which generates two USER_SIGNAL_EVENTs first with code == 0 [signal] and one with code == sig number. (main): Use it as handler for SIGUR1 and SIGUSR2.
* (Fkill_emacs): Fix typo in docstring.Juanma Barranquero2006-11-021-1/+1
|
* (shut_down_emacs) [!subprocesses]: Don't set inhibit_sentinels.YAMAMOTO Mitsuharu2006-09-191-0/+2
|
* (shut_down_emacs): Set inhibit_sentinels.Richard M. Stallman2006-09-081-0/+1
|
* (main) [PROFILING]: Enable also for __MINGW32__.Eli Zaretskii2006-05-261-5/+10
| | | | [__MINGW32__]: MinGW-specific declaration of `etext'.
* (main, Fdump_emacs): Don't test __linux or __linux__.Richard M. Stallman2006-05-251-3/+3
|
* * dispnew.c (init_display): Check DISPLAY here.Andreas Schwab2006-03-201-12/+0
| | | | | * emacs.c (main): Don't check here. * xterm.c (x_display_ok): Don't use DISPLAY env var.
* (main): Fix last change.Eli Zaretskii2006-03-201-1/+1
|
* (main): If user asks for a display that is unavailable, simulate -nw.Eli Zaretskii2006-03-181-0/+12
|
* (main): Update copyright year.Romain Francoise2006-01-031-2/+2
|
* (gdb_pvec_type): A dummy variable for GDB's sake.Eli Zaretskii2005-12-311-0/+3
|
* (main) [MAC_OS8]: Undo previous change.YAMAMOTO Mitsuharu2005-12-111-3/+0
|
* (main) [MAC_OS8]: Call syms_of_keymap before syms_of_macselect.YAMAMOTO Mitsuharu2005-12-101-0/+3
|
* (main) [MAC_OSX]: Change working directory to homeYAMAMOTO Mitsuharu2005-11-231-2/+8
| | | | directory if `-psn_*' option is specified.
* (main): Update copyright year.Romain Francoise2005-10-191-1/+1
|
* -nb changed to -nbiJan Djärv2005-10-101-2/+2
|
* * emacs.c (standard_args): Removed options -i, -itype, --icon-type,Jan Djärv2005-10-091-3/+2
| | | | added -nb, --no-bitmap-icon.
* * image.c (slurp_file, xbm_read_bitmap_data): Cast to the correctDan Nicolaescu2005-09-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | type. * xterm.c (handle_one_xevent, handle_one_xevent): Likewise. * unexelf.c (fatal): Fix prototype. * term.c (fatal): Implement using varargs. * regex.c (re_char): Move typedef ... * regex.h (re_char): ... here. (re_iswctype, re_wctype, re_set_whitespace_regexp): New prototypes. * emacs.c (malloc_set_state): Fix return type. (endif): Fix type. * lisp.h (fatal): Add argument types. * dispextern.h (fatal): Delete prototype. * systime.h: (make_time): Prototype moved from ... * editfns.c (make_time): ... here. * editfns.c: Move systime.h include after lisp.h. * dired.c: * xsmfns.c: * process.c: Likewise. * alloc.c (old_malloc_hook, old_realloc_hook, old_realloc_hook): Add parameter types. (__malloc_hook, __realloc_hook, __free_hook): Fix prototypes. (emacs_blocked_free): Change definition to match __free_hook. (emacs_blocked_malloc): Change definition to match __malloc_hook. (emacs_blocked_realloc): Change definition to match __realloc_hook.
* (main): Don't conditionalize syms_of_xmenu on HAVE_XMENU.Richard M. Stallman2005-09-151-2/+0
|
* (USAGE1): Fix the description of the -Q option.Eli Zaretskii2005-08-271-1/+1
|
* (endif): Convert -script into -scriptload.Richard M. Stallman2005-08-071-4/+5
| | | | (standard_args): Add -scriptload. Allow -basic-display with one dash.
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-071-2/+2
|
* Update FSF's address.Lute Kamstra2005-07-041-2/+2
|
* 2005-07-01 Masatake YAMATO <jet@gyve.org>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 <Benjamin.Riefenstahl@epost.de>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.