From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61321: 30.0.50; Fail to load file with file variables and CRLF EOL without EOL conversion Date: Mon, 06 Feb 2023 18:30:10 +0200 Message-ID: <83r0v2pxil.fsf@gnu.org> References: <86a61qnb8m.wl--xmue@d1.dion.ne.jp> <83zg9qq0v9.fsf@gnu.org> <868rhan5ou.wl--xmue@d1.dion.ne.jp> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29766"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61321-done@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 06 17:31:33 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pP4Oy-0007ag-SH for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 06 Feb 2023 17:31:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pP4OZ-0002Vk-Sv; Mon, 06 Feb 2023 11:31:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pP4OV-0002Uu-36 for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2023 11:31:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pP4OU-0001CP-Nv for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2023 11:31:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pP4OU-0005BC-FZ for bug-gnu-emacs@gnu.org; Mon, 06 Feb 2023 11:31:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Feb 2023 16:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 61321 X-GNU-PR-Package: emacs Mail-Followup-To: 61321@debbugs.gnu.org, eliz@gnu.org, kzhr@d1.dion.ne.jp Original-Received: via spool by 61321-done@debbugs.gnu.org id=D61321.167570100719760 (code D ref 61321); Mon, 06 Feb 2023 16:31:02 +0000 Original-Received: (at 61321-done) by debbugs.gnu.org; 6 Feb 2023 16:30:07 +0000 Original-Received: from localhost ([127.0.0.1]:49695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pP4Na-00058e-QK for submit@debbugs.gnu.org; Mon, 06 Feb 2023 11:30:07 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:43328) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pP4NY-00057c-Uv for 61321-done@debbugs.gnu.org; Mon, 06 Feb 2023 11:30:05 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pP4NT-0000fv-0E; Mon, 06 Feb 2023 11:29:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=iKcb+gm3Hj6o6sQ4xfFuUMTLk6ZQkYWXBIPHd58WMnY=; b=OYHlgUcZKwzT l0jdbYJWTyAX1VyWVlJTKsWoIQFRNhSQefJGSRwWLkEttF2bHJnbZIlnaH9eQMRz0Mf24kYLobXnb MNgZHtBKr9GXoXv1b262QvWKA9pYnhC4YEb1ELTxXx8jksakFgDe5PQzclrqJVwpewCfxo6YXtuxx 3Ej8mk0B+9JhDMwuIzhp5NGFa+1oFt5+UbNp1XlMRll2WAUP6jFwqcgF8jdcchTFuVsksyf6Nk6Bi /xvt/lKqub30zRyn8Pj4dORrPQUGzLZHoQ1rAVDTn9uDO90GzavmLI3HW6ArbuejHc/KncJMTP5jr 2ikzccJzUuQoAleYsUc6Zg==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pP4NR-0008Gm-UI; Mon, 06 Feb 2023 11:29:58 -0500 In-Reply-To: <868rhan5ou.wl--xmue@d1.dion.ne.jp> (message from Kazuhiro Ito on Tue, 07 Feb 2023 01:01:53 +0900) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254973 Archived-At: > Date: Tue, 07 Feb 2023 01:01:53 +0900 > From: Kazuhiro Ito > Cc: 61321@debbugs.gnu.org > > > > (let ((filename (expand-file-name "test.txt" > > > temporary-file-directory))) > > > (with-temp-buffer > > > (setq buffer-file-coding-system 'dos) > > > (insert "This is a test.\n" > > > "\n" > > > "Local Variables:\n" > > > "comment-column: 0\n" > > > "End:\n") > > > (write-file filename)) > > > (unwind-protect > > > (let (;; (coding-system-for-read 'unix) > > > (inhibit-eol-conversion t) > > > ) > > > (find-file filename)) > > > (delete-file filename))) > > > > > > -> Local variables entry is missing the suffix > > > > Thanks. Does the patch below give good results? > > I confirmed the problem was fixed. Thank you for the quick fix! Thanks, I've now installed this on the master branch, and I'm therefore closing this bug.