1. 23 Jul, 2011 1 commit
  2. 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
      * nsterm.m (initFrameFromEmacs): Don't use ns_return_types
      in registerServicesMenuSendTypes.
      (validRequestorForSendType): Don't check ns_return_types.
    • 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.
    • 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
      (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.
  3. 28 May, 2011 1 commit
  4. 14 May, 2011 1 commit
  5. 03 Apr, 2011 1 commit
  6. 02 Apr, 2011 1 commit
  7. 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.
    • 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
      (constrainFrameRect): Return at once if ns_menu_bar_should_be_hidden.
      (syms_of_nsterm): DEFVAR ns-auto-hide-menu-bar, init to Qnil.
  8. 07 Mar, 2011 1 commit
  9. 05 Mar, 2011 2 commits
  10. 03 Mar, 2011 1 commit
  11. 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.
  12. 22 Feb, 2011 1 commit
  13. 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.
  14. 08 Feb, 2011 1 commit
  15. 25 Jan, 2011 1 commit
  16. 23 Jan, 2011 1 commit
  17. 22 Jan, 2011 1 commit
  18. 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
      (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
    • 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.
  19. 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
      (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.
  20. 15 Jan, 2011 1 commit
  21. 02 Jan, 2011 1 commit
  22. 16 Dec, 2010 1 commit
  23. 05 Dec, 2010 1 commit
  24. 03 Dec, 2010 1 commit
  25. 02 Dec, 2010 2 commits
  26. 24 Nov, 2010 2 commits
  27. 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
      * 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).
  28. 05 Nov, 2010 1 commit
  29. 04 Nov, 2010 1 commit
  30. 01 Nov, 2010 1 commit
    • Eli Zaretskii's avatar
      Finish coding mouse highlight redesigned for portability. · bbf534ce
      Eli Zaretskii authored
      Not compiled yet.
       nsterm.m (ns_update_window_begin, ns_update_window_end)
       (ns_update_end, x_destroy_window, ns_frame_up_to_date)
       (ns_dumpglyphs_box_or_relief, ns_maybe_dumpglyphs_background)
       (ns_dumpglyphs_image, ns_dumpglyphs_stretch)
       (ns_initialize_display_info, keyDown, mouseMoved, mouseExited):
       Replace Display_Info with Mouse_HLInfo everywhere where
       mouse_face_* members were accessed for mouse highlight purposes.
       xterm.c (x_update_window_begin, x_update_window_end)
       (x_update_end, XTframe_up_to_date, x_set_mouse_face_gc)
       (handle_one_xevent, x_free_frame_resources, x_term_init): Replace
       Display_Info with Mouse_HLInfo everywhere where mouse_face_*
       members were accessed for mouse highlight purposes.
       w32term.c (x_update_window_begin, x_update_window_end)
       (x_update_end, w32_read_socket, x_free_frame_resources)
       (w32_initialize_display_info): Replace Display_Info with
       Mouse_HLInfo everywhere where mouse_face_* members were accessed
       for mouse highlight purposes.
       xdisp.c (show_mouse_face, note_mode_line_or_margin_highlight)
       (note_mouse_highlight) [HAVE_WINDOW_SYSTEM]: Don't run GUI code
       unless the frame is on a window-system.
  31. 29 Oct, 2010 1 commit
  32. 12 Oct, 2010 1 commit
    • Juanma Barranquero's avatar
      Fix typos in docstrings, comments and ChangeLogs. · c0943d3d
      Juanma Barranquero authored
      * etc/tutorials/TUTORIAL.es: Fix typos.
      * lisp/cedet/semantic/symref/list.el (semantic-symref-list-rename-open-hits):
        Fix typo in message.
        (semantic-symref-list-map-open-hits): Fix typo in docstring.
      * lisp/erc/erc-xdcc.el (erc-xdcc-help-text): Fix typo in docstring.
      * lisp/gnus/nnmail.el (nnmail-fancy-expiry-targets): Fix typo in docstring.
      * lisp/international/mule.el (define-coding-system):
      * lisp/international/titdic-cnv.el (quail-cxterm-package-ext-info):
      * composite.el (compose-region): Fix typo in docstring.
      * lisp/org/org-agenda.el (org-prefix-category-length)
        (org-prefix-category-max-length): Fix typos in docstrings.
      * src/font.c (Ffont_variation_glyphs):
      * ccl.c (Fccl_execute_on_string): Fix typo in docstring.
  33. 11 Oct, 2010 1 commit
    • Jan Djärv's avatar
      Bug#7150: Distinguishing between left and right Alt keys on NextStep/OSX. · a2e35ef5
      Jan Djärv authored
      * lisp/cus-start.el (all): ns-right-alternate-modifier is new.
      * lisp/term/ns-win.el (ns-right-alternate-modifier): New defvar.
      (ns-right-option-modifier): New alias for ns-right-alternate-modifier.
      (mac-right-option-modifier): New alias for ns-right-option-modifier.
      * src/nsterm.m (Qleft): Declare.
      (ns_right_alternate_modifier): New variable
      (NSRightAlternateKeyMask): New define.
      (EV_MODIFIERS): Parse NSRightAlternateKeyMask if
      ns_right_alternate_modifier isn't Qleft.
      (keyDown): If ns_right_alternate_modifier isn't Qleft, use it
      as emacs modifier for NSRightAlternateKeyMask.
      (syms_of_nsterm): DEFVAR_LISP ns-right-alternate-modifier.