1. 15 Jun, 2011 11 commits
  2. 14 Jun, 2011 3 commits
    • Jan Djärv's avatar
      Fix resize and change of scroll bar width for Gtk3. · c195f2de
      Jan Djärv authored
      * configure.in: Add emacsgtkfixed.o to GTK_OBJ if HAVE_GTK3.
      
      * src/emacsgtkfixed.c, src/emacsgtkfixed.h: New files.
      
      * src/gtkutil.c: Include src/emacsgtkfixed.h if HAVE_GTK3.
      (int_gtk_range_get_value): Move to the scroll bar part of the file.
      (style_changed_cb): Call update_theme_scrollbar_width and call
      x_set_scroll_bar_default_width and xg_frame_set_char_size for
      all frames.
      (xg_create_frame_widgets): Call emacs_fixed_new if HAVE_GTK3 (Bug#8505).
      Call gtk_window_set_resizable if HAVE_GTK3.
      (x_wm_set_size_hint): Call emacs_fixed_set_min_size with min width
      and height if HAVE_GTK3 (Bug#8505).
      (scroll_bar_width_for_theme): New variable.
      (update_theme_scrollbar_width): New function.
      (xg_get_default_scrollbar_width): Move code to
      update_theme_scrollbar_width, just return scroll_bar_width_for_theme.
      (xg_initialize): Call update_theme_scrollbar_width.
      
      * src/gtkutil.h (xg_get_default_scrollbar_width): Remove argument.
      
      * src/xfns.c (x_set_scroll_bar_default_width): Remove argument to
      xg_get_default_scrollbar_width.
      c195f2de
    • Chong Yidong's avatar
      Print theme summaries in *Custom Themes* buffer. · c5dd5a51
      Chong Yidong authored
      * lisp/cus-theme.el (describe-theme-1): Use custom-theme-p.
      (custom-theme-summary): New function.
      (customize-themes): Use it.
      
      * etc/themes/light-blue-theme.el:
      * etc/themes/misterioso-theme.el:
      * etc/themes/tango-dark-theme.el:
      * etc/themes/tango-theme.el:
      * etc/themes/tsdh-dark-theme.el:
      * etc/themes/tsdh-light-theme.el:
      * etc/themes/wheatgrass-theme.el:
      * etc/themes/wombat-theme.el: Tweak summaries for better listability.
      c5dd5a51
    • Chong Yidong's avatar
      b9958282
  3. 13 Jun, 2011 3 commits
    • Glenn Morris's avatar
      cus-dep fix for build failure first occurring with 2011-06-13T08:21:09Z!rudalics@gmx.at · d647b7c4
      Glenn Morris authored
      The symptom was `make custom-dep' failing with "Unknown terminal type".
      This is caused by `display-buffer' trying to pop-up a frame in batch mode.
      I think this cus-dep change may be just papering over the immediate
      manifestation of the underlying problem.
      
      * lisp/cus-dep.el (custom-make-dependencies): Use up command-line-args-left.
      d647b7c4
    • Martin Rudalics's avatar
      Make help and view-mode work with new buffer display facilities. · 357f93d2
      Martin Rudalics authored
      * help.el (help-window): Remove variable.
      (help-window-point-marker, temp-buffer-max-height)
      (temp-buffer-resize-mode, help-window-select): Rewrite doc-strings.
      (help-print-return-message): Don't set help-window.
      (resize-temp-buffer-window): Rewrite cod eand doc-string.
      (help-window-setup-finish): Remove.
      (help-window-display-message, help-window-setup)
      (with-help-window): Major rewrite based on new
      display-buffer-window variable.
      
      * help-mode.el (help-mode-finish): Remove help-window related
      code.
      
      * view.el (view-exits-all-viewing-windows): Remove reference to
      view-return-to-alist in doc-string.
      (view-return-to-alist): Make obsolete.
      (view-buffer): Call pop-to-buffer-same-window and remove
      undo-window code.
      (view-buffer-other-window): Call pop-to-buffer-other-window and
      simplify code.  Ignore second argument.
      (view-buffer-other-frame): Call pop-to-buffer-other-frame and
      simplify code.  Ignore second argument.
      (view-return-to-alist-update): Make obsolete.
      (view-mode-enter): Rename second argument to QUIT-RESTORE.
      Rewrite using quit-restore window parameters.
      (view-mode-exit): Rename second argument to EXIT-ONLY.  Rewrite
      using quit-restore-window.
      (View-exit, View-exit-and-edit, View-leave, View-quit)
      (View-quit-all, View-kill-and-leave): Call view-mode-exit with
      appropriate arguments.
      (view-end-message): Use quit-restore window parameter.
      357f93d2
    • Martin Rudalics's avatar
      Install new buffer display functions and variables. · 9481c002
      Martin Rudalics authored
      * window.el (display-buffer-function): Rewrite doc-string.
      (display-buffer-window, display-buffer-alist): New variables.
      (display-buffer-split-specifiers)
      (display-buffer-side-specifiers)
      (display-buffer-macro-specifiers): New constants.
      (display-buffer-even-window-sizes, display-buffer-set-height)
      (display-buffer-set-width, display-buffer-select-window)
      (display-buffer-in-window, display-buffer-reuse-window)
      (display-buffer-split-window-1, display-buffer-split-window)
      (display-buffer-split-atom-window, display-buffer-pop-up-window)
      (display-buffer-pop-up-frame, display-buffer-pop-up-side-window)
      (display-buffer-in-side-window, normalize-buffer-to-display)
      (display-buffer-normalize-specifiers-1)
      (display-buffer-normalize-specifiers-2)
      (display-buffer-normalize-specifiers, display-buffer-frame): New
      functions.
      (display-buffer): Major rewrite.
      (display-buffer-other-window, display-buffer-other-frame)
      (pop-to-buffer, switch-to-buffer-other-window)
      (switch-to-buffer-other-frame): Rewrite.
      (display-buffer-same-window, display-buffer-same-frame)
      (display-buffer-same-frame-other-window)
      (pop-to-buffer-same-window, pop-to-buffer-same-frame)
      (pop-to-buffer-other-window)
      (pop-to-buffer-same-frame-other-window)
      (pop-to-buffer-other-frame, switch-to-buffer-same-frame)
      (switch-to-buffer-other-window-same-frame): New functions.
      (same-window-p, special-display-p): Rewrite disabling warnings.
      Make obsolete.
      (pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
      (display-buffer-mark-dedicated): Initialize to symbol 'unset.
      Make obsolete
      (same-window-buffer-names, same-window-regexps)
      (special-display-frame-alist, special-display-popup-frame)
      (special-display-function, special-display-buffer-names)
      (special-display-regexps, pop-up-frame-alist)
      (pop-up-frame-function, split-window-preferred-function)
      (split-height-threshold, split-width-threshold)
      (even-window-heights): Make obsolete.
      9481c002
  4. 12 Jun, 2011 15 commits
  5. 11 Jun, 2011 8 commits
    • Chong Yidong's avatar
      Handle gif subimage animation delay correctly. · 1100a63c
      Chong Yidong authored
      * lisp/image.el (image-animated-p): Return animation delay in seconds.
      Avoid bit manipulation in Lisp; use `delay' entry in the metadata.
      (image-animate-timeout): Remove DELAY argument.  Use
      image-animated-p to get animation delay for each frame.
      (image-animate): Caller changed.
      
      * src/image.c (gif_load): Add animation frame delay to the metadata.
      (syms_of_image): Use DEFSYM.  New symbol `delay'.
      1100a63c
    • Paul Eggert's avatar
      Merge from trunk. · 8eeb2863
      Paul Eggert authored
      8eeb2863
    • Paul Eggert's avatar
      * buffer.c (Qclone_number): Remove for now, as it's unused. · 4475bec4
      Paul Eggert authored
      (record_buffer, Funrecord_buffer): Rename local to avoid shadowing.
      (record_buffer): Remove unused local.
      * frame.c (other_visible_frames, frame_buffer_list): Now static.
      (set_frame_buffer_list): Remove; unused.
      * frame.h (other_visible_frames): Remove decl.
      * keyboard.h (menu_items_inuse): Declare only if USE_GTK || USE_MOTIF.
      * lisp.h (frame_buffer_list, set_frame_buffer_list): Remove decls.
      (add_gpm_wait_descriptor, delete_gpm_wait_descriptor): Declare only
      if HAVE_GPM.
      * menu.c (menu_items_inuse): Now static unless USE_GTK || USE_MOTIF.
      * process.c (add_gpm_wait_descriptor, delete_gpm_wait_descriptor):
      Define only if HAVE_GPM.
      * widget.c (EmacsFrameResize, emacsFrameClassRec): Now static.
      (update_hints_inhibit): Remove; never set.  All uses removed.
      * widgetprv.h (emacsFrameClassRec): Remove decl.
      * window.c (delete_deletable_window): Now returns void, since it
      wasn't returning anything.
      (compare_window_configurations): Remove unused locals.
      * xfns.c (x_set_scroll_bar_default_width): Remove unused locals.
      * xmenu.c (x_menu_set_in_use): Define only if USE_GTK || USE_MOTIF.
      Omit no-longer-needed #ifdef USE_X_TOOLKIT, since USE_X_TOOLKIT is
      implied by USE_GTK || USE_MOTIF.
      (dialog_selection_callback) [!USE_GTK]: Prefer intptr_t for integers
      the same widths as pointers.  This follows up on the 2011-05-06 patch.
      * xterm.c (x_alloc_lighter_color_for_widget): Define only if USE_LUCID.
      * xterm.h: Likewise.
      (x_menu_set_in_use): Declare only if USE_GTK || USE_MOTIF.
      4475bec4
    • Michael Albinus's avatar
      * net/tramp.el (tramp-debug-message): Add `tramp-with-progress-reporter' · def722bf
      Michael Albinus authored
      to ignored backtrace functions.
      def722bf
    • Glenn Morris's avatar
      Handle overlapping appointments in appt.el (bug#8377) · 0a2bb1a9
      Glenn Morris authored
      * lisp/calendar/appt.el (appt-disp-window-function): Doc fix.
      (appt-check): Handle overlapping appointments.
      
      * etc/NEWS: Mention appt-disp-window-function should handle lists now.
      0a2bb1a9
    • Martin Rudalics's avatar
      Window configuration, balancing and fit-to-buffer rewrites. · 6198ccd0
      Martin Rudalics authored
      * window.c (delete_deletable_window): Re-add.
      (Fset_window_configuration): Rewrite to handle dead buffers and
      consequently deletable windows.
      (window_tree, Fwindow_tree): Remove.  Supply functionality in
      window.el.
      (compare_window_configurations): Simplify code.
      
      * window.el (window-tree-1, window-tree): New functions, moving
      the latter to window.el.
      (bw-get-tree, bw-get-tree-1, bw-find-tree-sub)
      (bw-find-tree-sub-1, bw-l, bw-t, bw-r, bw-b, bw-dir, bw-eqdir)
      (bw-refresh-edges): Remove.
      (balance-windows-1, balance-windows-2): New functions.
      (balance-windows): Rewrite in terms of window tree functions,
      balance-windows-1 and balance-windows-2.
      (bw-adjust-window): Remove.
      (balance-windows-area-adjust): New function with functionality of
      bw-adjust-window but using resize-window.
      (set-window-text-height): Rewrite doc-string.  Use
      normalize-live-window and resize-window.
      (enlarge-window-horizontally, shrink-window-horizontally): Rename
      argument to DELTA.
      (window-buffer-height): New function.
      (fit-window-to-buffer, shrink-window-if-larger-than-buffer):
      Rewrite using new window resize routines.
      (kill-buffer-and-window, mouse-autoselect-window-select): Use
      ignore-errors instead of condition-case.
      (quit-window): Call delete-frame instead of delete-windows-on
      for the only buffer on frame.
      6198ccd0
    • Andreas Schwab's avatar
      * src/image.c (imagemagick_load_image): Fix type mismatch. · 1ab0dee5
      Andreas Schwab authored
      (Fimagemagick_types): Likewise.
      1ab0dee5
    • Andreas Schwab's avatar
      b6e3633c