1. 21 Oct, 2011 1 commit
    • Martin Rudalics's avatar
      Fix and improve mouse-dragging of horizontal/vertical lines. · e07b9a6d
      Martin Rudalics authored
      * mouse.el (mouse-drag-window-above)
      (mouse-drag-move-window-bottom, mouse-drag-move-window-top)
      (mouse-drag-mode-line-1, mouse-drag-header-line)
      (mouse-drag-vertical-line-rightward-window): Remove.
      (mouse-drag-line): New function.
      (mouse-drag-mode-line, mouse-drag-header-line)
      (mouse-drag-vertical-line): Call mouse-drag-line.
      * window.el (window-at-side-p, windows-at-side): New functions.
      e07b9a6d
  2. 10 Oct, 2011 2 commits
  3. 09 Oct, 2011 1 commit
  4. 08 Oct, 2011 2 commits
  5. 05 Oct, 2011 2 commits
  6. 04 Oct, 2011 1 commit
    • Martin Rudalics's avatar
      Make frame iconification/deletion optional when burying buffers. · 0e2070b5
      Martin Rudalics authored
      * window.el (window--delete): New function.
      (frame-auto-delete): Resuscitate option.
      (bury-buffer, replace-buffer-in-windows)
      (quit-window): Rewrite using window--delete.
      (display-buffer-pop-up-frame, display-buffer-pop-up-window):
      Pass display-buffer-mark-dedicated to window--display-buffer-2
      (Bug#9639).
      0e2070b5
  7. 29 Sep, 2011 1 commit
  8. 24 Sep, 2011 1 commit
  9. 23 Sep, 2011 1 commit
  10. 22 Sep, 2011 3 commits
  11. 21 Sep, 2011 2 commits
    • 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
    • Stefan Monnier's avatar
      * lisp/window.el (display-buffer--action-function-custom-type): · 8d28cb95
      Stefan Monnier authored
      Don't include internal functions in the Custom interface.
      8d28cb95
  12. 17 Sep, 2011 2 commits
  13. 15 Sep, 2011 1 commit
  14. 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
  15. 13 Sep, 2011 3 commits
  16. 11 Sep, 2011 2 commits
    • Chong Yidong's avatar
      Add defcustom definitions for display-buffer vars. · fa5660f9
      Chong Yidong authored
      * lisp/window.el (display-buffer--action-function-custom-type)
      (display-buffer--action-custom-type): New vars.
      (display-buffer-alist, display-buffer-default-action)
      (display-buffer-overriding-action): Add defcustom types.
      fa5660f9
    • Chong Yidong's avatar
      Change modes that used same-window-* vars to use switch-to-buffer. · 37ac18a3
      Chong Yidong authored
      * cmuscheme.el (run-scheme, switch-to-scheme):
      * ielm.el (ielm):
      * shell.el (shell):
      * net/rlogin.el (rlogin):
      * net/telnet.el (telnet, rsh):
      * progmodes/inf-lisp.el (inferior-lisp): Use switch-to-buffer.
      
      * cus-edit.el (customize-group, custom-buffer-create)
      (customize-browse, custom-buffer-create-other-window): Use
      switch-to-buffer or switch-to-buffer-other-window.
      
      * info.el (info, Info-find-node, Info-revert-find-node, Info-next)
      (Info-prev, Info-up, Info-speedbar-goto-node)
      (info-display-manual): Use switch-to-buffer.
      (Info-speedbar-goto-node): Use switch-to-buffer-other-frame.
      
      * lisp/gnus/message.el (message-pop-to-buffer): Default to switch-to-buffer.
      (message-mail-other-window, message-mail-other-frame)
      (message-news-other-window, message-news-other-frame): Use
      switch-to-buffer-other-frame and switch-to-buffer-other-window instead
      of setting buffer display varibles.
      
      * mail/sendmail.el (mail): Use switch-to-buffer.
      (mail-recover): Use switch-to-buffer-other-window.
      
      * progmodes/gdb-mi.el (gdb-restore-windows, gdb-setup-windows):
      Use switch-to-buffer.
      37ac18a3
  17. 10 Sep, 2011 3 commits
    • Chong Yidong's avatar
      Fix various uses of display-buffer and pop-to-buffer · 3199b96f
      Chong Yidong authored
      to avoid using special-display-* and same-window-* variables.
      
      * lisp/buff-menu.el (Buffer-menu-switch-other-window): Use second arg
      of display-buffer.
      (Buffer-menu-2-window): Use switch-to-buffer-other-window.
      
      * lisp/replace.el (occur-mode-goto-occurrence)
      (occur-mode-display-occurrence) Use second arg of pop-to-buffer
      and display-buffer.
      
      * lisp/window.el (display-buffer-alist): Add *Python*.
      
      * lisp/mail/reporter.el (reporter-submit-bug-report): Use second arg of
      display-buffer.
      
      * lisp/mail/sendmail.el (sendmail-user-agent-compose): Don't bind the
      special-display and same-window variables.
      (mail-other-window): Use switch-to-buffer-other-window.
      (mail-other-frame): USe switch-to-buffer-other-frame.
      
      * lisp/progmodes/gdb-mi.el (gdb-frame-gdb-buffer): Use
      display-buffer-other-frame.
      (gdb-display-gdb-buffer): Use pop-to-buffer.
      
      * lisp/progmodes/gud.el (gud-goto-info): Use info-other-window.
      
      * lisp/progmodes/python.el: Don't set same-window-buffer-names.
      
      * lisp/textmodes/bibtex.el (bibtex-search-entry): Use switch-to-buffer.
      3199b96f
    • Chong Yidong's avatar
    • Chong Yidong's avatar
      Tweaks to display-buffer default actions; remove same-window-* autoload forms. · 8319e0bf
      Chong Yidong authored
      * lisp/window.el (display-buffer-alist): Add entry for buffers
      previously handled same-window-*.
      (display-buffer-alist, display-buffer-default-action)
      (display-buffer-overriding-action): Mark as risky.
      (display-buffer-alist): Document action function changes.
      (display-buffer--same-window-action)
      (display-buffer--other-frame-action): New variables.
      (switch-to-buffer, display-buffer-other-frame): Use them.
      (display-buffer): Rename reuse-frame entry to reusable-frames.
      (display-buffer-reuse-selected-window): Function deleted.
      (display-buffer-reuse-window): Handle reusable-frames alist entry.
      If it's omitted, check pop-up-frames/display-buffer-reuse-frames.
      (display-buffer-special): New function.
      (display-buffer--maybe-pop-up-frame-or-window): Rename from
      display-buffer-reuse-or-pop-window.  Split off special-display
      part into display-buffer-special.
      (display-buffer-use-some-window): Don't perform any special
      pop-up-frames handling.
      (pop-to-buffer): Use window-normalize-buffer-to-switch-to.
      
      * lisp/cmuscheme.el:
      * lisp/ielm.el:
      * lisp/shell.el:
      * lisp/mail/sendmail.el:
      * lisp/progmodes/inf-lisp.el: Don't set same-window-buffer-names.
      
      * lisp/cus-edit.el:
      * lisp/info.el:
      * lisp/net/rlogin.el:
      * lisp/net/telnet.el:
      * lisp/progmodes/gud.el: Don't set same-window-regexps.
      8319e0bf
  18. 08 Sep, 2011 2 commits
    • Martin Rudalics's avatar
      Don't have previous and next buffers deal with internal windows. · 9b1c252e
      Martin Rudalics authored
      * window.c (Fset_window_prev_buffers, Fset_window_next_buffers):
      Operate on live windows only.
      
      * window.el (window-deletable-p): Make sure window is live before
      invoking window-prev-buffers.
      9b1c252e
    • Martin Rudalics's avatar
      Rewrite window/frame auto-deletion code. (Bug#9419) and (Bug#9456) · 8b0874b5
      Martin Rudalics authored
      * window.el (frame-auto-delete): Rename to window-auto-delete.
      Make it control auto-deletion of windows and/or frames.
      (window-deletable-p): New argument FORCE.  Rewrite conditions
      for deleting window/frame. (Bug#9419)
      (switch-to-prev-buffer, replace-buffer-in-windows, quit-window):
      Rewrite handling of case when window/frame can be deleted.
      (delete-windows-on): Call window-deletable-p with new FORCE
      argument t. (Bug#9456)
      8b0874b5
  19. 03 Sep, 2011 1 commit
  20. 02 Sep, 2011 3 commits
    • Chong Yidong's avatar
      Remove pop-to-buffer-same-window. · c3313451
      Chong Yidong authored
      * lisp/window.el (pop-to-buffer-1, pop-to-buffer-same-window): Deleted.
      (pop-to-buffer): Change interactive spec.  Pass second argument
      directly to display-buffer.
      (display-buffer): Fix interactive spec.  Use functionp to
      distinguish between a function and a list of functions.
      
      * lisp/abbrev.el (edit-abbrevs):
      * lisp/arc-mode.el (archive-extract):
      * lisp/autoinsert.el (auto-insert):
      * lisp/bookmark.el (bookmark-bmenu-list):
      * lisp/files.el (find-file):
      * lisp/view.el (view-buffer):
      * lisp/progmodes/compile.el (compilation-goto-locus):
      * lisp/textmodes/bibtex.el (bibtex-initialize): Use switch-to-buffer.
      
      * lisp/org/ob-ref.el (org-babel-ref-goto-headline-id):
      * lisp/org/org.el (org-get-location, org-tree-to-indirect-buffer)
      (org-mark-ring-goto, org-refile, org-add-log-note)
      (org-revert-all-org-buffers, org-switchb)
      (org-cycle-agenda-files, org-submit-bug-report)
      (org-goto-marker-or-bmk):
      * lisp/org/org-agenda.el (org-prepare-agenda, org-agenda-switch-to):
      * lisp/org/org-capture.el (org-capture-goto-target)
      (org-capture-fill-template):
      * lisp/org/org-clock.el (org-clock-goto):
      * lisp/org/org-ctags.el (org-ctags-visit-buffer-or-file):
      * lisp/org/org-exp.el (org-export-as-org):
      * lisp/org/org-feed.el (org-feed-show-raw-feed):
      * lisp/org/org-html.el (org-export-htmlize-generate-css):
      * lisp/org/org-id.el (org-id-goto):
      * lisp/org/org-irc.el (org-irc-visit-erc):
      * lisp/org/org-mobile.el (org-mobile-apply):
      * lisp/org/org-publish.el (org-publish-org-to, org-publish-find-date):
      * lisp/org/org-remember.el (org-go-to-remember-target):
      * lisp/org/org-src.el (org-src-switch-to-buffer)
      (org-edit-fixed-width-region): Use switch-to-buffer.
      
      * lisp/org/org-compat.el (org-pop-to-buffer-same-window): Deleted.
      c3313451
    • Chong Yidong's avatar
      Minor doc fix for last change. · 2a7bdc1a
      Chong Yidong authored
      2a7bdc1a
    • Chong Yidong's avatar
      Split default-buffer-default into separate display action components. · 89894cd8
      Chong Yidong authored
      * lisp/window.el (display-buffer-alist): Doc fix.
      (display-buffer): Add docstring.  Don't treat display-buffer-default specially.
      (display-buffer-reuse-selected-window)
      (display-buffer-same-window, display-buffer-maybe-same-window)
      (display-buffer-reuse-window, display-buffer-pop-up-frame)
      (display-buffer-pop-up-window)
      (display-buffer-reuse-or-pop-window)
      (display-buffer-use-some-window): New functions.
      (display-buffer-default-action): Use them.
      (display-buffer-default): Deleted.
      (pop-to-buffer-1): Fix choice of actions.
      89894cd8
  21. 01 Sep, 2011 2 commits
  22. 31 Aug, 2011 1 commit
    • Martin Rudalics's avatar
      Restore Emacs 23 display-buffer functions and options. · f818cd2a
      Martin Rudalics authored
      * window.el (display-buffer-window): Rewrite doc-string.
      (display-buffer-record-window): New function.
      (display-buffer-macro-specifiers)
      (display-buffer-even-window-sizes, display-buffer-set-height)
      (display-buffer-set-width, display-buffer-in-window)
      (display-buffer-reuse-window, display-buffer-split-specifiers)
      (display-buffer-side-specifiers, 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)
      (display-buffer-other-window-means-other-frame)
      (display-buffer-normalize-special)
      (display-buffer-normalize-default)
      (display-buffer-normalize-argument)
      (display-buffer-normalize-alist-1, display-buffer-normalize-alist)
      (display-buffer-normalize-specifiers, display-buffer-frame)
      (display-buffer-same-window, display-buffer-same-frame)
      (display-buffer-other-window)
      (display-buffer-same-frame-other-window)
      (display-buffer-other-frame, 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)
      (display-buffer-alist-of-strings-p, display-buffer-alist-add)
      (display-buffer-alist-set-1, display-buffer-alist-set-2)
      (display-buffer-alist-set): Remove.
      (display-buffer-function, special-display-buffer-names)
      (special-display-regexps, special-display-function): In
      doc-string refer to display-buffer-window and quit-restore
      parameter.
      (pop-up-frame-alist, pop-up-frame-function, special-display-p)
      (special-display-frame-alist, special-display-popup-frame)
      (same-window-buffer-names, same-window-regexps, same-window-p)
      (pop-up-frames, display-buffer-reuse-frames, pop-up-windows)
      (split-window-preferred-function, split-height-threshold)
      (split-width-threshold, window-splittable-p)
      (split-window-sensibly, window--try-to-split-window)
      (window--frame-usable-p, even-window-heights)
      (window--even-window-heights, window--display-buffer-1)
      (window--display-buffer-2, display-buffer-other-frame): Restore
      old Emacs 23 code, order and doc-strings where applicable.
      (display-buffer-default, display-buffer-assq-regexp): New functions.
      (display-buffer-alist): Rewrite doc-string.
      (display-buffer-default-action)
      (display-buffer-overriding-action): New variables.
      (display-buffer, switch-to-buffer): Rewrite.
      (pop-to-buffer): Restore Emacs 23 behavior but use
      window-normalize-buffer-to-display.
      (switch-to-buffer-other-window, switch-to-buffer-other-frame):
      Restore Emacs 23 behavior but use
      window-normalize-buffer-to-switch-to.
      (pop-to-buffer-same-window): Rewrite.
      (pop-to-buffer-other-window, pop-to-buffer-other-frame): Rewrite
      using Emacs 23 options.
      
      * org-compat.el (org-pop-to-buffer-same-window): Remove LABEL
      argument from pop-to-buffer-same-window call.
      f818cd2a
  23. 27 Aug, 2011 1 commit
  24. 25 Aug, 2011 1 commit