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

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

bug#10102: emacs 24 read-file-name bug?


From: Lachlan Deck
Subject: bug#10102: emacs 24 read-file-name bug?
Date: Tue, 22 Nov 2011 15:43:59 +1100

On 22/11/2011, at 3:33 PM, Glenn Morris wrote:

> Lachlan Deck wrote:
> 
>> In emacs 24 the following 'message' produces the empty string if you
>> just hit enter at the mini-buffer prompt. In emacs 23, the 'guess'
>> variable is printed as expected.
>> 
>> Is this a known bug?
>> 
>> (let* ((default-directory "~/path/to/project/")
>>      (guess (concat default-directory ".foo"))
>>      (file (read-file-name
>>             "Foo: "
>>             (file-name-directory guess)
>>             guess
>>             nil
>>             (file-name-nondirectory guess)
>>             )))
>> 
>> (message file))
> 
> Works for me with the current trunk on GNU/Linux.
> "Emacs 24" covers a multitude of sins - what do you mean by it?

Apologies...
Mac OS X 10.7.2 (aka Lion)

$ brew install emacs --cocoa --use-git-head --HEAD

# alias emacs="~/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
# alias e="~/Applications/Emacs.app/Contents/MacOS/Emacs -nw -Q"

$ emacs -version
GNU Emacs 24.0.90.1
Copyright (C) 2011 Free Software Foundation, Inc.
GNU Emacs comes with ABSOLUTELY NO WARRANTY.
You may redistribute copies of Emacs
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.

The initial read-file-name was tested using alias 'e'

> (M-x report-emacs-bug gives this information.)

Ah, thanks. Will use that in future.

Lachlan Deck






reply via email to

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