bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Patch to iswitchb.el from 21.1


From: Christopher S. Kush
Subject: Re: Patch to iswitchb.el from 21.1
Date: 14 Nov 2001 14:07:10 -0700
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.1

Okay, second try, this time using "diff -c".

-- 
   "One does not wait for (X)Emacs to load,
    one jumps up and down with excitement."
                   -- Henrik Enberg

***************
*** 271,276 ****
--- 271,284 ----
    :type '(repeat regexp)
    :group 'iswitchb)
  
+ (defcustom iswitchb-cannot-complete-hook 'iswitchb-completion-help
+   "*Hook run when `iswitchb-complete' can't complete any more.
+ The most useful values are `iswitchb-completion-help', which pops up a
+ window with completion alternatives, or `iswitchb-next-match' or
+ `iswitchb-prev-match', which cycle the buffer list."
+   :type 'hook
+   :group 'iswitchb)
+ 
  ;;; Examples for setting the value of iswitchb-buffer-ignore
  ;(defun iswitchb-ignore-c-mode (name)
  ;  "Ignore all c mode buffers -- example function for iswitchb."
***************
*** 632,638 ****
    (interactive)
    (let (res)
      (cond ((not  iswitchb-matches)
!          (iswitchb-completion-help))
          
          ((= 1 (length iswitchb-matches))
           ;; only one choice, so select it.
--- 640,646 ----
    (interactive)
    (let (res)
      (cond ((not  iswitchb-matches)
!          (run-hooks 'iswitchb-cannot-complete-hook))
          
          ((= 1 (length iswitchb-matches))
           ;; only one choice, so select it.
***************
*** 649,655 ****
                 (delete-region (minibuffer-prompt-end) (point))
                 (insert  res))
             ;; else nothing to complete
!            (iswitchb-completion-help)
             )))))
  
  ;;; TOGGLE FUNCTIONS
--- 657,663 ----
                 (delete-region (minibuffer-prompt-end) (point))
                 (insert  res))
             ;; else nothing to complete
!              (run-hooks 'iswitchb-cannot-complete-hook)
             )))))
  
  ;;; TOGGLE FUNCTIONS



reply via email to

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