1. 01 Jul, 2011 2 commits
    • Jan Djärv's avatar
      * process.c: Add defined (HAVE_GSETTINGS) for xgselect.h · 0949d2b6
      Jan Djärv authored
      (wait_reading_process_output): Add defined (HAVE_GSETTINGS) for
      xg_select.
      
      * xgselect.c: Add defined (HAVE_GSETTINGS).
      (xgselect_initialize): Ditto.
      
      * xsettings.c (store_monospaced_changed): Take new font as arg and
      check for change against current_mono_font.
      (EMACS_TYPE_SETTINGS): Remove this and related defines.
      (emacs_settings_constructor, emacs_settings_get_property)
      (emacs_settings_set_property, emacs_settings_class_init)
      (emacs_settings_init, gsettings_obj): Remove.
      (something_changedCB): New function for HAVE_GSETTINGS.
      (something_changedCB): HAVE_GCONF: Call store_monospaced_changed
      with value as argument.
      (init_gsettings): Check that GSETTINGS_SCHEMA exists before calling
      g_settings_new.  Do not create gsettings_obj.
      Remove calls to g_settings_bind. Connect something_changedCB to
      "changed".
      
      Fixes: debbugs:8967
      0949d2b6
    • Paul Eggert's avatar
      * eval.c (struct backtrace): Simplify and port the data structure. · bbc6b304
      Paul Eggert authored
      Do not assume that "int nargs : BITS_PER_INT - 2;" produces a
      signed bit field, as this assumption is not portable and it makes
      Emacs crash when compiled with Sun C 5.8 on sparc.  Do not use
      "char debug_on_exit : 1" as this is not portable either; instead,
      use the portable "unsigned int debug_on_exit : 1".  Remove unused
      member evalargs.  Remove obsolete comments about cc bombing out.
      bbc6b304
  2. 30 Jun, 2011 3 commits
    • Jan Djärv's avatar
      Fix bad include. · 51bb811f
      Jan Djärv authored
      * xsettings.c: Include glib-object.h, gio/gio.h if HAVE_GSETTINGS.
      51bb811f
    • Jan Djärv's avatar
      Add GSettings support (GConf is going away). · 9851bfc5
      Jan Djärv authored
      * configure.in (gsettings): New option and check for GSettings.
      
      * src/Makefile.in (SETTINGS_CFLAGS, SETTINGS_LIBS): Renamed from
      GCONF_CFLAGS/LIBS.
      
      * src/xsettings.c: Include glib.h if HAVE_GSETTINGS.
      Let HAVE_GSETTINGS override HAVE_GCONF.
      (store_monospaced_changed): New function.
      (EMACS_SETTINGS): A new type derived from GObject to handle
      GSettings notifications.
      (emacs_settings_constructor, emacs_settings_get_property)
      (emacs_settings_set_property, emacs_settings_class_init):
      New functions.
      (gsettings_client, gsettings_obj): New variables.
      (GSETTINGS_SCHEMA): New define.
      (something_changedCB): Call store_monospaced_changed.
      (init_gsettings): New function.
      (xsettings_initialize): Call init_gsettings.
      (syms_of_xsettings): Initialize gsettings_client, gsettings_obj
      to NULL.
      9851bfc5
    • Glenn Morris's avatar
      ChangeLog fix. · 07a22620
      Glenn Morris authored
      07a22620
  3. 29 Jun, 2011 1 commit
    • Martin Rudalics's avatar
      Rename more functions to use window-/window-- prefixes. · 5386012d
      Martin Rudalics authored
      * window.c (resize_root_window, grow_mini_window)
      (shrink_mini_window): Rename Qresize_root_window to
      Qwindow_resize_root_window and Qresize_root_window_vertically to
      Qwindow_resize_root_window_vertically.
      
      * window.el (normalize-live-buffer): Rename to
      window-normalize-buffer.
      (normalize-live-frame): Rename to window-normalize-frame.
      (normalize-any-window): Rename to window-normalize-any-window.
      (normalize-live-window): Rename to window-normalize-live-window.
      (make-window-atom): Rename to window-make-atom.
      (window-resize-reset): Rename to window--resize-reset.
      (window-resize-reset-1): Rename to window--resize-reset-1.
      (resize-mini-window): Rename to window--resize-mini-window.
      (resize-subwindows-skip-p): Rename to
      window--resize-subwindows-skip-p.
      (resize-subwindows-normal): Rename to
      window--resize-subwindows-normal.
      (resize-subwindows): Rename to window--resize-subwindows.
      (resize-other-windows): Rename to window--resize-siblings.
      (resize-this-window): Rename to window--resize-this-window.
      (resize-root-window): Rename to window--resize-root-window.
      (resize-root-window-vertically): Rename to
      window--resize-root-window-vertically.
      (normalize-buffer-to-display): Rename to
      window-normalize-buffer-to-display.
      (normalize-buffer-to-switch-to): Rename to
      window-normalize-buffer-to-switch-to.
      Correspondingly update all callers of the functions listed
      above.
      (display-buffer-alist, display-buffer-normalize-arguments)
      (display-buffer-normalize-options, display-buffer)
      (display-buffer-alist-set): Use "function" instead of
      "fun-with-args".
      5386012d
  4. 28 Jun, 2011 1 commit
  5. 27 Jun, 2011 4 commits
    • Martin Rudalics's avatar
      Use window- prefix more consistently. Fix two buffer display bugs. · d615d6d2
      Martin Rudalics authored
      * window.c (resize_window_check): Rename to window_resize_check.
      (resize_window_apply): Rename to window_resize_apply.
      (Fresize_window_apply): Rename to Fwindow_resize_apply.
      (Fdelete_other_windows_internal, resize_frame_windows)
      (Fsplit_window_internal, Fdelete_window_internal)
      (grow_mini_window, shrink_mini_window)
      (Fresize_mini_window_internal): Fix callers accordingly.
      
      * window.el (resize-window-reset): Rename to window-resize-reset.
      (resize-window-reset-1): Rename to window-resize-reset-1.
      (resize-window): Rename to window-resize.
      (window-min-height, window-min-width)
      (resize-mini-window, resize-this-window, resize-root-window)
      (resize-root-window-vertically, adjust-window-trailing-edge)
      (enlarge-window, shrink-window, maximize-window)
      (minimize-window, delete-window, quit-restore-window)
      (split-window, balance-windows, balance-windows-area-adjust)
      (balance-windows-area, window-state-put-2)
      (display-buffer-even-window-sizes, display-buffer-set-height)
      (display-buffer-set-width, set-window-text-height)
      (fit-window-to-buffer): Rename all "resize-window" prefixed
      calls to use the "window-resize" prefix convention.
      (display-buffer-alist): Fix symbol for label specifier.
      (display-buffer-reuse-window): Set reuse-dedicated to cdr of
      corresponding specifier.
      Reported by Juanma Barranquero <lekktu@gmail.com>.
      d615d6d2
    • Juanma Barranquero's avatar
      94515237
    • Martin Rudalics's avatar
      Use better names for window-next/-prev and window-vchild/-hchild. · d68443dc
      Martin Rudalics authored
      * window.c (Fwindow_vchild): Rename to Fwindow_top_child.
      (Fwindow_hchild): Rename to Fwindow_left_child.
      (Fwindow_next): Rename to Fwindow_next_sibling.
      (Fwindow_prev): Rename to Fwindow_prev_sibling.
      
      * window.el (window-right, window-left, window-child)
      (window-child-count, window-last-child)
      (window-iso-combination-p, walk-window-tree-1)
      (window-atom-check-1, window-tree-1, delete-window)
      (window-state-get-1, display-buffer-even-window-sizes): Adapt to
      new naming conventions - window-vchild, window-hchild,
      window-next and window-prev are now called window-top-child,
      window-left-child, window-next-sibling and window-prev-sibling
      respectively.
      d68443dc
    • Martin Rudalics's avatar
      Have overlays with window property respect clone numbers. · e43b6e43
      Martin Rudalics authored
      * buffer.c (Qclone_number): Declare static and DEFSYM it.
      (sort_overlays, overlay_strings): When an overlay's clone number
      matches the window's clone number process the overlay even if
      the overlay's window property doesn't match the current window.
      e43b6e43
  6. 26 Jun, 2011 3 commits
    • Jan Djärv's avatar
      Fix wm_size-hints race between KDE/KWin and Gtk+ 3. · c7e73be5
      Jan Djärv authored
      * emacsgtkfixed.c: State that this is only used with Gtk+3.
      (_EmacsFixedPrivate): Remove minwidth/height.
      Add struct frame *f.
      (emacs_fixed_init): Initialize priv->f.
      (get_parent_class, emacs_fixed_set_min_size): Remove.
      (emacs_fixed_new): Set priv->f to argument.
      (emacs_fixed_get_preferred_width)
      (emacs_fixed_get_preferred_height): Use min_width/height from
      frames size_hint to set minimum and natural.
      (XSetWMSizeHints, XSetWMNormalHints): Override these functions
      and use min_width/height from frames size_hint to set
      min_width/height (Bug#8919).
      
      * emacsgtkfixed.h: State that this is only used with Gtk+3.
      (emacs_fixed_set_min_size): Remove.
      (emacs_fixed_new): Take frame as argument.
      
      * gtkutil.c (xg_create_frame_widgets): Pass f to emacs_fixed_new.
      (x_wm_set_size_hint): Remove call to emacs_fixed_set_min_size. Fix
      indentation.
      c7e73be5
    • Eli Zaretskii's avatar
      Avoid bidi-related crashes in Cperl Mode. · cf99dcf8
      Eli Zaretskii authored
       src/bidi.c (bidi_paragraph_init): Test for ZV_BYTE before calling
       bidi_at_paragraph_end, since fast_looking_at doesn't like to be
       called at ZV.
      cf99dcf8
    • Chong Yidong's avatar
      Fix handling of pending signals in wait_reading_process_output (Bug#8869). · 029529ac
      Chong Yidong authored
      * process.c (wait_reading_process_output): Bypass select if
      waiting for a cell while ignoring keyboard input, and input is
      pending.  Suggested by Jan Djärv.
      029529ac
  7. 25 Jun, 2011 2 commits
  8. 24 Jun, 2011 2 commits
  9. 23 Jun, 2011 9 commits
  10. 22 Jun, 2011 6 commits
    • Paul Eggert's avatar
      39019e54
    • Paul Eggert's avatar
      * lread.c: Integer overflow issues. · bfbbd7e7
      Paul Eggert authored
      (saved_doc_string_size, saved_doc_string_length)
      (prev_saved_doc_string_size, prev_saved_doc_string_length):
      Now ptrdiff_t, not int.
      (read1): Don't assume doc string length fits in int.  Check for
      out-of-range doc string lengths.
      (read_list): Don't assume file position fits in int.
      bfbbd7e7
    • Paul Eggert's avatar
      GLYPH_DEBUG fixes · 85fece3e
      Paul Eggert authored
      The following patches are for when GLYPH_DEBUG && !XASSERT.
      * dispextern.h (trace_redisplay_p, dump_glyph_string):
      * dispnew.c (flush_stdout):
      * xdisp.c (dump_glyph_row, dump_glyph_matrix, dump_glyph):
      Mark as externally visible.
      * dispnew.c (check_window_matrix_pointers): Now static.
      * dispnew.c (window_to_frame_vpos):
      * xfns.c (unwind_create_frame):
      * xterm.c (x_check_font): Remove unused local.
      * scroll.c (CHECK_BOUNDS):
      * xfaces.c (cache_fache): Rename local to avoid shadowing.
      * xfns.c, w32fns.c (image_cache_refcount, dpyinfo_refcount): Now static.
      * xdisp.c (check_window_end): Now a no-op if !XASSERTS.
      (debug_first_unchanged_at_end_vpos, debug_last_unchanged_at_beg_vpos)
      (debug_dvpos, debug_dy, debug_delta, debug_delta_bytes, debug_end_vpos):
      Now static.
      (debug_method_add): Use va_list and vsprintf rather than relying
      on undefined behavior with wrong number of arguments.
      (dump_glyph, dump_glyph_row, Fdump_glyph_matrix):
      Don't assume ptrdiff_t and EMACS_INT are the same width as int.
      In this code, it's OK to assume C99 behavior for ptrdiff_t formats
      since we're not interested in debugging glyphs with old libraries.
      * xfaces.c (cache_face): Move debugging code earlier; this pacifies
      GCC 4.6.0's static checking.
      85fece3e
    • Jim Meyering's avatar
      don't leak an XBM-image-sized buffer · d5a19415
      Jim Meyering authored
      * image.c (xbm_load): Free the image buffer after using it.
      d5a19415
    • Paul Eggert's avatar
    • Paul Eggert's avatar
      * dispextern.h (struct face.stipple): · 0766b489
      Paul Eggert authored
      * image.c (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap)
      (x_bitmap_mask, x_allocate_bitmap_record)
      (x_create_bitmap_from_data, x_create_bitmap_from_file)
      (x_destroy_bitmap, x_destroy_all_bitmaps, x_create_bitmap_mask)
      (x_create_bitmap_from_xpm_data):
      * nsterm.h (struct ns_display_info.bitmaps_size, .bitmaps_last):
      * w32term.h (struct w32_display_info.icon_bitmap_id, .bitmaps_size)
      (.bitmaps_last):
      * xfaces.c (load_pixmap):
      * xterm.c (x_bitmap_icon, x_wm_set_icon_pixmap):
      * xterm.h (struct x_display_info.icon_bitmap_id, .bitmaps_size)
      (.bitmaps_last, struct x_output.icon_bitmap):
      Use ptrdiff_t, not int, for bitmap indexes.
      (x_allocate_bitmap_record): Check for size overflow.
      * dispextern.h, lisp.h: Adjust to API changes elsewhere.
      0766b489
  11. 21 Jun, 2011 7 commits