GNU bug report logs - #24409
25.1.1; dired-jump: Interactive call w/ prefix arg move to wrong file line

Previous Next

Package: emacs;

Reported by: Tino Calancha <tino.calancha <at> gmail.com>

Date: Sun, 11 Sep 2016 04:35:01 UTC

Severity: minor

Found in version 25.1.1

Done: Tino Calancha <tino.calancha <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: Tino Calancha <tino.calancha <at> gmail.com>
Cc: 24409 <at> debbugs.gnu.org
Subject: bug#24409: 25.1.1; dired-jump: Interactive call w/ prefix arg move to wrong file line
Date: Sun, 11 Sep 2016 00:42:42 -0400
On Sun, Sep 11, 2016 at 12:33 AM, Tino Calancha <tino.calancha <at> gmail.com> wrote:
>    (interactive
>     (list nil (and current-prefix-arg
> -                  (read-file-name "Jump to Dired file: "))))
> +                  (expand-file-name
> +                   (read-file-name "Jump to Dired file: ")))))
>    (if (bound-and-true-p tar-subfile-mode)
>        (switch-to-buffer tar-superior-buffer)
> -    (let* ((file (or file-name buffer-file-name))
> +    (let* ((file (or (and file-name (expand-file-name file-name))
> +                     buffer-file-name))

Doesn't the second `expand-file-name` call make the first one redundant?




This bug report was last modified 8 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.