Lines Matching defs:buffer
38 ;; buffer matching what you're typing (using the same ordering scheme
50 ;; character thereafter will search for a buffer containing those
52 ;; first buffer containing "xyz". Once you press a non-self-inserting
55 ;; C-z after C-z toggles between the previously selected buffer and
58 ;; C-g aborts the search and returns you to your original buffer.
62 ;; you realize that isearchb is not powerful enough to find the buffer
65 ;; C-s and C-r move forward and backward in the buffer list. If
71 ;; one or two seconds. Then, if you switch to a buffer and wait for
98 (defvar isearchb-start-buffer nil)
99 (defvar isearchb-last-buffer nil)
102 (defun isearchb-stop (&optional return-to-buffer ignore-command)
105 (if return-to-buffer
106 (switch-to-buffer isearchb-start-buffer)
107 (setq isearchb-last-buffer isearchb-start-buffer))
119 `iswitchb-read-buffer'."
123 (buf (iswitchb-read-buffer prompt nil nil iswitchb-text t)))
127 (if (get-buffer buf)
128 ;; buffer exists, so view it and then exit
129 (iswitchb-visit-buffer buf)
130 ;; else buffer doesn't exist
131 (iswitchb-possible-new-buffer buf))))))
134 "Switch to buffer matching a substring, based on chars typed."
147 (buf (and match (get-buffer match))))
152 (switch-to-buffer buf)
208 the search has not yet begun, will toggle to the last buffer
215 (if isearchb-last-buffer
216 (switch-to-buffer isearchb-last-buffer)
217 (error "isearchb: There is no previous buffer to toggle to"))
222 isearchb-start-buffer (current-buffer))