1. 08 Jul, 2011 1 commit
    • 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. 08 Feb, 2011 1 commit
    • Tom Tromey's avatar
      Make globals.h a generated header · 00b3c7ac
      Tom Tromey authored
      	* configure: Rebuild.
      	* configure.in (NS_OBJC_OBJ): New subst.
      lib-src
      	* make-docfile.c: Unconditionally include stdlib.h.
      	(generate_globals): New global.
      	(xrealloc): New function.
      	(main): Handle '-g'.  Call start_globals, write_globals.
      	(scan_file): Conditionally call put_filename.
      	(start_globals): New function.
      	(struct global): New.
      	(num_globals, globals): New globals.
      	(add_global, compare_globals, write_globals): New functions.
      	(scan_c_file): Update for "-g".
      	(scan_lisp_file): Fail if "-g".
      	(enum global_type): New.
      src
      	* Makefile.in (NS_OBJC_OBJ): New variable.
      	(base_obj): Rename from 'obj'.
      	(obj): New variable.
      	(globals.h, gl-stamp, $(obj)): New targets.
      	(GLOBAL_SOURCES): New variable.
      	* globals.h: Remove.
      	* nsselect.m (Vselection_alist): Define.  Reverts part of
      	2011-01-19T22:11:33Z!jan.h.d@swipnet.se.
      	* buffer.c: Don't use "no_cell" for name of kill-buffer-hook's
      	variable.
      	* xselect.c (Vselection_alist): Define.  Reverts part of 2011-01-19T23:32:42Z!eggert@cs.ucla.edu.
      00b3c7ac
  3. 29 Jan, 2011 1 commit
    • Jan Djärv's avatar
      Handle nul-character in copy/paste (Bug#7934). · 497a1925
      Jan Djärv authored
      * nsselect.m (ns_string_from_pasteboard): Get length of string
      and use make_string instead of build_string.
      (ns_string_to_pasteboard_internal): Use initWithBytesNoCopy
      instead of stringWithUTF8String  (Bug#7934).
      497a1925
  4. 25 Jan, 2011 1 commit
  5. 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
  6. 15 Jan, 2011 1 commit
  7. 02 Jan, 2011 1 commit
  8. 01 Oct, 2010 1 commit
    • Dan Nicolaescu's avatar
      Use intern_c_string instead of intern. · 088dcc3e
      Dan Nicolaescu authored
      * src/nsselect.m (syms_of_nsselect):
      * src/nsmenu.m (syms_of_nsmenu):
      * src/nsfns.m (syms_of_nsfns):
      * src/msdos.c (syms_of_msdos):
      * src/image.c (syms_of_image):
      * src/charset.c (syms_of_charset): Use intern_c_string instead of intern.
      088dcc3e
  9. 19 Aug, 2010 1 commit
  10. 18 Aug, 2010 1 commit
    • Jan D's avatar
      Use CLIPBOARD and PRIMARY on NS (Bug#6677). · 64cb6c78
      Jan D authored
      * lisp/term/ns-win.el (ns-get-pasteboard, ns-set-pasteboard): Use
      QCLIPBOARD instead of QPRIMARY (Bug#6677).
      
      * src/nsselect.m (QCLIPBOARD, NXPrimaryPboard): Define.
      (symbol_to_nsstring): Map QCLIPBOARD => NSGeneralPboard,
      QPRIMARY => NXPrimaryPboard.
      (ns_string_to_symbol): NSGeneralPboard => QCLIPBOARD,
      NXPrimaryPboard => QPRIMARY.
      (nxatoms_of_nsselect): NXPrimaryPboard = PrimarySelection,
      NXSecondaryPboard = SecondarySelection.
      (syms_of_nsselect): Intern QCLIPBOARD (Bug#6677).
      64cb6c78
  11. 16 Aug, 2010 2 commits
  12. 08 Jul, 2010 1 commit
    • Dan Nicolaescu's avatar
      Convert DEFUNs to standard C. · 5842a27b
      Dan Nicolaescu authored
      * src/alloc.c: Convert DEFUNs to standard C.
      * src/buffer.c:
      * src/bytecode.c:
      * src/callint.c:
      * src/callproc.c:
      * src/casefiddle.c:
      * src/casetab.c:
      * src/category.c:
      * src/character.c:
      * src/charset.c:
      * src/chartab.c:
      * src/cmds.c:
      * src/coding.c:
      * src/composite.c:
      * src/data.c:
      * src/dbusbind.c:
      * src/dired.c:
      * src/dispnew.c:
      * src/doc.c:
      * src/dosfns.c:
      * src/editfns.c:
      * src/emacs.c:
      * src/eval.c:
      * src/fileio.c:
      * src/filelock.c:
      * src/floatfns.c:
      * src/fns.c:
      * src/font.c:
      * src/fontset.c:
      * src/frame.c:
      * src/fringe.c:
      * src/image.c:
      * src/indent.c:
      * src/insdel.c:
      * src/keyboard.c:
      * src/keymap.c:
      * src/lread.c:
      * src/macros.c:
      * src/marker.c:
      * src/menu.c:
      * src/minibuf.c:
      * src/msdos.c:
      * src/nsfns.m:
      * src/nsmenu.m:
      * src/nsselect.m:
      * src/print.c:
      * src/process.c:
      * src/search.c:
      * src/sound.c:
      * src/syntax.c:
      * src/term.c:
      * src/terminal.c:
      * src/textprop.c:
      * src/undo.c:
      * src/w16select.c:
      * src/w32console.c:
      * src/w32fns.c:
      * src/w32font.c:
      * src/w32menu.c:
      * src/w32proc.c:
      * src/w32select.c:
      * src/window.c:
      * src/xdisp.c:
      * src/xfaces.c:
      * src/xfns.c:
      * src/xmenu.c:
      * src/xselect.c:
      * src/xsettings.c:
      * src/xsmfns.c: Likewise.
      5842a27b
  13. 02 Jun, 2010 1 commit
    • Dan Nicolaescu's avatar
      Fix config.h includes. · 08a494a3
      Dan Nicolaescu authored
      * src/xsettings.c:
      * src/xgselect.c:
      * src/nsterm.m:
      * src/nsselect.m:
      * src/nsimage.m:
      * src/nsfont.m:
      * src/nsfns.m:
      * src/dbusbind.c: Use #include <config.h> instead of "config.h" as all
      other files do.
      08a494a3
  14. 13 Jan, 2010 1 commit
  15. 19 Oct, 2009 1 commit
    • Dan Nicolaescu's avatar
      * nsterm.m: · b024548b
      Dan Nicolaescu authored
      * nsselect.m:
      * nsmenu.m:
      * nsimage.m:
      * nsfont.m:
      * nsfns.m: Include setjmp.h.  (Bug#4643)
      b024548b
  16. 05 Jun, 2009 1 commit
  17. 13 Apr, 2009 1 commit
  18. 22 Jan, 2009 1 commit
  19. 08 Jan, 2009 1 commit
  20. 25 Nov, 2008 1 commit
  21. 28 Jul, 2008 1 commit
  22. 22 Jul, 2008 1 commit
    • Chong Yidong's avatar
      (Fns_selection_exists_p, Fns_selection_owner_p) · a5c55c69
      Chong Yidong authored
      (Fx_get_selection_internal, Fns_rotate_cut_buffers_internal)
      (Fns_own_selection_internal, Fx_disown_selection_internal)
      (Fns_get_cut_buffer_internal, Fns_store_cut_buffer_internal):
      Change to use 'doc: /* ... */' style of docstrings.  Doc fixes.
      a5c55c69
  23. 21 Jul, 2008 1 commit
    • Dan Nicolaescu's avatar
      * term/ns-win.el: Rename ns- functions/variables to the · 9e50ff0c
      Dan Nicolaescu authored
      corresponding x- versions.
      (x-select-text, x-cut-buffer-or-selection-value)
      (x-disown-selection-internal, x-get-selection-internal)
      (x-own-selection-internal, x-defined-colors, xw-defined-colors)
      (x-display-mm-width, x-display-mm-height)
      (x-display-backing-store, x-display-save-under)
      (x-display-visual-class, x-display-screens, x-focus-frame): Remove
      defaliases.
      
      * image.c:
      * nsfns.m:
      * nsselect.m:
      * nsterm.h:
      * nsterm.m: Rename ns prefixed functions/variables to the
      corresponding x versions.  Update references.
      9e50ff0c
  24. 17 Jul, 2008 1 commit
    • Stefan Monnier's avatar
      * Makefile.in: Undef LIB_STANDARD before defining it to silence warning · facfbbbd
      Stefan Monnier authored
      in case it was defined already.
      USE @GNUSTEP_MAKEFILES@ rather than envvars.
      * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to
      ns_default.
      (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare
      Lisp_Objects.
      * nsterm.h (Fx_display_grayscale_p, Fx_display_planes)
      (ns_defined_color, ns_color_to_lisp): Declare.
      * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear)
      (Fns_own_selection_internal): Make the big ugly hack more explicit, so
      it's accepted even with USE_LISP_UNION_TYPE.
      * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects.
      (update_frame_tool_bar): Remove apparently obsolete tests for
      non-integerness of f->tool_bar_lines.
      (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly
      hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE.
      * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast.
      (nsfont_open): Don't confuse NULL for Qnil.
      * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects.
      * menu.h (find_and_call_menu_selection):
      * menu.c (find_and_call_menu_selection): Use just int for vector size.
      (find_and_return_menu_selection): Always return something.
      * frame.h: Include dispextern.h for Display_Info.
      (display_x_get_resource): Declare.
      * configure.in: Extract and substitute GNUSTEP_MAKEFILES.
      facfbbbd
  25. 16 Jul, 2008 2 commits
  26. 15 Jul, 2008 2 commits