unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: xah lee <xah@xahlee.org>
To: bug-gnu-emacs@gnu.org
Subject: bug#1337: crash on going into non-existing dir with find-file
Date: Thu, 13 Nov 2008 06:04:08 -0800	[thread overview]
Message-ID: <52172E88-2FC5-4C7A-B5D0-DEB2258150E6@xahlee.org> (raw)

  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/

             reply	other threads:[~2008-11-13 14:04 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-13 14:04 xah lee [this message]
  -- strict thread matches above, loose matches on Subject: below --
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52172E88-2FC5-4C7A-B5D0-DEB2258150E6@xahlee.org \
    --to=xah@xahlee.org \
    --cc=1337@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).