aboutsummaryrefslogtreecommitdiffstats
path: root/src/ChangeLog
diff options
context:
space:
mode:
authorPaul Eggert2012-05-25 11:19:24 -0700
committerPaul Eggert2012-05-25 11:19:24 -0700
commit42b2a986d9d4b7040fb20c90ec0efeffb78e761a (patch)
treed38e7bf5307837f2f38982757f088100de18a64e /src/ChangeLog
parente4d81efc58695c19154d5f6733d91172b4c3e5b7 (diff)
parenta8d3cbf75d219d7a249fc0623219511179e959da (diff)
downloademacs-42b2a986d9d4b7040fb20c90ec0efeffb78e761a.tar.gz
emacs-42b2a986d9d4b7040fb20c90ec0efeffb78e761a.zip
Merge from trunk.
Diffstat (limited to 'src/ChangeLog')
-rw-r--r--src/ChangeLog549
1 files changed, 538 insertions, 11 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index bdc70f54f29..6217560409d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,9 +1,8 @@
12012-04-22 Paul Eggert <eggert@cs.ucla.edu> 12012-05-25 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 Fix integer width and related bugs (Bug#9874).
3 * process.h (struct Lisp_Process): Members tick and update_tick 4 * process.h (struct Lisp_Process): Members tick and update_tick
4 are now of type EMACS_INT, not int. 5 are now of type EMACS_INT, not int.
5
6 Fix integer width and related bugs (Bug#9874).
7 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp): 6 * alloc.c (pure_bytes_used_lisp, pure_bytes_used_non_lisp):
8 (allocate_vectorlike, buffer_memory_full, struct sdata, SDATA_SIZE) 7 (allocate_vectorlike, buffer_memory_full, struct sdata, SDATA_SIZE)
9 (string_bytes, check_sblock, allocate_string_data): 8 (string_bytes, check_sblock, allocate_string_data):
@@ -47,12 +46,6 @@
47 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): 46 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change):
48 Omit pointer cast, which isn't needed anyway, and doesn't work 47 Omit pointer cast, which isn't needed anyway, and doesn't work
49 after the EMACS_INT -> ptrdiff_t change. 48 after the EMACS_INT -> ptrdiff_t change.
50 (Fmove_overlay): Delete an evaporating overlay
51 if it becomes empty after its bounds are adjusted to fit within
52 its buffer. Without this fix, in a nonempty buffer (let ((o
53 (make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
54 yields an empty overlay that has the evaporate property, which is
55 not supposed to happen. (Bug#9642)
56 * buffer.h: Adjust decls to match defn changes elsewhere. 49 * buffer.h: Adjust decls to match defn changes elsewhere.
57 (struct buffer_text, struct buffer): 50 (struct buffer_text, struct buffer):
58 Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough. 51 Use ptrdiff_t, not EMACS_INT, where ptrdiff_t is wide enough.
@@ -218,6 +211,7 @@
218 (Frem): Don't assume arg is nonnegative. 211 (Frem): Don't assume arg is nonnegative.
219 * dbusbind.c (xd_append_arg): Check for integers out of range. 212 * dbusbind.c (xd_append_arg): Check for integers out of range.
220 (Fdbus_call_method): Don't overflow the timeout int. 213 (Fdbus_call_method): Don't overflow the timeout int.
214 (extract_signed, extract_unsigned): New functions.
221 * dired.c (directory_files_internal, file_name_completion, scmp) 215 * dired.c (directory_files_internal, file_name_completion, scmp)
222 (file_name_completion_stat): 216 (file_name_completion_stat):
223 Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts. 217 Use ptrdiff_t, not int, to avoid needless 32-bit limit on 64-bit hosts.
@@ -796,6 +790,539 @@
796 rather than rolling our own approximation. 790 rather than rolling our own approximation.
797 (SCROLL_BAR_VEC_SIZE): Remove; not used. 791 (SCROLL_BAR_VEC_SIZE): Remove; not used.
798 792
7932012-05-25 Stefan Monnier <monnier@iro.umontreal.ca>
794
795 * fileio.c, character.h: Minor style tweaks.
796
7972012-05-24 Dmitry Antipov <dmantipov@yandex.ru>
798
799 * window.h (clip_changed): Remove useless declaration.
800
8012012-05-22 Juanma Barranquero <lekktu@gmail.com>
802
803 * makefile.w32-in: Follow-up to 2012-05-22T16:20:27Z!eggert@cs.ucla.edu.
804 (TAGS, TAGS-gmake, CONFIG_H): Remove further references to m/intel386.h.
805
8062012-05-22 Paul Eggert <eggert@cs.ucla.edu>
807
808 Remove src/m/*.
809 This directory predates autoconf and is no longer needed nowadays.
810 Move its few remaining bits of functionality to where they're needed.
811 * m/README, m/alpha.h, m/amdx86-64.h, m/ia64.h, m/ibmrs6000.h:
812 * m/ibms390x.h, m/intel386.h, m/m68k.h, m/macppc.h, m/sparc.h:
813 * m/template.h: Remove.
814 * Makefile.in (M_FILE): Remove. All uses removed.
815 * alloc.c (POINTERS_MIGHT_HIDE_IN_OBJECTS):
816 * lisp.h (USE_LSB_TAG):
817 * mem-limits.h (EXCEEDS_LISP_PTR):
818 Use VAL_MAX, not VALBITS, in #if.
819 * lisp.h (EMACS_INT_MAX): New macro, useful in #if.
820 (EMACS_UINT): Define unconditionally now.
821 (BITS_PER_CHAR, BITS_PER_SHORT, BITS_PER_INT, BITS_PER_LONG)
822 (BITS_PER_EMACS_INT): New constants, replacing
823 what used to be in config.h, but not useful in #if.
824 (GCTYPEBITS, VALBITS): Define unconditionally, since m/* files don't
825 define them any more.
826 (VAL_MAX): New macro.
827 (VALMASK): Use it.
828 * puresize.h (PURESIZE_RATIO): Use EMACS_INT_MAX, not
829 BITS_PER_EMACS_INT, in #if.
830 * s/aix4-2.h (BROKEN_FIONREAD, BROKEN_SIGAIO, BROKEN_SIGPTY)
831 (BROKEN_SIGPOLL): Move here from m/ibmrs6000.h, which was removed.
832 * s/gnu-linux.h (ULIMIT_BREAK_VALUE) [__i386__]:
833 * s/ms-w32.h (DATA_START):
834 Move here from removed file m/intel386.h.
835 * s/gnu.h (NLIST_STRUCT): Remove undef; 'configure' does this.
836 * s/irix6-5.h (_LP64): Remove; lisp.h no longer needs this.
837
8382012-05-21 Paul Eggert <eggert@cs.ucla.edu>
839
840 Assume C89 or later.
841 * alloc.c, buffer.c, lisp.h: Replace POINTER_TYPE with void.
842 * alloc.c (overrun_check_malloc, overrun_check_realloc, xmalloc)
843 (xrealloc):
844 * buffer.c (mmap_free_1, mmap_enlarge): Omit needless casts.
845 * editfns.c, fns.c, gmalloc.c, insdel.c, sysdep.c, termcap.c (NULL):
846 * textprop.c, tparam.c (NULL): Remove.
847 * ralloc.c, vm-limit.c (POINTER): Assume void * works.
848 * regex.c (SIGN_EXTEND_CHAR): Assume signed char works.
849 * regex.h (_RE_ARGS): Remove. All uses rewritten to use prototypes.
850 * unexelf.c (ElfBitsW): Assume c89 preprocessor or better.
851 * xterm.c (input_signal_count): Assume volatile works.
852
8532012-05-21 Ken Brown <kbrown@cornell.edu>
854
855 * xgselect.c (xg_select): Fix first argument in call to 'select'
856 (bug#11508).
857
8582012-05-20 Ken Brown <kbrown@cornell.edu>
859
860 * gmalloc.c (_free_internal_nolock, _realloc_internal_nolock)
861 [CYGWIN]: Cast ptr to (char *) before comparing to _heapbase.
862
8632012-05-19 Ken Brown <kbrown@cornell.edu>
864
865 * xfns.c (x_in_use): Remove `static' qualifier.
866 * xterm.h (x_in_use): Declare.
867 * xgselect.c: Include xterm.h.
868 (xg_select): Test `x_in_use' instead of `inhibit_window_system'
869 and `display_arg' (bug#9754).
870
8712012-05-19 Paul Eggert <eggert@cs.ucla.edu>
872
873 * s/ms-w32.h (HAVE_GETDOMAINNAME): Remove; not needed.
874
875 * m/vax.h: Remove; no longer needed since HAVE_FTIME is being removed.
876 * s/ms-w32.h (HAVE_FTIME): Remove; not needed.
877
8782012-05-18 Eli Zaretskii <eliz@gnu.org>
879
880 Fix compilation with -DGLYPH_DEBUG=1 on MS-Windows.
881
882 * w32term.c [GLYPH_DEBUG]: Add prototype for x_check_font.
883 (x_check_font) [GLYPH_DEBUG]: New function, copied from xterm.c
884
885 * w32fns.c (unwind_create_frame) [GLYPH_DEBUG]: Fix broken
886 reference to image_cache->refcount.
887 (x_create_tip_frame): Fix broken use of FRAME_IMAGE_CACHE.
888
8892012-05-17 Juri Linkov <juri@jurta.org>
890
891 * search.c (Fword_search_regexp, Fword_search_backward)
892 (Fword_search_forward, Fword_search_backward_lax)
893 (Fword_search_forward_lax): Move functions to isearch.el
894 (bug#10145, bug#11381).
895
8962012-05-16 Paul Eggert <eggert@cs.ucla.edu>
897
898 * xgselect.c (xg_select): Just invoke 'select' if -nw (Bug#9754).
899
9002012-05-15 Stefan Monnier <monnier@iro.umontreal.ca>
901
902 * lread.c (init_obarray): Declare Qt and Qnil as special.
903
9042012-05-14 Glenn Morris <rgm@gnu.org>
905
906 * nsterm.m (ns_init_paths): Fix typo ("libexec" not "lib-exec").
907 Put "libexec" before "bin", for the sake of init_callproc_1.
908
9092012-05-14 Paul Eggert <eggert@cs.ucla.edu>
910
911 * keyboard.c (kbd_buffer_get_event) [!HAVE_DBUS]: Omit unused local.
912
913 * unexaix.c: Port to more-recent AIX compilers.
914 (report_error, report_error_1, make_hdr, copy_sym)
915 (mark_x, adjust_lnnoptrs, unrelocate_symbols):
916 Make arguments const char *, not char *, to avoid violations of C
917 standard and to fix some AIX warnings reported by Gilles Pion.
918
9192012-05-14 Eli Zaretskii <eliz@gnu.org>
920
921 * xdisp.c (handle_stop): Don't call get_overlay_strings_1 if we
922 already have overlays loaded.
923 (handle_single_display_spec): Before returning without displaying
924 fringe bitmap, synchronize the bidi iterator with the main display
925 iterator, by calling iterate_out_of_display_property.
926 (iterate_out_of_display_property): Detect buffer iteration by
927 testing that it->string is a Lisp string.
928 (get_next_display_element): When the current object is exhausted,
929 and there's something on it->stack, call set_iterator_to_next to
930 proceed with what's on the stack, instead of returning zero.
931 (set_iterator_to_next): If called at the end of a Lisp string,
932 proceed to consider_string_end without incrementing string
933 position. Don't increment display vector index past the end of
934 the display vector. (Bug#11417)
935 (pos_visible_p): Don't report a position visible when move_it_to
936 stopped at the last line of window, which happens to be scanned
937 backwards by the bidi iteration. (Bug#11464)
938
9392012-05-14 Eli Zaretskii <eliz@gnu.org>
940
941 * xdisp.c (handle_single_display_spec): Return 1 for left-margin
942 and right-margin display specs even if the spec is invalid or we
943 are on a TTY, and thus unable to display on the fringes. That's
944 because the text with the property will not be displayed anyway,
945 so we need to signal to the caller that this is a "replacing"
946 display spec. This fixes display when the spec is invalid or we
947 are on a TTY.
948
9492012-05-14 Paul Eggert <eggert@cs.ucla.edu>
950
951 * unexaix.c (make_hdr): Fix typo in prototype.
952 This bug broke the build on AIX. Problem reported by Gilles Pion.
953
9542012-05-14 Michael Albinus <michael.albinus@gmx.de>
955
956 * keyboard.c (kbd_buffer_get_event): Read special events also in
957 batch mode. (Bug#11415)
958
9592012-05-12 Glenn Morris <rgm@gnu.org>
960
961 * ns.mk: Update for ns_appbindir no longer having trailing "/".
962
9632012-05-12 Eli Zaretskii <eliz@gnu.org>
964
965 * lisp.mk (lisp): Add newcomment.elc.
966
9672012-05-12 Glenn Morris <rgm@gnu.org>
968
969 * Makefile.in (MKDIR_P): New, set by configure.
970 * ns.mk (${ns_appdir}, ${ns_appbindir}Emacs): Use $MKDIR_P.
971
9722012-05-11 Paul Eggert <eggert@cs.ucla.edu>
973
974 Remove unused function hourglass_started.
975 * dispextern.h (hourglass_started):
976 * w32fns.c (hourglass_started):
977 * xdisp.c (hourglass_started): Remove.
978
9792012-05-10 Juanma Barranquero <lekktu@gmail.com>
980
981 * makefile.w32-in ($(BLD)/gmalloc.$(O), $(BLD)/w32menu.$(O)):
982 Update dependencies.
983
9842012-05-10 Paul Eggert <eggert@cs.ucla.edu>
985
986 * xgselect.c (xg_select): Put maxfds+1 into a var.
987 This is slightly clearer, and pacifies Ubuntu 12.04 gcc.
988
989 * sound.c (DEFAULT_ALSA_SOUND_DEVICE): Define only if HAVE_ALSA.
990
9912012-05-10 Dave Abrahams <dave@boostpro.com>
992
993 * filelock.c (syms_of_filelock): New boolean create-lockfiles.
994 (lock_file): If create_lockfiles is 0, do nothing. (Bug#11227)
995
9962012-05-09 Michael Albinus <michael.albinus@gmx.de>
997
998 * dbusbind.c (xd_registered_buses): New internal Lisp object.
999 Rename all occurences of Vdbus_registered_buses to xd_registered_buses.
1000 (syms_of_dbusbind): Remove declaration of Vdbus_registered_buses.
1001 Initialize xd_registered_buses.
1002
10032012-05-09 Paul Eggert <eggert@cs.ucla.edu>
1004
1005 Untag more efficiently if USE_LSB_TAG.
1006 This is based on a proposal by YAMAMOTO Mitsuharu in
1007 <http://lists.gnu.org/archive/html/emacs-devel/2008-01/msg01876.html>.
1008 For an admittedly artificial (nth 8000 longlist) benchmark on
1009 Fedora 15 x86-64, this yields a 25% CPU speedup. Also, it shrinks
1010 Emacs's overall text size by 1%.
1011 * lisp.h (XUNTAG): New macro.
1012 (XCONS, XVECTOR, XSTRING, XSYMBOL, XFLOAT, XMISC, XPROCESS, XWINDOW)
1013 (XTERMINAL, XSUBR, XBUFFER, XCHAR_TABLE, XSUB_CHAR_TABLE, XBOOL_VECTOR)
1014 (XSETTYPED_PSEUDOVECTOR, XHASH_TABLE, TYPED_PSEUDOVECTORP): Use it.
1015 * eval.c (Fautoload):
1016 * font.h (XFONT_SPEC, XFONT_ENTITY, XFONT_OBJECT):
1017 * frame.h (XFRAME): Use XUNTAG.
1018
1019 Port recent dbusbind.c changes to 32-bit --with-wide-int.
1020 * dbusbind.c (xd_append_arg, xd_retrieve_arg, Fdbus_message_internal):
1021 Remove unportable assumptions about print widths of types like
1022 dbus_uint32_t.
1023 (xd_get_connection_address, Fdbus_init_bus): Cast Emacs integer to
1024 intptr_t when converting between pointer and integer, to avoid GCC
1025 warnings about wrong width.
1026
10272012-05-09 Eli Zaretskii <eliz@gnu.org>
1028
1029 * w32proc.c (new_child): Force Windows to reserve only 64KB of
1030 stack for each reader_thread, instead of defaulting to 8MB
1031 determined by the linker. This avoids failures in creating
1032 subprocesses on Windows 7, see the discussion in this thread:
1033 http://lists.gnu.org/archive/html/emacs-devel/2012-03/msg00119.html.
1034
10352012-05-07 Jérémy Compostella <jeremy.compostella@gmail.com>
1036
1037 Fix up display of the *Minibuf-0* buffer in the mini window.
1038 * keyboard.c (read_char): Don't clear the echo area if there's no
1039 message to clear.
1040 * xdisp.c (redisplay_internal): Redisplay the mini window (with the
1041 contents of *Minibuf-0*) if there's no message displayed in its stead.
1042
10432012-05-07 Michael Albinus <michael.albinus@gmx.de>
1044
1045 * dbusbind.c (XD_DEBUG_MESSAGE): Don't print message twice in
1046 batch mode.
1047
10482012-05-06 Chong Yidong <cyd@gnu.org>
1049
1050 * lisp.mk (lisp): Update.
1051
10522012-05-05 Jim Meyering <meyering@redhat.com>
1053
1054 * w32font.c (fill_in_logfont): NUL-terminate a string (Bug#11372).
1055
10562012-05-04 Stefan Monnier <monnier@iro.umontreal.ca>
1057
1058 * data.c (PUT_ERROR): New macro.
1059 (syms_of_data): Use it. Add new error type `user-error'.
1060 * undo.c (user_error): New function.
1061 (Fprimitive_undo): Use it.
1062 * print.c (print_error_message): Adjust print style for `user-error'.
1063 * keyboard.c (user_error): New function.
1064 (Fexit_recursive_edit, Fabort_recursive_edit): Use it.
1065
10662012-05-03 Paul Eggert <eggert@cs.ucla.edu>
1067
1068 Do not limit current-time-string to years 1000..9999.
1069 * editfns.c (TM_YEAR_IN_ASCTIME_RANGE): Remove.
1070 (Fcurrent_time_string): Support any year that is supported by the
1071 underlying localtime representation. Don't use asctime, as it
1072 has undefined behavior for years outside the range -999..9999.
1073
10742012-05-02 Paul Eggert <eggert@cs.ucla.edu>
1075
1076 Fix race conditions involving setenv, gmtime, localtime, asctime.
1077 Without this fix, interrupts could mess up code that uses these
1078 nonreentrant functions, since setting TZ invalidates existing
1079 tm_zone or tzname values, and since most of these functions return
1080 pointers to static storage.
1081 * editfns.c (format_time_string, Fdecode_time, Fencode_time)
1082 (Fcurrent_time_string, Fcurrent_time_zone, Fset_time_zone_rule):
1083 Grow the critical sections to include not just invoking
1084 localtime/gmtime, but also accessing these functions' results
1085 including their tm_zone values if any, and any related TZ setting.
1086 (format_time_string): Last arg is now struct tm *, not struct tm **,
1087 so that the struct tm is saved in the critical section.
1088 All callers changed. Simplify allocation of initial buffer, partly
1089 motivated by the fact that memory allocation needs to be outside
1090 the critical section.
1091
10922012-05-02 Dmitry Antipov <dmantipov@yandex.ru>
1093
1094 * intervals.c (adjust_intervals_for_insertion): Initialize `newi'
1095 with RESET_INTERVAL.
1096
1097 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer):
1098 Remove duplicated buffer name initialization.
1099
11002012-05-02 Jim Meyering <jim@meyering.net>
1101
1102 * xterm.c (x_term_init): Use memcpy instead of strncpy (Bug#11373).
1103
1104 * xfns.c (x_window): Use xstrdup (Bug#11375).
1105
11062012-05-02 Eli Zaretskii <eliz@gnu.org>
1107
1108 * xdisp.c (pos_visible_p): If already at a newline from the
1109 display string before the 'while' loop, don't walk back the glyphs
1110 from it3.glyph_row. Solves assertion violation when the display
1111 string begins with a newline (egg.el). (Bug#11367)
1112
11132012-05-01 Stefan Monnier <monnier@iro.umontreal.ca>
1114
1115 * keyboard.c (Fexecute_extended_command, Vsuggest_key_bindings):
1116 Move to simple.el.
1117
11182012-05-01 Glenn Morris <rgm@gnu.org>
1119
1120 * syssignal.h: Remove reference to BROKEN_SIGINFO (last used in
1121 s/ptx4.h), BROKEN_SIGTSTP (last used in m/ustation.h, m/dpx2.h),
1122 and BROKEN_SIGURG (was in s/gnu-linux.h prior to 2008-02-10).
1123 All were removed before 23.1.
1124
1125 * dispnew.c: Remove HAVE_LIBNCURSES test;
1126 it is always true on relevant platforms.
1127
1128 * Makefile.in (LD_SWITCH_X_SITE_RPATH):
1129 Rename from LD_SWITCH_X_SITE_AUX_RPATH.
1130
1131 * Makefile.in (LD_SWITCH_X_SITE_AUX): Remove; no longer used.
1132
11332012-04-30 Andreas Schwab <schwab@linux-m68k.org>
1134
1135 * .gdbinit (xpr): Remove checks for no longer existing misc types.
1136 (xintfwd, xboolfwd, xobjfwd, xbufobjfwd, xkbobjfwd, xbuflocal):
1137 Remove.
1138
11392012-04-28 Paul Eggert <eggert@cs.ucla.edu>
1140
1141 Do not avoid creating empty evaporating overlays (Bug#9642).
1142 * buffer.c (Fmove_overlay): Revert the change of 2012-04-23.
1143 That is, do not delete an evaporating overlay if it becomes
1144 empty after its bounds are adjusted to fit within its buffer.
1145 This fix caused other problems, and I'm reverting it until we get
1146 to the bottom of them.
1147
11482012-04-27 Chong Yidong <cyd@gnu.org>
1149
1150 * xselect.c (x_convert_selection): Initialize a pointer (Bug#11315).
1151
11522012-04-27 Eli Zaretskii <eliz@gnu.org>
1153
1154 * xdisp.c (pos_visible_p): If the window start position is beyond
1155 ZV, start the display from buffer beginning. Prevents assertion
1156 violation in init_iterator when the minibuffer window is scrolled
1157 via the scroll bar.
1158
1159 * window.c (window_scroll_pixel_based): Likewise.
1160
11612012-04-27 Chong Yidong <cyd@gnu.org>
1162
1163 * keymap.c (where_is_internal): Doc fix (Bug#10872).
1164
11652012-04-27 Glenn Morris <rgm@gnu.org>
1166
1167 * fileio.c (Fcopy_file, Fset_file_selinux_context):
1168 Ignore ENOTSUP failures from setfilecon functions. (Bug#11245)
1169
11702012-04-27 Eli Zaretskii <eliz@gnu.org>
1171
1172 * dispnew.c (swap_glyph_pointers, copy_row_except_pointers):
1173 Don't overrun array limits of glyph row's used[] array. (Bug#11288)
1174
11752012-04-26 Eli Zaretskii <eliz@gnu.org>
1176
1177 * xdisp.c (IT_DISPLAYING_WHITESPACE): In addition to the loaded
1178 display element, check also the underlying string or buffer
1179 character. (Bug#11341)
1180
1181 * w32menu.c: Include w32heap.h.
1182 (add_menu_item): If the call to AppendMenuW (via
1183 unicode_append_menu) fails, disable Unicode menus only if we are
1184 running on Windows 9X/Me.
1185
11862012-04-24 Andreas Schwab <schwab@linux-m68k.org>
1187
1188 * .gdbinit (xpr): Handle USE_2_TAGS_FOR_INTS.
1189 (xgetint): Add missing shift for LSB tags.
1190
11912012-04-24 Martin Rudalics <rudalics@gmx.at>
1192
1193 * keyboard.c (read_char): Don't wipe echo area for select window
1194 events: These might get delayed via `mouse-autoselect-window'
1195 (Bug#11304).
1196
11972012-04-24 Juanma Barranquero <lekktu@gmail.com>
1198
1199 * gnutls.c (init_gnutls_functions): Protect against (unlikely)
1200 manipulation of :loaded-from data.
1201
12022012-04-23 Juanma Barranquero <lekktu@gmail.com>
1203
1204 * gnutls.c (init_gnutls_functions): The value of :loaded-from is
1205 now a cons (bug#11311).
1206
12072012-04-23 Paul Eggert <eggert@cs.ucla.edu>
1208
1209 Do not create empty overlays with the evaporate property (Bug#9642).
1210 * buffer.c (Fmove_overlay): Delete an evaporating overlay
1211 if it becomes empty after its bounds are adjusted to fit within
1212 its buffer. Without this fix, in a nonempty buffer (let ((o
1213 (make-overlay 1 2))) (overlay-put o 'evaporate t) (move-overlay o 0 1))
1214 yields an empty overlay that has the evaporate property, which is
1215 not supposed to happen.
1216
1217 Fix minor GTK3 problems found by static checking.
1218 * emacsgtkfixed.c (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
1219 (EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
1220 (struct _EmacsFixedClass, emacs_fixed_get_type):
1221 Move decls here from emacsgtkfixed.h, since they needn't be public.
1222 (emacs_fixed_get_type): Now static.
1223 (emacs_fixed_class_init): Omit unused local.
1224 (emacs_fixed_child_type): Remove; unused.
1225 * emacsgtkfixed.h (EMACS_TYPE_FIXED, EMACS_FIXED, EmacsFixed)
1226 (EmacsFixedPrivate, EmacsFixedClass, struct _EmacsFixed)
1227 (struct _EmacsFixedClass): Move to emacsgtkfixed.c.
1228 (EMACS_FIXED_CLASS, EMACS_IS_FIXED, EMACS_IS_FIXED_CLASS)
1229 (EMACS_FIXED_GET_CLASS): Remove; unused.
1230 * gtkutil.c (xg_create_frame_widgets) [!HAVE_GTK3]: Omit unused local.
1231
1232 * keyboard.c (handle_async_input): Define only if SYNC_INPUT || SIGIO.
1233 Problem reported by Juanma Barranquero for Windows -Wunused-function.
1234
12352012-04-22 Paul Eggert <eggert@cs.ucla.edu>
1236
1237 Modernize and clean up gmalloc.c to assume C89 (Bug#9119).
1238 * gmalloc.c (_MALLOC_INTERNAL, _MALLOC_H, _PP, __ptr_t)
1239 (__malloc_size_t, __malloc_ptrdiff_t):
1240 Remove. All uses removed, replaced by the definiens if needed,
1241 since we can assume C89 or better now.
1242 Include <stdint.h>, for PTRDIFF_MAX, uintptr_t.
1243 (protect_malloc_state, align, get_contiguous_space)
1244 (malloc_atfork_handler_prepare, malloc_atfork_handler_parent)
1245 (malloc_atfork_handler_child, malloc_enable_thread)
1246 (malloc_initialize_1, __malloc_initialize, morecore_nolock)
1247 (_malloc_internal_nolock, _malloc_internal, malloc, _malloc)
1248 (_free, _realloc, _free_internal_nolock, _free_internal, free, cfree)
1249 (special_realloc, _realloc_internal_nolock, _realloc_internal)
1250 (realloc, calloc, __default_morecore, memalign, valloc, checkhdr)
1251 (freehook, mallochook, reallochook, mabort, mcheck, mprobe):
1252 Define using prototypes, not old style.
1253 (align, _malloc_internal_nolock, _free_internal_nolock, memalign):
1254 Don't assume ptrdiff_t and uintptr_t are no wider than unsigned long.
1255 (align): Don't assume that signed integer overflow wraps around.
1256 Omit unused local var.
1257 (malloc_initialize_1, morecore_nolock, _malloc_internal_nolock)
1258 (_free_internal_nolock, memalign, mallochook, reallochook):
1259 Omit no-longer-needed casts.
1260 (valloc): Use getpagesize, not __getpagesize.
1261 (MAGICWORD, MAGICFREE): Now randomish size_t values, not 32-bit.
1262 (struct hdr): The 'magic' member is now size_t, not unsigned long.
1263
1264 * dbusbind.c (XD_DBUS_VALIDATE_OBJECT): Define only if needed.
1265
12662012-04-22 Michael Albinus <michael.albinus@gmx.de>
1267
1268 Move functions from C to Lisp. Make non-blocking method calls
1269 the default. Implement further D-Bus standard interfaces.
1270
1271 * dbusbind.c (DBUS_NUM_MESSAGE_TYPES): Declare.
1272 (QCdbus_request_name_allow_replacement)
1273 (QCdbus_request_name_replace_existing)
1274 (QCdbus_request_name_do_not_queue)
1275 (QCdbus_request_name_reply_primary_owner)
1276 (QCdbus_request_name_reply_in_queue)
1277 (QCdbus_request_name_reply_exists)
1278 (QCdbus_request_name_reply_already_owner): Move to dbus.el.
1279 (QCdbus_registered_serial, QCdbus_registered_method)
1280 (QCdbus_registered_signal): New Lisp objects.
1281 (XD_DEBUG_MESSAGE): Use sizeof.
1282 (XD_MESSAGE_TYPE_TO_STRING, XD_OBJECT_TO_STRING)
1283 (XD_DBUS_VALIDATE_BUS_ADDRESS, XD_DBUS_VALIDATE_OBJECT)
1284 (XD_DBUS_VALIDATE_BUS_NAME, XD_DBUS_VALIDATE_PATH)
1285 (XD_DBUS_VALIDATE_INTERFACE, XD_DBUS_VALIDATE_MEMBER): New macros.
1286 (XD_CHECK_DBUS_SERIAL): Rename from CHECK_DBUS_SERIAL_GET_SERIAL.
1287 (xd_signature, xd_append_arg): Allow float for integer types.
1288 (xd_get_connection_references): New function.
1289 (xd_get_connection_address): Rename from xd_initialize.
1290 Return cached address.
1291 (xd_remove_watch): Do not unset $DBUS_SESSION_BUS_ADDRESS.
1292 (xd_close_bus): Rename from Fdbus_close_bus. Not needed on Lisp
1293 level.
1294 (Fdbus_init_bus): New optional arg PRIVATE. Cache address.
1295 Return number of refcounts.
1296 (Fdbus_get_unique_name): Make stronger parameter check.
1297 (Fdbus_message_internal): New defun.
1298 (Fdbus_call_method, Fdbus_call_method_asynchronously)
1299 (Fdbus_method_return_internal, Fdbus_method_error_internal)
1300 (Fdbus_send_signal, Fdbus_register_service)
1301 (Fdbus_register_signal, Fdbus_register_method): Move to dbus.el.
1302 (xd_read_message_1): Obey new structure of Vdbus_registered_objects.
1303 (xd_read_queued_messages): Obey new structure of Vdbus_registered_buses.
1304 (Vdbus_compiled_version, Vdbus_runtime_version)
1305 (Vdbus_message_type_invalid, Vdbus_message_type_method_call)
1306 (Vdbus_message_type_method_return, Vdbus_message_type_error)
1307 (Vdbus_message_type_signal): New defvars.
1308 (Vdbus_registered_buses, Vdbus_registered_objects_table):
1309 Adapt docstring.
1310
13112012-04-22 Paul Eggert <eggert@cs.ucla.edu>
1312
1313 Fix GC_MALLOC_CHECK debugging output on 64-bit hosts.
1314 * alloc.c (emacs_blocked_malloc) [GC_MALLOC_CHECK]:
1315 Do not assume ptrdiff_t is the same width as 'int'.
1316
1317 * alloc.c: Handle unusual debugging option combinations.
1318 (GC_CHECK_MARKED_OBJECTS): Undef if ! GC_MARK_STACK,
1319 since the two debugging options are incompatible.
1320 (GC_MALLOC_CHECK): Similarly, undef if GC_CHECK_MARKED_OBJECTS
1321 is defined.
1322 (mem_init, mem_insert, mem_insert_fixup):
1323 Define if GC_MARK_STACK || GC_MALLOC_CHECK.
1324 (NEED_MEM_INSERT): Remove; no longer needed.
1325
7992012-04-22 Leo Liu <sdl.web@gmail.com> 13262012-04-22 Leo Liu <sdl.web@gmail.com>
800 1327
801 * sysdep.c (list_system_processes): Support Darwin (Bug#5725). 1328 * sysdep.c (list_system_processes): Support Darwin (Bug#5725).
@@ -809,8 +1336,8 @@
809 1336
8102012-04-21 Eduard Wiebe <usenet@pusto.de> 13372012-04-21 Eduard Wiebe <usenet@pusto.de>
811 1338
812 * sysdep.c (list_system_processes, system_process_attributes): Add 1339 * sysdep.c (list_system_processes, system_process_attributes):
813 implementation for FreeBSD (Bug#5243). 1340 Add implementation for FreeBSD (Bug#5243).
814 1341
8152012-04-21 Andreas Schwab <schwab@linux-m68k.org> 13422012-04-21 Andreas Schwab <schwab@linux-m68k.org>
816 1343