From unknown Mon Aug 18 02:38:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11489: 24.0.96; empty .dir-locals.el (or with comments only) gives "Error: (end-of-file)" during opening of arbitrary files Resent-From: Albert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 May 2012 19:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11489@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13371962183400 (code B ref -1); Wed, 16 May 2012 19:24:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 May 2012 19:23:38 +0000 Received: from localhost ([127.0.0.1]:58070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjov-0000sm-Hy for submit@debbugs.gnu.org; Wed, 16 May 2012 15:23:38 -0400 Received: from eggs.gnu.org ([208.118.235.92]:42851) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjos-0000sa-Sq for submit@debbugs.gnu.org; Wed, 16 May 2012 15:23:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUjoa-0000QC-Iv for submit@debbugs.gnu.org; Wed, 16 May 2012 15:23:18 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:58004) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjoa-0000PP-E3 for submit@debbugs.gnu.org; Wed, 16 May 2012 15:23:16 -0400 Received: from eggs.gnu.org ([208.118.235.92]:50546) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjoY-0004H4-9t for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:23:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUjoT-0000NV-8F for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:23:13 -0400 Received: from mail-wg0-f49.google.com ([74.125.82.49]:48261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjoS-0000MN-TX for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:23:09 -0400 Received: by wgbds1 with SMTP id ds1so797269wgb.30 for ; Wed, 16 May 2012 12:23:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=8+LMVb9bbnWK6Knago4ZPenFYNZPT2myOel3Pbh/GKo=; b=QNnBPZ8okq32ghoC5EkueqVAD0CvciNpBdZ/YJ8Jg6vGxPdkcgWMqDx1h5SwCdXnew L1OK2fU5oQkIlVH2nx7XmHnLjU3aEKFvEFzkomlj5C9S9G8lWUlm5y76zWGU3g0NTWPC lyK0y2so0Cyj7LlzbymgAbYin0qXsF8/I85DjEN6wcst4Pf262joKbvqM6vUme9JFOEb MDdEzYFtNJEZyd2s86tFolH27qOWzZpAPn7br3bt7LQl2bdbUy24f+gEyQEMKWPumpmJ 0XvaTlc3w1USs25pXc959Soe2nngVwKe8DSfUnPYTIyENQ2C5Hx5oP6C9EXcL8PH3pXo otHQ== MIME-Version: 1.0 Received: by 10.180.76.232 with SMTP id n8mr43871072wiw.2.1337196186259; Wed, 16 May 2012 12:23:06 -0700 (PDT) Received: by 10.216.173.141 with HTTP; Wed, 16 May 2012 12:23:06 -0700 (PDT) Date: Wed, 16 May 2012 21:23:06 +0200 Message-ID: From: Albert Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.1 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.1 (------) This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. =A0Please check that the From: line contains a valid email address. =A0After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. =A0If you can, give a recipe starting from `emacs -Q': 0. go to a directory of choice without an .dir-locals.el 1. make an empty file .dir-locals.el 2. open an arbitrary file, e.g. test.txt 3. In minibuffer shows: Error: (end-of-file) I am not sure it can be prevented, but it took me quite some time to find the reason for this error. I therefore wonder whether something could be done to make it easier to discover something like this. (I didn't get an automatic acknowledgement of receipt, so I sent this report again, if it was rejected on purpose please tell me) Further information: It also shows up during export of org-files etc. So it took some time to fi= nd the reason, because I was looking in the wrong direction. I did not have an empty .dir-locals.el, but I had commented out everything in it. I wonder whether it would be possible to have either no error when there is no content, or have a more specific error message that states where no content was found. Thanks, Albert. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: =A0 =A0`bt full' and `xbacktrace'. For information about debugging Emacs, please read the file d:/albert/gnu/emacs/emacs-24.0.96/etc/DEBUG. In GNU Emacs 24.0.96.1 (i386-mingw-nt5.1.2600) =A0of 2012-04-29 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: =A0`configure --with-gcc (4.6) --no-opt --enable-checking --cflags =A0-ID:/devel/emacs/libs/libXpm-3.5.8/include =A0-ID:/devel/emacs/libs/libXpm-3.5.8/src =A0-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include =A0-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include =A0-ID:/devel/emacs/libs/giflib-4.1.4-1/include =A0-ID:/devel/emacs/libs/jpeg-6b-4/include =A0-ID:/devel/emacs/libs/tiff-3.8.2-1/include =A0-ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: =A0value of $LC_ALL: nil =A0value of $LC_COLLATE: nil =A0value of $LC_CTYPE: nil =A0value of $LC_MESSAGES: nil =A0value of $LC_MONETARY: nil =A0value of $LC_NUMERIC: nil =A0value of $LC_TIME: nil =A0value of $LANG: ENG =A0value of $XMODIFIERS: nil =A0locale-coding-system: cp1252 =A0default enable-multibyte-characters: t Major mode: Org Minor modes in effect: =A0tooltip-mode: t =A0mouse-wheel-mode: t =A0tool-bar-mode: t =A0menu-bar-mode: t =A0file-name-shadow-mode: t =A0global-font-lock-mode: t =A0font-lock-mode: t =A0blink-cursor-mode: t =A0auto-composition-mode: t =A0auto-encryption-mode: t =A0auto-compression-mode: t =A0line-number-mode: t =A0transient-mark-mode: t Recent input: C-x k C-x C-f . d i r - l o c a l s . o r g e l C-x k g g g C-x C-f . C-x s C-x s y C-x k g C-x k C-x C-s C-x k Recent messages: call-interactively: Beginning of buffer byte-code: Beginning of buffer byte-code: End of buffer byte-code: Beginning of buffer call-interactively: End of buffer delete-forward-char: End of buffer [4 times] Saving file d:/albert-closed/ivlos/webfolio/org/.dir-locals.el... Wrote d:/albert-closed/ivlos/webfolio/org/.dir-locals.el OVERVIEW Error: (end-of-file) Load-path shadows: None found. Features: (shadow sort gnus-util 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 mm-util mail-prsvr mail-utils org-wl org-w3m org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp ob-exp org-exp-blocks find-func org-agenda org-info org-gnus org-docview org-bibtex bibtex org-bbdb org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ansi-color ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode format-spec cal-menu easymenu calendar cal-loaddefs dired-aux vc-hg dired regexp-opt time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Mon Aug 18 02:38:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11489: 24.0.96; empty .dir-locals.el (or with comments only) gives "Error: (end-of-file)" during opening of arbitrary files Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 May 2012 19:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11489 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Albert Cc: 11489@debbugs.gnu.org Received: via spool by 11489-submit@debbugs.gnu.org id=B11489.13371967114187 (code B ref 11489); Wed, 16 May 2012 19:32:01 +0000 Received: (at 11489) by debbugs.gnu.org; 16 May 2012 19:31:51 +0000 Received: from localhost ([127.0.0.1]:58088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjws-00015T-RI for submit@debbugs.gnu.org; Wed, 16 May 2012 15:31:50 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:40213 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjwY-000152-Tn; Wed, 16 May 2012 15:31:49 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SUjwM-0004Zg-72; Wed, 16 May 2012 15:31:18 -0400 From: Glenn Morris References: X-Spook: assassination Echelon Hamas Legion of Doom mailbomb X-Ran: +Z3CFP[sPvtMiup.|`2ce42"nubKZIsG?#-(y4Dn/w(=c.=J],3\O9&(k&CU)_9!Ua?u0a X-Hue: magenta X-Attribution: GM Date: Wed, 16 May 2012 15:31:18 -0400 In-Reply-To: (Albert's message of "Wed, 16 May 2012 21:23:06 +0200") 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: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) forcemerge 11418 11489 stop Albert wrote: > 0. go to a directory of choice without an .dir-locals.el > 1. make an empty file .dir-locals.el > 2. open an arbitrary file, e.g. test.txt > 3. In minibuffer shows: Error: (end-of-file) You already reported this (last week), I already fixed it. http://debbugs.gnu.org/11418