1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-05 23:21:22 -08:00
Commit graph

426 commits

Author SHA1 Message Date
Glenn Morris
684d6f5bcc Switch license to GPLv3 or later. 2007-07-25 05:19:07 +00:00
Chong Yidong
44f015d2a4 (Fsxhash): Delete stray semicolon. 2007-06-05 00:24:47 +00:00
Glenn Morris
4e6835dbc4 Add 2007 to copyright years. 2007-01-21 04:57:37 +00:00
Eli Zaretskii
9bd1cd35fe (maybe_resize_hash_table): Copy new size of hash table into EMACS_INT to avoid
GCC warnings.
2007-01-13 21:47:31 +00:00
Juanma Barranquero
5ee699a782 (substring_both): Add missing address operator. 2006-11-24 19:55:23 +00:00
Stefan Monnier
7edbb0da2b Use AREF/ASIZE macros.
(concat): Provide the full ANSI prototype.
2006-11-24 18:42:14 +00:00
Eli Zaretskii
1ce0a32d36 (concat) [!__GNUC__]: Add prototype. 2006-11-20 20:57:06 +00:00
Juanma Barranquero
adf2c80377 (Frandom, Flength, Fsafe_length, Fstring_bytes, Fstring_equal, Fcompare_strings,
Fstring_lessp, Fcopy_sequence, Fstring_make_unibyte): Fix typos in docstrings.
2006-11-12 04:51:55 +00:00
Juanma Barranquero
4774b68e49 (Ffeaturep, syms_of_fns): Fix typos in docstrings. 2006-11-05 04:07:58 +00:00
Kenichi Handa
983f6a3da6 (optimize_sub_char_table): Don't optimize a sub-char-table
whose default value is non-nil.
2006-09-22 12:54:38 +00:00
Kim F. Storm
008ef0efaa (Fmemq): Refill doc string.
(Fmemql): New defun, like memq but using eql.
(syms_of_fns): Defsubr it.
2006-09-20 23:07:17 +00:00
Eli Zaretskii
af91f644f4 (concat) [__GNUC__]: Declare with `__attribute__((noinline))'. 2006-09-02 13:39:48 +00:00
Richard M. Stallman
11f56bbcfe (sxhash_string): Rotate properly; don't lose bits. 2006-08-25 07:47:12 +00:00
Chong Yidong
d5f1215543 (Fy_or_n_p): Change call to read_filtered_event to use new arg. 2006-07-26 18:16:14 +00:00
Kim F. Storm
692ae65c86 (Flength): wrong_type_argument is no-return.
(hashfn_user_defined, Fmake_hash_table): Use signal_error.
(Fmd5): Use xsignal1.
2006-07-18 13:28:02 +00:00
Kim F. Storm
89662fc363 (Flength, Felt, Ffillarray): Remove loop around wrong_type_argument.
(Fcopy_sequence, concat): Cleanup wrong_type_argument use.
(concat): Use CHECK_NUMBER.
(Felt): Use CHECK_ARRAY.
(Fsubstring, substring_both): Use CHECK_VECTOR_OR_STRING.
(Fmemq): Use CHECK_LIST.
(Fassq, Fassoc, Frassq, Frassoc): Use CAR.
(assq_no_quit): Use CAR_SAFE.
(Fnthcdr, Fmember, Fdelq, Fdelete, Fnreverse, Fnconc):
Use CHECK_LIST_CONS.
(Freverse, Fplist_get, Flax_plist_get): Use CHECK_LIST_END.
2006-07-12 13:17:13 +00:00
Luc Teirlinck
ba13929931 (Fyes_or_no_p): Fread_from_minibuffer now takes only seven args. 2006-05-25 23:15:57 +00:00
YAMAMOTO Mitsuharu
3df07ecd20 [HAVE_MENUS && MAC_OS]: Include macterm.h. 2006-04-12 08:05:07 +00:00
Kim F. Storm
ea284f335c (sxhash_list): Include last non-nil CDR in hash. 2006-03-24 13:26:36 +00:00
Thien-Thi Nguyen
aaef169dc6 Update years in copyright notice; nfc. 2006-02-06 15:23:23 +00:00
Richard M. Stallman
989e66e151 (Fprovide): Store (0 . OFEATURES) in Vautoload_queue. 2005-12-26 04:45:11 +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
Kim F. Storm
d9cdfe9a72 (Fchar_table_range): Remove unused var i. 2005-10-20 15:03:26 +00:00
Dan Nicolaescu
43f15d4afe * xlwmenu.c (find_next_selectable):
(find_prev_selectable): Add missing parameter
declarations.

* xfaces.c (lookup_derived_face): Add parameter type.

* xdisp.c (cursor_row_fully_visible_p): Add parameter type.

* marker.c (verify_bytepos): Add parameter type.

* process.c (get_operating_system_release): Move prototype ...

* systime.h (get_operating_system_release): ... here.

* xterm.c (set_vertical_scroll_bar): Move prototype ...

* xterm.h: ... here.

* fns.c (internal_equal, seed_random): Fix prototypes.
(internal_equal): Add missing parameter.
2005-09-27 18:48:59 +00:00
Richard M. Stallman
71f6424d02 (Fsort): Doc fix. 2005-09-04 01:11:43 +00:00
Richard M. Stallman
780a781443 (syms_of_fns): Add `emacs' to features. 2005-08-07 17:36:12 +00:00
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
Kenichi Handa
c061dd8f05 (Fstring_as_multibyte): Escape backslashes in the
docstring.
2005-07-19 02:38:57 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Juanma Barranquero
d17f5d0a5f (Fchar_table_range): Fix spellings. 2005-06-21 13:31:30 +00:00
Kim F. Storm
5c796e808c (Fsort): Doc fix. 2005-06-20 21:37:27 +00:00
Juanma Barranquero
c14ec13543 (Fmemq, Fmaphash): Doc fixes. 2005-06-09 23:27:58 +00:00
Kim F. Storm
859463640a (mapcar1): Maybe exit loop if original sequence was modified. 2005-06-01 11:42:19 +00:00
Nick Roberts
f0a31d7055 (Fyes_or_no_p, Fy_or_n_p): Call Fx_popup_dialog with
a third argument (Qnil).
2005-05-24 10:27:22 +00:00
Juanma Barranquero
e475c66a1e (Fchar_table_range): Fix typos in docstring. 2005-05-06 23:04:31 +00:00
Stefan Monnier
7ec64183c1 (Fchar_table_range): Yet Another Int/Lisp_Object Mixup. 2005-05-06 22:17:30 +00:00
Kenichi Handa
38f60cd97f (char_table_range): New function.
(Fchar_table_range): Signal an error if characters in the range
have inconsistent values.  Don't check the parent.
2005-04-26 04:07:40 +00:00
Kenichi Handa
1468c19bdd (copy_sub_char_table): Explicitly copy the default value
of the sub-chartable.
2005-04-22 07:11:08 +00:00
Kim F. Storm
12ae7fc611 (Fplist_get): Replace by Fsafe_plist_get.
(Fsafe_plist_get): Rename to Fplist_get.
(Fsafe_get): Remove, as Fget now uses safe Fplist_get.
(defsubr): Remove defsubr for Fsafe_plist_get and Fsafe_get.
2005-04-21 23:44:59 +00:00
Kenichi Handa
2b048bf561 (Fset_char_table_range): Don't set slots used as default
values for ascii, eight-bit-control, eight-bit-graphic.  Don't
call Faref with charset-id.
(Fset_char_table_default): Document how to treat normal character
argument.  Handle special slots used as default values of ascii,
eight-bit-control, eight-bit-control.  Make a sub chartable if
necessary.
2005-04-20 07:50:59 +00:00
Kim F. Storm
7f2646c96c (Fsafe_get): New function.
(syms_of_fns): Defsubr it.
2005-04-19 08:34:19 +00:00
Lute Kamstra
7aed223df9 (Vloads_in_progress): Remove extern.
(load_in_progress): Add extern.
(Frequire): Use load_in_progress instead of Vloads_in_progress.
2005-04-18 10:20:46 +00:00
Stefan Monnier
862779db9d (Fstring_as_multibyte, Fstring_to_multibyte): Docstring fixes. 2005-04-10 19:02:24 +00:00
Richard M. Stallman
9d5c2e7e2c (Vloads_in_progress): Add extern.
(Frequire): Don't do LOADHIST_ATTACH if Vloads_in_progress is nil.
2005-04-10 00:28:00 +00:00
Kim F. Storm
d278cde036 (sweep_weak_table): Advance prev pointer when we keep a pair. 2005-01-19 00:08:30 +00:00
Richard M. Stallman
5ba8f83ded (Frequire): Record in load-history unconditionally. 2005-01-12 05:03:22 +00:00
Steven Tamm
b15325b22a * dispextern.h: Change HAVE_CARBON to MAC_OS.
(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.
2004-12-27 17:27:30 +00:00
Kim F. Storm
2ec7f67a91 (concat): Use SAFE_ALLOCA. 2004-11-29 15:35:15 +00:00
Luc Teirlinck
8181f402ed (Fyes_or_no_p): Call Fread_from_minibuffer with extra argument. 2004-11-21 00:57:49 +00:00
Stefan Monnier
2a1893f46c Avoid side-effects inside XSETFASTINT's arguments. 2004-11-16 15:35:14 +00:00