1. 05 Aug, 2011 1 commit
  2. 29 Jul, 2011 1 commit
  3. 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
  4. 23 Jul, 2011 1 commit
  5. 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
  6. 28 May, 2011 1 commit
  7. 14 May, 2011 1 commit
  8. 03 Apr, 2011 1 commit
  9. 02 Apr, 2011 1 commit
  10. 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
  11. 07 Mar, 2011 1 commit
  12. 05 Mar, 2011 2 commits
  13. 03 Mar, 2011 1 commit
  14. 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
  15. 22 Feb, 2011 1 commit
  16. 17 Feb, 2011 1 commit
    • Jan Djärv's avatar
      Fix KVAR/BVAR, · 124c9ff0
      Jan Djärv authored
      * nsfns.m (Fx_create_frame, ns_set_name_as_filename)
      (Fns_read_file_name): Replace B_ with BVAR.
      
      * nsterm.m (ns_term_init): Use KVAR.
      124c9ff0
  17. 08 Feb, 2011 1 commit
  18. 25 Jan, 2011 1 commit
  19. 23 Jan, 2011 1 commit
  20. 22 Jan, 2011 1 commit
  21. 21 Jan, 2011 2 commits
    • Jan Djärv's avatar
      Make Nextstep port handle multiple screens for resize and move. · e2f79c8d
      Jan Djärv authored
      * nsterm.h (ns_output): Add dont_constrain and zooming.
      (EmacsView): Add ns_userRect.
      
      * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check
      if ns_alternate_modifier is none.
      
      * nsterm.m (x_set_offset, windowDidMove): When calculating y, use first
      screen, not the window screen.
      (x_set_window_size): Remove constraints.
      Calculate origin.y only if zooming is 0 and without referring to a
      screen.
      (windowWillResize): Don't modify frameSize.
      (windowDidBecomeKey, mouseDown): Set dont_constrain to 1.
      (initFrameFromEmacs): Initialize ns_userRect.
      (windowShouldZoom): Set zooming to one.  Remove all other code.
      (windowWillUseStandardFrame): Move static ns_userRect to EmacsView.
      Zero it after restore.
      (constrainFrameRect): New method for EmacsWindow.
      (mouseDragged): Always post NSWindowDidResizeNotification after call to
      windowWillResize.
      e2f79c8d
    • Jan Djärv's avatar
      * nsterm.m (keyDown): If ns_right_alternate_modifier is Qleft, check · 449ab399
      Jan Djärv authored
      if ns_alternate_modifier is none.
      449ab399
  22. 19 Jan, 2011 1 commit
    • Jan Djärv's avatar
      Fix NextStep build problems with globals.h introducion. · fb9d0f5a
      Jan Djärv authored
      * src/globals.h (struct emacs_globals): Add f_ns_input_file,
      f_ns_input_font, f_ns_input_fontsize, f_ns_input_line,
      f_ns_input_color, f_ns_input_text, f_ns_working_text,
      f_ns_input_spi_name, f_ns_input_spi_arg, f_ns_alternate_modifier,
      f_ns_right_alternate_modifier, f_ns_command_modifier,
      f_ns_right_command_modifier, f_ns_control_modifier,
      f_ns_right_control_modifier, f_ns_function_modifier,
      f_ns_antialias_text, f_ns_confirm_quit, f_Vns_icon_type_alist,
      f_Vns_version_string, f_Vns_sent_selection_hooks,
      f_Vns_lost_selection_hooks, f_Vselection_alist, f_Vns_reg_to_script
      and corresponding defines.
      
      * src/nsfns.m (Vmenu_bar_mode, Vtool_bar_mode): Remove declaration.
      (Vns_icon_type_alist, Vns_version_string): Move to globals.h.
      (syms_of_nsfns): Remove & from DEFVAR_LISP calls.
      
      * src/nsfont.m (Vns_reg_to_script, ns_antialias_text): Move to
      globals.h.
      (syms_of_nsfont): Remove & from DEFVAR_LISP.
      
      * src/nsselect.m (Vns_sent_selection_hooks, Vns_lost_selection_hooks
      (Vselection_alist, Vselection_converter_alist): Move to globals.h.
      (syms_of_nsselect): Remove & from DEFVAR_LISP.
      
      * src/nsterm.m (ns_input_file, ns_input_font, ns_input_fontsize)
      (ns_input_line, ns_input_color, ns_input_text, ns_working_text)
      (ns_input_spi_name, ns_input_spi_arg)
      (ns_alternate_modifier, ns_right_alternate_modifier)
      (ns_command_modifier, ns_right_command_modifier, ns_control_modifier)
      (ns_right_control_modifier, ns_function_modifier)
      (ns_antialias_text, ns_confirm_quit): Move to globals.h.
      (Vx_toolkit_scroll_bars, x_use_underline_position_properties)
      (x_underline_at_descent_line): Remove declaration.
      (syms_of_nsterm): Remove & from DEFVAR_LISP and DEFVAR_BOOL.
      
      * src/nsmenu.m (Voverriding_local_map, Voverriding_local_map_menu_flag):
      Remove declaration.
      fb9d0f5a
  23. 15 Jan, 2011 1 commit
  24. 02 Jan, 2011 1 commit
  25. 16 Dec, 2010 1 commit
  26. 05 Dec, 2010 1 commit
  27. 03 Dec, 2010 1 commit
  28. 02 Dec, 2010 2 commits
  29. 24 Nov, 2010 2 commits
  30. 21 Nov, 2010 1 commit
    • Jan Djärv's avatar
      Add separate key mappings for left/right control/command on Nextstep (Bug#7458). · b7d1e144
      Jan Djärv authored
      * lisp/cus-start.el (all): Add ns-right-control-modifier and
      ns-right-command-modifier.
      
      * lisp/term/ns-win.el (ns-right-control-modifier)
      (ns-right-command-modifier): Defvar them.
      
      * src/nsterm.m (ns_right_command_modifier, ns_right_control_modifier):
      Define (Bug#7458).
      (NSRightCommandKeyMask, NSRightControlKeyMask): Define (Bug#7458).
      (EV_MODIFIERS): Check for NSRightCommandKeyMask and
      NSRightControlKeyMask also (Bug#7458).
      (keyDown): Ditto (Bug#7458).
      (syms_of_nsterm): Defvar ns-right-command-modifier and
      ns-right-control-modifier (Bug#7458).
      b7d1e144
  31. 05 Nov, 2010 1 commit
  32. 04 Nov, 2010 1 commit