comparison lisp/dabbrev.el @ 35921:d74e2e8f6c1f

(dabbrev-ignored-buffer-regexps): Renamed from dabbrev-ignored-regexps.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 06 Feb 2001 12:04:19 +0000
parents 4eb554667665
children ed8e6a4af6ef
comparison
equal deleted inserted replaced
35920:2be00a14630b 35921:d74e2e8f6c1f
199 :type 'boolean 199 :type 'boolean
200 :group 'dabbrev) 200 :group 'dabbrev)
201 201
202 (defcustom dabbrev-ignored-buffer-names '("*Messages*" "*Buffer List*") 202 (defcustom dabbrev-ignored-buffer-names '("*Messages*" "*Buffer List*")
203 "*List of buffer names that dabbrev should not check. 203 "*List of buffer names that dabbrev should not check.
204 See also `dabbrev-ignored-regexps'." 204 See also `dabbrev-ignored-buffer-regexps'."
205 :type '(repeat (string :tag "Buffer name")) 205 :type '(repeat (string :tag "Buffer name"))
206 :group 'dabbrev 206 :group 'dabbrev
207 :version "20.3") 207 :version "20.3")
208 208
209 (defcustom dabbrev-ignored-regexps nil 209 (defcustom dabbrev-ignored-buffer-regexps nil
210 "*List of regexps matching names of buffers that dabbrev should not check. 210 "*List of regexps matching names of buffers that dabbrev should not check.
211 See also `dabbrev-ignored-buffer-names'." 211 See also `dabbrev-ignored-buffer-names'."
212 :type '(repeat regexp) 212 :type '(repeat regexp)
213 :group 'dabbrev 213 :group 'dabbrev
214 :version "21.1") 214 :version "21.1")
762 buffer (buffer-list) 762 buffer (buffer-list)
763 (let ((bn (buffer-name buffer))) 763 (let ((bn (buffer-name buffer)))
764 (and (not (member bn dabbrev-ignored-buffer-names)) 764 (and (not (member bn dabbrev-ignored-buffer-names))
765 (not (memq buffer dabbrev--friend-buffer-list)) 765 (not (memq buffer dabbrev--friend-buffer-list))
766 (not 766 (not
767 (let ((tail dabbrev-ignored-regexps) 767 (let ((tail dabbrev-ignored-buffer-regexps)
768 (match nil)) 768 (match nil))
769 (while (and tail (not match)) 769 (while (and tail (not match))
770 (setq match (string-match (car tail) bn) 770 (setq match (string-match (car tail) bn)
771 tail (cdr tail))) 771 tail (cdr tail)))
772 match))))) 772 match)))))