summaryrefslogtreecommitdiff
path: root/src/ChangeLog
AgeCommit message (Collapse)Author
2011-06-02* src/emacs.c (main): Warn when starting a GTK emacs in daemon mode.Dan Nicolaescu
2011-06-02Merge ChangeLog from trunk better.Paul Eggert
2011-06-02Merge from trunk.Paul Eggert
2011-06-02Merge: Remove arbitrary limit of 2**31 entries in hash tables.Paul Eggert
Fixes: debbugs:8771
2011-06-02Merge from trunk.Paul Eggert
2011-06-01Don't assume time_t can fit into int.Paul Eggert
* buffer.h (struct buffer.modtime): Now time_t, not int. * fileio.c (Fvisited_file_modtime): No need for time_t cast now. * undo.c (Fprimitive_undo): Use time_t, not int, for time_t value.
2011-06-01Merge: Minor fixes for signed vs unsigned integers.Paul Eggert
2011-06-01Make it possible to build with GCC-4.6+ -O2 -flto.Dan Nicolaescu
* src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE.
2011-06-01* lisp/minibuffer.el (minibuffer-inactive-mode-map): New var.Stefan Monnier
(minibuffer-inactive-mode): New major mode. * src/minibuf.c (get_minibuffer, read_minibuf_unwind): Call it. * lisp/mouse.el (mouse-drag-region): Remove the "mouse-1 pops up the *Messages* buffer" hack. (mouse-popup-menubar): Don't burp if the event is a normal key.
2011-05-31Merge from trunk.Paul Eggert
2011-05-31Minor fixes for signed vs unsigned integers.Paul Eggert
* character.h (MAYBE_UNIFY_CHAR): * charset.c (maybe_unify_char): * keyboard.c (read_char, reorder_modifiers): XINT -> XFASTINT, since the integer must be nonnegative. * ftfont.c (ftfont_spec_pattern): * keymap.c (access_keymap, silly_event_symbol_error): XUINT -> XFASTINT, since the integer must be nonnegative. (Fsingle_key_description, preferred_sequence_p): XUINT -> XINT, since it makes no difference and we prefer signed. * keyboard.c (record_char): Use XUINT when all the neighbors do. (access_keymap): NATNUMP -> INTEGERP, since the integer must be nonnegative.
2011-06-01* fringe.c (update_window_fringes): Don't update overlay arrow bitmap in the ↵YAMAMOTO Mitsuharu
current matrix if keep_current_p is non-zero.
2011-05-31src/makefile.w32-in: Update dependencies.Juanma Barranquero
2011-05-31* src/data.c (init_data): Remove code for UTS, this system is notDan Nicolaescu
supported anymore.
2011-05-31Don't force ./temacs to start in terminal mode.Dan Nicolaescu
* frame.c (make_initial_frame): Initialize faces in all cases, not only when CANNOT_DUMP is defined. * dispnew.c (init_display): Remove CANNOT_DUMP condition.
2011-05-31Use const for a string pointer.Dan Nicolaescu
* src/dispnew.c (add_window_display_history): Use const for the string pointer. Remove declaration, not needed.
2011-05-31Adjust ChangeLog as per Stefan's suggestions.Paul Eggert
2011-05-30Add Bug#.Paul Eggert
2011-05-30Remove arbitrary limit of 2**31 entries in hash tables.Paul Eggert
* category.c (hash_get_category_set): Use 'EMACS_UINT' and 'EMACS_INT' for hashes and hash indexes, instead of 'unsigned' and 'int'. * ccl.c (ccl_driver): Likewise. * charset.c (Fdefine_charset_internal): Likewise. * charset.h (struct charset.hash_index): Likewise. * composite.c (get_composition_id, gstring_lookup_cache): (composition_gstring_put_cache): Likewise. * composite.h (struct composition.hash_index): Likewise. * dispextern.h (struct image.hash): Likewise. * fns.c (next_almost_prime, larger_vector, cmpfn_eql): (cmpfn_equal, cmpfn_user_defined, hashfn_eq, hashfn_eql): (hashfn_equal, hashfn_user_defined, make_hash_table): (maybe_resize_hash_table, hash_lookup, hash_put): (hash_remove_from_table, hash_clear, sweep_weak_table, SXHASH_COMBINE): (sxhash_string, sxhash_list, sxhash_vector, sxhash_bool_vector): (Fsxhash, Fgethash, Fputhash, Fmaphash): Likewise. * image.c (make_image, search_image_cache, lookup_image): (xpm_put_color_table_h): Likewise. * lisp.h (struct Lisp_Hash_Table): Likewise, for 'count', 'cmpfn', and 'hashfn' members. * minibuf.c (Ftry_completion, Fall_completions, Ftest_completion): Likewise. * print.c (print): Likewise. * alloc.c (allocate_vectorlike): Check for overflow in vector size calculations. * ccl.c (ccl_driver): Check for overflow when converting EMACS_INT to int. * fns.c, image.c: Remove unnecessary static decls that would otherwise need to be updated by these changes. * fns.c (make_hash_table, maybe_resize_hash_table): Check for integer overflow with large hash tables. (make_hash_table, maybe_resize_hash_table, Fmake_hash_table): Prefer the faster XFLOAT_DATA to XFLOATINT where either will do. (SXHASH_REDUCE): New macro. (sxhash_string, sxhash_list, sxhash_vector, sxhash_bool_vector): Use it instead of discarding useful hash info with large hash values. (sxhash_float): New function. (sxhash): Use it. No more need for "& INTMASK" due to above changes. * lisp.h (FIXNUM_BITS): New macro, useful for SXHASH_REDUCE etc. (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM, INTMASK): Rewrite to use FIXNUM_BITS, as this simplifies things. (next_almost_prime, larger_vector, sxhash, hash_lookup, hash_put): Adjust signatures to match updated version of code. (consing_since_gc): Now EMACS_INT, since a single hash table can use more than INT_MAX bytes.
2011-05-30Fix ChangeLog entry order.Paul Eggert
2011-05-30Merge from trunk.Paul Eggert
2011-05-30Add bug#.Paul Eggert
2011-05-30Merge from trunk.Paul Eggert
2011-05-30Merge from trunk.Paul Eggert
2011-05-30Make it possible to run ./temacs.Dan Nicolaescu
* callproc.c (set_initial_environment): Remove CANNOT_DUMP code, syms_of_callproc does the same thing. Remove test for "initialized", do it in the caller. * emacs.c (main): Avoid calling set_initial_environment when dumping.
2011-05-31* lisp/minibuffer.el: Add metadata method to completion tables.Stefan Monnier
(completion-category-overrides): New defcustom. (completion-metadata, completion--field-metadata) (completion-metadata-get, completion--styles) (completion--cycle-threshold): New functions. (completion-try-completion, completion-all-completions): Add `metadata' argument to choose completion-styles. (completion--do-completion): Use metadata to choose cycling. (completion-all-sorted-completions): Use metadata for sorting. Remove :completion-cycle-penalty which is not needed any more. (completion--try-word-completion): Add `metadata' argument. (minibuffer-completion-help): Check metadata for annotation function and sorting. (completion-file-name-table): Return `category' metadata. (minibuffer-completing-file-name): Make obsolete. * lisp/simple.el (minibuffer-completing-symbol): Make obsolete. * lisp/icomplete.el (icomplete-completions): Pass new `metadata' param to completion-try-completion. * src/minibuf.c (Finternal_complete_buffer): Return `category' metadata. (read_minibuf): Use get_minibuffer. (syms_of_minibuf): Use DEFSYM. (Qmetadata): New var. * src/data.c (Qbuffer): Don't make it static. (syms_of_data): Use DEFSYM.
2011-05-30* ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751)Paul Eggert
(CCL_CODE_MIN): New macro.
2011-05-30[ChangeLog]Paul Eggert
Malloc failure behavior now depends on size of allocation. * lib/allocator.h (struct allocator.die): New size arg. * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function. If the actual problem is an ssize_t limitation, not a size_t or malloc failure, fail with errno == ENAMETOOLONG instead of calling 'die'. [src/ChangeLog] Malloc failure behavior now depends on size of allocation. * alloc.c (buffer_memory_full, memory_full): New arg NBYTES. * lisp.h: Change signatures accordingly. * alloc.c, buffer.c, editfns.c, menu.c, minibuf.c, xterm.c: All callers changed.
2011-05-30Merge from trunk.Paul Eggert
2011-05-30* alloc.c (lisp_align_malloc): Omit unnecessary val==NULL tests.Paul Eggert
2011-05-30Add Bug#.Paul Eggert
2011-05-30* gnutls.c: Use Emacs's memory allocators.Paul Eggert
Without this change, the gnutls library would invoke malloc etc. directly, which causes problems on non-SYNC_INPUT hosts, and which runs afoul of improving memory_full behavior. (fn_gnutls_global_set_mem_functions): New macro or function pointer. (emacs_gnutls_global_init): Use it to specify xmalloc, xrealloc, xfree instead of the default malloc, realloc, free. (Fgnutls_boot): No need to check for memory allocation failure, since xmalloc does that for us.
2011-05-29* eval.c (Qdebug): Now static.Paul Eggert
* lisp.h (Qdebug): Remove decl. This reverts a part of the 2011-04-26T11:26:05Z!dan.colascione@gmail.com that inadvertently undid part of 2011-04-14T06:48:41Z!eggert@cs.ucla.edu.
2011-05-29Merge from trunk.Paul Eggert
2011-05-29Doc fixes for imagemagick support code.Chong Yidong
* lisp/image.el (imagemagick-types-inhibit) (imagemagick-register-types): Doc fix. * src/image.c: Various fixes to ImageMagick code comments. (Fimagemagick_types): Doc fix.
2011-05-28Minor fixes prompted by GCC 4.6.0 warnings.Paul Eggert
* xselect.c (converted_selections, conversion_fail_tag): Now static.
2011-05-28* emacs.c [HAVE_X_WINDOWS]: Include "xterm.h".Paul Eggert
(x_clipboard_manager_save_all): Move extern decl to ... * xterm.h: ... here, so that it can be checked for consistency.
2011-05-28Move clipboard-manager functionality out of hooks.Chong Yidong
* lisp/select.el: Don't perform clipboard-manager saving in hooks; leave the hooks empty. * src/emacs.c (Fkill_emacs): Call x_clipboard_manager_save_all. * src/frame.c (delete_frame): Call x_clipboard_manager_save_frame. * src/xselect.c (x_clipboard_manager_save_frame) (x_clipboard_manager_save_all): New functions. (Fx_clipboard_manager_save): Lisp function deleted. * src/xterm.h: Update prototype.
2011-05-28[ChangeLog]Paul Eggert
Use 'inline', not 'INLINE'. * configure.in, autogen/config.in (INLINE): Remove. [lib-src/ChangeLog] Use 'inline', not 'INLINE'. * etags.c (hash): Now inline unconditionally. * make-docfile.c (put_char): inline, not INLINE. [nt/ChangeLog] Use 'inline', not 'INLINE'. * config.nt (INLINE): Remove. [src/ChangeLog] Use 'inline', not 'INLINE'. * alloc.c, fontset.c (INLINE): Remove. * alloc.c, bidi.c, charset.c, coding.c, dispnew.c, fns.c, image.c: * intervals.c, keyboard.c, process.c, syntax.c, textprop.c, w32term.c: * xdisp.c, xfaces.c, xterm.c: Replace all uses of INLINE with inline. * gmalloc.c (register_heapinfo): Use inline unconditionally. * lisp.h (LISP_MAKE_RVALUE): Use inline, not __inline__.
2011-05-28Fix cursor motion across display strings covering reordered text.Eli Zaretskii
src/xdisp.c (set_cursor_from_row): Set start and stop points according to the row's direction when priming the loop that looks for the glyph on which to display cursor. (single_display_spec_intangible_p): Function deleted. (display_prop_intangible_p): Reimplement to call handle_display_spec instead of single_display_spec_intangible_p. Accept 3 additional arguments needed by handle_display_spec. This fixes incorrect cursor motion across display property with complex values: lists, `(when COND...)' forms, etc. (single_display_spec_string_p): Support property values that are lists with the argument STRING its top-level element. (display_prop_string_p): Fix the condition for processing a property that is a list to be consistent with handle_display_spec. src/keyboard.c (adjust_point_for_property): Adjust the call to display_prop_intangible_p to its new signature. src/dispextern.h (display_prop_intangible_p): Adjust prototype.
2011-05-28* src/nsterm.m (ns_term_shutdown): Synchronize user defaults before exiting ↵William Xu
(Bug#8239).
2011-05-28src/ChangeLog: Fix last entry.Eli Zaretskii
2011-05-28avoid a sign-extension bug in crypto_hash_functionJim Meyering
* fns.c (to_uchar): Define. (crypto_hash_function): Use it to convert some newly-signed variables to unsigned, to avoid sign-extension bugs. For example, without this change, (md5 "truc") would evaluate to 45723a2aff78ff4fff7fff1114760e62 rather than the expected 45723a2af3788c4ff17f8d1114760e62. Reported by Antoine Levitt in http://thread.gmane.org/gmane.emacs.devel/139824
2011-05-28Fix cursor motion near overlays covering reordered text.Eli Zaretskii
src/xdisp.c (set_cursor_from_row): Set start and stop points of the loop that looks for the glyph on which to display cursor according to the row's direction.
2011-05-27Fix order of ChangeLog entries after merge.Paul Eggert
2011-05-27Merge from trunk.Paul Eggert
2011-05-27* src/xselect.c (x_convert_selection): Yet another int/Lisp_Object mixup.Stefan Monnier
2011-05-27Merge: Integer overflow fixes.Paul Eggert
2011-05-27* xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings.Paul Eggert
(x_handle_selection_request, frame_for_x_selection): Remove unused vars. (x_clipboard_manager_save): Now static. (Fx_clipboard_manager_save): Rename local to avoid shadowing.
2011-05-27* fns.c: Fix minor problems prompted by GCC 4.6.0 warnings.Paul Eggert
(crypto_hash_function): Now static. Fix pointer signedness problems. Avoid unnecessary initializations.