[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#19865: tar-untar-buffer: should honor default-directory
From: |
Stefan Monnier |
Subject: |
bug#19865: tar-untar-buffer: should honor default-directory |
Date: |
Mon, 16 Feb 2015 18:40:51 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> It's the same as working in the shell:
That's also my impression.
> if you changed a directory, you need to go back before you operate on
> files, or risk operate on wrong files.
No: I changed directory specifically because I wanted to operate on
other files. And I often don't go back.
>> I agree that having to be careful in which buffer we are when we read
>> a given variable because it might be buffer-local is a source of
>> maintenance headaches, but we have that all over the place in Elisp,
>> and we don't really have any "better solution".
> I don't really see a problem here that needs a solution. A year from
> now no one will remember or understand why we use with-current-buffer
> in that place.
The comment explains why and the comment will still be there a year
from now.
The code takes a file name from one buffer and uses it in another
buffer: every time we do it, we have to be extra careful to make sure
the file name is absolute, and that's what the patch does.
Stefan
- bug#19865: tar-untar-buffer: should honor default-directory, (continued)
bug#19865: tar-untar-buffer: should honor default-directory, Stefan Monnier, 2015/02/14
- bug#19865: tar-untar-buffer: should honor default-directory, Eli Zaretskii, 2015/02/14
- bug#19865: tar-untar-buffer: should honor default-directory, Stefan Monnier, 2015/02/15
- bug#19865: tar-untar-buffer: should honor default-directory, Eli Zaretskii, 2015/02/16
- bug#19865: tar-untar-buffer: should honor default-directory, Stefan Monnier, 2015/02/16
- bug#19865: tar-untar-buffer: should honor default-directory, Eli Zaretskii, 2015/02/16
- bug#19865: tar-untar-buffer: should honor default-directory,
Stefan Monnier <=
- bug#19865: tar-untar-buffer: should honor default-directory, Eli Zaretskii, 2015/02/16
- bug#19865: tar-untar-buffer: should honor default-directory, Stefan Monnier, 2015/02/17
- bug#19865: tar-untar-buffer: should honor default-directory, Wolfgang Jenkner, 2015/02/17
- bug#19865: tar-untar-buffer: should honor default-directory, Eli Zaretskii, 2015/02/17
bug#19865: tar-untar-buffer: should honor default-directory, Ivan Shmakov, 2015/02/17
bug#19865: tar-untar-buffer: should honor default-directory, Eli Zaretskii, 2015/02/17
bug#19865: tar-untar-buffer: should honor default-directory, Ivan Shmakov, 2015/02/17
bug#19865: tar-untar-buffer: should honor default-directory, Ivan Shmakov, 2015/02/14