[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/simple.el
From: |
Richard M. Stallman |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/simple.el |
Date: |
Thu, 18 Jul 2002 10:57:46 -0400 |
Index: emacs/lisp/simple.el
diff -c emacs/lisp/simple.el:1.558 emacs/lisp/simple.el:1.559
*** emacs/lisp/simple.el:1.558 Tue Jul 16 09:38:19 2002
--- emacs/lisp/simple.el Thu Jul 18 10:57:46 2002
***************
*** 3782,3795 ****
;; that can be found before POINT.
(defun choose-completion-delete-max-match (string)
(let ((opoint (point))
! (len (min (length string)
! (- (point) (point-min)))))
! (goto-char (- (point) (length string)))
(if completion-ignore-case
(setq string (downcase string)))
(while (and (> len 0)
! (let ((tail (buffer-substring (point)
! (+ (point) len))))
(if completion-ignore-case
(setq tail (downcase tail)))
(not (string= tail (substring string 0 len)))))
--- 3782,3798 ----
;; that can be found before POINT.
(defun choose-completion-delete-max-match (string)
(let ((opoint (point))
! len)
! ;; Try moving back by the length of the string.
! (goto-char (max (- (point) (length string))
! (minibuffer-prompt-end)))
! ;; See how far back we were actually able to move. That is the
! ;; upper bound on how much we can match and delete.
! (setq len (- opoint (point)))
(if completion-ignore-case
(setq string (downcase string)))
(while (and (> len 0)
! (let ((tail (buffer-substring (point) opoint)))
(if completion-ignore-case
(setq tail (downcase tail)))
(not (string= tail (substring string 0 len)))))
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Dave Love, 2002/07/03
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Per Abrahamsen, 2002/07/04
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Eli Zaretskii, 2002/07/08
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Richard M. Stallman, 2002/07/16
- [Emacs-diffs] Changes to emacs/lisp/simple.el,
Richard M. Stallman <=
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Richard M. Stallman, 2002/07/23
- [Emacs-diffs] Changes to emacs/lisp/simple.el, Richard M. Stallman, 2002/07/28