Re: assoc-delete-all

2005-07-04 Thread Juri Linkov
>> with this function >> >> (assoc-delete-all "." (assoc-delete-all ".." file-alist1)) >> >> Even better would be to allow a test function like in assoc-default: >> >> (assoc-delete-all nil file-alist1 (lambda (key) (string-match &qu

Re: assoc-delete-all

2005-07-04 Thread Juri Linkov
> Is the following patch not right? > > *** dired-aux.el 03 Jul 2005 12:12:32 -0400 1.133 > --- dired-aux.el 04 Jul 2005 15:01:37 -0400 > *** > *** 136,141 > --- 136,143 > (dired-file-set-difference > file-a

Re: assoc-delete-all

2005-07-04 Thread Richard M. Stallman
Well, assoc-delete-all will help to fix the bug in dired-compare-directories. Sometimes the number of marked files it reports is wrong. That's because it compares the file attributes of directories "." and "..", but dired mark-functions don't mark

Re: assoc-delete-all

2005-07-04 Thread Juanma Barranquero
On 7/4/05, Juri Linkov <[EMAIL PROTECTED]> wrote: > with this function > > (assoc-delete-all "." (assoc-delete-all ".." file-alist1)) > > Even better would be to allow a test function like in assoc-default: > > (assoc-delete-all nil file-a

Re: assoc-delete-all

2005-07-03 Thread Juri Linkov
> There is an assq-delete-all, but I am missing assoc-delete-all ... or, > > We don't want to add assoc-delete-all merely for symmetry. > It would have to be needed in practice. Well, assoc-delete-all will help to fix the bug in dired-compare-directories. Sometimes the

Re: assoc-delete-all

2005-07-03 Thread Richard M. Stallman
There is an assq-delete-all, but I am missing assoc-delete-all ... or, We don't want to add assoc-delete-all merely for symmetry. It would have to be needed in practice. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gn

Re: assoc-delete-all

2005-07-03 Thread Lennart Borgman
Lute Kamstra wrote: Lennart Borgman <[EMAIL PROTECTED]> writes: There is an assq-delete-all, but I am missing assoc-delete-all I guess nobody needed it before. Do you want to use it? Thanks, but after reading Juanma's answer and thinking about it I realize that I do

Re: assoc-delete-all

2005-07-03 Thread Lennart Borgman
Lute Kamstra wrote: Lennart Borgman <[EMAIL PROTECTED]> writes: There is an assq-delete-all, but I am missing assoc-delete-all I guess nobody needed it before. Do you want to use it? Thanks, but after reading Juanma's answer and thinking about it I realize that I do

Re: assoc-delete-all

2005-07-03 Thread Lute Kamstra
Lennart Borgman <[EMAIL PROTECTED]> writes: > There is an assq-delete-all, but I am missing assoc-delete-all I guess nobody needed it before. Do you want to use it? Lute. ___ Emacs-devel mailing list Emacs-devel@gnu.org http://list

Re: assoc-delete-all

2005-07-03 Thread Lennart Borgman
Juanma Barranquero wrote: ... will do what you want, but it will still share conses with the original list. Other implementations can use `copy-tree' or `copy-alist', but really, there's no one answer that is good for every situation. Kent M. Pitman did a wonderful article about this issue (he

Re: assoc-delete-all

2005-07-02 Thread Juanma Barranquero
> There is an assq-delete-all, but I am missing assoc-delete-all ... or, > am I missing something (else)? If I had to guess, I'd say that is because `assq-delete-all' has only one reasonable behavior, i.e., as it modifies the structure, you usually are going to do (setq alist

assoc-delete-all

2005-07-02 Thread Lennart Borgman
There is an assq-delete-all, but I am missing assoc-delete-all ... or, am I missing something (else)? ___ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel