GNU bug report logs -
#19865
tar-untar-buffer: should honor default-directory
Previous Next
Reported by: Ivan Shmakov <ivan <at> siamics.net>
Date: Sat, 14 Feb 2015 11:32:01 UTC
Severity: minor
Tags: fixed, patch
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Ivan Shmakov <ivan <at> siamics.net>
> Date: Sat, 14 Feb 2015 19:12:04 +0000
>
> >> And I’d still like to hear why you think that tar-untar-buffer
> >> /must/ use the value of default-directory local to a buffer /other/
> >> than the one the user called this command from.
>
> > Because it's simpler, and makes the code easier to follow.
>
> My former patch expands the code by a single line; my latter one
> adds two more for a comment (while removing one level of nesting
> from a fair chunk of the code at the same time.) How is that
> making it any harder to follow?
Length of code is only one factor, insignificant in this case. Subtle
dependencies between different parts of the code, as well as
overriding the default-directory value, is what complicates things in
this case.
> Besides, as I’ve already noted, it does make tar-untar-buffer
> more consistent with both the rest of tar-mode.el, /and/ the
> rest of Emacs. I thus believe that a single extra LoC is fully
> justified here.
Once again, we disagree, there's no doubt about that. There's no need
to reiterate things you already wrote, as they have been duly noted.
This bug report was last modified 5 years and 331 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.