1. 08 Jul, 2011 6 commits
    • Jan Djärv's avatar
      Don't let Gtk+ linewrap tooltips. · 0ce7e563
      Jan Djärv authored
      * 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
      0ce7e563
    • Jan Djärv's avatar
      Fix breakage introduced by fixing Bug#8842. · 3fe4b549
      Jan Djärv authored
      * 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.
      3fe4b549
    • Jason Rumney's avatar
      * src/w32fns.c (w32_wnd_proc) [WM_TIMER, WM_SET_CURSOR]: Avoid using · 5df75e47
      Jason Rumney authored
      frame struct members of non-existent frames.
      
      Fixes: debbugs:6284
      5df75e47
    • Jan Djärv's avatar
      Fix warnings in ns*m files: Replace deprecated methods, declare new interfaces. · 4393663b
      Jan Djärv authored
      * 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.
      4393663b
    • Jan Djärv's avatar
    • Jan Djärv's avatar
      Fix services menu empty on OSX 1.6+. · 699c10bd
      Jan Djärv authored
      * 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.
      699c10bd
  2. 07 Jul, 2011 5 commits
  3. 06 Jul, 2011 3 commits
  4. 05 Jul, 2011 3 commits
    • Juanma Barranquero's avatar
      Fix typos. · 9173deec
      Juanma Barranquero authored
      9173deec
    • Jan Djärv's avatar
      Use GConf and GSettings both, check GConf/GSettings toolbar style and font name. · 869795d6
      Jan Djärv authored
      * configure.in (HAVE_GCONF): Allow both HAVE_GCONF and HAVE_GSETTINGS.
      
      * lisp/dynamic-setting.el (dynamic-setting-handle-config-changed-event): 
      Update doc string.
      
      * src/xsettings.c: Use both GConf and GSettings if both are available.
      (store_config_changed_event): Add comment.
      (dpyinfo_valid, store_font_name_changed, map_tool_bar_style)
      (store_tool_bar_style_changed): New functions.
      (store_monospaced_changed): Add comment. Call dpyinfo_valid.
      (struct xsettings): Move font inside HAVE_XFT.
      (GSETTINGS_TOOL_BAR_STYLE, GSETTINGS_FONT_NAME): New defines.
      (GSETTINGS_MONO_FONT): Renamed from SYSTEM_MONO_FONT.
      Move inside HAVE_XFT.
      (something_changed_gsettingsCB): Renamed from something_changedCB.
      Check for changes in GSETTINGS_TOOL_BAR_STYLE and GSETTINGS_FONT_NAME
      also.
      (GCONF_TOOL_BAR_STYLE, GCONF_FONT_NAME): New defines.
      (GCONF_MONO_FONT): Renamed from SYSTEM_MONO_FONT. Move inside HAVE_XFT.
      (something_changed_gconfCB): Renamed from something_changedCB.
      Check for changes in GCONF_TOOL_BAR_STYLE and GCONF_FONT_NAME also.
      (parse_settings): Move check for font inside HAVE_XFT.
      (read_settings, apply_xft_settings): Add comment.
      (read_and_apply_settings): Add comment.  Call map_tool_bar_style and
      store_tool_bar_style_changed.  Move check for font inside HAVE_XFT and
      call store_font_name_changed.
      (xft_settings_event): Add comment.
      (init_gsettings): Add comment.  Get values for GSETTINGS_TOOL_BAR_STYLE
      and GSETTINGS_FONT_NAME.  Move check for fonts within HAVE_XFT.
      (init_gconf): Add comment.  Get values for GCONF_TOOL_BAR_STYLE
      and GCONF_FONT_NAME.  Move check for fonts within HAVE_XFT.
      (xsettings_initialize): Call init_gsettings last.
      (xsettings_get_system_font, xsettings_get_system_normal_font): Add
      comment.
      869795d6
    • Paul Eggert's avatar
      Random fixes. E.g., (random) never returned negative values. · d8ed26bd
      Paul Eggert authored
      * fns.c (Frandom): Use GET_EMACS_TIME for random seed, and add the
      subseconds part to the entropy, as that's a bit more random.
      Prefer signed to unsigned, since the signedness doesn't matter and
      in general we prefer signed.  When given a limit, use a
      denominator equal to INTMASK + 1, not to VALMASK + 1, because the
      latter isn't right if USE_2_TAGS_FOR_INTS.
      * sysdep.c (get_random): Return a value in the range 0..INTMASK,
      not 0..VALMASK.  Don't discard "excess" bits that random () returns.
      d8ed26bd
  5. 04 Jul, 2011 9 commits
  6. 03 Jul, 2011 5 commits
  7. 02 Jul, 2011 6 commits
    • Chong Yidong's avatar
      Fix corner case in prefix-arg handling for mouse events (Bug#1586). · 7a8e04f7
      Chong Yidong authored
      * src/keyboard.c (command_loop_1): If a down-mouse event is unbound,
      leave any prefix arg for the up event.
      7a8e04f7
    • Lars Magne Ingebrigtsen's avatar
      * lread.c (syms_of_lread): Mention single symbols defined by · 69bb1ef7
      Lars Magne Ingebrigtsen authored
      `defvar' or `defconst' (bug#7154).
      69bb1ef7
    • Lars Magne Ingebrigtsen's avatar
      7b3747f9
    • Lars Magne Ingebrigtsen's avatar
      * fns.c (Frequire): Mention .el.gz files. · 61352f62
      Lars Magne Ingebrigtsen authored
      Fixes: debbugs:7314
      61352f62
    • Martin Rudalics's avatar
      Remove clone-number support. Provide clone-of parameter in window states. · 28545e04
      Martin Rudalics authored
      * window.h (window): Remove clone_number slot.
      * window.c (Fwindow_clone_number, Fset_window_clone_number):
      Remove.
      (make_parent_window, make_window, saved_window)
      (Fset_window_configuration, save_window_save): Don't deal with
      clone numbers.
      * buffer.c (Qclone_number): Remove declaration.
      (sort_overlays, overlay_strings): Don't deal with clone numbers.
      
      * window.el (window-state-get-1): Don't assign clone numbers.
      Add clone-of item to list of window parameters.
      (window-state-put-2): Don't process clone numbers.
      (display-buffer-alist): Fix doc-string.
      28545e04
    • Stefan Monnier's avatar
      Add multiple inheritance to keymaps. · 3349e122
      Stefan Monnier authored
      * src/keymap.c (Fmake_composed_keymap): New function.
      (Fset_keymap_parent): Simplify.
      (fix_submap_inheritance): Remove.
      (access_keymap_1): New function extracted from access_keymap to handle
      embedded parents and handle lists of maps.
      (access_keymap): Use it.
      (Fkeymap_prompt, map_keymap_internal, map_keymap, store_in_keymap)
      (Fcopy_keymap): Handle embedded parents.
      (Fcommand_remapping, define_as_prefix): Simplify.
      (Fkey_binding): Simplify.
      (syms_of_keymap): Move minibuffer-local-completion-map,
      minibuffer-local-filename-completion-map,
      minibuffer-local-must-match-map, and
      minibuffer-local-filename-must-match-map to Elisp.
      (syms_of_keymap): Defsubr make-composed-keymap.
      * src/keyboard.c (menu_bar_items): Use map_keymap_canonical.
      (parse_menu_item): Trivial simplification.
      * lisp/subr.el (remq): Don't allocate if it's not needed.
      (keymap--menu-item-binding, keymap--menu-item-with-binding)
      (keymap--merge-bindings): New functions.
      (keymap-canonicalize): Use them to refine the canonicalization.
      * lisp/minibuffer.el (minibuffer-local-completion-map)
      (minibuffer-local-must-match-map): Move initialization from C.
      (minibuffer-local-filename-completion-map): Move initialization from C;
      don't inherit from anything here.
      (minibuffer-local-filename-must-match-map): Make obsolete.
      (completing-read-default): Use make-composed-keymap to combine
      minibuffer-local-filename-completion-map with either
      minibuffer-local-must-match-map or
      minibuffer-local-filename-completion-map.
      3349e122
  8. 01 Jul, 2011 3 commits
    • Glenn Morris's avatar
      Fix typos that break xsettings.c compilation. · 3279eb87
      Glenn Morris authored
      * configure.in (SETTINGS_CFLAGS, SETTINGS_LIBS) [HAVE_GCONF]: Fix typo.
      
      * src/Makefile.in (SETTINGS_LIBS): Fix typo.
      3279eb87
    • Kazuhiro Ito's avatar
      * coding.c (Fencode_coding_string): Record the last coding system · 4550efdf
      Kazuhiro Ito authored
      used, as the function doc string says.
      
      Fixes: debbugs:8738
      4550efdf
    • Jan Djärv's avatar
      * process.c: Add defined (HAVE_GSETTINGS) for xgselect.h · 0949d2b6
      Jan Djärv authored
      (wait_reading_process_output): Add defined (HAVE_GSETTINGS) for
      xg_select.
      
      * xgselect.c: Add defined (HAVE_GSETTINGS).
      (xgselect_initialize): Ditto.
      
      * xsettings.c (store_monospaced_changed): Take new font as arg and
      check for change against current_mono_font.
      (EMACS_TYPE_SETTINGS): Remove this and related defines.
      (emacs_settings_constructor, emacs_settings_get_property)
      (emacs_settings_set_property, emacs_settings_class_init)
      (emacs_settings_init, gsettings_obj): Remove.
      (something_changedCB): New function for HAVE_GSETTINGS.
      (something_changedCB): HAVE_GCONF: Call store_monospaced_changed
      with value as argument.
      (init_gsettings): Check that GSETTINGS_SCHEMA exists before calling
      g_settings_new.  Do not create gsettings_obj.
      Remove calls to g_settings_bind. Connect something_changedCB to
      "changed".
      
      Fixes: debbugs:8967
      0949d2b6