emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/emacs-lisp/crm.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/emacs-lisp/crm.el
Date: Thu, 29 Nov 2001 20:13:59 -0500

Index: emacs/lisp/emacs-lisp/crm.el
diff -c emacs/lisp/emacs-lisp/crm.el:1.2 emacs/lisp/emacs-lisp/crm.el:1.3
*** emacs/lisp/emacs-lisp/crm.el:1.2    Thu Apr 27 15:00:09 2000
--- emacs/lisp/emacs-lisp/crm.el        Thu Nov 29 20:13:59 2001
***************
*** 41,47 ****
  ;; `crm-default-separator' (comma).  The separator character may be
  ;; changed by modifying the value of `crm-separator'.
  
! ;; Continguous strings of non-separator-characters are referred to as
  ;; 'elements'.  In the aforementioned example, the elements are:
  ;; 'alice', 'bob', and 'eve'.
  
--- 41,47 ----
  ;; `crm-default-separator' (comma).  The separator character may be
  ;; changed by modifying the value of `crm-separator'.
  
! ;; Contiguous strings of non-separator-characters are referred to as
  ;; 'elements'.  In the aforementioned example, the elements are:
  ;; 'alice', 'bob', and 'eve'.
  
***************
*** 529,535 ****
  The only difference is that TAB is bound to `crm-minibuffer-complete' in
  the inheriting keymap.
  
! If REQUIRE-MACTH is non-nil, the keymap `crm-local-must-match-map' is used.
  This keymap inherits from the keymap named `minibuffer-local-must-match-map'.
  The inheriting keymap binds RET to `crm-minibuffer-complete-and-exit'
  and TAB to `crm-minibuffer-complete'."
--- 529,535 ----
  The only difference is that TAB is bound to `crm-minibuffer-complete' in
  the inheriting keymap.
  
! If REQUIRE-MATCH is non-nil, the keymap `crm-local-must-match-map' is used.
  This keymap inherits from the keymap named `minibuffer-local-must-match-map'.
  The inheriting keymap binds RET to `crm-minibuffer-complete-and-exit'
  and TAB to `crm-minibuffer-complete'."
***************
*** 574,580 ****
  `crm-default-separator' (comma).  The separator character may be
  changed by modifying the value of `crm-separator'.
  
! Continguous strings of non-separator-characters are referred to as
  'elements'.  In the aforementioned example, the elements are: 'alice',
  'bob', and 'eve'.
  
--- 574,580 ----
  `crm-default-separator' (comma).  The separator character may be
  changed by modifying the value of `crm-separator'.
  
! Contiguous strings of non-separator-characters are referred to as
  'elements'.  In the aforementioned example, the elements are: 'alice',
  'bob', and 'eve'.
  
***************
*** 590,598 ****
    (let ((minibuffer-completion-table (function crm-collection-fn))
        (minibuffer-completion-predicate predicate)
        ;; see completing_read in src/minibuf.c
!       (minibuffer-completion-confirm (if (eq require-match t)
!                                          nil
!                                        t))
        (crm-completion-table table)
        crm-last-exact-completion
        crm-current-element
--- 590,597 ----
    (let ((minibuffer-completion-table (function crm-collection-fn))
        (minibuffer-completion-predicate predicate)
        ;; see completing_read in src/minibuf.c
!       (minibuffer-completion-confirm
!        (unless (eq require-match t) require-match))
        (crm-completion-table table)
        crm-last-exact-completion
        crm-current-element
***************
*** 600,629 ****
        crm-right-of-element
        crm-beginning-of-element
        crm-end-of-element
!       map)
!     (if require-match
!       ;; use `crm-local-must-match-map'
!       (setq map crm-local-must-match-map)
!       ;; use `minibuffer-local-completion-map'
!       (setq map minibuffer-local-completion-map))
      (split-string (read-from-minibuffer
                   prompt initial-input map
                   nil hist def inherit-input-method)
                  crm-separator)))
  
  ;; testing and debugging
! ;;; (defun crm-init-test-environ ()
! ;;;   "Set up some variables for testing."
! ;;;   (interactive)
! ;;;   (setq my-prompt "Prompt: ")
! ;;;   (setq my-table
! ;;;   '(("hi") ("there") ("man") ("may") ("mouth") ("ma")
! ;;;     ("a") ("ab") ("abc") ("abd") ("abf") ("zab") ("acb")
! ;;;     ("da") ("dab") ("dabc") ("dabd") ("dabf") ("dzab") ("dacb")
! ;;;     ("fda") ("fdab") ("fdabc") ("fdabd") ("fdabf") ("fdzab") ("fdacb")
! ;;;     ("gda") ("gdab") ("gdabc") ("gdabd") ("gdabf") ("gdzab") ("gdacb")
! ;;;     ))
! ;;;   (setq my-separator ","))
  
  ;(completing-read-multiple my-prompt my-table)
  ;(completing-read-multiple my-prompt my-table nil t)
--- 599,625 ----
        crm-right-of-element
        crm-beginning-of-element
        crm-end-of-element
!       (map (if require-match
!                crm-local-must-match-map
!              crm-local-completion-map)))
      (split-string (read-from-minibuffer
                   prompt initial-input map
                   nil hist def inherit-input-method)
                  crm-separator)))
  
  ;; testing and debugging
! ;; (defun crm-init-test-environ ()
! ;;   "Set up some variables for testing."
! ;;   (interactive)
! ;;   (setq my-prompt "Prompt: ")
! ;;   (setq my-table
! ;;    '(("hi") ("there") ("man") ("may") ("mouth") ("ma")
! ;;      ("a") ("ab") ("abc") ("abd") ("abf") ("zab") ("acb")
! ;;      ("da") ("dab") ("dabc") ("dabd") ("dabf") ("dzab") ("dacb")
! ;;      ("fda") ("fdab") ("fdabc") ("fdabd") ("fdabf") ("fdzab") ("fdacb")
! ;;      ("gda") ("gdab") ("gdabc") ("gdabd") ("gdabf") ("gdzab") ("gdacb")
! ;;      ))
! ;;   (setq my-separator ","))
  
  ;(completing-read-multiple my-prompt my-table)
  ;(completing-read-multiple my-prompt my-table nil t)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]