help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: yanking in outline mode without expanding?


From: Thomas F. Burdick
Subject: Re: yanking in outline mode without expanding?
Date: 22 Dec 2003 11:03:36 -0800

Peter Seibel <peter@javamonkey.com> writes:

> I've been using outline mode in:
> 
>   GNU Emacs 21.3.1 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
> 2003-07-17 on xeon
> 
> When I have my outline collapsed and kill a section and then yank it
> back, it always insterts the text fully expanded. Is there some simple
> way to change this behavior--I'd like it to stay collapsed just the
> way it was when I killed it.

It looks like outline mode uses overlays, which aren't a part of the
text itself, so aren't copied when you kill it.  You could advise the
kill/yank functions so that in outline mode they stuff the appropriate
overlay information into text properties on kill, and the reverse on
yank.

-- 
           /|_     .-----------------------.                        
         ,'  .\  / | No to Imperialist war |                        
     ,--'    _,'   | Wage class war!       |                        
    /       /      `-----------------------'                        
   (   -.  |                               
   |     ) |                               
  (`-.  '--.)                              
   `. )----'                               


reply via email to

[Prev in Thread] Current Thread [Next in Thread]