unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#10102: emacs 24 read-file-name bug?
@ 2011-11-22  3:59 Lachlan Deck
  2011-11-22  4:33 ` Glenn Morris
  2014-02-04  0:33 ` Lars Ingebrigtsen
  0 siblings, 2 replies; 6+ messages in thread
From: Lachlan Deck @ 2011-11-22  3:59 UTC (permalink / raw)
  To: 10102

Hi there,

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))

Lachlan Deck
lachlan.deck@gmail.com








^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10102: emacs 24 read-file-name bug?
  2011-11-22  3:59 bug#10102: emacs 24 read-file-name bug? Lachlan Deck
@ 2011-11-22  4:33 ` Glenn Morris
  2011-11-22  4:43   ` Lachlan Deck
  2014-02-04  0:33 ` Lars Ingebrigtsen
  1 sibling, 1 reply; 6+ messages in thread
From: Glenn Morris @ 2011-11-22  4:33 UTC (permalink / raw)
  To: Lachlan Deck; +Cc: 10102

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?
(M-x report-emacs-bug gives this information.)





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10102: emacs 24 read-file-name bug?
  2011-11-22  4:33 ` Glenn Morris
@ 2011-11-22  4:43   ` Lachlan Deck
  2011-11-23 18:24     ` Glenn Morris
  0 siblings, 1 reply; 6+ messages in thread
From: Lachlan Deck @ 2011-11-22  4:43 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 10102

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






^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10102: emacs 24 read-file-name bug?
  2011-11-22  4:43   ` Lachlan Deck
@ 2011-11-23 18:24     ` Glenn Morris
  0 siblings, 0 replies; 6+ messages in thread
From: Glenn Morris @ 2011-11-23 18:24 UTC (permalink / raw)
  To: Lachlan Deck; +Cc: 10102

Lachlan Deck wrote:

>>> (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))
[...]
> 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


Perhaps it is specific to --with-ns, although that seems odd.
Does anyone else see this issue?





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10102: emacs 24 read-file-name bug?
  2011-11-22  3:59 bug#10102: emacs 24 read-file-name bug? Lachlan Deck
  2011-11-22  4:33 ` Glenn Morris
@ 2014-02-04  0:33 ` Lars Ingebrigtsen
  2014-02-04 19:53   ` Lachlan Deck
  1 sibling, 1 reply; 6+ messages in thread
From: Lars Ingebrigtsen @ 2014-02-04  0:33 UTC (permalink / raw)
  To: Lachlan Deck; +Cc: 10102

Lachlan Deck <lachlan.deck@gmail.com> writes:

> 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))

Are you still seeing this problem in Emacs 24.3?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/





^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#10102: emacs 24 read-file-name bug?
  2014-02-04  0:33 ` Lars Ingebrigtsen
@ 2014-02-04 19:53   ` Lachlan Deck
  0 siblings, 0 replies; 6+ messages in thread
From: Lachlan Deck @ 2014-02-04 19:53 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 10102

Been a while. Let’s see…

Mac OS X 10.9.1 (Mavericks)

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

# alias emacs24="/Applications/Emacs.app/Contents/MacOS/Emacs -nw"
# alias e24="/Applications/Emacs.app/Contents/MacOS/Emacs -nw -Q”

$ $ emacs24 -version
GNU Emacs 24.3.50.1
…

seems to be okay.

cheers, Lachlan


On 4 Feb 2014, at 11:33 am, Lars Ingebrigtsen <larsi@gnus.org> wrote:

> Lachlan Deck <lachlan.deck@gmail.com> writes:
> 
>> 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))
> 
> Are you still seeing this problem in Emacs 24.3?
> 
> -- 
> (domestic pets only, the antidote for overdose, milk.)
>  bloggy blog http://lars.ingebrigtsen.no/






^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-02-04 19:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-22  3:59 bug#10102: emacs 24 read-file-name bug? Lachlan Deck
2011-11-22  4:33 ` Glenn Morris
2011-11-22  4:43   ` Lachlan Deck
2011-11-23 18:24     ` Glenn Morris
2014-02-04  0:33 ` Lars Ingebrigtsen
2014-02-04 19:53   ` Lachlan Deck

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).