1. 05 Jan, 2012 1 commit
    • Glenn Morris's avatar
      Update short copyright year to 2012. · 1c6e5a32
      Glenn Morris authored
      * etc/refcards/calccard.tex, etc/refcards/cs-dired-ref.tex:
      * etc/refcards/cs-refcard.tex, etc/refcards/cs-survival.tex:
      * etc/refcards/de-refcard.tex, etc/refcards/dired-ref.tex:
      * etc/refcards/fr-dired-ref.tex, etc/refcards/fr-refcard.tex:
      * etc/refcards/fr-survival.tex, etc/refcards/orgcard.tex:
      * etc/refcards/pl-refcard.tex, etc/refcards/pt-br-refcard.tex:
      * etc/refcards/refcard.tex, etc/refcards/ru-refcard.tex:
      * etc/refcards/sk-dired-ref.tex, etc/refcards/sk-refcard.tex:
      * etc/refcards/sk-survival.tex, etc/refcards/survival.tex:
      * etc/refcards/vipcard.tex, etc/refcards/viperCard.tex:
      * lib-src/ebrowse.c (version) <emacs_copyright>:
      * lib-src/etags.c (print_version) <emacs_copyright>:
      * lib-src/rcs2log (Copyright): Update short copyright year to 2012.
      * nextstep/Cocoa/Emacs.base/Contents/Info.plist:
      * nextstep/Cocoa/Emacs.base/Contents/Resources/English.lproj/InfoPlist.strings:
      * nextstep/GNUstep/Emacs.base/Resources/Info-gnustep.plist:
      * src/emacs.c (emacs_copyright): Update short copyright year to 2012.
      1c6e5a32
  2. 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
  3. 12 Dec, 2011 1 commit
  4. 04 Dec, 2011 1 commit
    • Andreas Schwab's avatar
      Don't call Lisp in signal handler · 6c07aac2
      Andreas Schwab authored
      * emacs.c (Qkill_emacs): Define.
      (syms_of_emacs): Initialize it.
      * keyboard.c (interrupt_signal): Don't call Fkill_emacs here, set
      Qquit_flag to `kill-emacs' instead.
      (quit_throw_to_read_char): Add parameter `from_signal'.  All
      callers changed.  Call Fkill_emacs if requested and safe.
      * lisp.h (QUIT): Call Fkill_emacs if requested.
      6c07aac2
  5. 14 Nov, 2011 1 commit
  6. 28 Oct, 2011 1 commit
    • Eli Zaretskii's avatar
      Fix bug #8562 with Emacs display on Windows 9X. · db4f02f2
      Eli Zaretskii authored
      Thanks to oslsachem <oslsachem@gmail.com> for helping to debug this.
      
       src/w32font.c (g_b_init_is_w9x, g_b_init_get_outline_metrics_w)
       (g_b_init_get_text_metrics_w, g_b_init_get_glyph_outline_w)
       (g_b_init_get_glyph_outline_w): New static variables.
       (GetOutlineTextMetricsW_Proc, GetTextMetricsW_Proc)
       (GetGlyphOutlineW_Proc): New typedefs.
       (w32_load_unicows_or_gdi32, get_outline_metrics_w)
       (get_text_metrics_w, get_glyph_outline_w, globals_of_w32font): New
       functions.
       (w32font_open_internal, compute_metrics): Call
       get_outline_metrics_w, get_text_metrics_w, and get_glyph_outline_w
       instead of calling the "wide" APIs directly.
       src/emacs.c (main) [HAVE_NTGUI]: Call globals_of_w32font.
       src/w32.h (syms_of_w32font): Add prototype.
      db4f02f2
  7. 24 Sep, 2011 1 commit
    • Jim Meyering's avatar
      do not ignore write error for any output size · b260039d
      Jim Meyering authored
      The previous change was incomplete.
      While it makes emacs --batch detect the vast majority of stdout
      write failures, errors were still ignored whenever the output size is
      k * (BUFSIZ+1) - 4.  E.g., on a system with BUFSIZ of 4096,
        $ emacs --batch --eval '(print (format "%4093d" 0))' > /dev/full \
            && echo FAIL: ignored write error
        FAIL: ignored write error
        $ emacs --batch --eval '(print (format "%20481d" 0))' > /dev/full \
            && echo FAIL: ignored write error
        FAIL: ignored write error
      * emacs.c (Fkill_emacs): Also test ferror.  (Bug#9574)
      b260039d
  8. 23 Sep, 2011 1 commit
  9. 09 Sep, 2011 1 commit
  10. 08 Sep, 2011 1 commit
  11. 03 Sep, 2011 2 commits
  12. 29 Aug, 2011 1 commit
  13. 05 Aug, 2011 1 commit
  14. 04 Aug, 2011 1 commit
    • Jan Djärv's avatar
      Check for pthread and use it if found. · ae9e757a
      Jan Djärv authored
      * configure.in (HAVE_PTHREAD): Add check for -lpthread.
      (HAVE_GTK_AND_PTHREAD): Remove.
      
      * src/Makefile.in (LIB_PTHREAD): New variable.
      (LIBES): Add LIB_PTHREAD (Bug#9216).
      
      * src/alloc.c, src/emacs.c, src/gmalloc.c, src/gtkutil.c, src/keyboard.c, src/syssignal.h:
      Rename HAVE_GTK_AND_PTHREAD to HAVE_PTHREAD (Bug#9216).
      ae9e757a
  15. 28 Jul, 2011 1 commit
  16. 10 Jul, 2011 1 commit
    • Andreas Schwab's avatar
      Protoize · 1dae0f0a
      Andreas Schwab authored
      * src/buffer.c (mmap_init, mmap_find, mmap_free_1, mmap_enlarge)
      (mmap_set_vars, mmap_alloc, mmap_free, mmap_realloc): Protoize.
      * src/data.c (fmod): Likewise.
      * src/dispnew.c (swap_glyphs_in_rows): Likewise.
      * src/emacs.c (memory_warning_signal): Likewise.
      * src/floatfns.c (float_error): Likewise.
      * src/font.c (check_gstring, check_otf_features, otf_tag_symbol)
      (otf_open, font_otf_capability, generate_otf_features)
      (font_otf_DeviceTable, font_otf_ValueRecord, font_otf_Anchor):
      Likewise.
      * src/image.c (pbm_read_file): Likewise.
      * src/indent.c (string_display_width): Likewise.
      * src/intervals.c (check_for_interval, search_for_interval)
      (inc_interval_count, count_intervals, root_interval)
      (adjust_intervals_for_insertion, make_new_interval): Likewise.
      * src/lread.c (defalias): Likewise.
      * src/regex.c (set_image_of_range_1, set_image_of_range)
      (regex_grow_registers): Likewise.
      * src/sysdep.c (strerror): Likewise.
      * src/termcap.c (valid_filename_p, tprint, main): Likewise.
      * src/tparam.c (main): Likewise.
      * src/unexhp9k800.c (run_time_remap, save_data_space)
      (update_file_ptrs, read_header, write_header, calculate_checksum)
      (copy_file, copy_rest, display_header): Likewise.
      * src/widget.c (mark_shell_size_user_specified, create_frame_gcs):
      Likewise.
      * src/xdisp.c (check_it): Likewise.
      * src/xfaces.c (register_color, unregister_color, unregister_colors):
      Likewise.
      * src/xfns.c (print_fontset_result): Likewise.
      * src/xrdb.c (member, fatal, main): Likewise.
      1dae0f0a
  17. 08 Jul, 2011 1 commit
    • 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
  18. 07 Jul, 2011 1 commit
    • Paul Eggert's avatar
      * emacs.c: Integer overflow minor fix. · b312a492
      Paul Eggert authored
      (heap_bss_diff): Now uprintmax_t, not unsigned long.  All used changed.
      Define only if GNU_LINUX.
      (main, Fdump_emacs): Set and use heap_bss_diff only if GNU_LINUX.
      b312a492
  19. 24 Jun, 2011 1 commit
  20. 19 Jun, 2011 1 commit
  21. 02 Jun, 2011 1 commit
  22. 01 Jun, 2011 1 commit
  23. 31 May, 2011 1 commit
    • Dan Nicolaescu's avatar
      Make it possible to run ./temacs. · 738db178
      Dan Nicolaescu authored
      * callproc.c (set_initial_environment): Remove CANNOT_DUMP code,
      syms_of_callproc does the same thing.  Remove test for
      "initialized", do it in the caller.
      * emacs.c (main): Avoid calling set_initial_environment when dumping.
      738db178
  24. 29 May, 2011 2 commits
    • Paul Eggert's avatar
      * emacs.c [HAVE_X_WINDOWS]: Include "xterm.h". · 5fbc2025
      Paul Eggert authored
      (x_clipboard_manager_save_all): Move extern decl to ...
      * xterm.h: ... here, so that it can be checked for consistency.
      5fbc2025
    • Chong Yidong's avatar
      Move clipboard-manager functionality out of hooks. · 1dd3c2d9
      Chong Yidong authored
      * lisp/select.el: Don't perform clipboard-manager saving in hooks;
      leave the hooks empty.
      
      * src/emacs.c (Fkill_emacs): Call x_clipboard_manager_save_all.
      * src/frame.c (delete_frame): Call x_clipboard_manager_save_frame.
      
      * src/xselect.c (x_clipboard_manager_save_frame)
      (x_clipboard_manager_save_all): New functions.
      (Fx_clipboard_manager_save): Lisp function deleted.
      
      * src/xterm.h: Update prototype.
      1dd3c2d9
  25. 04 May, 2011 1 commit
    • Juanma Barranquero's avatar
      Implement dynamic loading of GnuTLS on Windows. · 0898ca10
      Juanma Barranquero authored
      * lisp/term/w32-win.el (dynamic-library-alist): Add `gnutls'.
      
      * nt/INSTALL: Clarify GnuTLS support.
      
      * src/callproc.c, src/emacs.c: Include lisp.h before src/w32.h, not after.
      
      * src/gnutls.c (Qgnutls_dll): Define.
        (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros.
        (gnutls_*): Declare function pointers.
        (init_gnutls_functions): New function to initialize function pointers.
        (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit)
        (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers.
        (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
        Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno.
        (emacs_gnutls_write, emacs_gnutls_read)
        (emacs_gnutls_handle_error, Fgnutls_error_fatalp)
        (Fgnutls_available_p): New function.
        (Fgnutls_boot): Call Fgnutls_available_p.  Use function pointers.
        (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it.
        (syms_of_gnutls) <Sgnutls_available_p>: defsubr it.
      
      * src/gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro.
        (emacs_gnutls_write, emacs_gnutls_read): Mark as extern.
        (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
        Declare.
      
      * src/w32.c (QCloaded_from, Vlibrary_cache): Define.
        (w32_delayed_load): Move from image.c.  When loading a library, record
        its filename in the :loaded-from property of the library id.
        (globals_of_w32) <QCloaded_from, Vlibrary_cache>:
        Initialize and staticpro them.
        (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions.
      
      * src/image.c: Include w32.h.
        (Vimage_type_cache): Delete.
        (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it.
        (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead.
        (w32_delayed_load): Move to w32.c.
      
      * src/process.c: Include lisp.h before src/w32.h, not after.
        (wait_reading_process_output): Call emacs_gnutls_record_check_pending
        instead of gnutls_record_check_pending.
      
      * src/w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.
      0898ca10
  26. 16 Apr, 2011 1 commit
  27. 14 Apr, 2011 1 commit
  28. 13 Apr, 2011 1 commit
    • Paul Eggert's avatar
      * emacs.c: Make symbols static if they're not exported. · 35f08c38
      Paul Eggert authored
      (malloc_state_ptr, malloc_using_checking, syms_of_emacs):
      (fatal_error_code, fatal_error_signal_hook, standard_args):
      Now static.
      (fatal_error_signal): Now static, unless FLOAT_CATCH_SIGKILL.
      (DEFINE_DUMMY_FUNCTION): Mark function as externally visible.
      (__CTOR_LIST__, __DTOR_LIST__): Now externally visible.
      * lisp.h (fatal_error_signal_hook): Remove decl.
      (fatal_error_signal): Declare only if FLOAT_CATCH_SIGKILL.
      35f08c38
  29. 11 Apr, 2011 1 commit
    • Paul Eggert's avatar
      Make Emacs functions such as Fatom 'static' by default. · 16a97296
      Paul Eggert authored
      This makes it easier for human readers (and static analyzers)
      to see whether these functions can be called from other modules.
      DEFUN now defines a static function.  To make the function external
      so that it can be used in other C modules, use the new macro DEFUE.
      * lisp.h (DEFINE_FUNC): New macro, with the old contents of DEFUN.
      (DEFUN): Rewrite in terms of DEFINE_FUNC.  It now generates a
      static function definition.  Use DEFUE if you want an extern one.
      (DEFUE, INFUN): New macros.
      (Funibyte_char_to_multibyte, Fsyntax_table_p, Finit_image_library):
      (Feval_region, Fbacktrace, Ffetch_bytecode, Fswitch_to_buffer):
      (Ffile_executable_p, Fmake_symbolic_link, Fcommand_execute):
      (Fget_process, Fdocumentation_property, Fbyte_code, Ffile_attributes):
      Remove decls, since these functions are now static.
      (Funintern, Fget_internal_run_time): New decls, since these functions
      were already external.
      * alloc.c, buffer.c, callint.c, callproc.c, casefiddle.c, casetab.c:
      * ccl.c, character.c, chartab.c, cmds.c, coding.c, data.c, dispnew.c:
      * doc.c, editfns.c, emacs.c, eval.c, fileio.c, filelock.c, floatfns.c:
      * fns.c, font.c, fontset.c, frame.c, image.c, indent.c:
      * keyboard.c, keymap.c, lread.c:
      * macros.c, marker.c, menu.c, minibuf.c, print.c, process.c, search.c:
      * syntax.c, term.c, terminal.c, textprop.c, undo.c:
      * window.c, xdisp.c, xfaces.c, xfns.c, xmenu.c, xsettings.c:
      Mark functions with DEFUE instead of DEFUN,
      if they are used in other modules.
      * buffer.c (Fset_buffer_major_mode, Fdelete_overlay): New forward
      decls for now-static functions.
      * buffer.h (Fdelete_overlay): Remove decl.
      * callproc.c (Fgetenv_internal): Mark as internal.
      * composite.c (Fremove_list_of_text_properties): Remove decl.
      (Fcomposition_get_gstring): New forward static decl.
      * composite.h (Fcomposite_get_gstring): Remove decl.
      * dired.c (Ffile_attributes): New forward static decl.
      * doc.c (Fdocumntation_property): New forward static decl.
      * eval.c (Ffetch_bytecode): New forward static decl.
      (Funintern): Remove extern decl; now in .h file where it belongs.
      * fileio.c (Fmake_symbolic_link): New forward static decl.
      * image.c (Finit_image_library): New forward static decl.
      * insdel.c (Fcombine_after_change_execute): Make forward decl static.
      * intervals.h (Fprevious_property_change):
      (Fremove_list_of_text_properties): Remove decls.
      * keyboard.c (Fthis_command_keys): Remove decl.
      (Fcommand_execute): New forward static decl.
      * keymap.c (Flookup_key): New forward static decl.
      (Fcopy_keymap): Now static.
      * keymap.h (Flookup_key): Remove decl.
      * process.c (Fget_process): New forward static decl.
      (Fprocess_datagram_address): Mark as internal.
      * syntax.c (Fsyntax_table_p): New forward static decl.
      (skip_chars): Remove duplicate decl.
      * textprop.c (Fprevious_property_change): New forward static decl.
      * window.c (Fset_window_fringes, Fset_window_scroll_bars):
      Now internal.
      (Fset_window_margins, Fset_window_vscroll): New forward static decls.
      * window.h (Fset_window_vscroll, Fset_window_margins): Remove decls.
      16a97296
  30. 27 Mar, 2011 1 commit
    • Glenn Morris's avatar
      Remove (RET)SIGTYPE; it is identical to void on all supported systems. · 9af30bdf
      Glenn Morris authored
      Ref: http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg01068.html
      
      * configure.in (AC_TYPE_SIGNAL): Remove obsolete macro.
      (AH_BOTTOM): Do not define SIGTYPE.
      
      * lib-src/emacsclient.c: Replace SIGTYPE with void.
      
      * nt/config.nt: Remove RETSIGTYPE, SIGTYPE (identical to void).
      
      * src/syssignal.h: Replace RETSIGTYPE with void.
      
      * src/atimer.c, src/data.c, src/dispnew.c, src/emacs.c, src/floatfns.c:
      * src/keyboard.c, src/keyboard.h, src/lisp.h, src/process.c, src/sysdep.c:
      * src/xterm.c: Replace SIGTYPE with void everywhere.
      
      * src/s/template.h (SIGTYPE): Remove commented out definition.
      * src/s/usg5-4-common.h (SIGTYPE): Remove definition.
      
      * admin/CPP-DEFINES: Remove SIGTYPE.
      9af30bdf
  31. 23 Mar, 2011 1 commit
  32. 20 Mar, 2011 1 commit
  33. 16 Mar, 2011 2 commits
  34. 14 Mar, 2011 4 commits