1. 26 May, 2012 1 commit
  2. 14 May, 2012 2 commits
  3. 09 Apr, 2012 1 commit
  4. 04 Feb, 2012 1 commit
  5. 02 Feb, 2012 1 commit
    • Glenn Morris's avatar
      Native scroll-bars are not implemented for Nextstep (bug#10673) · 44f92739
      Glenn Morris authored
      * configure.in [HAVE_NS]: Error if use --without-toolkit-scroll-bars.
      
      * src/nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
      Unconditionally set to t.
      
      * src/nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
      * src/w32term.c (syms_of_w32term) <x-toolkit-scroll-bars>:
      * src/xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Doc fix.
      44f92739
  6. 31 Jan, 2012 1 commit
    • Glenn Morris's avatar
      x-toolkit-scroll-bars doc fix. · 97897668
      Glenn Morris authored
      * src/nsterm.m (syms_of_nsterm) <x-toolkit-scroll-bars>:
      * src/xterm.c (syms_of_xterm) <x-toolkit-scroll-bars>: Sync docs.
      97897668
  7. 11 Jan, 2012 1 commit
  8. 05 Jan, 2012 1 commit
  9. 21 Dec, 2011 1 commit
    • Jan Djärv's avatar
      Fix biggest memory leaks in NS-port. More remain. · 204ee57f
      Jan Djärv authored
      * emacs.c (ns_pool): New variable.
      (main): Assign ns_pool.
      (Fkill_emacs): Call ns_release_autorelease_pool.
      
      * nsfns.m (x_set_background_color): Assign return value from
      ns_index_color to face-background instead of NSColor*.
      (ns_implicitly_set_icon_type): Fix indentation.
      Change assignment in for loop to comparison.
      
      * nsfont.m (ns_spec_to_descriptor): Fix indentation,
      autorelease fdesc, release fdAttrs and tdict.
      (ns_get_covering_families): Release charset.
      (ns_findfonts): Release NSFontDescriptor created with new.
      (ns_uni_to_glyphs): Fix indentation.
      (setString): Release attrStr before assigning new value.
      
      * nsmenu.m (ns_update_menubar): Call free_menubar_widget_value_tree
      before returning.
      
      * nsterm.m (x_free_frame_resources): Release
      f->output_data.ns->miniimage
      (ns_index_color): Fix indentation.  Do not retain
      color_table->colors[i].
      204ee57f
  10. 18 Dec, 2011 1 commit
    • Jan Djärv's avatar
      Adapt code from AquaEmacs to handle occasional blank menus. · 5fecd5fc
      Jan Djärv authored
      * nsmenu.m (trackingMenu): New variable.
      (NSMenuDidBeginTrackingNotification): Declare if OSX < 10.5 and
      NS_IMPL_COCOA.
      (trackingNotification): New method (from AquaEmacs).
      (menuNeedsUpdate): Expand comment and return if trackingMenu is 0,
      from AquaEmacs.
      (syms_of_nsmenu): Set trackingMenu to 1 if not NS_IMPL_COCOA.
      
      * nsterm.m (ns_term_init): Subscribe for notifications
      NSMenuDidBeginTrackingNotification and NSMenuDidEndTrackingNotification
      to method trackingNotification in EmacsMenu.
      
      Fixes: debbugs:7030
      5fecd5fc
  11. 10 Dec, 2011 1 commit
    • Jan Djärv's avatar
      Don't crash on bad user input. · f7dfe5d6
      Jan Djärv authored
      * nsfns.m (ns_get_defaults_value): New function.
      (Fns_get_resource, x_get_string_resource): Call ns_get_defaults_value.
      
      * nsterm.h (ns_get_defaults_value): Declare.
      
      * nsterm.m (ns_default): Call ns_get_defaults_value.
      
      Fixes: debbugs:10103
      f7dfe5d6
  12. 05 Dec, 2011 1 commit
  13. 27 Nov, 2011 1 commit
  14. 23 Nov, 2011 1 commit
  15. 15 Nov, 2011 1 commit
  16. 14 Nov, 2011 1 commit
  17. 05 Nov, 2011 1 commit
    • Jan Djärv's avatar
      * nsfns.m: Declare image_cache_refcount if GLYPH_DEBUG. · a97f8f3f
      Jan Djärv authored
      (unwind_create_frame): New function.
      (Fx_create_frame): Restructure code to be more similar to the one in
      xfns.c.  Call record_unwind_protect with unwind_create_frame (Bug#9943).
      Initialize image_cache_refcount if GLYPH_DEBUG (Bug#9943).
      Move terminal->reference_count++ just before making the frame official
      (Bug#9943).
      
      * nsterm.m (x_free_frame_resources): New function.
      (x_destroy_window): Move code to x_free_frame_resources.
      a97f8f3f
  18. 30 Sep, 2011 1 commit
  19. 29 Aug, 2011 1 commit
  20. 14 Aug, 2011 1 commit
    • Jan Djärv's avatar
      Fix that executing applescript may hang emacs uninterruptedly. · 08e3161a
      Jan Djärv authored
      * nsfns.m (as_script, as_result, as_status): New static variables.
      (ns_run_ascript): New function.
      (Fns_do_applescript): Set variables as_*. Make an NSApplicationDefined
      event with data2 set to NSAPP_DATA2_RUNASSCRIPT, post it and then start
      the event loop.  Get status from as_status.
      
      * nsterm.h (ns_run_ascript): Declare.
      (NSAPP_DATA2_RUNASSCRIPT): Define.
      
      * nsterm.m (sendEvent): If event is NSApplicationDefined and
      data2 is NSAPP_DATA2_RUNASSCRIPT, call ns_run_ascript and then exit
      the event loop (Bug#7276).
      08e3161a
  21. 05 Aug, 2011 1 commit
  22. 29 Jul, 2011 1 commit
  23. 28 Jul, 2011 2 commits
    • Alp Aker's avatar
      Fix display artifacts from ns_dumpglyphs_stretch (Bug#8470). · bf3492a5
      Alp Aker authored
      * src/nsterm.m (ns_dumpglyphs_stretch): Avoid overwriting left fringe
      or scroll bar.
      bf3492a5
    • Alp Aker's avatar
      Implement strike-through and overline on NextStep (Bug#8863). · 4843aac3
      Alp Aker authored
      * src/nsfont.m (nsfont_open): Use underline position provided by font,
      instead of hard-coded value of 2.
      (nsfont_draw): Call ns_draw_text_decoration instead.
      
      * src/nsterm.h: Add declaration for ns_draw_text_decoration.
      
      * src/nsterm.m (ns_draw_text_decoration): New function for drawing
      underline, overline, and strike-through.
      (ns_dumpglyphs_image, ns_dumpglyphs_stretch): Add call to
      ns_draw_text_decoration.  Change treatment of cursor drawing to
      accomodate underlining, etc.
      4843aac3
  24. 23 Jul, 2011 1 commit
  25. 08 Jul, 2011 3 commits
    • 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
    • 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
      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
  26. 28 May, 2011 1 commit
  27. 14 May, 2011 1 commit
  28. 03 Apr, 2011 1 commit
  29. 02 Apr, 2011 1 commit
  30. 27 Mar, 2011 2 commits
    • Jan Djärv's avatar
      Format doc and add customize for ns-auto-hide-menu-bar. · 5ffb62aa
      Jan Djärv authored
      * lisp/cus-start.el (all): Add boolean ns-auto-hide-menu-bar.
      
      * src/nsterm.m (syms_of_nsterm): Use doc: for ns-auto-hide-menu-bar.
      5ffb62aa
    • Jan Djärv's avatar
      Introduce ns-auto-hide-menu-bar to hide menubar for Emacs frames. · f0a1382a
      Jan Djärv authored
      Code by Anders Lindgren.
      
      * nsterm.m (ns_menu_bar_is_hidden): New variable.
      (ns_constrain_all_frames, ns_menu_bar_should_be_hidden)
      (ns_update_auto_hide_menu_bar): New functions.
      (ns_update_begin): Call ns_update_auto_hide_menu_bar.
      (applicationDidBecomeActive): Call ns_update_auto_hide_menu_bar and
      ns_constrain_all_frames.
      (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
      (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
      f0a1382a
  31. 07 Mar, 2011 1 commit
  32. 05 Mar, 2011 2 commits
  33. 03 Mar, 2011 1 commit
  34. 23 Feb, 2011 1 commit
    • Ben Key's avatar
      Fix handling of bar cursors in NS terminal. · 2c6584e8
      Ben Key authored
      * nsterm.m (ns_draw_window_cursor): Obey the cursor_width argument
      directly, for bar cursors.
      
      * xdisp.c (set_frame_cursor_types): Don't write an undefined value
      into the frame's cursor_width.
      2c6584e8