Function: idlwave-replace-buffer-routine-info
idlwave-replace-buffer-routine-info is a byte-compiled function
defined in idlwave.el.gz.
Signature
(idlwave-replace-buffer-routine-info FILE NEW)
Documentation
Cut the part from FILE out of idlwave-buffer-routines and add NEW.
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/idlwave.el.gz
(defun idlwave-replace-buffer-routine-info (file new)
"Cut the part from FILE out of `idlwave-buffer-routines' and add NEW."
(let ((list idlwave-buffer-routines)
found)
(while list
;; The following test uses eq to make sure it works correctly
;; when two buffers visit the same file. Then the file names
;; will be equal, but not eq.
(if (eq (idlwave-routine-source-file (nth 3 (car list))) file)
(progn
(setcar list nil)
(setq found t))
(if found
;; End of that section reached. Jump.
(setq list nil)))
(setq list (cdr list)))
(setq idlwave-buffer-routines
(append new (delq nil idlwave-buffer-routines)))))