Hongyi Zhao <[email protected]> writes: >> (delq nil (mapcar (lambda (buf) >> (with-current-buffer buf >> (when (eq major-mode 'LaTeX-mode) >> (cons (buffer-file-name buf) >> (TeX-master-file "pdf"))))) >> (buffer-list))) >> nil > > This is just out of the curiosity about the behavior of the `delq' > built-in function used above. According to the built-in document:
(delq nil '(nil 1 nil)) ;=> (1) (delq nil '(nil nil nil)) ;=> nil, aka, the empty list () (eq nil '()) ;=> t HTH, Tassilo
