From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Albert Newsgroups: gmane.emacs.bugs Subject: bug#11489: 24.0.96; empty .dir-locals.el (or with comments only) gives "Error: (end-of-file)" during opening of arbitrary files Date: Wed, 16 May 2012 21:23:06 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1337196242 28740 80.91.229.3 (16 May 2012 19:24:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 16 May 2012 19:24:02 +0000 (UTC) To: 11489@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed May 16 21:24:00 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUjpG-0000Uo-8n for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 21:23:58 +0200 Original-Received: from localhost ([::1]:49211 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjpF-0004pH-MF for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 May 2012 15:23:57 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51147) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjpC-0004oE-AD for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:23:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUjp9-0000cV-Sb for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:23:53 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:48524) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUjp9-0000cH-MC for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:23:51 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SUjpK-0000tP-AJ for bug-gnu-emacs@gnu.org; Wed, 16 May 2012 15:24:02 -0400 X-Loop: help-debbugs@gnu.org 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: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13371962183400 (code B ref -1); Wed, 16 May 2012 19:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2012 19:23:38 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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== Original-Received: by 10.180.76.232 with SMTP id n8mr43871072wiw.2.1337196186259; Wed, 16 May 2012 12:23:06 -0700 (PDT) Original-Received: by 10.216.173.141 with HTTP; Wed, 16 May 2012 12:23:06 -0700 (PDT) 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60078 Archived-At: 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)