1. 05 Jul, 2012 9 commits
    • Jan Djärv's avatar
      Don't use deprecated functions when compiling with Gtk3. · 383b7c95
      Jan Djärv authored
      * gtkutil.c (gtk_scrollbar_new, gtk_box_new): Define when HAVE_GTK3 is
      not defined (Bug#11768).
      (xg_create_frame_widgets): Use gtk_plug_new_for_display (Bug#11768).
      (xg_create_frame_widgets, create_dialog, xg_get_file_with_chooser)
      (make_widget_for_menu_item, xg_make_tool_item): Use gtk_box_new
      followed by gtk_box_set_homogeneous (Bug#11768).
      (xg_update_menu_item): Use GTK_IS_BOX (Bug#11768).
      (update_theme_scrollbar_width, xg_create_scroll_bar): Use
      gtk_scrollbar_new (Bug#11768).
      (xg_event_is_for_scrollbar): Use Gdk Device functions for HAVE_GTK3.
      (is_box_type): New function (Bug#11768).
      (xg_tool_item_stale_p): Call is_box_type.
      (xg_initialize): Get settings by calling gtk_settings_get_for_screen
      with default display (Bug#11768).
    • Eli Zaretskii's avatar
      Revert hscroll and min_hscroll to ptrdiff_t. · ea2ac797
      Eli Zaretskii authored
      Fixes: debbugs:11857
    • Eli Zaretskii's avatar
      Fix bug #11857 with messed up display for insanely large hscroll values. · d6e7bf45
      Eli Zaretskii authored
       src/xdisp.c (window_hscroll_limited): New function.
       (pos_visible_p, init_iterator): Use it to avoid overflow of pixel
       coordinates when window's hscroll is set to insanely large
       src/window.h (struct window) <hscroll, min_hscroll>: Change type to 'int'.
    • Juanma Barranquero's avatar
      src/makefile.w32-in: Update dependencies. · 431391ec
      Juanma Barranquero authored
      ($(BLD)/dired.$(O), $(BLD)/fileio.$(O)): Fix typo.
      ($(BLD)/terminal.$(O), $(BLD)/syntax.$(O)): Update dependencies.
    • Michael Albinus's avatar
      Sync with Tramp 2.2.6-pre. · 957b3189
      Michael Albinus authored
      * net/tramp.el (tramp-drop-volume-letter): Provide an XEmacs
      compatible declaration.
      * net/tramp-cmds.el (tramp-append-tramp-buffers): Protect
      `list-load-path-shadows' call.
      * net/tramp-compat.el (top): Require packages, which aren't
      autoloaded anymore for XEmacs.  Protect call of
      `tramp-file-name-handler' by `tramp-compat-funcall', pacifying the
      compiler.  Do not require tramp-util.el and tramp-vc.el anymore,
      it hurts at least for SXEmacs.
      (tramp-compat-temporary-file-directory): In XEmacs, there is no
      standard-value for `temporary-file-directory'.
      * net/tramp-sh.el (tramp-do-directory-files-and-attributes-with-stat):
      Redirect stderr to /dev/null.
      (tramp-sh-handle-write-region): uid and gid can be floats.
      Reported by Russell Sim <russell.sim@gmail.com>.
      (tramp-sh-handle-vc-registered): Hide errors.
      (tramp-vc-file-name-handler): Use dummy results for `process-file'
      and `start-file-process'.
      (tramp-maybe-open-connection): Check also whether `non-essential'
      is bound.
    • Dmitry Antipov's avatar
      Cleanup xmalloc. · 23f86fce
      Dmitry Antipov authored
      * admin/coccinelle/xzalloc.cocci: Semantic patch to convert
      calls to xmalloc with following memset to xzalloc.
      * src/lisp.h (xzalloc): New prototype.  Omit needless casts.
      * src/alloc.c (xzalloc): New function.  Omit needless casts.
      * src/charset.c: Omit needless casts.  Convert all calls to
      malloc with following memset to xzalloc.
      * src/dispnew.c: Likewise.
      * src/fringe.c: Likewise.
      * src/image.c: Likewise.
      * src/sound.c: Likewise.
      * src/term.c: Likewise.
      * src/w32fns.c: Likewise.
      * src/w32font.c: Likewise.
      * src/w32term.c: Likewise.
      * src/xfaces.c: Likewise.
      * src/xfns.c: Likewise.
      * src/xterm.c: Likewise.
      * src/atimer.c: Omit needless casts.
      * src/buffer.c: Likewise.
      * src/callproc.c: Likewise.
      * src/ccl.c: Likewise.
      * src/coding.c: Likewise.
      * src/composite.c: Likewise.
      * src/doc.c: Likewise.
      * src/doprnt.c: Likewise.
      * src/editfns.c: Likewise.
      * src/emacs.c: Likewise.
      * src/eval.c: Likewise.
      * src/filelock.c: Likewise.
      * src/fns.c: Likewise.
      * src/gtkutil.c: Likewise.
      * src/keyboard.c: Likewise.
      * src/lisp.h: Likewise.
      * src/lread.c: Likewise.
      * src/minibuf.c: Likewise.
      * src/msdos.c: Likewise.
      * src/print.c: Likewise.
      * src/process.c: Likewise.
      * src/region-cache.c: Likewise.
      * src/search.c: Likewise.
      * src/sysdep.c: Likewise.
      * src/termcap.c: Likewise.
      * src/terminal.c: Likewise.
      * src/tparam.c: Likewise.
      * src/w16select.c: Likewise.
      * src/w32.c: Likewise.
      * src/w32reg.c: Likewise.
      * src/w32select.c: Likewise.
      * src/w32uniscribe.c: Likewise.
      * src/widget.c: Likewise.
      * src/xdisp.c: Likewise.
      * src/xmenu.c: Likewise.
      * src/xrdb.c: Likewise.
      * src/xselect.c: Likewise.
    • Paul Eggert's avatar
    • Glenn Morris's avatar
    • Michael Witten's avatar
      * doc/lispref/intro.texi (Evaluation Notation, A Sample Function Description) · 47187200
      Michael Witten authored
      (A Sample Variable Description, Version Info): Copy edits.
      Fixes: debbugs:11862
  2. 04 Jul, 2012 23 commits
  3. 03 Jul, 2012 8 commits
    • Paul Eggert's avatar
      * fileio.c: Improve handling of file time marker. (Bug#11852) · dbeed9a6
      Paul Eggert authored
      (special_mtime): New function.
      (Finsert_file_contents, Fverify_visited_file_modtime):
      Use it to set special mtime values consistently.
    • Andreas Schwab's avatar
      * fileio.c (Finsert_file_contents): Properly handle st_mtime · 636334d6
      Andreas Schwab authored
      marker for non-existing file.
    • Paul Eggert's avatar
    • Glenn Morris's avatar
      * src/lisp.h (Fread_file_name): Restore EXFUN · e2017fe2
      Glenn Morris authored
      (it's not a normal DEFUN and did not make it into globals.h).
    • Tom Tromey's avatar
      Auto-generate EXFUN using make-docfile · 404dbd37
      Tom Tromey authored
      	* window.c (Fset_window_margins, Fset_window_fringes)
      	(Fset_window_scroll_bars, Fset_window_vscroll): No longer static.
      	* textprop.c (Fprevious_property_change): No longer static.
      	* syntax.c (Fsyntax_table_p): No longer static.
      	* process.c (Fget_process, Fprocess_datagram_address): No longer
      	* keymap.c (Flookup_key, Fcopy_keymap): No longer static.
      	* keyboard.c (Fcommand_execute): No longer static.
      	Remove EXFUN.
      	* insdel.c (Fcombine_after_change_execute): No longer static.
      	* image.c (Finit_image_library): No longer static.
      	* fileio.c (Fmake_symbolic_link): No longer static.
      	* eval.c (Ffetch_bytecode): No longer static.
      	* editfns.c (Fuser_full_name): No longer static.
      	* doc.c: (Fdocumentation_property, Fsnarf_documentation): No
      	longer static.
      	* buffer.c (Fset_buffer_major_mode, Fdelete_overlay): No longer
      	* dired.c (Ffile_attributes): No longer static.
      	* composite.c (Fcomposition_get_gstring): No longer static.
      	* callproc.c (Fgetenv_internal): No longer static.
      	* ccl.h: Remove EXFUNs.
      	* buffer.h: Remove EXFUNs.
      	* dispextern.h: Remove EXFUNs.
      	* intervals.h: Remove EXFUNs.
      	* fontset.h: Remove EXFUN.
      	* font.h: Remove EXFUNs.
      	* dosfns.c (system_process_attributes): Remove EXFUN.
      	* keymap.h: Remove EXFUNs.
      	* lisp.h: Remove EXFUNs.
      	* w32term.h: Remove EXFUNs.
      	* window.h: Remove EXFUNs.
      	* xsettings.h: Remove EXFUN.
      	* xterm.h: Remove EXFUN.
      	* make-docfile.c (enum global_type) <FUNCTION>: New constant.
      	(struct global) <value>: New field.
      	(add_global): Add 'value' argument.
      	(compare_globals): Sort functions at the end.
      	(close_emacs_globals): New function.
      	(write_globals): Handle functions.
      	(scan_c_file): Call add_global for DEFUN.
    • Glenn Morris's avatar
      Speed up generate-new-buffer-name for invisible buffers (bug#1229) · 8e4fd1e1
      Glenn Morris authored
      * src/buffer.c (Fgenerate_new_buffer_name):
      Speed up finding a new buffer for invisible buffers.
      * src/lisp.h (Frandom): Make it visible to C.
    • Dmitry Antipov's avatar
      Fix block vector allocation code to allow VECTOR_BLOCK_SIZE · ca95b3eb
      Dmitry Antipov authored
      values which aren't power of 2.
      * alloc.c (VECTOR_FREE_LIST_SIZE_MASK): New macro.  Verify
      it's value and the value of VECTOR_BLOCK_SIZE.  Adjust users
    • Stefan Monnier's avatar
      * src/alloc.c (mark_object): Revert part of last patch to use `switch'. · 7555c33f
      Stefan Monnier authored
      * src/lisp.h (Lisp_Misc, Lisp_Fwd): Move around to group better.