diff options
| author | Dave Love | 1999-08-16 11:29:58 +0000 |
|---|---|---|
| committer | Dave Love | 1999-08-16 11:29:58 +0000 |
| commit | b9b37d2bf5149a02eb17eca20c4780fe53a13c4a (patch) | |
| tree | 3fa15d355ad103c63611af6a24bc16e2e778e459 | |
| parent | 1a9461d069cbf51a16b453f283b1367e05c875b9 (diff) | |
| download | emacs-b9b37d2bf5149a02eb17eca20c4780fe53a13c4a.tar.gz emacs-b9b37d2bf5149a02eb17eca20c4780fe53a13c4a.zip | |
(msb--choose-file-menu): Use `completion-ignore-case' in name
comparisons.
| -rw-r--r-- | lisp/msb.el | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/lisp/msb.el b/lisp/msb.el index cb1706fdf71..c1210fd676b 100644 --- a/lisp/msb.el +++ b/lisp/msb.el | |||
| @@ -597,8 +597,11 @@ If the argument is left out or nil, then the current buffer is considered." | |||
| 597 | (while (and tmp-rest | 597 | (while (and tmp-rest |
| 598 | (<= (length buffers) max-clumped-together) | 598 | (<= (length buffers) max-clumped-together) |
| 599 | (>= (length (car item)) (length path)) | 599 | (>= (length (car item)) (length path)) |
| 600 | ;; `completion-ignore-case' seems to default to t | ||
| 601 | ;; on the systems with case-insensitive file names. | ||
| 600 | (eq t (compare-strings path 0 nil | 602 | (eq t (compare-strings path 0 nil |
| 601 | (car item) 0 (length path)))) | 603 | (car item) 0 (length path) |
| 604 | completion-ignore-case))) | ||
| 602 | (setq found-p t) | 605 | (setq found-p t) |
| 603 | (setq buffers (append buffers (cdr item))) ;nconc is faster than append | 606 | (setq buffers (append buffers (cdr item))) ;nconc is faster than append |
| 604 | (setq tmp-rest (cdr tmp-rest) | 607 | (setq tmp-rest (cdr tmp-rest) |
| @@ -636,13 +639,14 @@ If the argument is left out or nil, then the current buffer is considered." | |||
| 636 | (setq last-path path)) | 639 | (setq last-path path)) |
| 637 | (when (and last-path | 640 | (when (and last-path |
| 638 | (or (and (>= (length path) (length last-path)) | 641 | (or (and (>= (length path) (length last-path)) |
| 639 | (eq t (compare-strings last-path 0 nil | 642 | (eq t (compare-strings |
| 640 | path 0 (length | 643 | last-path 0 nil path 0 |
| 641 | last-path)))) | 644 | (length last-path) |
| 645 | completion-ignore-case))) | ||
| 642 | (and (< (length path) (length last-path)) | 646 | (and (< (length path) (length last-path)) |
| 643 | (eq t (compare-strings path 0 nil | 647 | (eq t (compare-strings |
| 644 | last-path 0 (length | 648 | path 0 nil last-path 0 (length path) |
| 645 | path)))))) | 649 | completion-ignore-case))))) |
| 646 | ;; We have reached the same place in the file hierarchy as | 650 | ;; We have reached the same place in the file hierarchy as |
| 647 | ;; the last result, so we should quit at this point and | 651 | ;; the last result, so we should quit at this point and |
| 648 | ;; take what we have as result. | 652 | ;; take what we have as result. |