Re: XEmacs - how to automate mark-search-cut

2007-05-27 Thread Tyler Smith
On 2007-05-27, Russell L. Harris <[EMAIL PROTECTED]> wrote: > > The code runs in Emacs. If I comment out the line > "(transient-mark-mode -1)", it also runs in XEmacs. But in both > cases, it aborts with an "unbalanced parenthesis" error after finding > about ten footnotes (about 25 percent of

Re: XEmacs - how to automate mark-search-cut

2007-05-27 Thread Mumia W..
On 05/27/2007 12:30 AM, Russell L. Harris wrote: On 2007-05-26, Russell L. Harris <[EMAIL PROTECTED]> wrote: I need to extract footnotes from a very long LaTeX document. I would like to start with a copy of the document, then delete from the copy all text which is not a footnote. [...] Next,

Re: XEmacs - how to automate mark-search-cut

2007-05-26 Thread Russell L. Harris
* Tyler Smith <[EMAIL PROTECTED]> [070527 00:00]: > Here's the code, hope it helps! > > (defun extract-footnotes () > "Copy all footnotes to a separate *FOOTNOTES* buffer" > (interactive) > (let ((active-buffer (current-buffer))) > (save-excursion > (if (memq (get-buffer "*FOOTNOTE

Re: XEmacs - how to automate mark-search-cut

2007-05-26 Thread Russell L. Harris
* Tyler Smith <[EMAIL PROTECTED]> [070527 00:00]: ... > One note - I had to turn off transient-mark-mode to get this to > work. I don't know why. If you like to use transient mark mode you'll > have to turn it back on afterwards. > > Here's the code, hope it helps! > > Tyler > > (defun extract-f

Re: XEmacs - how to automate mark-search-cut

2007-05-26 Thread Russell L. Harris
* Tyler Smith <[EMAIL PROTECTED]> [070527 00:00]: > On 2007-05-26, Tyler Smith <[EMAIL PROTECTED]> wrote: > > On 2007-05-26, Russell L. Harris <[EMAIL PROTECTED]> wrote: > >> I need to extract footnotes from a very long LaTeX document. I would > >> like to start with a copy of the document, then d

Re: XEmacs - how to automate mark-search-cut

2007-05-26 Thread Tyler Smith
On 2007-05-26, Tyler Smith <[EMAIL PROTECTED]> wrote: > On 2007-05-26, Russell L. Harris <[EMAIL PROTECTED]> wrote: >> I need to extract footnotes from a very long LaTeX document. I would >> like to start with a copy of the document, then delete from the copy >> all text which is not a footnote. >

Re: XEmacs - how to automate mark-search-cut

2007-05-26 Thread Tyler Smith
On 2007-05-26, Russell L. Harris <[EMAIL PROTECTED]> wrote: > I use XEmacs as my editor. > > I need to extract footnotes from a very long LaTeX document. I would > like to start with a copy of the document, then delete from the copy > all text which is not a footnote. > > Is there a way to: > >

XEmacs - how to automate mark-search-cut

2007-05-26 Thread Russell L. Harris
I use XEmacs as my editor. I need to extract footnotes from a very long LaTeX document. I would like to start with a copy of the document, then delete from the copy all text which is not a footnote. Is there a way to: (1) set the mark (2) search forward for the next instance of the s