From unknown Sat Aug 16 18:18:25 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18628 <18628@debbugs.gnu.org> To: bug#18628 <18628@debbugs.gnu.org> Subject: Status: Emacs hangs trying to open "CON" file (on Windows) Reply-To: bug#18628 <18628@debbugs.gnu.org> Date: Sun, 17 Aug 2025 01:18:25 +0000 retitle 18628 Emacs hangs trying to open "CON" file (on Windows) reassign 18628 emacs submitter 18628 Lee Houghton severity 18628 normal tag 18628 unreproducible thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 04 12:17:13 2014 Received: (at submit) by debbugs.gnu.org; 4 Oct 2014 16:17:13 +0000 Received: from localhost ([127.0.0.1]:33170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaS1A-0002Is-1P for submit@debbugs.gnu.org; Sat, 04 Oct 2014 12:17:13 -0400 Received: from eggs.gnu.org ([208.118.235.92]:33661) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaR9E-0008Dn-2y for submit@debbugs.gnu.org; Sat, 04 Oct 2014 11:21:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaR94-0005cZ-1Y for submit@debbugs.gnu.org; Sat, 04 Oct 2014 11:21:27 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:57679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaR93-0005cV-Um for submit@debbugs.gnu.org; Sat, 04 Oct 2014 11:21:17 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaR8w-0006Fe-CC for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 11:21:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaR8m-0005ag-F6 for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 11:21:10 -0400 Received: from mail-ie0-f176.google.com ([209.85.223.176]:54592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaR8m-0005aS-9T for bug-gnu-emacs@gnu.org; Sat, 04 Oct 2014 11:21:00 -0400 Received: by mail-ie0-f176.google.com with SMTP id rp18so1258556iec.35 for ; Sat, 04 Oct 2014 08:20:59 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=a0x3sIz6WZd8zM7eyBzrH+ZTPobyWQxmaVKGSXmCLug=; b=jJPON+3Ak37nw7ZWIPZ+GdKdel7gRe0MXn8aeRvhIYqTjGDiWvWtCvsHl2S53AZpfT HQb2WdUOhtlzJuWmE7tn5hjm2sYalw7X8WYc0lyq1o+AaRBixRzHQShQ3rVorD8Motmv cSlJ0o3Rm2hzqcUtybysN6VrLKWWvsgF0EG4b6gqHZmqfZddkOaHyG6RYJRVpfTzC79z 8H1NIdUJtpZ5zzkexLpsQ29JQAwo2Wd6FVi1/8l/7DqI6chCQuUaD5j2P6GxwGGyxkM2 QZ/HhHhVSCqxMvMolqbrZsK0vc33ezxwH3DyZgVenODBRpbRWeNhxI8FT8CZlxelGTUF tWQA== X-Gm-Message-State: ALoCoQkkKsuZCiUK4SLRrziv7PiylfedruiDof2wuj4Kfc1pcFVlIpd4rAgDkY01A2H6aPgt0dQb X-Received: by 10.50.43.137 with SMTP id w9mr7176945igl.36.1412436059092; Sat, 04 Oct 2014 08:20:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.212.42 with HTTP; Sat, 4 Oct 2014 08:20:38 -0700 (PDT) X-Originating-IP: [86.1.251.56] From: Lee Houghton Date: Sat, 4 Oct 2014 16:20:38 +0100 Message-ID: Subject: Emacs hangs trying to open "CON" file (on Windows) To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=UTF-8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 04 Oct 2014 12:17:07 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Hello, I don't know if this can really be counted as a bug, as CON is the windows equivalent of /dev/stdin, (and of course I deserve it for using Windows), but it is a frustrating problem, especially when I am using helm-mode and trying to get my "config" directory and it decides to read the "CON" file instead. I t doesn't matter where you are in the file system, CON is also omnipresent, and it also happens when trying to read files such as CON.txt, as Windows considers it to be the same file as CON (though this doesn't appear in the file listing). Perhaps emacs should refuse to open this file. Or should this be something I should forward to the helm-mode developers? Regards, Lee To reproduce the problem: Open the scratch buffer, execute (find-file "CON") and watch emacs hang. The top of the stack is (I don't have debugging symbols for emacs, only the Windows libraries): ntdll.dll!_NtReadFile@36 () Unknown KernelBase.dll!_ReadFile@20 () Unknown msvcrt.dll!__read_nolock () Unknown msvcrt.dll!__read () Unknown emacs.exe!01022134() Unknown [Frames below may be incorrect and/or missing, no symbols loaded for emacs.exe] In GNU Emacs 24.3.1 (i386-mingw-nt6.2.9200) of 2013-03-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.2.9200 Configured using: `configure --with-gcc (4.7) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include -ID:/devel/emacs/libs/libiconv-1.13.1-1-dev/include -ID:/devel/emacs/libs/libxml2-2.7.8/include/libxml2' Important settings: value of $LANG: ENG locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: helm-mode: t shell-dirtrack-mode: t helm-match-plugin-mode: t helm-occur-match-plugin-mode: t electric-pair-mode: t electric-indent-mode: t desktop-save-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: y M-x r e p o r t Recent messages: Loading delsel...done Loading desktop...done Loading electric...done Helm completion enabled Warning: desktop file appears to be in use by PID 11008. Using it may cause conflicts. Use it anyway? (y or n) y Desktop: 0 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: c:/Users/CTG/AppData/Roaming/.emacs.d/elpa/js2-mode-20140114/.dir-locals hides c:/Users/CTG/Programs/emacs-24.3/lisp/gnus/.dir-locals Features: (shadow sort mail-extr emacsbug message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mail-utils helm-mode helm-files rx image-dired tramp tramp-compat tramp-loaddefs shell pcomplete format-spec dired-x easymenu dired-aux ffap thingatpt helm-buffers helm-elscreen helm-tags helm-bookmark helm-adaptive helm-info helm-net browse-url xml url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util url-parse auth-source gnus-util mm-util mail-prsvr password-cache url-vars mailcap helm-plugin bookmark pp helm-locate helm-help helm-match-plugin helm-grep helm-regexp grep helm-external helm-utils warnings dired helm advice help-fns advice-preload cl-macs gv helm-source eieio byte-opt bytecomp byte-compile cconv cl-lib scss-mode flymake compile comint ansi-color ring derived edmacro kmacro helm-autoloads async-autoloads js2-mode-autoloads finder-inf rainbow-mode-autoloads scss-mode-autoloads package electric desktop delsel cus-start cus-load time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 ls-lisp w32-common-fns disp-table w32-win w32-vars tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process w32 multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 04 12:51:46 2014 Received: (at 18628) by debbugs.gnu.org; 4 Oct 2014 16:51:46 +0000 Received: from localhost ([127.0.0.1]:33196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaSYc-0004S4-7A for submit@debbugs.gnu.org; Sat, 04 Oct 2014 12:51:46 -0400 Received: from mtaout26.012.net.il ([80.179.55.182]:60835) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaSYa-0004Rw-FX for 18628@debbugs.gnu.org; Sat, 04 Oct 2014 12:51:45 -0400 Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NCX00E00IEJSR00@mtaout26.012.net.il> for 18628@debbugs.gnu.org; Sat, 04 Oct 2014 19:49:52 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCX00F6CIR4WG00@mtaout26.012.net.il>; Sat, 04 Oct 2014 19:49:52 +0300 (IDT) Date: Sat, 04 Oct 2014 19:51:46 +0300 From: Eli Zaretskii Subject: Re: bug#18628: Emacs hangs trying to open "CON" file (on Windows) In-reply-to: X-012-Sender: halo1@inter.net.il To: Lee Houghton Message-id: <83bnprok0t.fsf@gnu.org> References: X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18628 Cc: 18628@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Lee Houghton > Date: Sat, 4 Oct 2014 16:20:38 +0100 > > I don't know if this can really be counted as a bug, as CON is the > windows equivalent of /dev/stdin, (and of course I deserve it for > using Windows), but it is a frustrating problem, especially when I am > using helm-mode and trying to get my "config" directory and it decides > to read the "CON" file instead. Please provide a reproducible recipe starting with "emacs -Q". Just typing "C-x C-f con TAB TAB" doesn't show CON in the completions, so I'm unsure how you bump into this problem. > To reproduce the problem: > > Open the scratch buffer, execute (find-file "CON") and watch emacs hang. Well, then don't do that, right? There cannot be a usable file by that name on Windows, so why would you need to try visiting it? From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 04 12:57:07 2014 Received: (at 18628) by debbugs.gnu.org; 4 Oct 2014 16:57:07 +0000 Received: from localhost ([127.0.0.1]:33204 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaSdn-0004aD-52 for submit@debbugs.gnu.org; Sat, 04 Oct 2014 12:57:07 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:60416) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XaSdk-0004a5-FS for 18628@debbugs.gnu.org; Sat, 04 Oct 2014 12:57:04 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1XaSdj-0002r3-Fg; Sat, 04 Oct 2014 12:57:03 -0400 From: Glenn Morris To: Eli Zaretskii Subject: Re: bug#18628: Emacs hangs trying to open "CON" file (on Windows) References: <83bnprok0t.fsf@gnu.org> X-Spook: Albanian number key target Craig Livingstone halcon X-Ran: >KJ+x"B0?]9aZd#WEg]D\?uU1gQc79>ZrS5)=pvIYR\7^-@`+d,26\J680}guZ\JP(|& (Eli Zaretskii's message of "Sat, 04 Oct 2014 19:51:46 +0300") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: 18628 Cc: Lee Houghton , 18628@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) Eli Zaretskii wrote: > Well, then don't do that, right? There cannot be a usable file by > that name on Windows, so why would you need to try visiting it? That's the awesome power of helm! ;) From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 05 07:34:10 2014 Received: (at 18628) by debbugs.gnu.org; 5 Oct 2014 11:34:10 +0000 Received: from localhost ([127.0.0.1]:33506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xak4n-0001AD-CU for submit@debbugs.gnu.org; Sun, 05 Oct 2014 07:34:09 -0400 Received: from mail-ie0-f173.google.com ([209.85.223.173]:50325) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xak4b-00019d-Tx for 18628@debbugs.gnu.org; Sun, 05 Oct 2014 07:34:07 -0400 Received: by mail-ie0-f173.google.com with SMTP id tp5so1940908ieb.4 for <18628@debbugs.gnu.org>; Sun, 05 Oct 2014 04:33:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=bBYfhDTB4MTDbBB3MvUq9lB+C41EqCJy+4AY85o1HwU=; b=Z/+58iczh2PbIPzUA7WRYI9f40djrbnAkYaYmjdA2UbMz6rzReOO2uJDACIdv7wGxs sKFYoZ9YjCjx142KO9gqcoRm8LJYWv5o2sL7zN1KuF1kSlaGQs2P7dqA3bTmCeWrfT/W DE4Z/2jMvaelRnmiuXgtepakJc/MZNiL+PwYtpEHjsHcJq8Wd4ZAw65vNe+f1tiTJh+Z YRGVPD0wG4kmftKwjFGZ9p+19Qgz6Ua+3LD5JK1jYW5lga8J73bVo77gsXA9B00E3Ik2 zxVd0/sj0KyA/Jfef7mrAVUYS269j2jKoq1szg1zaNO5JV+1uH+9jx+na4p4IrLC+NAb 1YOQ== X-Gm-Message-State: ALoCoQncb4ZxVir4O7poWA8o1SwooHrS+XTQm13p71SeKOn0rfjz7yAldA26tS1LmUlGLVeQUfR+ X-Received: by 10.50.79.165 with SMTP id k5mr12953472igx.16.1412508837018; Sun, 05 Oct 2014 04:33:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.212.42 with HTTP; Sun, 5 Oct 2014 04:33:36 -0700 (PDT) X-Originating-IP: [86.1.251.56] In-Reply-To: <83bnprok0t.fsf@gnu.org> References: <83bnprok0t.fsf@gnu.org> From: Lee Houghton Date: Sun, 5 Oct 2014 12:33:36 +0100 Message-ID: Subject: Re: bug#18628: Emacs hangs trying to open "CON" file (on Windows) To: Eli Zaretskii Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18628 Cc: 18628@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 4 October 2014 17:51, Eli Zaretskii wrote: >> From: Lee Houghton >> Date: Sat, 4 Oct 2014 16:20:38 +0100 >> >> I don't know if this can really be counted as a bug, as CON is the >> windows equivalent of /dev/stdin, (and of course I deserve it for >> using Windows), but it is a frustrating problem, especially when I am >> using helm-mode and trying to get my "config" directory and it decides >> to read the "CON" file instead. > > Please provide a reproducible recipe starting with "emacs -Q". Just > typing "C-x C-f con TAB TAB" doesn't show CON in the completions, so > I'm unsure how you bump into this problem. Sorry, I didn't know that was required. The easiest way I found was: emacs -Q con.js Or if you want to go the long way... emacs -Q --eval "(find-file \"CON.js\")" (I hope I've understood what you mean by that.) In this case, if I run it from the console, I can press Ctrl-C in the console and then emacs un-hangs. But I imagine most people who run emacs on Windows do so using runemacs and don't have a separate console window in which to press Ctrl-C. >> To reproduce the problem: >> >> Open the scratch buffer, execute (find-file "CON") and watch emacs hang. > > Well, then don't do that, right? There cannot be a usable file by > that name on Windows, so why would you need to try visiting it? It is partly helm's fault. The reason I encounter this bug so often is that I have a directory which contains two subdirectories, "collections" and "config". The quickest way for me to navigate to the config directory would be C-x C-f c o n (where C-x C-f is bound to helm-find-file). Normally the key would auto-complete to the config directory. Instead what it does is try to preview the "CON" file in the window I was just in, and emacs hangs. Sometimes I remember to type "conf" before pressing , sometimes I don't. When I don't, I invariably kick myself :-) The reason I chose this mailing list instead of the developers of helm-mode is that a) Not many people know about the special behaviour of "CON" -- that is, even if you add a file extension it still has the same behaviour -- and could conceivably try to create a file called "con.c" or similar, even if not using helm, b) No other text editor that I can find hangs when trying to create a file named "con" or "con.c". By all means close this bug if you think it's invalid! I am sure I could find a workaround. From debbugs-submit-bounces@debbugs.gnu.org Sun Oct 05 10:36:45 2014 Received: (at 18628) by debbugs.gnu.org; 5 Oct 2014 14:36:45 +0000 Received: from localhost ([127.0.0.1]:34817 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XamvU-0005us-2e for submit@debbugs.gnu.org; Sun, 05 Oct 2014 10:36:44 -0400 Received: from mtaout24.012.net.il ([80.179.55.180]:45215) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XamvR-0005uj-Ck for 18628@debbugs.gnu.org; Sun, 05 Oct 2014 10:36:42 -0400 Received: from conversion-daemon.mtaout24.012.net.il by mtaout24.012.net.il (HyperSendmail v2007.08) id <0NCZ00D006U5UV00@mtaout24.012.net.il> for 18628@debbugs.gnu.org; Sun, 05 Oct 2014 17:30:39 +0300 (IDT) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout24.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NCZ00AL26Z2Z730@mtaout24.012.net.il>; Sun, 05 Oct 2014 17:30:39 +0300 (IDT) Date: Sun, 05 Oct 2014 17:36:45 +0300 From: Eli Zaretskii Subject: Re: bug#18628: Emacs hangs trying to open "CON" file (on Windows) In-reply-to: X-012-Sender: halo1@inter.net.il To: Lee Houghton Message-id: <834mvioa6a.fsf@gnu.org> References: <83bnprok0t.fsf@gnu.org> X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 18628 Cc: 18628@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) > From: Lee Houghton > Date: Sun, 5 Oct 2014 12:33:36 +0100 > Cc: 18628@debbugs.gnu.org > > > Please provide a reproducible recipe starting with "emacs -Q". Just > > typing "C-x C-f con TAB TAB" doesn't show CON in the completions, so > > I'm unsure how you bump into this problem. > > Sorry, I didn't know that was required. The easiest way I found was: > > emacs -Q con.js > > Or if you want to go the long way... > > emacs -Q --eval "(find-file \"CON.js\")" > > (I hope I've understood what you mean by that.) Yes, I do understand. But I cannot reproduce the problem with such a simple recipe: for me, Emacs does not hang, but instead says "File exists, but cannot be read", which sounds reasonable. I tried this both on Windows 7 and on XP. You seem to be on Windows 8, so perhaps this is something specific to that version. I don't have access to a Windows 8 machine, so I hope someone else will be able to debug this. > It is partly helm's fault. The reason I encounter this bug so often is > that I have a directory which contains two subdirectories, > "collections" and "config". The quickest way for me to navigate to > the config directory would be C-x C-f c o n (where C-x C-f is > bound to helm-find-file). Normally the key would auto-complete > to the config directory. Instead what it does is try to preview the > "CON" file in the window I was just in, and emacs hangs. Sometimes I > remember to type "conf" before pressing , sometimes I don't. > When I don't, I invariably kick myself :-) Not sure this is the same problem (although it might be): the APIs Emacs invokes for completion are different from those it invokes to visit a file. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 08 18:18:57 2016 Received: (at 18628) by debbugs.gnu.org; 8 Jun 2016 22:18:57 +0000 Received: from localhost ([127.0.0.1]:33183 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAloP-00008w-5v for submit@debbugs.gnu.org; Wed, 08 Jun 2016 18:18:57 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:35221) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bAloF-00008N-LV for 18628@debbugs.gnu.org; Wed, 08 Jun 2016 18:18:55 -0400 Received: by mail-oi0-f48.google.com with SMTP id s139so35778893oie.2 for <18628@debbugs.gnu.org>; Wed, 08 Jun 2016 15:18:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:cc; bh=N+8EN+lUC2LS+qWOm3NVXe0azx63M+NGF/Hrnk9aguo=; b=1GlXBgJxoi/Mrr+q/UtD4IW2oCSikr4ZigdRx4Xm7O1l6lyRWplsduxG4AcTB3zi/q sU2zSwa9q8pbYnga+nhj0aosm4nJQZFQ3IoPTpjzSyPril24PdElFXcFnYAhXoNLv1n8 qzvokaKVakSMQlxm+j27CtXkTEAeWpvhP182rM6nSBOGKnNxfmhFx2K9S5PYo56giNgo vpNCPwDISyJqFhvM8peYcH5XKBaocTcL+oRliBMSh0qGly8P7aoS2ap5XPYAZDPxrzyF 16zSOl2014BAPMnYwNWUnAt+vIlILRUQsTHlyJT9YUxk2DbSqCPqo762fp+LwIRDH16p +dJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:from:date:message-id:subject :to:cc; bh=N+8EN+lUC2LS+qWOm3NVXe0azx63M+NGF/Hrnk9aguo=; b=SNwyZymIHS/pUlC4cACtd9AZj5IsFEryd5YWAf9f0NwRn+66u7iNJL3QRJnQDYr8Y2 5R+fvTLqgJPcyiKVWomETPkVgIazoLzrc72RE2aPohe1Sd03khtEPs+x30XMikri7+bE KSEaXURFJDwbzv2g+1fqsWjOEtT8vEpCg4mHJ3Qt/F8vxRXQ8usOQ1KZyWC21mfkx97C n08ML2NSE+wdD136VCSMh1oPCXpZwa+ng8eM0H9WSJiyO7FA2iyY3ujObTA8ttbofmp8 ZdbKF5qjYScByOZaxdX2PDDLiwfFKrs5JBG+Q6lMJqR1a6jf9bVxC0jZTu+kpsoZec6i zWsg== X-Gm-Message-State: ALyK8tLOzOEYZ6eKjfpPtz2a6ngPiTSAzMoOBqDvRoyKqKsKLDNcwPNhlxJ5AhYOvDO9eOBr4uWgPj+UtqiVNg== X-Received: by 10.157.38.185 with SMTP id l54mr4502186otb.112.1465424321686; Wed, 08 Jun 2016 15:18:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.5.168 with HTTP; Wed, 8 Jun 2016 15:18:41 -0700 (PDT) From: Noam Postavsky Date: Wed, 8 Jun 2016 18:18:41 -0400 X-Google-Sender-Auth: hrpZok4_qp-ISik0s7HYwF7DPB0 Message-ID: Subject: Re: bug#18628: Emacs hangs trying to open "CON" file (on Windows) To: 18628@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -0.5 (/) X-Debbugs-Envelope-To: 18628 Cc: Lee Houghton X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.5 (/) tag 18628 + unreproducible quit Eli Zaretskii gnu.org> wrote: > Yes, I do understand. But I cannot reproduce the problem with such > a simple recipe: for me, Emacs does not hang, but instead says "File > exists, but cannot be read", which sounds reasonable. Getting the same on Windows 8, Emacs 24.5 and 25.0.94. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 21 23:59:53 2017 Received: (at control) by debbugs.gnu.org; 22 Feb 2017 04:59:54 +0000 Received: from localhost ([127.0.0.1]:49545 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgP1t-0007ba-Mq for submit@debbugs.gnu.org; Tue, 21 Feb 2017 23:59:53 -0500 Received: from mail-io0-f170.google.com ([209.85.223.170]:32958) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgP1s-0007bO-DA for control@debbugs.gnu.org; Tue, 21 Feb 2017 23:59:52 -0500 Received: by mail-io0-f170.google.com with SMTP id g18so1800068ioe.0 for ; Tue, 21 Feb 2017 20:59:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:mime-version; bh=WXjjZ4sU2KzUQO6ehsLLwPRrSz0HLsYfz4fm2NepTMc=; b=VUK/em5CB4TIOFKhyFaMAdYPCKU8dungenPXlVcawxar1Cp11CIRghyh+uVJKuJwRL Izo4o5wXH6I9Gpte+zwVQYGuwKLbVYTrSRzNpZiCBTYRcEQ5/C3eQ1U09CdbMrz5olu3 sc1bRWV6z/jsaQ7+l6W0IVMfMIa4eYi8TH+LFVQbI2LFavmAmkmb+QDKL9Z7gMVDO6Fg cI5vkikV/d8yc0X/yFypP5e7SZVd/EkkAbqap7EHngfNy0QVmaKIfychddPeonePv0mX vLjXQ8FzcOJlbz7VWwQVx8KEMRA2Zaq+h2zx2Bq4G/nlfOjOUiz3nhag89Dl1cHcEtGp h8kg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :mime-version; bh=WXjjZ4sU2KzUQO6ehsLLwPRrSz0HLsYfz4fm2NepTMc=; b=I0opecHhs14Xk9dSWboi1s823OmWrbF0W5oJYupsPJzhFZGi1XLdGbgS+qnPWPhluQ 1rorn9xbcrYIxn4PkMJ7OThVbhJCZRv6fYeUO4vihbaTnBhuHIrbxeYcjTtHMziMlAVH MXvHoTwP1h1QkBapa3uO1iZbcO3ROuBO0q4VA42BlvAaB0qwrVRYliHPl6Z4hdXFgQIE 08NR89XC1HO0tfVOdkPVHkv/0wARiHdgrjGdQkHQeCSQ7LOiQotGYHhY56rjcFZ6OJsc RgaF47dXrKPBIxfYnkZwnuTOpQDOGmQSOhJNlx5h+rnl5yf3C6Yg6vd7iXvpwC4+XC1E 0W5w== X-Gm-Message-State: AMke39m2vk2BYnY4Ve2N7dFCzv4MMwHKx3pKXpS0DbvUWwnHB4bIdGbzlq0CFDbJ/MgFOA== X-Received: by 10.107.167.204 with SMTP id q195mr25488458ioe.170.1487739586744; Tue, 21 Feb 2017 20:59:46 -0800 (PST) Received: from zony ([45.2.7.65]) by smtp.googlemail.com with ESMTPSA id l19sm176163ioe.51.2017.02.21.20.59.46 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 21 Feb 2017 20:59:46 -0800 (PST) From: npostavs@users.sourceforge.net To: control@debbugs.gnu.org Subject: control message for bug #18628 Date: Wed, 22 Feb 2017 00:00:59 -0500 Message-ID: <877f4ihl9w.fsf@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.1 (/) close 18628 quit From unknown Sat Aug 16 18:18:25 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 22 Mar 2017 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator