bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#32274: (interactive "F") silently expands a directory to the current


From: Andrea Cardaci
Subject: bug#32274: (interactive "F") silently expands a directory to the current buffer's path
Date: Thu, 26 Jul 2018 00:26:17 +0200

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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]