jed-users mailing list

[2014 Date Index] [2014 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

Re: [jed-users] yank.sl


On Mon, Sep 29, 2014 at 09:09:44AM -0400, John E. Davis wrote:
> Peter D. Gray <pdg@xxxxxxxxxx> wrote:
> > What I want is a function which allows me to wander around a file
> > cutting text, then copy all the yanked text back at a single point.
> 
> Have you considered using a macro?  Here is how I would approach this:
>

Hi John, this seems like a very complex operation for what you might think
was a pretty simple operation but I guess it would work fine.

I guess one thing I am asking is why the variables in yankpop.sl are private
which prevents users from adding functionality to that module?

If they were public, or even just queryable from outside
the module, life would be sweet.

Regards,
pdg

>   1. Split the window such that two windows appear on the display--
>      one containing the file, and the other with the *scratch* buffer.
> 
>   2. In the buffer with the file, move to the start of the text that
>      you want to cut and mark that text.
> 
>   3. Start the macro definition.  This is on the Edit->Key Macros
>      menu, or `Ctrl-X (' in emacs mode.
> 
>   4. Cut the text.
> 
>   5. Change to the other window containing the *scratch* buffer.
> 
>   6. Paste the text that was cut into the scratch buffer.
> 
>   7. Move back to the buffer containing the file.
> 
>   8. Stop the macro definition using the macro-menu of `Ctrl-X )' if
>      using emacs emulation.
> 
>   9. Now move around the buffer and mark some text.  Execute the macro
>      via menu or `Ctrl-X e' if using emacs emulation.
> 
_______________________________________________
For list information, visit <http://jedsoft.org/jed/mailinglists.html>.


[2014 date index] [2014 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]