emacs-devel
[Top][All Lists]
Advanced

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

Re: Feature request : Tab-completion for 'shell-comand'


From: Stefan Monnier
Subject: Re: Feature request : Tab-completion for 'shell-comand'
Date: Thu, 13 Mar 2008 23:21:27 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>>> `(remove-overlays)' won't remove it because it can't find this overlay
>>>> in (overlays-in (point-min) (point-max)).
>> 
>> 
>>> That seems like a problem in itself.
>> 
>> 
>> Indeed.  If (1+ (point-max)) works, then a solution is to let
>> `remove-overlays' default to (1+ (point-max)) rather than just
>> (point-max).

> I suppose this would make

> (progn
>   (make-overlay 5 6)
>   (narrow-to-region 2 5)
>   (remove-overlays)
>   (widen))

Good point.  I guess the (1+ (point-max)) should only be used when
(point-max) is the really the end of the buffer, since otherwise it's
not clear whether the overlays at (point-max) are inside or outside the
narrowing (and since it's not clear, it's better not to remove them).


        Stefan




reply via email to

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