Document SELinux support functions in Lisp manual.
[bpt/emacs.git] / src / ChangeLog
index 468e73c..1566d62 100644 (file)
@@ -1,3 +1,344 @@
+2012-02-25  Chong Yidong  <cyd@gnu.org>
+
+       * fileio.c (Ffile_selinux_context, Fset_file_selinux_context):
+       Doc fix.
+
+       * xselect.c (Fx_selection_exists_p): Doc fix.
+       (x_clipboard_manager_save_all): Print an informative message
+       before saving to clipboard manager.
+
+2012-02-24  Chong Yidong  <cyd@gnu.org>
+
+       * keyboard.c (process_special_events): Handle all X selection
+       requests in kbd_buffer, not just the next one (Bug#8869).
+
+2012-02-23  Chong Yidong  <cyd@gnu.org>
+
+       * xfns.c (Fx_create_frame): Avoid window-configuration-change-hook
+       call when setting menu-bar-lines and tool-bar-lines parameters.
+       (unwind_create_frame_1): New helper function.
+
+       * window.c (inhibit_window_configuration_change_hook): New var.
+       (run_window_configuration_change_hook): Obey it.
+       (syms_of_window): Initialize it.
+
+2012-02-22  Chong Yidong  <cyd@gnu.org>
+
+       * xterm.c (x_draw_image_relief): Add missing type check for
+       Vtool_bar_button_margin (Bug#10743).
+
+2012-02-21  Chong Yidong  <cyd@gnu.org>
+
+       * fileio.c (Vfile_name_handler_alist): Doc fix.
+
+       * buffer.c (Fget_file_buffer): Protect against invalid file
+       handler return value.
+
+2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * .gdbinit (xreload): Don't assume EMACS_INT fits in 'long'
+       when computing $valmask.
+
+       Fix crash due to non-contiguous EMACS_INT (Bug#10780).
+       * lisp.h (VALBITS): Move definition up, so that USE_LSB_TAG can use it.
+       (USE_LSB_TAG): Do not define if UINTPTR_MAX >> VALBITS == 0.
+       It's useless in that case, and it can cause problems on hosts
+       that allocate halves of EMACS_INT values separately.
+       Reported by Dan HorĂ¡k.  Diagnosed by Andreas Schwab in
+       <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10780#30>.
+       * mem-limits.h (EXCEEDS_LISP_PTR): Define to 0 on hosts where
+       UINTPTR_MAX >> VALBITS == 0.  This is required by the above change;
+       it avoids undefined behavior on hosts where shifting right by more
+       than the word width has undefined behavior.
+
+2012-02-19  Chong Yidong  <cyd@gnu.org>
+
+       * fileio.c (Ffile_name_directory, Ffile_name_nondirectory)
+       (Funhandled_file_name_directory, Ffile_name_as_directory)
+       (Fdirectory_file_name, Fexpand_file_name)
+       (Fsubstitute_in_file_name): Protect against invalid file handler
+       return values (Bug#10845).
+
+2012-02-18  Eli Zaretskii  <eliz@gnu.org>
+
+       * .gdbinit (pitx): Fix incorrect references to fields of the
+       iterator stack.
+
+2012-02-17  Chong Yidong  <cyd@gnu.org>
+
+       * syntax.c (Fscan_lists): Doc fix (Bug#10833).
+
+2012-02-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * image.c (MAX_IMAGE_SIZE): Increase from 6.0 to 10.0; see
+       <http://lists.gnu.org/archive/html/emacs-devel/2012-02/msg00540.html>.
+
+2012-02-15  Chong Yidong  <cyd@gnu.org>
+
+       * eval.c (Fdefvar, Fdefconst): Doc fix; note that the variable is
+       marked as special.  Also, starting docstrings with * is obsolete.
+
+2012-02-13  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * gnutls.c (emacs_gnutls_write): Fix last change.
+
+2012-02-13  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnutls.c (emacs_gnutls_write): Set errno appropriately for
+       send_process.
+
+2012-02-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * keymap.c (Fsingle_key_description): Handle char ranges.
+
+2012-02-12  Chong Yidong  <cyd@gnu.org>
+
+       * xdisp.c (handle_stop): Avoid assigning -1 to it->face_id here,
+       as that creates a dangerous corner case.
+
+       * window.c (Fdelete_window_internal): Invalidate the mouse
+       highlight (Bug#9904).
+
+2012-02-12  Glenn Morris  <rgm@gnu.org>
+
+       * xselect.c (Fx_own_selection_internal)
+       (Fx_get_selection_internal, Fx_disown_selection_internal)
+       (Fx_selection_owner_p, Fx_selection_exists_p): Doc fixes.
+       * nsselect.m (Fx_own_selection_internal)
+       (Fx_disown_selection_internal, Fx_selection_exists_p)
+       (Fx_selection_owner_p, Fx_get_selection_internal):
+       Sync docs and argument specs with the xselect.c versions.
+
+2012-02-11  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnutls.c (emacs_gnutls_write): Don't infloop if sendto fails.
+
+2012-02-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32select.c (Fx_selection_exists_p): Sync doc string and
+       argument list with xselect.c.  (Bug#10783)
+
+       * w16select.c (Fx_selection_exists_p): Sync doc string and
+       argument list with xselect.c.  (Bug#10783)
+
+2012-02-10  Glenn Morris  <rgm@gnu.org>
+
+       * fns.c (Fsecure_hash): Doc fix.
+
+2012-02-09  Kenichi Handa  <handa@m17n.org>
+
+       * coding.c (produce_chars): Fix updating of src_end (Bug#10701).
+
+2012-02-07  Chong Yidong  <cyd@gnu.org>
+
+       * buffer.c (Fbuffer_local_variables)
+       (buffer_lisp_local_variables): Handle unbound vars correctly;
+       don't let Qunbound leak into Lisp.
+
+2012-02-07  Glenn Morris  <rgm@gnu.org>
+
+       * image.c (Fimagemagick_types): Doc fix.
+
+       * image.c (imagemagick-render-type): Change it from a lisp object
+       to an integer.  Move the doc here from the lisp manual.
+       Treat all values not equal to 0 the same.
+
+2012-02-06  Chong Yidong  <cyd@gnu.org>
+
+       * doc.c (store_function_docstring): Avoid applying docstring of
+       alias to base function (Bug#2603).
+
+2012-02-04  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * .gdbinit (pp1, pv1): Remove redundant defines.
+       (pr): Use pp.
+
+2012-02-04  Chong Yidong  <cyd@gnu.org>
+
+       * nsterm.m: Declare a global (Bug#10694).
+
+2012-02-04  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32.c (get_emacs_configuration_options): Include
+       --enable-checking, if specified, in the return value.
+
+2012-02-04  Martin Rudalics  <rudalics@gmx.at>
+
+       * dispnew.c (change_frame_size_1): Calculate new_frame_total_cols
+       after rounding frame sizes.  (Bug#9723)
+
+2012-02-04  Eli Zaretskii  <eliz@gnu.org>
+
+       * keyboard.c (adjust_point_for_property): Don't position point
+       before BEGV.  (Bug#10696)
+
+2012-02-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Handle overflow when computing char display width (Bug#9496).
+       * character.c (char_width): Return EMACS_INT, not int.
+       (char_width, c_string_width): Check for overflow when
+       computing the width; this is possible now that individual
+       characters can have unbounded width.  Problem introduced
+       by merge from Emacs 23 on 2012-01-19.
+
+2012-02-02  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (Fdbus_register_method): Mention the return value
+       :ignore in the docstring.
+
+2012-02-02  Glenn Morris  <rgm@gnu.org>
+
+       * callproc.c (Fcall_process, Fcall_process_region): Doc fix.
+
+       * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
+       Unconditionally set to t.  (Bug#10673)
+       * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
+       * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
+       * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Doc fix.
+
+2012-02-02  Kenichi Handa  <handa@m17n.org>
+
+       (x_produce_glyphs): Cancel previous change.  If cmp->glyph_len is
+       0, do not call append_composite_glyph.
+
+2012-02-02  Kenichi Handa  <handa@m17n.org>
+
+       * xdisp.c (BUILD_COMPOSITE_GLYPH_STRING): Initialize first_s to
+       NULL (Bug#6988).
+       (x_produce_glyphs): If the component of a composition is a null
+       string, set it->pixel_width to 1 to avoid zero-width glyph.
+
+2012-02-01  Eli Zaretskii  <eliz@gnu.org>
+
+       * ralloc.c (resize_bloc, r_alloc_sbrk): Don't call memmove if its
+       first 2 arguments are identical.  This makes inserting large
+       output from a subprocess an order of magnitude faster on
+       MS-Windows, where all sbrk'ed memory is always contiguous.
+
+2012-01-31  Glenn Morris  <rgm@gnu.org>
+
+       * nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
+       * w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
+       * xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
+
+2012-01-29  Glenn Morris  <rgm@gnu.org>
+
+       * gnutls.c (syms_of_gnutls): More doc (from etc/NEWS).
+
+2012-01-28  Samuel Thibault  <sthibault@debian.org>  (tiny change)
+
+       * s/gnu.h: Define POSIX_SIGNALS (Bug#10552).
+
+2012-01-28  Chong Yidong  <cyd@gnu.org>
+
+       * minibuf.c (syms_of_minibuf): Doc fix (Bug#10550).
+
+2012-01-26  Chong Yidong  <cyd@gnu.org>
+
+       * keyboard.c (Vecho_keystrokes): Document zero value (Bug#10503).
+
+       * search.c (Fsearch_forward, Fsearch_backward): Document negative
+       repeat counts (Bug#10507).
+
+2012-01-26  Glenn Morris  <rgm@gnu.org>
+
+       * lread.c (syms_of_lread): Doc fix.
+
+2012-01-25  HIROSHI OOTA  <nil@mad.dog.cx>  (tiny change)
+
+       * coding.c (encode_designation_at_bol): Change return value to
+       EMACS_INT.
+
+2012-01-25  Chong Yidong  <cyd@gnu.org>
+
+       * eval.c (Fuser_variable_p): Doc fix; mention custom-variable-p.
+
+2012-01-21  Chong Yidong  <cyd@gnu.org>
+
+       * floatfns.c (Fcopysign): Make the second argument non-optional,
+       since nil is not allowed anyway.
+
+2012-01-21  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * process.c (read_process_output): Use p instead of XPROCESS (proc).
+       (send_process): Likewise.
+
+2012-01-19  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (save_window_save, Fcurrent_window_configuration)
+       (Vwindow_persistent_parameters): Do not use Qstate.  Rewrite
+       doc-strings.
+
+2012-01-19  Kenichi Handa  <handa@m17n.org>
+
+       * character.c (char_width): New function.
+       (Fchar_width, c_string_width, lisp_string_width):
+       Use char_width (Bug#9496).
+
+2012-01-16  Martin Rudalics  <rudalics@gmx.at>
+
+       * window.c (Vwindow_persistent_parameters): New variable.
+       (Fset_window_configuration, save_window_save): Handle persistent
+       window parameters.
+
+2012-01-14  Eli Zaretskii  <eliz@gnu.org>
+
+       * w32fns.c (signal_user_input): Don't do a QUIT, to avoid
+       thrashing the stack of the thread.  (Bug#9087)
+
+2012-01-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * xdisp.c (rows_from_pos_range): Add parens as per gcc -Wparentheses.
+
+2012-01-11  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (rows_from_pos_range): Handle the case where the
+       highlight ends on a newline.  (Bug#10464)
+       (mouse_face_from_buffer_pos): Fix off-by-one error in calculating
+       he end column for display of highlight that ends on a newline
+       before a R2L line.
+
+2012-01-11  Glenn Morris  <rgm@gnu.org>
+
+       * lread.c (init_lread): If no-site-lisp, remove site-lisp dirs
+       from load-path also when installation-directory is nil.  (Bug#10208)
+
+2012-01-10  Glenn Morris  <rgm@gnu.org>
+
+       * emacs.c (syms_of_emacs) <installation-directory>: Doc fix.
+
+       * epaths.in (PATH_LOADSEARCH, PATH_EXEC, PATH_DATA, PATH_DOC):
+       Update template values to be closer to their typical values these days.
+
+2012-01-09  Eli Zaretskii  <eliz@gnu.org>
+
+       * xdisp.c (rows_from_pos_range): Accept additional argument
+       DISP_STRING, and accept any glyph in a row whose object is that
+       string as eligible for mouse highlight.  Fixes mouse highlight of
+       display strings from overlays.  (Bug#10464)
+
+2012-01-07  Paul Eggert  <eggert@cs.ucla.edu>
+
+       emacs: fix an auto-save permissions race condition (Bug#10400)
+       * fileio.c (auto_saving_dir_umask): New static var.
+       (Fmake_directory_internal): Use it.
+       (do_auto_save_make_dir): Set it, instead of invoking chmod after
+       creating the directory.  The old code temporarily assigns
+       too-generous permissions to the directory.
+       (do_auto_save_eh): Clear it.
+       (Fdo_auto_save): Catch all errors, not just file errors, so
+       that the var is always cleared.
+
+2012-01-07  Eli Zaretskii  <eliz@gnu.org>
+
+       * search.c (scan_buffer): Pass character positions to
+       know_region_cache, not byte positions.  (Bug#6540)
+
+2012-01-07  LynX  <_LynX@bk.ru>  (tiny change)
+
+       * w32.c (sys_rename): Report EXDEV when rename of a directory
+       fails because the target is on another logical disk.  (Bug#10284)
+
 2012-01-07  David Benjamin  <davidben@mit.edu>  (tiny change)
 
        * xterm.c (x_embed_request_focus): New function.
        (trackingNotification): Surround with ifdef NS_IMPL_COCOA.
        (syms_of_nsmenu): Set trackingMenu to 1 if not NS_IMPL_COCOA.
 
-2011-12-18 David Reitter <reitter@cmu.edu>
+2011-12-18  David Reitter  <reitter@cmu.edu>
 
        * nsterm.m (ns_term_init): Subscribe for notifications
        NSMenuDidBeginTrackingNotification and NSMenuDidEndTrackingNotification
        Remove unreachable code.
        (read_hex, load_charset_map_from_file): Check for integer overflow.
 
-       * xterm.c: don't go over XClientMessageEvent limit
+       * xterm.c: Don't go over XClientMessageEvent limit.
        (scroll_bar_windows_size): Now ptrdiff_t, as we prefer signed.
        (x_send_scroll_bar_event): Likewise.  Check that the size does not
        exceed limits imposed by XClientMessageEvent, as well as the usual
 
        * ccl.c (ccl_driver): Redo slightly to avoid the need for 'unsigned'.
 
-       ccl: add integer overflow checks
+       ccl: Add integer overflow checks.
        * ccl.c (CCL_CODE_MAX, GET_CCL_RANGE, GET_CCL_CODE, GET_CCL_INT):
        (IN_INT_RANGE): New macros.
        (ccl_driver): Use them to check for integer overflow when
        where the include path doesn't have X11/X.h by default.  See
        <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00561.html>.
 
-2011-05-20 Kenichi Handa  <handa@m17n.org>
+2011-05-20  Kenichi Handa  <handa@m17n.org>
 
        * composite.c (find_automatic_composition): Fix previous change.
 
        * lread.c (lisp_file_lexically_bound_p): Stop scanning at end
        marker.  (Bug#8610)
 
-2011-05-05 Eli Zaretskii  <eliz@gnu.org>
+2011-05-05  Eli Zaretskii  <eliz@gnu.org>
 
        * w32heap.c (allocate_heap) [USE_LISP_UNION_TYPE || USE_LSB_TAG]:
        New version that can reserve upto 2GB of heap space.
        conversion specifiers.  For example, use "...%"pI"d..." rather
        than "...%"pEd"...".
        (pEd): Remove.  All uses replaced with similar uses of pI.
-       * src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h: Likewise.
+       * m/amdx86-64.h, m/ia64.h, m/ibms390x.h: Likewise.
        * alloc.c (check_pure_size): Don't overflow by converting size to int.
        * bidi.c (bidi_dump_cached_states): Use pI to avoid cast.
        * data.c (Fnumber_to_string): Use pI instead of if-then-else-abort.
        Without this change, on typical 64-bit hosts error ("...%d...", N)
        was used to print both 32- and 64-bit integers N, which relied on
        undefined behavior.
-       * lisp.h, src/m/amdx86-64.h, src/m/ia64.h, src/m/ibms390x.h (pEd):
-       New macro.
+       * lisp.h, m/amdx86-64.h, m/ia64.h, m/ibms390x.h (pEd): New macro.
        * lisp.h (error, verror): Mark as printf-like functions.
        * eval.c (verror): Use vsnprintf, not doprnt, to do the real work.
        Report overflow in size calculations when allocating printf buffer.
        are now in src/globals.h.
        (syms_of_minibuf): Remove spurious & from previous change.
 
-2011-03-20  Leo  <sdl.web@gmail.com>
+2011-03-20  Leo Liu  <sdl.web@gmail.com>
 
        * minibuf.c (completing-read-function): New variable.
        (completing-read-default): Rename from completing-read.