From unknown Sat Jun 21 03:10:01 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#11418 <11418@debbugs.gnu.org> To: bug#11418 <11418@debbugs.gnu.org> Subject: Status: 24.0.96; empty .dir-locals.el gives "Error: (end-of-file)" during opening arbitrary files Reply-To: bug#11418 <11418@debbugs.gnu.org> Date: Sat, 21 Jun 2025 10:10:01 +0000 retitle 11418 24.0.96; empty .dir-locals.el gives "Error: (end-of-file)" du= ring opening arbitrary files reassign 11418 emacs submitter 11418 Albert severity 11418 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sun May 06 04:29:50 2012 Received: (at submit) by debbugs.gnu.org; 6 May 2012 08:29:50 +0000 Received: from localhost ([127.0.0.1]:37774 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQwqk-00083T-1d for submit@debbugs.gnu.org; Sun, 06 May 2012 04:29:50 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59176) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQwqh-00083H-Q5 for submit@debbugs.gnu.org; Sun, 06 May 2012 04:29:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQwok-0006Cy-Do for submit@debbugs.gnu.org; Sun, 06 May 2012 04:27:48 -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]:35417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQwok-0006Cp-81 for submit@debbugs.gnu.org; Sun, 06 May 2012 04:27:46 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQwoh-0006qO-VF for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 04:27:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQwof-0006Bt-H6 for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 04:27:43 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:49067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQwof-0006BY-54 for bug-gnu-emacs@gnu.org; Sun, 06 May 2012 04:27:41 -0400 Received: by wibhj13 with SMTP id hj13so2061091wib.12 for ; Sun, 06 May 2012 01:27:38 -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; bh=hxPSyrXvouDRkE0UDkJ0cPCuyj5x2tbAGTJfvsat9oo=; b=F3SYJ3JBLUpnCROHI9BYGL5EVsy5W3o1Hg+hAzYIex6f5iCvqH5+uU3Tf6+Ga0fP3V Am0AbM0gJ7OK2kjN9TwtIELsGt50igNfcA2n7TM8doM+hl5cSTxAdgQstFgaMG1FIip5 z6ziFje0cmKN812WEVJmanNoeJWSS3MQc8GdK/N0DPxrlKvCx8JgplIsCtSLyMOxINq1 POjZHjleQeZzOeFO3ce7uQ8m0LprYXZcfxaJUjVd8XMqAIXASzVh4eAIYFcKZuJPfCdE 6noA4NDY2LWOypRXOeU6vK1RjM5dF1duNSua8l6+bMOxTTdT2Steo8dI20/328D2ieW9 8SPQ== MIME-Version: 1.0 Received: by 10.216.135.234 with SMTP id u84mr5820497wei.108.1336292858486; Sun, 06 May 2012 01:27:38 -0700 (PDT) Received: by 10.216.237.228 with HTTP; Sun, 6 May 2012 01:27:38 -0700 (PDT) Date: Sun, 6 May 2012 10:27:38 +0200 Message-ID: Subject: 24.0.96; empty .dir-locals.el gives "Error: (end-of-file)" during opening arbitrary files From: Albert To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 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-Debbugs-Envelope-To: submit 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. Please check that the From: line contains a valid email address. After 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. If 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) It also shows up during export of org-files etc. So it took some time to find 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 consider this an inconvenient error message. If possible: either give no error when there is no content, or be more specific 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: `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) of 2012-04-29 on MARVIN Windowing system distributor `Microsoft Corp.', version 5.1.2600 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --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' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENG value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Org Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-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: 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 debbugs-submit-bounces@debbugs.gnu.org Sun May 06 14:01:33 2012 Received: (at 11418-done) by debbugs.gnu.org; 6 May 2012 18:01:33 +0000 Received: from localhost ([127.0.0.1]:38794 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SR5m1-0006An-Eg for submit@debbugs.gnu.org; Sun, 06 May 2012 14:01:33 -0400 Received: from fencepost.gnu.org ([208.118.235.10]:35321 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SR5m0-0006Ah-37 for 11418-done@debbugs.gnu.org; Sun, 06 May 2012 14:01:33 -0400 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SR5k6-0004go-1i; Sun, 06 May 2012 13:59:34 -0400 From: Glenn Morris To: 11418-done@debbugs.gnu.org Subject: Re: bug#11418: 24.0.96; empty .dir-locals.el gives "Error: (end-of-file)" during opening arbitrary files References: X-Spook: NWO CIA covert video defense information warfare Mole CID X-Ran: z5h?^bh:zxM}'iOxFY@)BuP`;WcIl`(gg\:(Qg-M#0ZPlejCo[df_8u5i_}mB`"`$z}}1L X-Hue: black X-Debbugs-No-Ack: yes X-Attribution: GM Date: Sun, 06 May 2012 13:59:33 -0400 In-Reply-To: (Albert's message of "Sun, 6 May 2012 10:27:38 +0200") Message-ID: <6sy5p5dwca.fsf@fencepost.gnu.org> 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-Debbugs-Envelope-To: 11418-done 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 (------) Version: 24.0.97 Albert wrote: > I consider this an inconvenient error message. If possible: either > give no error when there is no content, or be more specific where no > content was found. I don't know a simple way to distinguish an end-of-file error caused by a malformed expression from one caused by a file that is either literally empty or contains nothing but comments. So I just made the message mention dir-locals. From debbugs-submit-bounces@debbugs.gnu.org Wed May 16 15:32:09 2012 Received: (at control) by debbugs.gnu.org; 16 May 2012 19:32:09 +0000 Received: from localhost ([127.0.0.1]:58090 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SUjwt-00015V-0m for submit@debbugs.gnu.org; Wed, 16 May 2012 15:32:09 -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 To: Albert Subject: Re: bug#11489: 24.0.96; empty .dir-locals.el (or with comments only) gives "Error: (end-of-file)" during opening of arbitrary files 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-Debbugs-No-Ack: yes 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-Debbugs-Envelope-To: control Cc: 11489@debbugs.gnu.org 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 From unknown Sat Jun 21 03:10:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 14 Jun 2012 11:24:02 +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