If frame named “xyz” exists, then switch to that frame
Could someone please give me hand with a function that detects whether a frame named "xyz" exists, and if so, then switch to that frame. I'm using frame-cmds to give each frame a user-defined name: http://www.emacswiki.org/emacs/frame-cmds.el I would imagine it is similar to a buffer, but I'm not finding anything on Google. Here is the buffer function: (defun buffer-exists (bufname) (not (eq nil (get-buffer bufname)))) (defun lawlist-switch-to-buffer-xyz () (interactive) (if (buffer-exists "xyz") (switch-to-buffer "xyz") )) Here is a semi-related post: https://superuser.com/questions/358037