1. 01 Jun, 2011 3 commits
    • Dan Nicolaescu's avatar
      Make it possible to build with GCC-4.6+ -O2 -flto. · 698d32e2
      Dan Nicolaescu authored
      * src/emacs.c (__malloc_initialize_hook): Mark as EXTERNALLY_VISIBLE.
    • Stefan Monnier's avatar
      * lisp/minibuffer.el (minibuffer-inactive-mode-map): New var. · fd6fa53f
      Stefan Monnier authored
      (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.
    • Paul Eggert's avatar
      Minor fixes for signed vs unsigned integers. · ccd9a01a
      Paul Eggert authored
      * 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
  2. 31 May, 2011 7 commits
    • Juanma Barranquero's avatar
    • Dan Nicolaescu's avatar
      * src/data.c (init_data): Remove code for UTS, this system is not · 2ad0baf4
      Dan Nicolaescu authored
      supported anymore.
    • Dan Nicolaescu's avatar
      Don't force ./temacs to start in terminal mode. · 4fcc2638
      Dan Nicolaescu authored
      * 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.
    • Dan Nicolaescu's avatar
      Use const for a string pointer. · c56e0fd5
      Dan Nicolaescu authored
      * src/dispnew.c (add_window_display_history): Use const for the string
      pointer.  Remove declaration, not needed.
    • Dan Nicolaescu's avatar
      Make it possible to run ./temacs. · 738db178
      Dan Nicolaescu authored
      * 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.
    • Stefan Monnier's avatar
      * lisp/minibuffer.el: Add metadata method to completion tables. · 620c53a6
      Stefan Monnier authored
      (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
      * 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.
    • Paul Eggert's avatar
      * ccl.c (CCL_CODE_RANGE): Allow negative numbers. (Bug#8751) · e003a292
      Paul Eggert authored
      (CCL_CODE_MIN): New macro.
  3. 30 May, 2011 2 commits
  4. 29 May, 2011 4 commits
    • Chong Yidong's avatar
      Doc fixes for imagemagick support code. · d66c4c7c
      Chong Yidong authored
      * lisp/image.el (imagemagick-types-inhibit)
      (imagemagick-register-types): Doc fix.
      * src/image.c: Various fixes to ImageMagick code comments.
      (Fimagemagick_types): Doc fix.
    • Paul Eggert's avatar
      Minor fixes prompted by GCC 4.6.0 warnings. · 0196f88a
      Paul Eggert authored
      * xselect.c (converted_selections, conversion_fail_tag): Now static.
    • Paul Eggert's avatar
      * emacs.c [HAVE_X_WINDOWS]: Include "xterm.h". · 5fbc2025
      Paul Eggert authored
      (x_clipboard_manager_save_all): Move extern decl to ...
      * xterm.h: ... here, so that it can be checked for consistency.
    • Chong Yidong's avatar
      Move clipboard-manager functionality out of hooks. · 1dd3c2d9
      Chong Yidong authored
      * 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.
  5. 28 May, 2011 4 commits
    • Paul Eggert's avatar
      [ChangeLog] · 55d4c1b2
      Paul Eggert authored
      Use 'inline', not 'INLINE'.
      * configure.in, autogen/config.in (INLINE): Remove.
      Use 'inline', not 'INLINE'.
      * etags.c (hash): Now inline unconditionally.
      * make-docfile.c (put_char): inline, not INLINE.
      Use 'inline', not 'INLINE'.
      * config.nt (INLINE): Remove.
      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__.
    • William Xu's avatar
    • Eli Zaretskii's avatar
      src/ChangeLog: Fix last entry. · e1900994
      Eli Zaretskii authored
    • Jim Meyering's avatar
      avoid a sign-extension bug in crypto_hash_function · 3eaff834
      Jim Meyering authored
      * 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
  6. 27 May, 2011 5 commits
    • Paul Eggert's avatar
      Fix order of ChangeLog entries after merge. · 2ff916cb
      Paul Eggert authored
    • Stefan Monnier's avatar
    • Paul Eggert's avatar
      * xselect.c: Fix minor problems prompted by GCC 4.6.0 warnings. · fb1ac845
      Paul Eggert authored
      (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.
    • Paul Eggert's avatar
      * fns.c: Fix minor problems prompted by GCC 4.6.0 warnings. · f1b54466
      Paul Eggert authored
      (crypto_hash_function): Now static.
      Fix pointer signedness problems.  Avoid unnecessary initializations.
    • Chong Yidong's avatar
      Support X clipboard managers. · a9f737ee
      Chong Yidong authored
      * lisp/select.el (xselect-convert-to-targets): Add MULTIPLE target to list.
      (xselect-convert-to-save-targets): New function.
      * src/xselect.c: Support for clipboard managers.
      (Vselection_alist): Move to termhooks.h as terminal-local var.
      (LOCAL_SELECTION): New macro.
      (x_atom_to_symbol): Handle x_display_info_for_display fail case.
      (symbol_to_x_atom): Remove gratuitous arg.
      (x_handle_selection_request, lisp_data_to_selection_data)
      (x_get_foreign_selection, Fx_register_dnd_atom): Callers changed.
      (x_own_selection, x_get_local_selection, x_convert_selection): New
      arg, specifying work frame.  Use terminal-local Vselection_alist.
      (some_frame_on_display): Delete unused function.
      (Fx_own_selection_internal, Fx_get_selection_internal)
      (Fx_disown_selection_internal, Fx_selection_owner_p)
      (Fx_selection_exists_p): New optional frame arg.
      (frame_for_x_selection, Fx_clipboard_manager_save): New functions.
      (x_handle_selection_clear): Don't treat other terminals with the
      same keyboard specially.  Use the terminal-local Vselection_alist.
      (x_clear_frame_selections): Use Frun_hook_with_args.
      * src/termhooks.h (Vselection_alist): Make it terminal-local.
      * src/terminal.c (create_terminal): Initialize it.
      * src/xterm.c (x_term_init): Intern ATOM and CLIPBOARD_MANAGER atoms.
      * src/xterm.h: Add support for those atoms.
  7. 26 May, 2011 2 commits
    • Chong Yidong's avatar
      * src/xselect.c: ICCCM-compliant handling of MULTIPLE targets. · e067f0c1
      Chong Yidong authored
      (converted_selections, conversion_fail_tag): New global variables.
      (x_selection_request_lisp_error): Free the above.
      (x_get_local_selection): Remove unnecessary code.
      (x_reply_selection_request): Args changed; handle arbitrary array
      of converted selections stored in converted_selections.  Separate
      the XChangeProperty and SelectionNotify steps.
      (x_handle_selection_request): Rewrite to handle MULTIPLE target.
      (x_convert_selection): New function.
      (x_handle_selection_event): Simplify.
      (x_get_foreign_selection): Don't ignore incoming requests while
      waiting for an answer; this will fail when we implement
      SAVE_TARGETS, and seems unnecessary anyway.
      (selection_data_to_lisp_data): Recognize ATOM_PAIR type.
      (Vx_sent_selection_functions): Doc fix.
    • Leo Liu's avatar
  8. 25 May, 2011 2 commits
  9. 24 May, 2011 7 commits
  10. 23 May, 2011 4 commits