diff options
| author | Richard M. Stallman | 2003-06-04 09:00:22 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-06-04 09:00:22 +0000 |
| commit | 638df3f700ee26cd18a7ca9fd9b2890cf44857a7 (patch) | |
| tree | af1af816941be9f60066ec7732d40523aecda8a4 | |
| parent | 73b0b745c3034d7eeda8b88ef5e0f0f31f52af3f (diff) | |
| download | emacs-638df3f700ee26cd18a7ca9fd9b2890cf44857a7.tar.gz emacs-638df3f700ee26cd18a7ca9fd9b2890cf44857a7.zip | |
(list-buffers-noselect): Use window-inside-edges
to compute the number of offset spaces.
(list-buffers-noselect): Use Buffer-menu-buffer+size to
indent the dashes properly. Put some in fixed-pitch.
| -rw-r--r-- | lisp/buff-menu.el | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 34423a836f1..e2a263e33ad 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el | |||
| @@ -563,14 +563,8 @@ For more information, see the function `buffer-menu'." | |||
| 563 | list desired-point name file mode) | 563 | list desired-point name file mode) |
| 564 | (when Buffer-menu-use-header-line | 564 | (when Buffer-menu-use-header-line |
| 565 | (let ((spaces | 565 | (let ((spaces |
| 566 | ;; FIXME: This is using the settings of the current frame rather | 566 | (- (car (window-inside-edges)) |
| 567 | ;; than the frame into which the buffer will be displayed. | 567 | (car (window-edges)))) |
| 568 | (/ (+ 0.0 (or (frame-parameter nil 'left-fringe) 0) | ||
| 569 | (or (if (eq (frame-parameter nil 'vertical-scroll-bars) | ||
| 570 | 'left) | ||
| 571 | (frame-parameter nil 'scroll-bar-width)) | ||
| 572 | 0)) | ||
| 573 | (frame-char-width))) | ||
| 574 | (pos 0)) | 568 | (pos 0)) |
| 575 | ;; Turn spaces in the header into stretch specs so they work | 569 | ;; Turn spaces in the header into stretch specs so they work |
| 576 | ;; regardless of the header-line face. | 570 | ;; regardless of the header-line face. |
| @@ -590,9 +584,9 @@ For more information, see the function `buffer-menu'." | |||
| 590 | (erase-buffer) | 584 | (erase-buffer) |
| 591 | (setq standard-output (current-buffer)) | 585 | (setq standard-output (current-buffer)) |
| 592 | (unless Buffer-menu-use-header-line | 586 | (unless Buffer-menu-use-header-line |
| 593 | (insert header "--- ------") | 587 | (insert header (propertize "---" 'face 'fixed-pitch) " ") |
| 594 | (indent-to Buffer-menu-buffer+size-width) | 588 | (insert (Buffer-menu-buffer+size "------" "----")) |
| 595 | (insert "---- ----" mode-end "----\n") | 589 | (insert " ----" mode-end "----\n") |
| 596 | (put-text-property 1 (point) 'intangible t)) | 590 | (put-text-property 1 (point) 'intangible t)) |
| 597 | (setq list | 591 | (setq list |
| 598 | (delq t | 592 | (delq t |