From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andrea Cardaci Newsgroups: gmane.emacs.bugs Subject: bug#32274: (interactive "F") silently expands a directory to the current buffer's path Date: Thu, 26 Jul 2018 00:26:17 +0200 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000acb1040571da5e27" X-Trace: blaine.gmane.org 1532557514 29141 195.159.176.226 (25 Jul 2018 22:25:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2018 22:25:14 +0000 (UTC) To: 32274@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 26 00:25:10 2018 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 1fiSDU-0007Pq-TY for geb-bug-gnu-emacs@m.gmane.org; Thu, 26 Jul 2018 00:25:09 +0200 Original-Received: from localhost ([::1]:56435 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiSFZ-0001dG-Sj for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jul 2018 18:27:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52281) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiSFO-0001cz-Ji for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:27:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiSFL-0000H3-JR for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:27:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52788) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiSFL-0000Gr-Ek for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:27:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fiSFJ-0003z5-U6 for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:27:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Cardaci Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 25 Jul 2018 22:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 32274 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.153255760615291 (code B ref -1); Wed, 25 Jul 2018 22:27:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 25 Jul 2018 22:26:46 +0000 Original-Received: from localhost ([127.0.0.1]:57806 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiSF4-0003yY-FH for submit@debbugs.gnu.org; Wed, 25 Jul 2018 18:26:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:33031) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiSF2-0003yI-F7 for submit@debbugs.gnu.org; Wed, 25 Jul 2018 18:26:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiSEu-0008LZ-7k for submit@debbugs.gnu.org; Wed, 25 Jul 2018 18:26:39 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:49636) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fiSEu-0008LT-4i for submit@debbugs.gnu.org; Wed, 25 Jul 2018 18:26:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fiSEq-0001aa-UD for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:26:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fiSEn-0008KA-Tx for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:26:32 -0400 Original-Received: from mail-qk0-x231.google.com ([2607:f8b0:400d:c09::231]:37020) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fiSEn-0008K2-OH for bug-gnu-emacs@gnu.org; Wed, 25 Jul 2018 18:26:29 -0400 Original-Received: by mail-qk0-x231.google.com with SMTP id t79-v6so5981504qke.4 for ; Wed, 25 Jul 2018 15:26:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=+HRIfTMbrWC9jjNiwKkBVSUjujsV1Oi88eAbxUT979c=; b=nIgRtEwhYGHNRyCaAk4+W9ztXZJjKN+cz6JzI9OIbxakLgJnWRaPqwgD1O61EqbQEE dfgpY9Kt+HNEjsIQPGUsYthQ3Dw1em2uyOTzpOMSeDnQXNq5CfWaywu4+bLwhM8gkAKA WffkmzVVvxjwRvidmEoIx7RkbW2jZ/5VMgZU9zJQ8MiKQfiXhuWTKxTMa/t/R+V0AwUL gjsJkatixN+UvvkCsj4yr7W+QJkaL68KxEafB9XuPZ6FQDOfJgzrN0Gp4Hz+x2jJ4t8B 4zlpWxxuO+5tOXB5oXuCYaLANMMMxWSJxuqFOCy3WI9O/3fFHnU/FjTNrVRWQxLNBBWK 57Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=+HRIfTMbrWC9jjNiwKkBVSUjujsV1Oi88eAbxUT979c=; b=i9D9qzZNozZV/mn+Ns9/+8XgLRQaBi3Sg01ENHjNS2klAlGdXs6teqkntGSvZuHfEo B6y8oOopG7IkY+SbEDVuD4rjaeVGWBF5zbzbBrQil3SPKtbRNqz1Ey7I0ZxW1mSPytHl TDvsNMTBiu1tp5PQWGkR0H94lD/JcMBrP+i3r+iu9pDvvINQVwHI0yv2hzZkzeUvEanE TE7RK9rGks4+hmPQgkmM3fhKzdCmmozfT1h+Q0zbDFL2lv8eQczCplY9ELR7HCids3/4 ceGMebK7PdS5OFR06V1VXxjkp1MWa8XHHHyIWJa8ALs/InnP6rhYnlfr0nPx1JS8EkTk Ut5A== X-Gm-Message-State: AOUpUlH2x9wrNfGO9TDLodJ1TxAa0prhqymihkGAaI/AcjMzSmEG3hcM sSjeclmHoEsOtKhASHx36GyMxgNb0I1xRzutUXUTUTN5 X-Google-Smtp-Source: AAOMgpf153FlBiR5NtnQKn9zZCKeU7wuwH9ubah8emhjcnMBq1ljXpKtC+wkG0bUuGnSoP61/tSVy0OOvYs90KzUpgU= X-Received: by 2002:a37:6ac3:: with SMTP id f186-v6mr22274539qkc.224.1532557588736; Wed, 25 Jul 2018 15:26:28 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -5.0 (-----) 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:148938 Archived-At: --000000000000acb1040571da5e27 Content-Type: text/plain; charset="UTF-8" The value returned by (interactive "F") is not the one provided by the user. 1. Create a file, say /tmp/foo.el: (defun foo (path) (interactive "F") (message path)) 2. M-x evaluate-buffer 3. M-x foo and chose /tmp/. The value presented in the echo area is /tmp/foo.el, this is undesirable and very dangerous IMHO. It happens with both Emacs 24 and 26. Is this a bug or I'm overlooking something? Andrea --000000000000acb1040571da5e27 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The value returned by (interactive "F") is = not the one provided by the user.

1. Create a = file, say /tmp/foo.el:

(defun foo (path)
=C2=A0 (interactive "F")
=C2=A0 (message path))
<= div>
2. M-x evaluate-buffer

3. M-x f= oo and chose /tmp/.

The value presented in the ech= o area is /tmp/foo.el, this is undesirable and very dangerous IMHO. It happ= ens with both Emacs 24 and 26.

Is this a bug or = I'm overlooking something?


Andrea
--000000000000acb1040571da5e27--