comparison lisp/subr.el @ 14515:b35134a0e47a

Added get-buffer-window-list.
author Simon Marshall <simon@gnu.org>
date Thu, 08 Feb 1996 10:04:55 +0000
parents ab021899d604
children 8b88e5c2a6d5
comparison
equal deleted inserted replaced
14514:2f15f316326d 14515:b35134a0e47a
695 "Non-nil if the visited file is a binary file. 695 "Non-nil if the visited file is a binary file.
696 This variable is meaningful on MS-DOG and Windows NT. 696 This variable is meaningful on MS-DOG and Windows NT.
697 On those systems, it is automatically local in every buffer. 697 On those systems, it is automatically local in every buffer.
698 On other systems, this variable is normally always nil.") 698 On other systems, this variable is normally always nil.")
699 699
700 ;; This should probably be written in C (i.e., without using `walk-windows').
701 (defun get-buffer-window-list (buffer &optional frame)
702 "Return windows currently displaying BUFFER, or nil if none.
703 See `get-buffer-window' for the meaning of FRAME."
704 (let (windows)
705 (walk-windows (function (lambda (window)
706 (if (eq (window-buffer window) buffer)
707 (setq windows (cons window windows)))))
708 nil frame)
709 windows))
710
700 (defun ignore (&rest ignore) 711 (defun ignore (&rest ignore)
701 "Do nothing and return nil. 712 "Do nothing and return nil.
702 This function accepts any number of arguments, but ignores them." 713 This function accepts any number of arguments, but ignores them."
703 (interactive) 714 (interactive)
704 nil) 715 nil)