emacs-devel
[Top][All Lists]
Advanced

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

Re: wdired.el 1.7 --- Rename files editing their names in dired buffers


From: Juan Leon Lahoz Garcia
Subject: Re: wdired.el 1.7 --- Rename files editing their names in dired buffers
Date: Wed, 07 Nov 2001 09:44:27 -0500

>>>>> "Stefan" == Stefan Monnier <monnier+gnu/address@hidden> writes:

    >> Juan Leon Lahoz Garcia <address@hidden> writes: >
    >> Maybe a option could be to add certain property to the
    >> beginning of > each file with a filename in it.
    >> 
    >>> Or just put a property with the old filename covering each
    >>> filename.
    >>> 
    >>> e.g., (put-text-property FN-START FN-END 'old-file-name
    >>> OLD-FILE-NAME)
    >>> 
    >>> Since new insertions etc., will inherit this property (you'll
    >>> have to fiddle to get the edges working correctly),

    Stefan> Are you sure ? self-insert-command will inherit fine, but
    Stefan> I'm less sure whether query-replace will properly inherit
    Stefan> the property.

A solution to this is to put this property to both to the read-only
space before the filename and newline or space after it. It solves
also the "user deleting the whole filename at some point" situation.

--
Leon




reply via email to

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