From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2013 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13862@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.136232733517250 (code B ref -1); Sun, 03 Mar 2013 16:16:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 Mar 2013 16:15:35 +0000 Received: from localhost ([127.0.0.1]:57272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCBZW-0004U7-63 for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43502) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCBZS-0004Tt-4q for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCBZB-0002ID-PM for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_XBL,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBZB-0002I7-Lx for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBZA-0004x2-J5 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:15:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCBZ9-0002Hk-BX for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:15:12 -0500 Received: from mail-pb0-f41.google.com ([209.85.160.41]:35733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBZ9-0002HZ-5c for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:15:11 -0500 Received: by mail-pb0-f41.google.com with SMTP id um15so2623099pbc.0 for ; Sun, 03 Mar 2013 08:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:mime-version :content-type; bh=wjqw2XtmoOfHQDYz5W99U4Pbi50322BP/0ytndjH/9E=; b=TxSQ2qPguL/yp/mD4EYE3fcBt7VCUU6ap4moCMviprugMG8Y9Cpa6uQlJ/q8nUemEZ LV3/roIt7/b+JqgKim97i6zl2sSFfxccf80apkPkp/HKEKIrnBpZWH/H0ZlomEkdua0V QcQSdqcRk29t7dHaSq9FqpK4nnvv8jTFw9A/QVJwXJre//FUGM8SBnhn7JLCZdtq/t4U 4dX1U/h1W/PrxuUSmwvBSeK8ry3fSbOXJ9anHby4mNrNgjQ3v2aX5i+CXKV/K5PScRBc Rs76T/znBhmFRImmODtr7yMP3e6OEU/KhVz0iCfSNgmbHgH8nlO9bFgmyUHzkrboxVg8 /KEw== X-Received: by 10.66.230.234 with SMTP id tb10mr27595786pac.182.1362327310541; Sun, 03 Mar 2013 08:15:10 -0800 (PST) Received: from debian-6.05 ([115.242.155.185]) by mx.google.com with ESMTPS id hu2sm19144332pbc.38.2013.03.03.08.15.07 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 08:15:09 -0800 (PST) From: Jambunathan K Date: Sun, 03 Mar 2013 21:44:55 +0530 Message-ID: <87bob0794w.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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 (------) --=-=-= Content-Type: text/plain 1. emacs -Q 2. Visit the attached patch file. (I have removed some hunks) Side Issue: shouldn't *.patch file open in diff mode. Currently it opens in fundamental mode. See the following error reported ,---- | File mode specification error: (error "Local variables entry is missing the | prefix") | File local-variables error: (error "Local variables entry is missing the | prefix") `---- In GNU Emacs 24.3.50.10 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-03-03 on debian-6.05 Bzr revision: 111916 eggert@cs.ucla.edu-20130302183934-3d4pouz6i3qwkxs9 Windowing system distributor `The X.Org Foundation', version 11.0.10707000 System Description: Debian GNU/Linux 6.0.5 (squeeze) --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ox-html.el-org-html-code-org-html-verbatim-Transcode.patch >From 75708cf644944d301e57bc343db8749b8fa3c242 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sun, 3 Mar 2013 13:51:32 +0530 Subject: [PATCH 1/3] ox-html.el (org-html-code, org-html-verbatim): Transcode value * lisp/ox-html.el (org-html-code, org-html-verbatim): Transcode value. --- lisp/ox-html.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index a0f3f4f..3a4c0e7 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1899,7 +1899,7 @@ channel." CONTENTS is nil. INFO is a plist holding contextual information." (format (or (cdr (assq 'code org-html-text-markup-alist)) "%s") - (org-element-property :value code))) + (org-html-plain-text (org-element-property :value code) info))) ;;;; Drawer @@ -3029,7 +3029,7 @@ holding contextual information." CONTENTS is nil. INFO is a plist holding contextual information." (format (or (cdr (assq 'verbatim org-html-text-markup-alist)) "%s") - (org-element-property :value verbatim))) + (org-html-plain-text (org-element-property :value verbatim) info))) ;;;; Verse Block -- 1.7.2.5 --=-=-=-- From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 03 Mar 2013 16:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13862@debbugs.gnu.org Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.136232774317966 (code B ref 13862); Sun, 03 Mar 2013 16:23:02 +0000 Received: (at 13862) by debbugs.gnu.org; 3 Mar 2013 16:22:23 +0000 Received: from localhost ([127.0.0.1]:57283 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCBg5-0004fh-AF for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:22:23 -0500 Received: from mail-pb0-f47.google.com ([209.85.160.47]:47115) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCBg0-0004eu-8i for 13862@debbugs.gnu.org; Sun, 03 Mar 2013 11:22:19 -0500 Received: by mail-pb0-f47.google.com with SMTP id rp2so2612340pbb.34 for <13862@debbugs.gnu.org>; Sun, 03 Mar 2013 08:22:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:in-reply-to:references:user-agent :date:message-id:mime-version:content-type; bh=WeegPsn3YBBu8OENfM5vfcHo6HbGmEuVb/6xrwfCLZw=; b=fBofgCOITsveUmNryHCl3DZhHPscrD1M1xAyo8n6OPGg+C94MmkTLaz8fT6dDx8/WR vqxz+MXf7qE8kbbENErnQaFy05PD2QBTe7tV0Qh4y6/QSKMbn0D4qrpOPU+nzj6936Wv 4zin6FbNUHhqPPft/CHYMcDSzdP2JYeZ4kKX7ebVwG4PDCUZ0xjv3lOdDPM56+vjVksA BAQoa5DQFBF3N2OrCiSWDrp5Z/PsYqvZ7VueBxxut1rf7MxbsI3mPkXGpF5zhCeqL1j9 atD+NUv6crMJcCLx7lpuzSmM5eIQgHVKhBsQoZTOP57VAIF0hPoPXz8XWrGHE5Jnhzq/ suLA== X-Received: by 10.68.130.1 with SMTP id oa1mr24433933pbb.134.1362327720475; Sun, 03 Mar 2013 08:22:00 -0800 (PST) Received: from debian-6.05 ([115.242.155.185]) by mx.google.com with ESMTPS id 1sm19164049pba.32.2013.03.03.08.21.57 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 08:21:59 -0800 (PST) From: Jambunathan K In-Reply-To: <87bob0794w.fsf@gmail.com> (Jambunathan K.'s message of "Sun, 03 Mar 2013 21:44:55 +0530") References: <87bob0794w.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Date: Sun, 03 Mar 2013 21:51:50 +0530 Message-ID: <871ubw78td.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.6 (--) 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: -2.6 (--) --=-=-= Content-Type: text/plain Jambunathan K writes: > 1. emacs -Q > 2. Visit the attached patch file. (I have removed some hunks) Sorry, wrong attachment. Use this one instead. --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0002-Always-use-utf-8-encoding-for-HTML-export.patch Content-Transfer-Encoding: quoted-printable >From c5d46d21b5a3f902cfd7b9d709660b493f67bd94 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sun, 3 Mar 2013 20:15:10 +0530 Subject: [PATCH 2/3] Always use utf-8 encoding for HTML export * ox-html.el (org-html-coding-system): Removed. Always use utf-8 for HTML export. (org-html--build-meta-info, org-html-template) (org-html-entity, org-html-export-to-html): Propagate above change. (org-html-table--table.el-table): Replace   with it's utf-8 equivalent. (org-html-special-string-regexps, org-html--tags) (org-html-format-headline, org-html--format-toc-headline) (org-html-checkbox, org-html-table-cell, org-html-timestamp) (org-html-verse-block): Replace numeric entities with their utf-8 equivalent. Mark ox-html.el as utf-8 encoded. --- lisp/ox-html.el | 55 +++++++++++++++++++++------------------------------= ---- 1 files changed, 21 insertions(+), 34 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index 3a4c0e7..efd9b2f 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -136,10 +136,10 @@ (defvar htmlize-buffer-places) ; from htmlize.el =20 (defconst org-html-special-string-regexps - '(("\\\\-" . "­") ; shy - ("---\\([^-]\\)" . "—\\1") ; mdash - ("--\\([^-]\\)" . "–\\1") ; ndash - ("\\.\\.\\." . "…")) ; hellip + '(("\\\\-" . "=C2=AD") ; shy + ("---\\([^-]\\)" . "=E2=80=94\\1") ; mdash + ("--\\([^-]\\)" . "=E2=80=93\\1") ; ndash + ("\\.\\.\\." . "=E2=80=A6")) ; hellip "Regular expressions for special string conversion.") =20 (defconst org-html-scripts @@ -821,12 +821,6 @@ and corresponding declarations." (cons (string :tag "Extension") (string :tag "Declaration"))))) =20 -(defcustom org-html-coding-system 'utf-8 - "Coding system for HTML export. -Use utf-8 as the default value." - :group 'org-export-html - :type 'coding-system) - (defcustom org-html-divs '("preamble" "content" "postamble") "The name of the main divs for HTML export. This is a list of three strings, the first one for the preamble @@ -1337,12 +1331,7 @@ INFO is a plist used as a communication channel." (keywords (plist-get info :keywords))) (concat (format "%s\n" title) - (format - "\n" - (or (and org-html-coding-system - (fboundp 'coding-system-get) - (coding-system-get org-html-coding-system 'mime-charset)) - "iso-8859-1")) + "\n" (format "\n" title) (format "\n") (and date (format "\n" d= ate)) @@ -1515,10 +1504,7 @@ holding export options." (cdr (assoc "html" org-html-xml-declaration)) =20 "") - (or (and org-html-coding-system - (fboundp 'coding-system-get) - (coding-system-get org-html-coding-system 'mime-charset)) - "iso-8859-1")) + "utf-8") "\n" "\n" @@ -1579,7 +1565,7 @@ INFO is a plist used as a communication channel." (concat org-html-tag-class-prefix (org-html-fix-class-name tag)) tag)) - tags " ")))) + tags "=C2=A0")))) =20 ;;;; Headline =20 @@ -1593,7 +1579,7 @@ INFO is a plist used as a communication channel." (todo (org-html--todo todo)) (tags (org-html--tags tags))) (concat section-number todo (and todo " ") text - (and tags "   ") tags))) + (and tags "=C2=A0=C2=A0=C2=A0") tags))) =20 ;;;; Src Code =20 @@ -1780,7 +1766,7 @@ INFO is a plist used as a communication channel." (target . ignore)) (org-export-backend-translate-table 'html)) info) - (and tags "   ") (org-html--tags tags))))) + (and tags "=C2=A0=C2=A0=C2=A0") (org-html--tags tags))))) =20 (defun org-html-list-of-listings (info) "Build a list of listings. @@ -1932,7 +1918,7 @@ holding contextual information. See `org-export-data= '." "Transcode an ENTITY object from Org to HTML. CONTENTS are the definition itself. INFO is a plist holding contextual information." - (org-element-property :html entity)) + (org-element-property :utf-8 entity)) =20 =20 ;;;; Example Block @@ -2184,7 +2170,7 @@ contextual information." =20 (defun org-html-checkbox (checkbox) (case checkbox (on "[X]") - (off "[ ]") + (off "[=C2=A0]") (trans "[-]") (t ""))) =20 @@ -2856,7 +2842,7 @@ channel." " align=3D\"%s\"" " class=3D\"%s\"") (org-export-table-cell-alignment table-cell info))))) (when (or (not contents) (string=3D "" (org-trim contents))) - (setq contents " ")) + (setq contents "=C2=A0")) (cond ((and (org-export-table-has-header-p table info) (=3D 1 (org-export-table-row-group table-row info))) @@ -2929,8 +2915,9 @@ communication channel." (re-search-forward "^[ \t]*|[^|]" nil t) (table-generate-source 'html outbuf)) (with-current-buffer outbuf - (prog1 (org-trim (buffer-string)) - (kill-buffer) ))))) + (prog1 (org-trim (replace-regexp-in-string + " " "=C2=A0" (buffer-string) nil t)) + (kill-buffer)))))) =20 (defun org-html-table (table contents info) "Transcode a TABLE element from Org to HTML. @@ -3009,7 +2996,7 @@ information." (let ((value (org-html-plain-text (org-timestamp-translate timestamp) info))) (format "%s" - (replace-regexp-in-string "--" "–" value)))) + (replace-regexp-in-string "--" "=E2=80=93" value)))) =20 =20 ;;;; Underline @@ -3049,7 +3036,7 @@ contextual information." (while (string-match "^[ \t]+" contents) (let* ((num-ws (length (match-string 0 contents))) (ws (let (out) (dotimes (i num-ws out) - (setq out (concat out " ")))))) + (setq out (concat out "=C2=A0")))))) (setq contents (replace-match ws nil t contents)))) (format "

\n%s

" contents)) =20 @@ -3150,16 +3137,15 @@ file-local settings. Return output file's name." (interactive) (let* ((extension (concat "." org-html-extension)) - (file (org-export-output-file-name extension subtreep)) - (org-export-coding-system org-html-coding-system)) + (file (org-export-output-file-name extension subtreep))) (if async (org-export-async-start (lambda (f) (org-export-add-to-stack f 'html)) - (let ((org-export-coding-system org-html-coding-system)) + (let ((org-export-coding-system 'utf-8)) `(expand-file-name (org-export-to-file 'html ,file ,subtreep ,visible-only ,body-only ',ext-plist)))) - (let ((org-export-coding-system org-html-coding-system)) + (let ((org-export-coding-system 'utf-8)) (org-export-to-file 'html file subtreep visible-only body-only ext-plist))))) =20 @@ -3199,6 +3185,7 @@ Return output file name." =20 ;; Local variables: ;; generated-autoload-file: "org-loaddefs.el" +;; coding: utf-8 ;; End: =20 ;;; ox-html.el ends here --=20 1.7.2.5 --=-=-= Content-Type: text/plain > > Side Issue: shouldn't *.patch file open in diff mode. Currently it > opens in fundamental mode. > > See the following error reported > > ,---- > | File mode specification error: (error "Local variables entry is missing the > | prefix") > | File local-variables error: (error "Local variables entry is missing the > | prefix") > `---- > > In GNU Emacs 24.3.50.10 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2013-03-03 on debian-6.05 > Bzr revision: 111916 eggert@cs.ucla.edu-20130302183934-3d4pouz6i3qwkxs9 > Windowing system distributor `The X.Org Foundation', version 11.0.10707000 > System Description: Debian GNU/Linux 6.0.5 (squeeze) --=-=-=-- From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Resent-From: Glenn Morris Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 00:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jambunathan K Cc: 13862@debbugs.gnu.org Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.13623562791850 (code B ref 13862); Mon, 04 Mar 2013 00:18:02 +0000 Received: (at 13862) by debbugs.gnu.org; 4 Mar 2013 00:17:59 +0000 Received: from localhost ([127.0.0.1]:57748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCJ6M-0000Tn-To for submit@debbugs.gnu.org; Sun, 03 Mar 2013 19:17:59 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:40233 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCJ6K-0000Te-Iz for 13862@debbugs.gnu.org; Sun, 03 Mar 2013 19:17:57 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UCJ67-0006u1-Uy; Sun, 03 Mar 2013 19:17:44 -0500 From: Glenn Morris References: <87bob0794w.fsf@gmail.com> <871ubw78td.fsf@gmail.com> X-Spook: analyzer Lexis-Nexis FSF Ortega red noise smuggle X-Ran: e^v6ZcyhU56mgC)cLh/$`s<% (Jambunathan K.'s message of "Sun, 03 Mar 2013 21:51:50 +0530") Message-ID: <6jwqto10ig.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: -4.8 (----) 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: -7.5 (-------) Adding .diff and .patch to inhibit-local-variables-regexps would avoid this. From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 03:40:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 13862@debbugs.gnu.org Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.136236837119922 (code B ref 13862); Mon, 04 Mar 2013 03:40:01 +0000 Received: (at 13862) by debbugs.gnu.org; 4 Mar 2013 03:39:31 +0000 Received: from localhost ([127.0.0.1]:57886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCMFO-0005BE-Pj for submit@debbugs.gnu.org; Sun, 03 Mar 2013 22:39:31 -0500 Received: from mail-pa0-f45.google.com ([209.85.220.45]:61430) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCMFH-0005At-ST for 13862@debbugs.gnu.org; Sun, 03 Mar 2013 22:39:28 -0500 Received: by mail-pa0-f45.google.com with SMTP id kl14so2907363pab.4 for <13862@debbugs.gnu.org>; Sun, 03 Mar 2013 19:39:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=jYShFamdFnKhI4owNl7gth6OckpXqa4GyzvKmvDu25M=; b=tBk0jtsFMgDM7eG6u6xg1eSOtD6iC3VRkMj3ZGiLCr0QLmnpWGy3YGUrPHroGDL2jy opELEHQgOeSjJu4K/0YpOv9zPAEUylI3qgRUhaRK8Nw5iLZzNdZWwf9Bh1nvWc7JWJ/O 5tD4gvtjtaFzEDABiD5BVg3/HYleBeMGEDlYWe+Wl5z3d4yEXBN+G33nAD9RV60iLn0Q ARmS/nyIyY6qL9tDGofpV1GCjCkr1hR/Obl8G23botOvkg9CqwfSj57lFrI3Ul2U7YQk rAVg8R9rKIqMQCBilKdoj7+ee13w6V3j1A1iJ/u9NDGJlS2LsqZ6/vX1qy8LUPW1oGZ9 Xo+g== X-Received: by 10.66.147.98 with SMTP id tj2mr29870349pab.148.1362368345503; Sun, 03 Mar 2013 19:39:05 -0800 (PST) Received: from debian-6.05 ([101.63.199.133]) by mx.google.com with ESMTPS id 1sm20670945pba.32.2013.03.03.19.39.01 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 19:39:04 -0800 (PST) From: Jambunathan K References: <87bob0794w.fsf@gmail.com> <871ubw78td.fsf@gmail.com> <6jwqto10ig.fsf@fencepost.gnu.org> Date: Mon, 04 Mar 2013 09:08:54 +0530 In-Reply-To: <6jwqto10ig.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 03 Mar 2013 19:17:43 -0500") Message-ID: <87ppzf7s1d.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) 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: -2.6 (--) Glenn Morris writes: > Adding .diff and .patch to inhibit-local-variables-regexps would avoid > this. ,---- | ;; Local variables: | ;; generated-autoload-file: "org-loaddefs.el" | +;; coding: utf-8 | ;; End: `---- The question is: Is there are any local variables in the patch? There isn't any. So why should we inhibit something that is not there. If `diff-mode' has no comment syntax defined, then by extension, it cannot specify file local variables. ps: I am not sure why *.patch files are visited in diff-mode? Jambnathan K. From unknown Wed Aug 20 05:43:03 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jambunathan K Subject: bug#13862: closed (Re: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix")) Message-ID: References: <87bob0794w.fsf@gmail.com> X-Gnu-PR-Message: they-closed 13862 X-Gnu-PR-Package: emacs Reply-To: 13862@debbugs.gnu.org Date: Mon, 04 Mar 2013 07:40:06 +0000 Content-Type: multipart/mixed; boundary="----------=_1362382806-9226-1" This is a multi-part message in MIME format... ------------=_1362382806-9226-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13862: 24.3.50; File local-variables error: (error "Local variables entry = is missing the prefix") which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13862@debbugs.gnu.org. --=20 13862: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13862 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1362382806-9226-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13862-done) by debbugs.gnu.org; 4 Mar 2013 07:39:02 +0000 Received: from localhost ([127.0.0.1]:58120 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCPzA-0002MV-Eo for submit@debbugs.gnu.org; Mon, 04 Mar 2013 02:39:01 -0500 Received: from fencepost.gnu.org ([208.118.235.10]:50936 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCPyv-0002M5-MA for 13862-done@debbugs.gnu.org; Mon, 04 Mar 2013 02:38:52 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1UCPyh-0001qD-Fb; Mon, 04 Mar 2013 02:38:31 -0500 From: Glenn Morris To: 13862-done@debbugs.gnu.org Subject: Re: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") References: <87bob0794w.fsf@gmail.com> <871ubw78td.fsf@gmail.com> <6jwqto10ig.fsf@fencepost.gnu.org> <87ppzf7s1d.fsf@gmail.com> X-Spook: clandestine digicash corporate security Geraldton BATF X-Ran: t+!pRc]g*V*=N)Sfv=*2xBF%F$ISu^-s8{@|$oKxPA=pQ]vbbPm 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: -4.8 (----) X-Debbugs-Envelope-To: 13862-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.1 (------) Version: 24.4 Jambunathan K wrote: > Is there are any local variables in the patch? There isn't any. So why > should we inhibit something that is not there. Inhibit to prevent a false detection, exactly as in this case. > If `diff-mode' has no comment syntax defined, then by extension, it > cannot specify file local variables. Err, you can specify file local variables without a prefix. Eg etc/NEWS. ------------=_1362382806-9226-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 3 Mar 2013 16:15:35 +0000 Received: from localhost ([127.0.0.1]:57272 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCBZW-0004U7-63 for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:34 -0500 Received: from eggs.gnu.org ([208.118.235.92]:43502) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCBZS-0004Tt-4q for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCBZB-0002ID-PM for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:15 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-102.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_XBL,T_DKIM_INVALID,USER_IN_WHITELIST autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:49820) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBZB-0002I7-Lx for submit@debbugs.gnu.org; Sun, 03 Mar 2013 11:15:13 -0500 Received: from eggs.gnu.org ([208.118.235.92]:54861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBZA-0004x2-J5 for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:15:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCBZ9-0002Hk-BX for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:15:12 -0500 Received: from mail-pb0-f41.google.com ([209.85.160.41]:35733) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCBZ9-0002HZ-5c for bug-gnu-emacs@gnu.org; Sun, 03 Mar 2013 11:15:11 -0500 Received: by mail-pb0-f41.google.com with SMTP id um15so2623099pbc.0 for ; Sun, 03 Mar 2013 08:15:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:subject:date:message-id:mime-version :content-type; bh=wjqw2XtmoOfHQDYz5W99U4Pbi50322BP/0ytndjH/9E=; b=TxSQ2qPguL/yp/mD4EYE3fcBt7VCUU6ap4moCMviprugMG8Y9Cpa6uQlJ/q8nUemEZ LV3/roIt7/b+JqgKim97i6zl2sSFfxccf80apkPkp/HKEKIrnBpZWH/H0ZlomEkdua0V QcQSdqcRk29t7dHaSq9FqpK4nnvv8jTFw9A/QVJwXJre//FUGM8SBnhn7JLCZdtq/t4U 4dX1U/h1W/PrxuUSmwvBSeK8ry3fSbOXJ9anHby4mNrNgjQ3v2aX5i+CXKV/K5PScRBc Rs76T/znBhmFRImmODtr7yMP3e6OEU/KhVz0iCfSNgmbHgH8nlO9bFgmyUHzkrboxVg8 /KEw== X-Received: by 10.66.230.234 with SMTP id tb10mr27595786pac.182.1362327310541; Sun, 03 Mar 2013 08:15:10 -0800 (PST) Received: from debian-6.05 ([115.242.155.185]) by mx.google.com with ESMTPS id hu2sm19144332pbc.38.2013.03.03.08.15.07 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 08:15:09 -0800 (PST) From: Jambunathan K To: bug-gnu-emacs@gnu.org Subject: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Date: Sun, 03 Mar 2013 21:44:55 +0530 Message-ID: <87bob0794w.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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 (------) --=-=-= Content-Type: text/plain 1. emacs -Q 2. Visit the attached patch file. (I have removed some hunks) Side Issue: shouldn't *.patch file open in diff mode. Currently it opens in fundamental mode. See the following error reported ,---- | File mode specification error: (error "Local variables entry is missing the | prefix") | File local-variables error: (error "Local variables entry is missing the | prefix") `---- In GNU Emacs 24.3.50.10 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-03-03 on debian-6.05 Bzr revision: 111916 eggert@cs.ucla.edu-20130302183934-3d4pouz6i3qwkxs9 Windowing system distributor `The X.Org Foundation', version 11.0.10707000 System Description: Debian GNU/Linux 6.0.5 (squeeze) --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-ox-html.el-org-html-code-org-html-verbatim-Transcode.patch >From 75708cf644944d301e57bc343db8749b8fa3c242 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sun, 3 Mar 2013 13:51:32 +0530 Subject: [PATCH 1/3] ox-html.el (org-html-code, org-html-verbatim): Transcode value * lisp/ox-html.el (org-html-code, org-html-verbatim): Transcode value. --- lisp/ox-html.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index a0f3f4f..3a4c0e7 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1899,7 +1899,7 @@ channel." CONTENTS is nil. INFO is a plist holding contextual information." (format (or (cdr (assq 'code org-html-text-markup-alist)) "%s") - (org-element-property :value code))) + (org-html-plain-text (org-element-property :value code) info))) ;;;; Drawer @@ -3029,7 +3029,7 @@ holding contextual information." CONTENTS is nil. INFO is a plist holding contextual information." (format (or (cdr (assq 'verbatim org-html-text-markup-alist)) "%s") - (org-element-property :value verbatim))) + (org-html-plain-text (org-element-property :value verbatim) info))) ;;;; Verse Block -- 1.7.2.5 --=-=-=-- ------------=_1362382806-9226-1-- From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: closed (Re: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix")) Resent-From: Jambunathan K Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 08:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13862@debbugs.gnu.org X-Debbugs-Original-To: help-debbugs@gnu.org (GNU bug Tracking System) X-Debbugs-Original-Cc: 13862@debbugs.gnu.org Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.136238396611066 (code B ref 13862); Mon, 04 Mar 2013 08:00:02 +0000 Received: (at 13862) by debbugs.gnu.org; 4 Mar 2013 07:59:26 +0000 Received: from localhost ([127.0.0.1]:58144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCQIw-0002sQ-BS for submit@debbugs.gnu.org; Mon, 04 Mar 2013 02:59:26 -0500 Received: from mail-pa0-f53.google.com ([209.85.220.53]:56033) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCQIu-0002s8-H6 for 13862@debbugs.gnu.org; Mon, 04 Mar 2013 02:59:25 -0500 Received: by mail-pa0-f53.google.com with SMTP id bg4so2998466pad.26 for <13862@debbugs.gnu.org>; Sun, 03 Mar 2013 23:59:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=+gRssvmqVE1wta7OkuxVGzxz1h5BpHsjVw7ZqdPThwg=; b=un5Dbqv2fZ1TRUydIbEVee4dRvWzeFnjfFbNBdbwJh/FKRoEDm5xfmLDEE5HT1IVHd 2m4K0Pm88wLWWDIrTc4aSwrmCI/N51CgdQ8yXsD5KuK+0fxeaLe2R/Cg5xV+CMhilNXw UIt/JpdIfvKFoNiWh8kxLosV7nb7gSZdr5PREw3FlNgN3Urxw9x1Jc3yfeOHN75rXv/w ah493owfs/F3SPj0uSruzJpJdHIrJxNLOvFiPPt1mko0tB/HovHLsKhdy9NaFXRXu6aX gqismb44NMbg693s2PAJ28LvelRrcUSn3PqnENysNWVKUE2VjKqbGZ6QthnbF6Ak4WpW 4hrA== X-Received: by 10.66.11.196 with SMTP id s4mr30802281pab.207.1362383945305; Sun, 03 Mar 2013 23:59:05 -0800 (PST) Received: from debian-6.05 ([101.63.199.133]) by mx.google.com with ESMTPS id g4sm23022171pax.4.2013.03.03.23.59.02 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Sun, 03 Mar 2013 23:59:04 -0800 (PST) From: Jambunathan K References: <87bob0794w.fsf@gmail.com> Date: Mon, 04 Mar 2013 13:28:52 +0530 In-Reply-To: (GNU bug Tracking System's message of "Mon, 04 Mar 2013 07:40:06 +0000") Message-ID: <8738wbfver.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.2 (-) 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: -2.6 (--) help-debbugs@gnu.org (GNU bug Tracking System) writes: >> Is there are any local variables in the patch? There isn't any. So why >> should we inhibit something that is not there. > > Inhibit to prevent a false detection, exactly as in this case. > >> If `diff-mode' has no comment syntax defined, then by extension, it >> cannot specify file local variables. > > Err, you can specify file local variables without a prefix. Eg > etc/NEWS. Seems to me that it is worth re-visiting the above decision. Closing the bug will only suppress further arguments surrounding this bug. From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: closed (Re: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix")) Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 14:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jambunathan K Cc: 13862@debbugs.gnu.org Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.136240788725277 (code B ref 13862); Mon, 04 Mar 2013 14:39:02 +0000 Received: (at 13862) by debbugs.gnu.org; 4 Mar 2013 14:38:07 +0000 Received: from localhost ([127.0.0.1]:58433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCWWk-0006Zc-Ce for submit@debbugs.gnu.org; Mon, 04 Mar 2013 09:38:06 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:58585) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCWWh-0006Z1-P7 for 13862@debbugs.gnu.org; Mon, 04 Mar 2013 09:38:04 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxLvL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQHCxQYDSQth3EGwS2RCgOIYZwZgV6DFQ X-IPAS-Result: Av8EABK/CFFFxLvL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMQCzQHCxQYDSQth3EGwS2RCgOIYZwZgV6DFQ X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2972225" Received: from 69-196-187-203.dsl.teksavvy.com (HELO pastel.home) ([69.196.187.203]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Mar 2013 09:37:41 -0500 Received: by pastel.home (Postfix, from userid 20848) id CCEE96BF75; Mon, 4 Mar 2013 09:37:42 -0500 (EST) From: Stefan Monnier Message-ID: References: <87bob0794w.fsf@gmail.com> <8738wbfver.fsf@gmail.com> Date: Mon, 04 Mar 2013 09:37:42 -0500 In-Reply-To: <8738wbfver.fsf@gmail.com> (Jambunathan K.'s message of "Mon, 04 Mar 2013 13:28:52 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.5 (/) 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: -1.9 (-) >>> Is there are any local variables in the patch? There isn't any. So why >>> should we inhibit something that is not there. >> Inhibit to prevent a false detection, exactly as in this case. >>> If `diff-mode' has no comment syntax defined, then by extension, it >>> cannot specify file local variables. >> Err, you can specify file local variables without a prefix. Eg >> etc/NEWS. > Seems to me that it is worth re-visiting the above decision. Closing > the bug will only suppress further arguments surrounding this bug. I think we should start by turning the error into a warning. Stefan From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 16:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jambunathan K Cc: rgm@gnu.org, 13862@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.13624133031268 (code B ref 13862); Mon, 04 Mar 2013 16:09:01 +0000 Received: (at 13862) by debbugs.gnu.org; 4 Mar 2013 16:08:23 +0000 Received: from localhost ([127.0.0.1]:58883 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCXw7-0000KP-Gh for submit@debbugs.gnu.org; Mon, 04 Mar 2013 11:08:23 -0500 Received: from mtaout21.012.net.il ([80.179.55.169]:47626) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCXw5-0000K9-A3 for 13862@debbugs.gnu.org; Mon, 04 Mar 2013 11:08:22 -0500 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0MJ5007008ML7300@a-mtaout21.012.net.il> for 13862@debbugs.gnu.org; Mon, 04 Mar 2013 18:07:34 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MJ5007VY8SL7600@a-mtaout21.012.net.il>; Mon, 04 Mar 2013 18:07:34 +0200 (IST) Date: Mon, 04 Mar 2013 18:07:27 +0200 From: Eli Zaretskii In-reply-to: <87ppzf7s1d.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83lia3tagw.fsf@gnu.org> References: <87bob0794w.fsf@gmail.com> <871ubw78td.fsf@gmail.com> <6jwqto10ig.fsf@fencepost.gnu.org> <87ppzf7s1d.fsf@gmail.com> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Jambunathan K > Date: Mon, 04 Mar 2013 09:08:54 +0530 > Cc: 13862@debbugs.gnu.org > > Glenn Morris writes: > > > Adding .diff and .patch to inhibit-local-variables-regexps would avoid > > this. > > ,---- > | ; ; Local variables: > | ; ; generated-autoload-file: "org-loaddefs.el" > | +; ; coding: utf-8 > | ; ; End: > `---- > > The question is: > > Is there are any local variables in the patch? There isn't any. So why > should we inhibit something that is not there. > > If `diff-mode' has no comment syntax defined, then by extension, it > cannot specify file local variables. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.169 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4337] 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: 0.7 (/) > From: Jambunathan K > Date: Mon, 04 Mar 2013 09:08:54 +0530 > Cc: 13862@debbugs.gnu.org > > Glenn Morris writes: > > > Adding .diff and .patch to inhibit-local-variables-regexps would avoid > > this. > > ,---- > | ;; Local variables: > | ;; generated-autoload-file: "org-loaddefs.el" > | +;; coding: utf-8 > | ;; End: > `---- > > The question is: > > Is there are any local variables in the patch? There isn't any. So why > should we inhibit something that is not there. > > If `diff-mode' has no comment syntax defined, then by extension, it > cannot specify file local variables. File local variables never had anything to do with comment syntax; you won't find that neither in the code nor in the documentation. Which is a Good Thing: if file local variables were supported only for modes which have comment syntax defined, we couldn't have used them in all the modes that don't. For example, Text mode, or the tutorials, or the ChangeLog files. You name it. In modes that do have comment syntax defined, it makes sense to put these variables into comments, so as not to confuse the translator. But that's about all these variables have in common with comments. You will see in the code that Emacs deduces the prefix and suffix heuristically, and that is how this is documented. So I think Glenn is right about the solution. Diffs don't have contents of their own (well, except for the hunk headers), so looking up diffs for file-local variables doesn't make much sense. > ps: I am not sure why *.patch files are visited in diff-mode? What else? From unknown Wed Aug 20 05:43:03 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13862: 24.3.50; File local-variables error: (error "Local variables entry is missing the prefix") Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Mar 2013 16:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13862 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: Jambunathan K , 13862@debbugs.gnu.org Received: via spool by 13862-submit@debbugs.gnu.org id=B13862.13624156514800 (code B ref 13862); Mon, 04 Mar 2013 16:48:01 +0000 Received: (at 13862) by debbugs.gnu.org; 4 Mar 2013 16:47:31 +0000 Received: from localhost ([127.0.0.1]:58916 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCYXz-0001FN-2l for submit@debbugs.gnu.org; Mon, 04 Mar 2013 11:47:31 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:51109) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UCYXx-0001F9-5L for 13862@debbugs.gnu.org; Mon, 04 Mar 2013 11:47:29 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av8EABK/CFFFxLvL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA0kLodwBsEtkQoDiGGcGYFegxU X-IPAS-Result: Av8EABK/CFFFxLvL/2dsb2JhbABEuzWDWRdzgh4BAQQBViMFCws0BwsUGA0kLodwBsEtkQoDiGGcGYFegxU X-IronPort-AV: E=Sophos;i="4.84,565,1355115600"; d="scan'208";a="2987508" Received: from 69-196-187-203.dsl.teksavvy.com (HELO pastel.home) ([69.196.187.203]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 04 Mar 2013 11:47:06 -0500 Received: by pastel.home (Postfix, from userid 20848) id 38C506BF75; Mon, 4 Mar 2013 11:47:07 -0500 (EST) From: Stefan Monnier Message-ID: References: <87bob0794w.fsf@gmail.com> <871ubw78td.fsf@gmail.com> <6jwqto10ig.fsf@fencepost.gnu.org> <87ppzf7s1d.fsf@gmail.com> <83lia3tagw.fsf@gnu.org> Date: Mon, 04 Mar 2013 11:47:07 -0500 In-Reply-To: <83lia3tagw.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 04 Mar 2013 18:07:27 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: -0.5 (/) > So I think Glenn is right about the solution. Diffs don't have > contents of their own (well, except for the hunk headers), so looking > up diffs for file-local variables doesn't make much sense. Actually, diff files can have any other text beside the diff itself, and so you can very easily add file local variables in there. But it's probably OK to inhibit them, because I don't think they're often/ever used. Stefan