unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#1337: crash on going into non-existing dir with find-file
@ 2008-11-14 17:48 Chong Yidong
  2008-11-15  1:21 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 12+ messages in thread
From: Chong Yidong @ 2008-11-14 17:48 UTC (permalink / raw)
  To: xah lee; +Cc: 1337

> 1. eval (find-file "file:///Users/xah/web/emacs/apple_pc_kb_diff.html")
> then you'll go into a empty buffer.
>
> 2. now M-x find-file, hit Enter. Now i expect to go to the dir this  
> file is located. (note that the file doesn't exist yet)
>
> 3. emacs crashed.
>
> am pretty sure this is 100% reproducible. It crashed 3 times on me.
>
> In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)
>  of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp

I can't reproduce this on GNU Emacs 23.0.60.19 (i686-pc-linux-gnu, GTK+
Version 2.14.4) of 2008-11-13.  This is probably either an Emacs 22 only
bug or a Emacs Carbon bug.  If someone could check whether the crash
happens on Emacs 23 Cocoa, that would be good.






^ permalink raw reply	[flat|nested] 12+ messages in thread
* bug#1337: crash on going into non-existing dir with find-file
@ 2008-11-13 14:04 xah lee
  0 siblings, 0 replies; 12+ messages in thread
From: xah lee @ 2008-11-13 14:04 UTC (permalink / raw)
  To: bug-gnu-emacs

  using a
This causes a hard crash.

Steps:

1. eval (find-file "file:///Users/xah/web/emacs/apple_pc_kb_diff.html")
then you'll go into a empty buffer.

2. now M-x find-file, hit Enter. Now i expect to go to the dir this  
file is located. (note that the file doesn't exist yet)

3. emacs crashed.

am pretty sure this is 100% reproducible. It crashed 3 times on me.

The problem occured because i was trying to open a local file, where  
the file path happend to be a url scheme path. Apparently, find-file  
does not recognize url scheme local files, but find-file-at-point  
auto launch browser when the file is url scheme. In any case, i got  
confused a bit because i know the file exist but i got a empty  
buffer. So i tried to go into th dir to see where exactly emacs think  
is the path, then crash.

In GNU Emacs 22.2.1 (powerpc-apple-darwin8.11.0, Carbon Version 1.6.0)
  of 2008-04-05 on g5.tokyo.stp.isas.jaxa.jp
Windowing system distributor `Apple Inc.', version 10.4.11
configured using `configure  '--prefix=/Applications/Emacs.app/ 
Contents/Resources' '--with-carbon' '--without-x' '--libexecdir=/ 
Volumes/Emacs/Emacs.app/Contents/MacOS/libexec' 'CFLAGS=-Os -arch  
i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -DUSE_ATSUI - 
DUSE_MAC_TSM''

   Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2008-11-17 23:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-14 17:48 bug#1337: crash on going into non-existing dir with find-file Chong Yidong
2008-11-15  1:21 ` YAMAMOTO Mitsuharu
2008-11-15  2:22   ` xah lee
2008-11-15  3:05     ` YAMAMOTO Mitsuharu
2008-11-15  3:33       ` Glenn Morris
2008-11-15  3:44         ` YAMAMOTO Mitsuharu
2008-11-15 19:15           ` Glenn Morris
2008-11-15 23:34             ` Chong Yidong
2008-11-17 23:55               ` Glenn Morris
2008-11-15  5:34       ` Chong Yidong
2008-11-15 19:38     ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2008-11-13 14:04 xah lee

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