Retrieve ALIST entry corresponding to BUFFER-NAME. ACTION is the action argument passed to `display-buffer'.