* finding clone
@ 2006-04-28 13:59 Bill Lytton
0 siblings, 0 replies; only message in thread
From: Bill Lytton @ 2006-04-28 13:59 UTC (permalink / raw)
I imagine that you guys are already working on augmenting the buffer clone
package
I would suggest having a routine such as the following that will allow you to find
an existing clone once it's been lost in a pile of buffers
(defun find-clone ()
"Find another buffer looking at same file (made from clone-indirect-buffer)"
(interactive)
(let ((blist (cdr (buffer-list))) ;; leave off current buffer
(f (buffer-file-name)) f2 done bl)
(while (and blist (not done))
(setq bl (car blist) f2 (buffer-file-name bl) blist (cdr blist))
(and (string= f f2)(setq done t)))
(if done (pop-to-buffer bl)
(message "No clone found"))))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-04-28 13:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-28 13:59 finding clone Bill Lytton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.