1. 26 Oct, 2012 1 commit
  2. 30 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Handle window-height and window-width alist entries in `display-buffer'. · 5938d519
      Martin Rudalics authored
      In buffer display functions handle window-height/window-width
      alist entries.  Suggested by Juri Linkov as fix for Bug#1806.
      * window.el (window--display-buffer): New argument ALIST.  Obey
      window-height and window-width alist entries.
      (window--try-to-split-window): New argument ALIST.  Bind
      window-combination-limit to t when the window's size shall be
      changed and window-combination-limit equals `window-size'.
      (display-buffer-in-atom-window)
      (display-buffer-in-major-side-window)
      (display-buffer-in-side-window, display-buffer-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-below-selected)
      (display-buffer-at-bottom, display-buffer-in-previous-window)
      (display-buffer-use-some-window): Adjust all callers of
      window--display-buffer and window--try-to-split-window.
      (fit-frame-to-buffer): New option.
      (fit-window-to-buffer): Can resize frames if fit-frame-to-buffer
      is non-nil.
      (display-buffer-in-major-side-window): Evaluate window-height /
      window-width alist entries.
      
      * help.el (temp-buffer-resize-frames)
      (temp-buffer-resize-regexps): Remove options.
      (temp-buffer-resize-mode): Adjust doc-string.
      (resize-temp-buffer-window): Don't consult
      temp-buffer-resize-regexps.  Use fit-frame-to-buffer instead of
      temp-buffer-resize-frames.
      
      * dired.el (dired-mark-pop-up): Call
      display-buffer-below-selected with a fit-window-to-buffer alist
      entry.
      
      * window.c (Vwindow_combination_limit): New default value.
      (Qwindow_size): New symbol replacing Qtemp_buffer_resize.
      5938d519
  3. 22 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Make Temp Buffer Resize Mode less intrusive (Bug#1806). · 8e17c9ba
      Martin Rudalics authored
      * window.c (Fsplit_window_internal): Handle only Qt value of
      Vwindow_combination_limit separately.
      (Qtemp_buffer_resize): New symbol.
      (Vwindow_combination_limit): New default value.  Rewrite
      doc-string.
      * cus-start.el (window-combination-limit): Add new optional
      values.
      * window.el (temp-buffer-window-show)
      (window--try-to-split-window): Obey new values of
      window-combination-limit.
      (split-window): Test window-combination-limit for t instead of
      non-nil.
      (display-buffer-at-bottom): New buffer display action function.
      * help.el (temp-buffer-resize-regexps): New option.
      (temp-buffer-resize-mode): Rewrite doc-string.
      (resize-temp-buffer-window): Obey temp-buffer-resize-regexps.
      Don't resize reused window.  Suggested by Glen Morris.
      8e17c9ba
  4. 07 Sep, 2012 1 commit
  5. 05 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      Provide support for fitting frames to buffers. · ef654460
      Martin Rudalics authored
      * help.el (temp-buffer-max-height): New default value.
      (temp-buffer-resize-frames): New option.
      (resize-temp-buffer-window): Optionally resize frame.
      
      * window.el (fit-frame-to-buffer-bottom-margin): New option.
      (fit-frame-to-buffer): New function.
      ef654460
  6. 03 Sep, 2012 1 commit
    • Martin Rudalics's avatar
      New macro with-temp-buffer-window and related fixes. · c5e28e39
      Martin Rudalics authored
      * buffer.c (Fdelete_all_overlays): New function.
      
      * window.el (temp-buffer-window-setup-hook)
      (temp-buffer-window-show-hook): New hooks.
      (temp-buffer-window-setup, temp-buffer-window-show)
      (with-temp-buffer-window): New functions.
      (fit-window-to-buffer): Remove unused optional argument
      OVERRIDE.
      (special-display-popup-frame): Make sure the window used shows
      BUFFER.
      
      * help.el (temp-buffer-resize-mode): Fix doc-string.
      (resize-temp-buffer-window): New optional argument WINDOW.
      
      * files.el (recover-file, save-buffers-kill-emacs):
      * dired.el (dired-mark-pop-up): Use with-temp-buffer-window.
      c5e28e39
  7. 26 Aug, 2012 1 commit
    • Chong Yidong's avatar
      Make special-display-* and display-buffer-reuse-frames obsolete. · 77f1f99c
      Chong Yidong authored
      * lisp/window.el (special-display-regexps, special-display-frame-alist)
      (special-display-buffer-names, special-display-function)
      (display-buffer-reuse-frames): Mark as obsolete.
      
      * lisp/progmodes/compile.el: Don't use display-buffer-reuse-frames.
      
      * help.el (help-print-return-message): Don't treat
      display-buffer-reuse-frames specially.
      77f1f99c
  8. 15 Aug, 2012 1 commit
  9. 27 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Let C-h f do autoloading, and report if a function was previously autoloaded. · c89926a5
      Chong Yidong authored
      * lisp/help-fns.el (help-fns--autoloaded-p): New function.
      (describe-function-1): Refer to a function as "autoloaded" if it
      was autoloaded at any time in the past.  Perform autoloading if
      help-enable-auto-load is non-nil.
      
      * lisp/help.el (help-enable-auto-load): New variable.
      
      * src/doc.c (Fsubstitute_command_keys): Fix punctuation.
      c89926a5
  10. 02 Jun, 2012 1 commit
    • Chong Yidong's avatar
      Remove incorrect uses of "modeline". · 37269466
      Chong Yidong authored
      * ansi-color.el (ansi-color-faces-vector): Change default faces.
      
      * cus-edit.el (mode-line):
      * dframe.el (dframe-mouse-hscroll):
      * emacs-lisp/re-builder.el:
      * emacs-lisp/easy-mmode.el (define-minor-mode):
      * frame.el (set-frame-name):
      * help.el (lookup-minor-mode-from-indicator):
      * net/rcirc.el (rcirc-activity-string, rcirc-short-buffer-name):
      * progmodes/cc-cmds.el (c-toggle-auto-newline)
      (c-toggle-hungry-state):
      * progmodes/antlr-mode.el (antlr-language-alist):
      * progmodes/idlw-shell.el (idlwave-shell-electric-stop-line-face):
      * progmodes/vhdl-mode.el (vhdl-mode):
      * progmodes/which-func.el (which-func, which-func-cleanup-function):
      * term/ns-win.el (ns-face-at-pos):
      * term/sup-mouse.el (sup-mouse-report):
      * textmodes/flyspell.el (flyspell-mode-line-string):
      * textmodes/ispell.el (ispell-highlight-face):
      * textmodes/reftex-global.el:
      * vc/vc-arch.el (vc-arch-mode-line-string):
      * vc/vc-cvs.el (vc-cvs-mode-line-string):
      * vc/vc-git.el (vc-git-mode-line-string):
      * vc/vc-hooks.el (vc-display-status)
      (vc-default-mode-line-string):
      * vc/vc-mtn.el (vc-mtn-mode-line-string): Doc fixes.
      
      * dired.el (dired-sort-set-mode-line): Rename from
      dired-sort-set-modeline.  All callers changed.
      
      * foldout.el (foldout-mode-line-string): Rename from
      foldout-modeline-string.  All callers changed.
      (foldout-update-mode-line): Rename from foldout-update-modeline.
      
      * strokes.el (strokes-lighter): Rename from
      strokes-modeline-string.
      
      * subr.el (redraw-modeline): Make into obsolete alias.
      
      * calendar/timeclock.el (timeclock-mode-line-display): Rename from
      timeclock-modeline-display.  Make old name an alias.
      (timeclock-update-mode-line): Likewise.  All callers changed.
      (timeclock-mode-line-display): No need to check before using
      add-hook.
      (timeclock-relative, timeclock-day-over-hook)
      (timeclock-use-elapsed, timeclock-mode-string)
      (timeclock-mode-line-display): Doc fix, "modeline" -> "mode line".
      
      * emulation/crisp.el (crisp-mode-mode-line-string): Rename from
      crisp-mode-modeline-string.
      
      * erc-track.el (erc-track, erc-track-faces-priority-list)
      (erc-track-faces-normal-list, erc-track-find-face)
      (erc-track-modified-channels): Fix modeline -> mode line in docs.
      
      * eshell/esh-mode.el (eshell-status-in-mode-line): Rename from
      eshell-status-in-modeline.
      
      * org-clock.el (org-clock-string-limit)
      (org-clock-modeline-total, org-clock-task-overrun-text)
      (org-clock-mode-line-entry): Doc fix, "modeline" -> "mode line".
      
      * play/solitaire.el (solitaire-build-mode-line): Rename from
      solitaire-build-modeline.  All callers changed.
      
      * play/zone.el (zone-hiding-mode-line): Rename from
      zone-hiding-modeline.  All callers changed.
      (zone): Remove unusued `modeline-hidden-level' property.
      
      * progmodes/xscheme.el (xscheme-mode-line-initialize): Rename from
      xscheme-modeline-initialize.  All callers changed.
      
      * textmodes/sgml-mode.el (html-face-tag-alist)
      (html-tag-face-alist): Use mode-line face instead of obsolete
      alias modeline.
      
      Fixes: debbugs:10329
      37269466
  11. 15 May, 2012 1 commit
    • Chong Yidong's avatar
      Misc docfixes. · 27d1f87a
      Chong Yidong authored
      Suggested by Martin Rudalics.
      
      * doc/lispref/display.texi (Face Functions): Fix define-obsolete-face-alias.
      
      * doc/lispref/functions.texi (Obsolete Functions): Fix doc for
      set-advertised-calling-convention.
      
      * doc/lispref/modes.texi (Mode Help): Fix describe-mode.
      
      * doc/lispref/variables.texi (Variable Aliases): Fix make-obsolete-variable.
      
      * lisp/help.el (describe-mode): Doc fix.
      27d1f87a
  12. 28 Feb, 2012 1 commit
  13. 11 Jan, 2012 1 commit
  14. 05 Jan, 2012 1 commit
  15. 25 Nov, 2011 1 commit
  16. 01 Nov, 2011 1 commit
    • Martin Rudalics's avatar
      Remove unused variable temp-buffer-show-specifiers. · 4ee88440
      Martin Rudalics authored
      * window.c (temp_output_buffer_show): Don't use
      Vtemp_buffer_show_specifiers.
      (Vtemp_buffer_show_specifiers): Remove unused variable.
      * help.el (with-help-window): Don't reference
      temp-buffer-show-specifiers in doc-string.
      4ee88440
  17. 30 Oct, 2011 1 commit
    • Martin Rudalics's avatar
      Remove "iso-" infix from window combination functions. · 3d8daefe
      Martin Rudalics authored
      * window.el (window-iso-combination-p, window-iso-combined-p)
      (window-iso-combinations): Remove "iso-" infix.  Suggested by
      Chong Yidong.
      (window-min-size-1, window-size-fixed-1, window-min-delta-1)
      (window-max-delta-1, window-resize, window--resize-siblings)
      (window--resize-this-window, adjust-window-trailing-edge)
      (split-window, balance-windows-1)
      (shrink-window-if-larger-than-buffer):
      * calendar/calendar.el (calendar-generate-window):
      * help.el (resize-temp-buffer-window): Adjust callers
      accordingly.
      * windows.texi (Windows and Frames): Remove "iso-" infix from
      documentation of window-iso-combined-p.
      3d8daefe
  18. 19 Oct, 2011 1 commit
    • Chong Yidong's avatar
      Fix minor mode docstrings for the new meaning of a nil ARG. · 06e21633
      Chong Yidong authored
      * abbrev.el (abbrev-mode):
      * allout.el (allout-mode):
      * autoinsert.el (auto-insert-mode):
      * autoarg.el (autoarg-mode, autoarg-kp-mode):
      * autorevert.el (auto-revert-mode, auto-revert-tail-mode)
      (global-auto-revert-mode):
      * battery.el (display-battery-mode):
      * composite.el (global-auto-composition-mode)
      (auto-composition-mode):
      * delsel.el (delete-selection-mode):
      * desktop.el (desktop-save-mode):
      * dired-x.el (dired-omit-mode):
      * dirtrack.el (dirtrack-mode):
      * doc-view.el (doc-view-minor-mode):
      * double.el (double-mode):
      * electric.el (electric-indent-mode, electric-pair-mode):
      * emacs-lock.el (emacs-lock-mode):
      * epa-hook.el (auto-encryption-mode):
      * follow.el (follow-mode):
      * font-core.el (font-lock-mode):
      * frame.el (auto-raise-mode, auto-lower-mode, blink-cursor-mode):
      * help.el (temp-buffer-resize-mode):
      * hilit-chg.el (highlight-changes-mode)
      (highlight-changes-visible-mode):
      * hi-lock.el (hi-lock-mode):
      * hl-line.el (hl-line-mode, global-hl-line-mode):
      * icomplete.el (icomplete-mode):
      * ido.el (ido-everywhere):
      * image-file.el (auto-image-file-mode):
      * image-mode.el (image-minor-mode):
      * iswitchb.el (iswitchb-mode):
      * jka-cmpr-hook.el (auto-compression-mode):
      * linum.el (linum-mode):
      * longlines.el (longlines-mode):
      * master.el (master-mode):
      * mb-depth.el (minibuffer-depth-indicate-mode):
      * menu-bar.el (menu-bar-mode):
      * minibuf-eldef.el (minibuffer-electric-default-mode):
      * mouse-sel.el (mouse-sel-mode):
      * msb.el (msb-mode):
      * mwheel.el (mouse-wheel-mode):
      * outline.el (outline-minor-mode):
      * paren.el (show-paren-mode):
      * recentf.el (recentf-mode):
      * reveal.el (reveal-mode, global-reveal-mode):
      * rfn-eshadow.el (file-name-shadow-mode):
      * ruler-mode.el (ruler-mode):
      * savehist.el (savehist-mode):
      * scroll-all.el (scroll-all-mode):
      * scroll-bar.el (scroll-bar-mode):
      * server.el (server-mode):
      * shell.el (shell-dirtrack-mode):
      * simple.el (auto-fill-mode, transient-mark-mode)
      (visual-line-mode, overwrite-mode, binary-overwrite-mode)
      (line-number-mode, column-number-mode, size-indication-mode)
      (auto-save-mode, normal-erase-is-backspace-mode, visible-mode):
      * strokes.el (strokes-mode):
      * time.el (display-time-mode):
      * t-mouse.el (gpm-mouse-mode):
      * tool-bar.el (tool-bar-mode):
      * tooltip.el (tooltip-mode):
      * type-break.el (type-break-mode-line-message-mode)
      (type-break-query-mode):
      * view.el (view-mode):
      * whitespace.el (whitespace-mode, whitespace-newline-mode)
      (global-whitespace-mode, global-whitespace-newline-mode):
      * xt-mouse.el (xterm-mouse-mode): Doc fix.
      
      * emacs-lisp/easy-mmode.el (define-globalized-minor-mode): Fix
      autogenerated docstring.
      06e21633
  19. 29 Sep, 2011 1 commit
  20. 21 Sep, 2011 1 commit
    • Martin Rudalics's avatar
      Rewrite code quitting windows and restoring the previous buffer. · cf4eacfd
      Martin Rudalics authored
      * window.el (set-window-buffer-start-and-point): Call
      set-window-start with NOFORCE argument t.  Suggested by Thierry
      Volpiatto <thierry.volpiatto@gmail.com>.
      (quit-window): Reword doc-string.  Handle new format of
      quit-restore parameter.  Don't delete window if it has a
      previous buffer we can show instead of the present one.
      (display-buffer-record-window): Rewrite using a new format for
      the quit-restore window parameter
      (special-display-popup-frame, display-buffer-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window, display-buffer-use-some-window):
      Adapt symbol passed to display-buffer-record-window.
      * help.el (help-window-setup): Handle new format of quit-restore
      parameter.
      cf4eacfd
  21. 14 Sep, 2011 1 commit
    • Martin Rudalics's avatar
      Replace display-buffer-window by help-setup window parameter. · f678e0b6
      Martin Rudalics authored
      * window.el (display-buffer-window): Remove.
      (display-buffer-record-window): Use help-setup window parameter
      instead of variable display-buffer-window.
      (display-buffer-function, special-display-buffer-names)
      (special-display-function): Mention help-setup parameter instead
      of display-buffer-window in doc-string.
      * help.el (help-window-setup): New argument help-window.  Use
      help-window-setup parameter instead of display-buffer-window.
      Reword some messages.
      (with-help-window): Pass window used for displaying the buffer
      to help-window-setup.  Don't set display-buffer-window.
      f678e0b6
  22. 13 Sep, 2011 2 commits
  23. 03 Sep, 2011 1 commit
  24. 23 Aug, 2011 1 commit
  25. 13 Jun, 2011 1 commit
    • 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
  26. 19 Apr, 2011 1 commit
  27. 08 Apr, 2011 1 commit
    • Chong Yidong's avatar
      Remove internal_with_output_to_temp_buffer, replacing sole user with Lisp. · cbb59342
      Chong Yidong authored
      * lisp/help.el (help-form-show): New function, to be called from C.
      Put help-form output in a buffer named differently than *Help*.
      
      * src/keyboard.c (read_char): Call Lisp function help-form-show,
      instead of using internal_with_output_to_temp_buffer.
      (Qhelp_form_show): New var.
      
      * src/lisp.h (internal_with_output_to_temp_buffer): Remove prototype.
      
      * src/print.c (internal_with_output_to_temp_buffer): Function deleted.
      cbb59342
  28. 13 Mar, 2011 1 commit
  29. 25 Jan, 2011 1 commit
  30. 16 Jan, 2011 1 commit
  31. 02 Jan, 2011 1 commit
  32. 23 Oct, 2010 1 commit
  33. 29 Aug, 2010 1 commit
  34. 26 Aug, 2010 1 commit
    • Chong Yidong's avatar
      Improvements to describe-package buffer. · cb6c4991
      Chong Yidong authored
      * lisp/help.el (help-map): Bind `C-h P' to describe-package.
      
      * lisp/menu-bar.el (menu-bar-describe-menu): Add describe-package.
      
      * lisp/emacs-lisp/package.el (package-refresh-contents): Catch errors
      when downloading archives.
      (describe-package-1): Add package commentary.
      (package-install-button-action): New function.
      (package-menu-mode-map): Bind ? to package-menu-describe-package.
      (package-menu-view-commentary): Function removed.
      (package-list-packages-internal): Hide the `package' package too.
      cb6c4991
  35. 06 Jul, 2010 1 commit
  36. 05 Apr, 2010 2 commits
  37. 03 Apr, 2010 1 commit
  38. 13 Jan, 2010 1 commit