From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs 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 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1473569005 27841 195.159.176.226 (11 Sep 2016 04:43:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 11 Sep 2016 04:43:25 +0000 (UTC) Cc: 24409@debbugs.gnu.org To: Tino Calancha Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Sep 11 06:43:20 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biwbr-000693-Ht for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 06:43:15 +0200 Original-Received: from localhost ([::1]:36518 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biwbp-0004w7-9C for geb-bug-gnu-emacs@m.gmane.org; Sun, 11 Sep 2016 00:43:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33586) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biwbj-0004vz-Gd for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 00:43:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biwbe-0004xG-Jk for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 00:43:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58179) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biwbe-0004xC-Gm for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 00:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1biwbe-0007h6-8U for bug-gnu-emacs@gnu.org; Sun, 11 Sep 2016 00:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 11 Sep 2016 04:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24409 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24409-submit@debbugs.gnu.org id=B24409.147356897029559 (code B ref 24409); Sun, 11 Sep 2016 04:43:02 +0000 Original-Received: (at 24409) by debbugs.gnu.org; 11 Sep 2016 04:42:50 +0000 Original-Received: from localhost ([127.0.0.1]:55891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biwbS-0007gh-KA for submit@debbugs.gnu.org; Sun, 11 Sep 2016 00:42:50 -0400 Original-Received: from mail-oi0-f54.google.com ([209.85.218.54]:35029) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1biwbQ-0007gU-Po for 24409@debbugs.gnu.org; Sun, 11 Sep 2016 00:42:49 -0400 Original-Received: by mail-oi0-f54.google.com with SMTP id d191so19948235oih.2 for <24409@debbugs.gnu.org>; Sat, 10 Sep 2016 21:42:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=6FPMzd+cAvrPBkmeRYfIU9fWGlIexUtJW0NIpxLzbdM=; b=avDYwE3HhnqUsO75JkJ41IbOyErHsFDf6RHGu7WQZvdzVCCR3tlhhCk9py2aiMQKlV c5gTGZV5s/ukgxSQZAxd6ohvo2h2rE+NaWJl5Pjl1dwiPEo1MAuEcvdDEtPk84iF8S26 LXJjwlHYBqb2cS9xry2SVaBTv2Yow77pQalN7eq7mrT6PmLUmixBCfyTM+DmztKQ7h87 AeeriS2Vyu7UUtoWivMcfD+aGFGJ1+/q8McBYp0d2QjLoo0+aRZsMkWd4uEVM0h2X3vz KlUPgOkQCoRlgwcRykDXbFQFYwO6s1H1XQ4WsGSW4kuRlL6A+qsszQwfYxnPrBqhN4Gu tk0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=6FPMzd+cAvrPBkmeRYfIU9fWGlIexUtJW0NIpxLzbdM=; b=U8JpzqDJ7EUgSk8UU3RwRX6MRgotLKUs+U1DHFpxjIPG5DjMqr6OjjTUAQ551uefxP AlJnwjTPL3J1MbMhA8Qjy/FXR6gZJv8rFMJxeu5VL2acQgWI6T26ozWJuKx96dfhpoSf 5HpB9IbxI3aC0wFHHuhmNTv32ZmXetRYMk0IWVnuuv9OonAV+TNWyvMQ5lsJ+G3v/tGF 7LWPDzguIHBDVH6HEu5dvML0vpto47R3ZHoHVoyRTyVQdxkFGHs2YkcgpjcqoGF3xqAO +cEixUldcmcIi8Xom89WvNX0KSXtGgEUYJIp9Rk3jI3jBZTwMPK8Dtw0xR5sC4rEWI/f ys4w== X-Gm-Message-State: AE9vXwMfzBkmUwPEB31hLRWXEwpdXaMdbKeqiSBTbRkteOtpU1/uSIX7HiRJ8WeI1UTHejRfsVufHoOSSTmvlQ== X-Received: by 10.202.242.214 with SMTP id q205mr16072217oih.60.1473568963271; Sat, 10 Sep 2016 21:42:43 -0700 (PDT) Original-Received: by 10.157.41.144 with HTTP; Sat, 10 Sep 2016 21:42:42 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: _QKKqEPJaJOhpAXEepnyY3FQmDw X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:123156 Archived-At: On Sun, Sep 11, 2016 at 12:33 AM, Tino Calancha 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?