[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/buff-menu.el [lexbind]
From: |
Miles Bader |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/buff-menu.el [lexbind] |
Date: |
Wed, 08 Dec 2004 19:40:57 -0500 |
Index: emacs/lisp/buff-menu.el
diff -c emacs/lisp/buff-menu.el:1.54.4.9 emacs/lisp/buff-menu.el:1.54.4.10
*** emacs/lisp/buff-menu.el:1.54.4.9 Wed Dec 8 23:31:42 2004
--- emacs/lisp/buff-menu.el Wed Dec 8 23:36:20 2004
***************
*** 1,4 ****
! ;;; buff-menu.el --- buffer menu main function and support functions
;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 2000, 2001, 2002, 2003,
;; 2004 Free Software Foundation, Inc.
--- 1,4 ----
! ;;; buff-menu.el --- buffer menu main function and support functions -*-
coding:utf-8 -*-
;; Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 2000, 2001, 2002, 2003,
;; 2004 Free Software Foundation, Inc.
***************
*** 190,195 ****
--- 190,197 ----
(setq buffer-read-only t)
(run-hooks 'buffer-menu-mode-hook))
+ ;; This function exists so we can make the doc string of Buffer-menu-mode
+ ;; look nice.
(defun Buffer-menu-revert ()
"Update the list of buffers."
(interactive)
***************
*** 645,651 ****
(let* ((old-buffer (current-buffer))
(standard-output standard-output)
(mode-end (make-string (- Buffer-menu-mode-width 2) ? ))
! (header (concat " " (propertize "CRM " 'face 'fixed-pitch)
(Buffer-menu-buffer+size
(Buffer-menu-make-sort-button "Buffer" 2)
(Buffer-menu-make-sort-button "Size" 3))
--- 647,653 ----
(let* ((old-buffer (current-buffer))
(standard-output standard-output)
(mode-end (make-string (- Buffer-menu-mode-width 2) ? ))
! (header (concat "CRM "
(Buffer-menu-buffer+size
(Buffer-menu-make-sort-button "Buffer" 2)
(Buffer-menu-make-sort-button "Size" 3))
***************
*** 660,677 ****
(while (string-match "[ \t]+" header pos)
(setq pos (match-end 0))
(put-text-property (match-beginning 0) pos 'display
! ;; Assume fixed-size chars
! (list 'space :align-to (1- pos))
! header))))
(with-current-buffer (get-buffer-create "*Buffer List*")
(setq buffer-read-only nil)
(erase-buffer)
(setq standard-output (current-buffer))
(unless Buffer-menu-use-header-line
! (insert header (propertize "---" 'face 'fixed-pitch) " ")
! (insert (Buffer-menu-buffer+size "------" "----"))
! (insert " ----" mode-end "----\n")
! (put-text-property 1 (point) 'intangible t))
(if buffer-list
(setq list buffer-list)
;; Collect info for every buffer we're interested in.
--- 662,689 ----
(while (string-match "[ \t]+" header pos)
(setq pos (match-end 0))
(put-text-property (match-beginning 0) pos 'display
! ;; Assume fixed-size chars in the buffer.
! (list 'space :align-to pos)
! header)))
! ;; Try to better align the one-char headers.
! (put-text-property 0 3 'face 'fixed-pitch header)
! ;; Add a "dummy" leading space to align the beginning of the header
! ;; line with the beginning of the text (rather than with the left
! ;; scrollbar or the left fringe). â-Stef
! (setq header (concat (propertize " " 'display '(space :align-to 0))
! header))
! )
(with-current-buffer (get-buffer-create "*Buffer List*")
(setq buffer-read-only nil)
(erase-buffer)
(setq standard-output (current-buffer))
(unless Buffer-menu-use-header-line
! (let ((underline (if (char-displayable-p ?â) ?â ?-)))
! (insert header
! (apply 'string
! (mapcar (lambda (c)
! (if (memq c '(?\n ?\ )) c underline))
! header)))))
(if buffer-list
(setq list buffer-list)
;; Collect info for every buffer we're interested in.