Article View: gnu.emacs.bug
Article #87985`read-file-name' problem
From: Gustavo Chaves
Date: Fri, 19 Aug 1994 12:44
Date: Fri, 19 Aug 1994 12:44
45 lines
1725 bytes
1725 bytes
Hi there! I'm using `GNU Emacs 19.25.1 (sparc-sun-sunos4.1.3)'. I got what I think is a wrong behaviour of the function read-file-name. What I did is the following: $ echo ~ /home/apro/gustavo $ emacs -q .emacs& [then... inside emacs] `M-ESC' ; invoking eval-expression `y' ; answeting `yes' to enable the command `(read-file-name "File: " "~apcc/OM/rda/" nil t ".rda")' [then... the following appears in the minibuffer: File: ~apcc/OM/rda/.rda ] [then I hit RET and the following appears in the minibuffer: "/home/apro/gustavo/.emacs" which is the full name of the file being visited in the current buffer. ] Now I suppose that, since ~apcc/OM/rda/.rda is an existing file, what should appear is: "~apcc/OM/rda/.rda" If instead of calling eval-expression in a buffer that is visiting a file I call it in the *scratch* buffer, the result is the expected one. Am I missing something? Thanks for the attention. Gustavo.
Technical Details
Message-ID:
<9408191236.AA20850@moon.cpqd.br>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cpqd.br!gustavoShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,f0e1a06753aa9d61,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-08-19 06:27:54 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!redstone.interpath.net!ddsw1!news.kei.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!cpqd.br!gustavo From: gustavo@cpqd.br (Gustavo Chaves) Newsgroups: gnu.emacs.bug Subject: `read-file-name' problem Date: 19 Aug 1994 08:44:49 -0400 Organization: GNUs Not Usenet Lines: 45 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9408191236.AA20850@moon.cpqd.br> Reply-To: gustavo@cpqd.br