all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [billl@neurosim.downstate.edu: finding clone]
@ 2006-04-29 19:09 Richard Stallman
  2006-05-01 21:28 ` Stuart D. Herring
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Stallman @ 2006-04-29 19:09 UTC (permalink / raw)


What code does "the buffer clone package" refer to?

------- Start of forwarded message -------
Date: Fri, 28 Apr 2006 09:59:53 -0400
From: Bill Lytton <billl@neurosim.downstate.edu>
To: bug-gnu-emacs@gnu.org
Subject: finding clone
Reply-To: billl@neurosim.downstate.edu
X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=failed 
	version=3.0.4


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"))))


_______________________________________________
bug-gnu-emacs mailing list
bug-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-01 21:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-29 19:09 [billl@neurosim.downstate.edu: finding clone] Richard Stallman
2006-05-01 21:28 ` Stuart D. Herring

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.