diff options
| author | Dave Love | 2003-01-05 23:15:36 +0000 |
|---|---|---|
| committer | Dave Love | 2003-01-05 23:15:36 +0000 |
| commit | 4f1ab860feefee65a64901e1947e82dcdf1d9bac (patch) | |
| tree | a64227efd99aa26ba509cebd9809e6e1a432e2cf | |
| parent | e3b839aa6d89c4554f263248022342aa41ebde44 (diff) | |
| download | emacs-4f1ab860feefee65a64901e1947e82dcdf1d9bac.tar.gz emacs-4f1ab860feefee65a64901e1947e82dcdf1d9bac.zip | |
(Buffer-menu-execute): Fix for effect of header
line.
| -rw-r--r-- | lisp/ChangeLog | 11 | ||||
| -rw-r--r-- | lisp/buff-menu.el | 12 |
2 files changed, 19 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 682e03904c2..0255264eda1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2003-01-05 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * buff-menu.el (Buffer-menu-execute): Fix for effect of header | ||
| 4 | line. | ||
| 5 | |||
| 6 | * international/mule-diag.el (non-iso-charset-alist): Add | ||
| 7 | vietnamese-tcvn. | ||
| 8 | |||
| 9 | * international/mule-cmds.el (locale-language-names): Use | ||
| 10 | Croatian, Swedish. | ||
| 11 | |||
| 1 | 2003-01-05 Andreas Schwab <schwab@suse.de> | 12 | 2003-01-05 Andreas Schwab <schwab@suse.de> |
| 2 | 13 | ||
| 3 | * buff-menu.el (Buffer-menu-buffer+size): Don't clobber buffer | 14 | * buff-menu.el (Buffer-menu-buffer+size): Don't clobber buffer |
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 205a8ab7d32..c7bb7009241 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el | |||
| @@ -332,7 +332,8 @@ and then move up one line. Prefix arg means move that many lines." | |||
| 332 | (interactive) | 332 | (interactive) |
| 333 | (save-excursion | 333 | (save-excursion |
| 334 | (goto-char (point-min)) | 334 | (goto-char (point-min)) |
| 335 | (forward-line 1) | 335 | (unless Buffer-menu-use-header-line |
| 336 | (forward-line 1)) | ||
| 336 | (while (re-search-forward "^..S" nil t) | 337 | (while (re-search-forward "^..S" nil t) |
| 337 | (let ((modp nil)) | 338 | (let ((modp nil)) |
| 338 | (save-excursion | 339 | (save-excursion |
| @@ -344,10 +345,11 @@ and then move up one line. Prefix arg means move that many lines." | |||
| 344 | (insert (if modp ?* ? )))))) | 345 | (insert (if modp ?* ? )))))) |
| 345 | (save-excursion | 346 | (save-excursion |
| 346 | (goto-char (point-min)) | 347 | (goto-char (point-min)) |
| 347 | (forward-line 1) | 348 | (unless Buffer-menu-use-header-line |
| 349 | (forward-line 1)) | ||
| 348 | (let ((buff-menu-buffer (current-buffer)) | 350 | (let ((buff-menu-buffer (current-buffer)) |
| 349 | (buffer-read-only nil)) | 351 | (buffer-read-only nil)) |
| 350 | (while (search-forward "\nD" nil t) | 352 | (while (re-search-forward "^D" nil t) |
| 351 | (forward-char -1) | 353 | (forward-char -1) |
| 352 | (let ((buf (Buffer-menu-buffer nil))) | 354 | (let ((buf (Buffer-menu-buffer nil))) |
| 353 | (or (eq buf nil) | 355 | (or (eq buf nil) |
| @@ -357,7 +359,8 @@ and then move up one line. Prefix arg means move that many lines." | |||
| 357 | (progn (delete-char 1) | 359 | (progn (delete-char 1) |
| 358 | (insert ? )) | 360 | (insert ? )) |
| 359 | (delete-region (point) (progn (forward-line 1) (point))) | 361 | (delete-region (point) (progn (forward-line 1) (point))) |
| 360 | (forward-char -1))))))) | 362 | (unless (bobp) |
| 363 | (forward-char -1)))))))) | ||
| 361 | 364 | ||
| 362 | (defun Buffer-menu-select () | 365 | (defun Buffer-menu-select () |
| 363 | "Select this line's buffer; also display buffers marked with `>'. | 366 | "Select this line's buffer; also display buffers marked with `>'. |
| @@ -551,6 +554,7 @@ For more information, see the function `buffer-menu'." | |||
| 551 | (let* ((old-buffer (current-buffer)) | 554 | (let* ((old-buffer (current-buffer)) |
| 552 | (standard-output standard-output) | 555 | (standard-output standard-output) |
| 553 | (mode-end (make-string (- Buffer-menu-mode-width 2) ? )) | 556 | (mode-end (make-string (- Buffer-menu-mode-width 2) ? )) |
| 557 | ;; Fixme: This is wrong for left-hand scroll-bars. | ||
| 554 | (header (concat "CRM " (Buffer-menu-buffer+size "Buffer" "Size") | 558 | (header (concat "CRM " (Buffer-menu-buffer+size "Buffer" "Size") |
| 555 | " Mode" mode-end "File\n")) | 559 | " Mode" mode-end "File\n")) |
| 556 | list desired-point name file mode) | 560 | list desired-point name file mode) |