From: Richard Stallman <rms@gnu.org>
Subject: [billl@neurosim.downstate.edu: finding clone]
Date: Sat, 29 Apr 2006 15:09:30 -0400 [thread overview]
Message-ID: <E1FZuos-0000vI-5f@fencepost.gnu.org> (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 -------
next reply other threads:[~2006-04-29 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-29 19:09 Richard Stallman [this message]
2006-05-01 21:28 ` [billl@neurosim.downstate.edu: finding clone] Stuart D. Herring
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1FZuos-0000vI-5f@fencepost.gnu.org \
--to=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.