Commit graph

31614 commits

Author SHA1 Message Date
Juanma Barranquero
ac389d0c75 src/gnutls.c (init_gnutls_functions): Honor gnutls_log_level (bug#9059). 2011-07-13 22:33:44 +02:00
Eli Zaretskii
0be0ce4741 src/buffer.c (mmap_find): Fix a typo. 2011-07-13 00:09:28 -04:00
Johan Bockgård
cd18e7e3f4 Fix execution of x selection hooks.
* xselect.c (Qx_lost_selection_functions)
(Qx_sent_selection_functions): New vars.
(syms_of_xselect): DEFSYM them.
(x_handle_selection_request): Pass Qx_sent_selection_functions
rather than Vx_sent_selection_functions to Frun_hook_with_args.
(x_handle_selection_clear,x_clear_frame_selections):
Pass Qx_lost_selection_functions rather than
Vx_lost_selection_functions to Frun_hook_with_args.
2011-07-13 03:48:43 +02:00
Paul Eggert
2941c447eb * buffer.c (Fget_buffer_create): Initialized inhibit_shrinking.
The old code sometimes used this field without initializing it.
2011-07-12 18:15:33 -07:00
Paul Eggert
47ea7f442f * alloc.c (gc_sweep): Don't read past end of array.
In theory, the old code could also have corrupted Emacs internals,
though it'd be very unlikely.
2011-07-12 18:04:29 -07:00
Andreas Schwab
bc985c877c * src/character.c (Fcharacterp): Don't advertise optional ignored
argument. (Bug#4026)
2011-07-12 23:17:39 +02:00
Lars Magne Ingebrigtsen
b3dadd7683 (syms_of_keymap): Clarify that "modifier" is "modifier key"
Fixes: debbugs:4257
2011-07-12 23:12:36 +02:00
Lars Magne Ingebrigtsen
0cf346886f window.c doc fixes.
Fixes: debbugs:4199
2011-07-12 23:09:01 +02:00
Paul Eggert
077e3dda94 Merge: Fix minor new problems caught by GCC 4.6.1. 2011-07-12 10:29:33 -07:00
Paul Eggert
490011a6cc * xsettings.c (store_monospaced_changed): Define only if used. 2011-07-12 09:47:56 -07:00
Paul Eggert
270768cd6e * term.c (init_tty): Remove unused local. 2011-07-12 09:39:15 -07:00
Chong Yidong
b1f5845471 * xdisp.c (Vresize_mini_windows): Incredibly minor doc fix (Bug#3300). 2011-07-11 23:04:06 -04:00
Lars Magne Ingebrigtsen
6e70ab070f Make it explicit that the mini-windows are the mini-buffer and the echo area
Fixes: debbugs:3320
2011-07-11 17:55:00 +02:00
Lars Magne Ingebrigtsen
22b9578d36 Remove support for supdup, c10 and perq terminals, which are no longer supported.
Fixes: debbugs:1482
2011-07-11 17:16:10 +02:00
Johan Bockgård
8974cc9fd1 * src/xdisp.c (Ftool_bar_lines_needed): Fix WINDOWP check. 2011-07-10 23:49:05 +02:00
Jan Djärv
a560d9743a * xmenu.c (menu_highlight_callback): Only pass frame to show_help_event
for non-popups.

Fixes: debbugs:3642
2011-07-10 18:55:22 +02:00
Andreas Schwab
268c2c36f4 Protoize
* src/alloc.c (reset_malloc_hooks): Protoize.
* src/cm.c (losecursor): Likewise.
* src/ralloc.c (r_alloc_check): Likewise.
2011-07-10 10:52:10 +02:00
Andreas Schwab
1dae0f0aad Protoize
* src/buffer.c (mmap_init, mmap_find, mmap_free_1, mmap_enlarge)
(mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Protoize.
* src/data.c (fmod): Likewise.
* src/dispnew.c (swap_glyphs_in_rows): Likewise.
* src/emacs.c (memory_warning_signal): Likewise.
* src/floatfns.c (float_error): Likewise.
* src/font.c (check_gstring, check_otf_features, otf_tag_symbol)
(otf_open, font_otf_capability, generate_otf_features)
(font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
Likewise.
* src/image.c (pbm_read_file): Likewise.
* src/indent.c (string_display_width): Likewise.
* src/intervals.c (check_for_interval, search_for_interval)
(inc_interval_count, count_intervals, root_interval)
(adjust_intervals_for_insertion, make_new_interval): Likewise.
* src/lread.c (defalias): Likewise.
* src/regex.c (set_image_of_range_1, set_image_of_range)
(regex_grow_registers): Likewise.
* src/sysdep.c (strerror): Likewise.
* src/termcap.c (valid_filename_p, tprint, main): Likewise.
* src/tparam.c (main): Likewise.
* src/unexhp9k800.c (run_time_remap, save_data_space)
(update_file_ptrs, read_header, write_header, calculate_checksum)
(copy_file, copy_rest, display_header): Likewise.
* src/widget.c (mark_shell_size_user_specified, create_frame_gcs):
Likewise.
* src/xdisp.c (check_it): Likewise.
* src/xfaces.c (register_color, unregister_color, unregister_colors):
Likewise.
* src/xfns.c (print_fontset_result): Likewise.
* src/xrdb.c (member, fatal, main): Likewise.
2011-07-10 10:20:10 +02:00
Paul Eggert
99033785c7 Fix ChangeLog to reflect merge better. 2011-07-09 21:58:22 -07:00
Paul Eggert
0f5860c118 Merge from trunk. 2011-07-09 21:54:04 -07:00
Juanma Barranquero
9cb2ac5616 src/chartab.c (uniprop_table_uncompress): Remove unused local variable. 2011-07-09 15:58:09 +02:00
Jan Djärv
f25661f0c3 * gtkutil.c (qttip_cb): Remove code without function. 2011-07-09 09:59:22 +02:00
Eli Zaretskii
8278c4fef8 Fix MS-Windows build broken by 2011-07-08T20:39:30Z!eggert@cs.ucla.edu.
src/w32.c (pthread_sigmask): New stub.
2011-07-09 10:00:58 +03:00
Paul Eggert
3d29b229d8 Add Bug#. 2011-07-08 23:39:37 -07:00
Paul Eggert
5a9c433211 Fix minor problems found by static checking.
* chartab.c (char_table_set_range, map_sub_char_table)
(uniprop_table_uncompress): Remove unused locals.
(uniprop_table): Now static.
* composite.c (_work_char): Remove unused static var.
* gtkutil.c (qttip_cb): Remove stray no-effect statement.
2011-07-08 23:28:40 -07:00
Paul Eggert
1301ac268f Merge: Use pthread_sigmask, not sigprocmask (Bug#9010). 2011-07-08 13:39:30 -07:00
Paul Eggert
67517972df Merge from trunk. 2011-07-08 13:22:17 -07:00
Paul Eggert
2a84b02da8 Simplify Emacs part of pthread_sigmask support.
* Makefile.in (GNULIB_TOOL_FLAGS): Do not avoid sigprocmask.
* configure.in (AC_TYPE_UID_T): New dummy macro.
Configure gnulib after adjusting LIBS,
so that gnulib can assume the libraries in LIBS.
* lib/pthread_sigmask.c, lib/sigprocmask.c, m4/signalblocking.m4:
New files, automatically imported from gnulib.
* lib/gnulib.mk, m4/gl-comp.m4: Regenerate.
* src/Makefile.in (LIB_PTHREAD_SIGMASK): New macro.
(LIBES): Use it.
2011-07-08 13:20:19 -07:00
Jan Djärv
1b85461891 Better fix that keeps corret margins in tooltip.
* gtkutil.c (qttip_cb): Set line wrap to FALSE for tooltip widget.
(xg_prepare_tooltip): Revert text in x->ttip_lbl, margins was
wrong.

Fixes: debbugs:8591
2011-07-08 19:57:55 +02:00
Jan Djärv
0ce7e563da Don't let Gtk+ linewrap tooltips.
* gtkutil.c (xg_prepare_tooltip): Fix indentation and comment.
Put text in x->ttip_lbl instead of gtk_tooltip_set_text.
(xg_hide_tooltip): Fix comment.

Fixes: debbugs:8591
2011-07-08 19:25:17 +02:00
Jan Djärv
3fe4b54936 Fix breakage introduced by fixing Bug#8842.
* nsfns.m (Fx_open_connection): Put NSStringPboardType into
ns_return_type.

* nsterm.m (initFrameFromEmacs): Don't use ns_return_types
in registerServicesMenuSendTypes.
(validRequestorForSendType): Don't check ns_return_types.
2011-07-08 17:39:40 +02:00
Jason Rumney
5df75e47ac * src/w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using
frame struct members of non-existent frames.

Fixes: debbugs:6284
2011-07-08 20:46:17 +08:00
Jan Djärv
4393663bc5 Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces.
* emacs.c: Declare unexec_init_emacs_zone.

* nsfns.m (check_ns_display_info): Cast to long and use %ld in error
to avoid warning.

* nsimage.m (allocInitFromFile): Don't use deprecated method
bestRepresentationForDevice on OSX >= 10.6.

* nsmenu.m (fillWithWidgetValue): Don't use depercated method
sizeToFit on OSX >= 10.2.

* nsselect.m (ns_string_from_pasteboard): Don't use deprecated methods
cString and lossyCString on OSX >= 10.4

* nsterm.h (MAC_OS_X_VERSION_10_3, MAC_OS_X_VERSION_10_4)
(MAC_OS_X_VERSION_10_5): Define if not defined.
(EmacsView, EmacsTooltip): Implements NSWindowDelegate on OSX >= 10.6.
(EmacsMenu): Implements NSMenuDelegate on OSX >= 10.6.
(EmacsToolbar): Implements NSToolbarDelegate on OSX >= 10.6.

* nsterm.m (keyDown): Call to wantsToDelayTextChangeNotifications and
variable firstTime not needed on OSX >= 10.6.
(setPosition): setFloatValue:knobProportion: is deprecated on OSX
>= 10.5.  Use setKnobProportion, setDoubleValue.
2011-07-08 12:04:23 +02:00
Paul Eggert
1692ae2dd5 Merge from trunk. 2011-07-08 02:38:32 -07:00
Jan Djärv
a63e078125 * nsgui.h: Fix compiler warning about gnulib redefining verify. 2011-07-08 10:42:58 +02:00
Jan Djärv
699c10bd69 Fix services menu empty on OSX 1.6+.
* nsfns.m (Fx_open_connection): Remove NSStringPboardType from
ns_return_types.
(Fns_list_services): Just return Qnil on 10.6, code not working there.

* nsmenu.m (ns_update_menubar): Remove useless setDelegate call
on svcsMenu.

* nsselect.m (ns_get_local_selection): Change to extern (Bug#8842).

* nsterm.h (MAC_OS_X_VERSION_10_6): Define here instead of nsterm.m.
(ns_get_local_selection): Declare.

* nsterm.m (QUTF8_STRING): Declare.
(initFrameFromEmacs): Call registerServicesMenuSendTypes.
(validRequestorForSendType): Return type is (id).
Change indexOfObjectIdenticalTo to indexOfObject.
Check if we have local selection before returning self (Bug#8842).
(writeSelectionToPasteboard): Put local selection into paste board
if we have a local selection (Bug#8842).
(syms_of_nsterm): DEFSYM QUTF8_STRING.
2011-07-08 10:11:35 +02:00
Lars Magne Ingebrigtsen
9888ff71e3 (describe_map_tree): Don't insert a double newline at the end of the string
Return whether we inserted something.  This should allow the caller to
decide whether to insert more newlines or not.

Fixes: debbugs:1169
2011-07-07 19:19:10 +02:00
Lars Magne Ingebrigtsen
54e1018443 Clarify the `call-interactively' doc string, and add an example. 2011-07-07 18:59:26 +02:00
Chong Yidong
412f24b9dd Merge from emacs-23 branch 2011-07-07 12:18:25 -04:00
Eli Zaretskii
a8815b00dc Fix bug #9015 with a bogus crash with glyphless characters on a TTY.
src/term.c (produce_glyphs) <xassert>: Allow IT_GLYPHLESS in it->what.
2011-07-07 18:39:23 +03:00
Kenichi Handa
15fa4783a3 Ignore a static composition that starts before the current checking position in redisplay. 2011-07-07 16:11:54 +09:00
Kenichi Handa
ef7b981ddd merge trunk 2011-07-07 13:20:12 +09:00
Kenichi Handa
023e7b416b chartab.c (sub_char_table_set_range): Fix previous change. 2011-07-07 13:16:52 +09:00
Dan Nicolaescu
76b397fb2a Simplify Irix build, remove iris4d.h file.
* configure.in: Remove reference to iris4d.h.

* src/m/iris4d.h: Remove file, move contents ...
* src/s/irix6-5.h: ... here.
2011-07-06 20:24:33 -07:00
Paul Eggert
8a6ebd580b Add Bug#. 2011-07-06 16:29:03 -07:00
Kenichi Handa
d2a0a50628 merge trunk 2011-07-07 08:28:00 +09:00
Kenichi Handa
c805dec0b5 Add C interface for Unicode character property table. 2011-07-07 07:43:48 +09:00
Paul Eggert
8a5c77bba5 Remove more assumptions re struct layout (Bug#8884). 2011-07-06 15:22:32 -07:00
Paul Eggert
22b4128ef0 Remove unportable assumption about struct layout (Bug#8884).
* buffer.c (clone_per_buffer_values): Don't assume that
sizeof (struct buffer) is a multiple of sizeof (Lisp_Object).
This isn't true in general, and it's particularly not true
if Emacs is configured with --with-wide-int.
* buffer.h (FIRST_FIELD_PER_BUFFER, LAST_FIELD_PER_BUFFER):
New macros, used in the buffer.c change.
2011-07-06 14:53:56 -07:00
Paul Eggert
123403e42f Use pthread_sigmask, not sigprocmask.
* callproc.c (Fcall_process):
* sysdep.c (sys_sigblock, sys_sigunblock, sys_sigsetmask):
* process.c (create_process):
sigprocmask is portable only for single-threaded applications, and
Emacs can be multi-threaded when it uses GTK.
2011-07-06 11:04:23 -07:00