[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dired-do-rename on "." and ".."
From: |
Luc Teirlinck |
Subject: |
Re: dired-do-rename on "." and ".." |
Date: |
Sat, 7 Jun 2003 16:04:37 -0500 (CDT) |
Actually, I noticed that dired-get-filename returns "." or "..",
even if the buffer lists them as "./" or "../". So I would suggest the
following slightly altered version of my old diff instead:
===File ~/dired-newdiff=====================================
cd /usr/local/share/emacs/21.3.50/lisp/
diff -c /usr/local/share/emacs/21.3.50/lisp/dired.old.el
/usr/local/share/emacs/21.3.50/lisp/dired.el
*** /usr/local/share/emacs/21.3.50/lisp/dired.old.el Thu Jun 5 20:04:52 2003
--- /usr/local/share/emacs/21.3.50/lisp/dired.el Sat Jun 7 15:50:47 2003
***************
*** 1490,1498 ****
((eq localp 'verbatim)
file)
((and (not no-error-if-not-filep)
! (save-excursion
! (beginning-of-line)
! (looking-at dired-re-dir)))
(error "Cannot operate on `.' or `..'"))
((and (eq localp 'no-dir) already-absolute)
(file-name-nondirectory file))
--- 1490,1496 ----
((eq localp 'verbatim)
file)
((and (not no-error-if-not-filep)
! (member (dired-get-filename t t) '("." "..")))
(error "Cannot operate on `.' or `..'"))
((and (eq localp 'no-dir) already-absolute)
(file-name-nondirectory file))
Diff finished at Sat Jun 7 15:54:16
============================================================
- dired-do-rename on "." and "..", Markus Rost, 2003/06/01
- Re: dired-do-rename on "." and "..", Richard Stallman, 2003/06/03
- Re: dired-do-rename on "." and "..", Markus Rost, 2003/06/03
- Re: dired-do-rename on "." and "..", Richard Stallman, 2003/06/04
- Re: dired-do-rename on "." and "..", Markus Rost, 2003/06/04
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/05
- Re: dired-do-rename on "." and "..", Richard Stallman, 2003/06/07
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/07
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/07
- Re: dired-do-rename on "." and "..",
Luc Teirlinck <=
- Re: dired-do-rename on "." and "..", Markus Rost, 2003/06/07
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/07
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/07
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/07
- Re: dired-do-rename on "." and "..", Markus Rost, 2003/06/07
- Re: dired-do-rename on "." and "..", Richard Stallman, 2003/06/09
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/09
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/09
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/09
- Re: dired-do-rename on "." and "..", Luc Teirlinck, 2003/06/09