From unknown Fri Jun 20 07:17:42 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#59384 <59384@debbugs.gnu.org> To: bug#59384 <59384@debbugs.gnu.org> Subject: Status: 29.0.50; Visiting files in Emacs Git pops up "unsafe variable" prompt Reply-To: bug#59384 <59384@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:17:42 +0000 retitle 59384 29.0.50; Visiting files in Emacs Git pops up "unsafe variable= " prompt reassign 59384 emacs submitter 59384 Eli Zaretskii severity 59384 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 07:59:51 2022 Received: (at submit) by debbugs.gnu.org; 19 Nov 2022 12:59:51 +0000 Received: from localhost ([127.0.0.1]:39217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owNRm-0004pj-Sh for submit@debbugs.gnu.org; Sat, 19 Nov 2022 07:59:51 -0500 Received: from lists.gnu.org ([209.51.188.17]:38952) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owNRh-0004pX-9H for submit@debbugs.gnu.org; Sat, 19 Nov 2022 07:59:49 -0500 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 1owNRh-00070D-3j for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 07:59:45 -0500 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 1owNRg-0000o8-Rz for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 07:59:44 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=497JeVviQrgb2b7PPp56K5hbHL6yOoRqMT/0pt0qNWw=; b=eCGhGJa/35gcWx K1k7EY2UWxfoqBmjJvtMgwgwY/HtGwU2jjduz8uAX+2AJcpMV9MpZqqqath2Ccks6qQn4JzQq/tMn LIODmKOjjTGH54G1MGCctIrUB7izfU+IXcXb/ubyhooahi+enosg9WKONfgHJTkeA9NZuU5Q+XhNj sCk2NUqoHMdTRMFZygbo/BZLwbximGwPSebSH25BMG3yQtlBXv1w2o8Lqj1Zh89PHlXsOAMfNeA9o oMvKSd/8K2BC3nZEMXSl5kFUfrTjpLKS43Tx7RpAKR67QNWfnlJdwNz9AFHgi09bXCXFY86n0pklY amnewwuDYBox3/Lzmj1Q==; 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 1owNRg-0004j3-Bf for bug-gnu-emacs@gnu.org; Sat, 19 Nov 2022 07:59:44 -0500 Date: Sat, 19 Nov 2022 14:59:51 +0200 Message-Id: <83h6yv85h4.fsf@gnu.org> From: Eli Zaretskii To: bug-gnu-emacs@gnu.org Subject: 29.0.50; Visiting files in Emacs Git pops up "unsafe variable" prompt X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) To reproduce, just visit any file in the Emacs Git repository from "emacs -Q". You will see a "*Local Variables*" buffer pop up with this text: The local variables list in or .dir-locals.el contains values that may not be safe (*). Do you want to apply it? You can type y -- to apply the local variables list. n -- to ignore the local variables list. ! -- to apply the local variables list, and permanently mark these values (*) as safe (in the future, they will be set automatically.) i -- to ignore the local variables list, and permanently mark these values (*) as ignored tab-width : 8 sentence-end-double-space : t fill-column : 70 emacs-lisp-docstring-fill-column : 65 vc-git-annotate-switches : "-w" bug-reference-url-format : "https://debbugs.gnu.org/%s" diff-add-log-use-relative-names : t * vc-prepare-patches-separately : nil c-file-style : "GNU" c-noise-macro-names : ("INLINE" "NO_INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK") electric-quote-comment : nil electric-quote-string : nil indent-tabs-mode : t mode : bug-reference-prog The problem here AFAIU is that vc-prepare-patches-separately and its 'safep' property is not known to Emacs until vc.el is loaded. One way of fixing this would be to autoload the defcustom of this variable, but AFAIR this is sometimes frowned upon? In GNU Emacs 29.0.50 (build 2217, i686-pc-mingw32) of 2022-11-19 built on HOME-C4E4A596F7 Repository revision: 46ceb2ac4bceec9c5fb55d9d02a34e2c78136cf3 Repository branch: master Windowing system distributor 'Microsoft Corp.', version 5.1.2600 System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600) Configured using: 'configure -C --prefix=/d/usr --with-wide-int --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3'' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: C/*l Minor modes in effect: bug-reference-prog-mode: t tooltip-mode: t global-eldoc-mode: t show-paren-mode: t electric-indent-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils vc-git diff-mode easy-mmode vc vc-dispatcher bug-reference byte-opt gv bytecomp byte-compile time-date subr-x cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 86033 12227) (symbols 48 9270 0) (strings 16 27174 3318) (string-bytes 1 878557) (vectors 16 15151) (vector-slots 8 203313 15154) (floats 8 29 77) (intervals 40 3489 63) (buffers 888 11)) From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 14:16:09 2022 Received: (at 59384) by debbugs.gnu.org; 19 Nov 2022 19:16:09 +0000 Received: from localhost ([127.0.0.1]:41440 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owTJx-0006PU-5o for submit@debbugs.gnu.org; Sat, 19 Nov 2022 14:16:09 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:35101) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owTJU-0006L2-At for 59384@debbugs.gnu.org; Sat, 19 Nov 2022 14:15:41 -0500 Received: (Authenticated sender: juri@linkov.net) by mail.gandi.net (Postfix) with ESMTPSA id E0337E0003; Sat, 19 Nov 2022 19:15:30 +0000 (UTC) From: Juri Linkov To: Eli Zaretskii Subject: Re: bug#59384: 29.0.50; Visiting files in Emacs Git pops up "unsafe variable" prompt In-Reply-To: <83h6yv85h4.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Nov 2022 14:59:51 +0200") Organization: LINKOV.NET References: <83h6yv85h4.fsf@gnu.org> Date: Sat, 19 Nov 2022 20:49:50 +0200 Message-ID: <86wn7qaiep.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 59384 Cc: 59384@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) > vc-git-annotate-switches : "-w" > bug-reference-url-format : "https://debbugs.gnu.org/%s" > diff-add-log-use-relative-names : t > * vc-prepare-patches-separately : nil > c-file-style : "GNU" > c-noise-macro-names : ("INLINE" "NO_INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK") > electric-quote-comment : nil > electric-quote-string : nil > indent-tabs-mode : t > mode : bug-reference-prog > > The problem here AFAIU is that vc-prepare-patches-separately and its > 'safep' property is not known to Emacs until vc.el is loaded. > > One way of fixing this would be to autoload the defcustom of this > variable, but AFAIR this is sometimes frowned upon? Is there a standard solution already worked out for existing variables like `vc-git-annotate-switches'? From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 14:40:41 2022 Received: (at 59384) by debbugs.gnu.org; 19 Nov 2022 19:40:41 +0000 Received: from localhost ([127.0.0.1]:41474 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owThh-0006zV-BP for submit@debbugs.gnu.org; Sat, 19 Nov 2022 14:40:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47896) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owThg-0006zK-3u for 59384@debbugs.gnu.org; Sat, 19 Nov 2022 14:40:40 -0500 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 1owTha-0001tF-By; Sat, 19 Nov 2022 14:40:34 -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=faohNwWF2BWHrVVAiWZSdEMz1PXjYJP/MTszjcj/P4o=; b=qn2W+B0wam6H ttxd9DjHFsmNB3JJ/0e5fu2GXJtvZxFk5/vQ5HTYMuaLEi90g04S8NthoHs42MgR/2DWn+G7QYEBK RaDaaXFa/sy+874mu+MohKKrPxrWudVVEck9YHTU+LQQAJp5paFLt9UNYEhqIKnJXEP0raISvHZSc BTScQ9i26HUe4UwI7VdtpA99tIfEEqe5P9/G37E5D2KJgWvivG+UC3wOXdUYRRogf5FElV3XrFCJe dMR5f54beMKUdXY/N3Atiox4Inxkp2AaPLXEQhVGrs4cvbMsds7oN3tWmablHnWiQXVs2wzbm8k9v ObnogyUzHI+TUjbe2/QuKg==; 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 1owThZ-0007BN-Os; Sat, 19 Nov 2022 14:40:34 -0500 Date: Sat, 19 Nov 2022 21:40:41 +0200 Message-Id: <83pmdi7mx2.fsf@gnu.org> From: Eli Zaretskii To: Juri Linkov , Stefan Monnier In-Reply-To: <86wn7qaiep.fsf@mail.linkov.net> (message from Juri Linkov on Sat, 19 Nov 2022 20:49:50 +0200) Subject: Re: bug#59384: 29.0.50; Visiting files in Emacs Git pops up "unsafe variable" prompt References: <83h6yv85h4.fsf@gnu.org> <86wn7qaiep.fsf@mail.linkov.net> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59384 Cc: 59384@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Juri Linkov > Cc: 59384@debbugs.gnu.org > Date: Sat, 19 Nov 2022 20:49:50 +0200 > > > vc-git-annotate-switches : "-w" > > bug-reference-url-format : "https://debbugs.gnu.org/%s" > > diff-add-log-use-relative-names : t > > * vc-prepare-patches-separately : nil > > c-file-style : "GNU" > > c-noise-macro-names : ("INLINE" "NO_INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK") > > electric-quote-comment : nil > > electric-quote-string : nil > > indent-tabs-mode : t > > mode : bug-reference-prog > > > > The problem here AFAIU is that vc-prepare-patches-separately and its > > 'safep' property is not known to Emacs until vc.el is loaded. > > > > One way of fixing this would be to autoload the defcustom of this > > variable, but AFAIR this is sometimes frowned upon? > > Is there a standard solution already worked out for existing > variables like `vc-git-annotate-switches'? Maybe it is, but if so, I'm not aware of it. Stefan, any advice? From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 19 17:38:47 2022 Received: (at 59384) by debbugs.gnu.org; 19 Nov 2022 22:38:47 +0000 Received: from localhost ([127.0.0.1]:41611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owWU3-0004zy-3c for submit@debbugs.gnu.org; Sat, 19 Nov 2022 17:38:47 -0500 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:32819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owWTz-0004zj-Sy for 59384@debbugs.gnu.org; Sat, 19 Nov 2022 17:38:45 -0500 Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 11CCD1000F2; Sat, 19 Nov 2022 17:38:38 -0500 (EST) Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 7240F100099; Sat, 19 Nov 2022 17:38:36 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1668897516; bh=bxyZ80Oow/yOmU3DFkv6XwfIy/IC19z9BMp4boZT2Ds=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=WA6U3ENMRa6hfdSzutXOvcKPziF7cM5QwKOoJmvBQ7XK5kT0pmpoImKK8bgL4JVj0 VGtWlxqZ5Br3TogL70RuL0tF+mXgTrz9N77e7oykWYf4EYCX3dyBh5gKmJj6CZCyaw wHnZljXJhAAJp4Z2R46hFCy5649MhZeYgCsxTEHH4BIBP237mJVxkl3gKxQS5/ta0v JcK6+cetQncENzfLxyZIOKFD+ols+nHXBWug2W1AwYQWxkx3n9DBg66a9D4Nqfem1v N9uyqvW4yLZSo/hip4Ofhl4cyQ3IxldguMYib0ZMug6zgR4pjfBmkFl5M0tHTHsEVc D4YUcl7Cqor/w== Received: from pastel (unknown [104.247.241.157]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 453A8120C2F; Sat, 19 Nov 2022 17:38:36 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Subject: Re: bug#59384: 29.0.50; Visiting files in Emacs Git pops up "unsafe variable" prompt In-Reply-To: <83pmdi7mx2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 19 Nov 2022 21:40:41 +0200") Message-ID: References: <83h6yv85h4.fsf@gnu.org> <86wn7qaiep.fsf@mail.linkov.net> <83pmdi7mx2.fsf@gnu.org> Date: Sat, 19 Nov 2022 17:38:35 -0500 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: =?UTF-8?Q?0=0A=09?=ALL_TRUSTED -1 Passed through trusted hosts only via =?UTF-8?Q?SMTP=0A=09?=AWL -0.052 Adjusted score from AWL reputation of From: =?UTF-8?Q?address=0A=09?=BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily =?UTF-8?Q?valid=0A=09?=DKIM_VALID -0.1 Message has at least one valid DKIM or DK =?UTF-8?Q?signature=0A=09?=DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59384 Cc: 59384@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) >> From: Juri Linkov >> Cc: 59384@debbugs.gnu.org >> Date: Sat, 19 Nov 2022 20:49:50 +0200 >> >> > vc-git-annotate-switches : "-w" >> > bug-reference-url-format : "https://debbugs.gnu.org/%s" >> > diff-add-log-use-relative-names : t >> > * vc-prepare-patches-separately : nil >> > c-file-style : "GNU" >> > c-noise-macro-names : ("INLINE" "NO_INLINE" "ATTRIBUTE_NO_SANITIZE_UNDEFINED" "UNINIT" "CALLBACK" "ALIGN_STACK") >> > electric-quote-comment : nil >> > electric-quote-string : nil >> > indent-tabs-mode : t >> > mode : bug-reference-prog >> > >> > The problem here AFAIU is that vc-prepare-patches-separately and its >> > 'safep' property is not known to Emacs until vc.el is loaded. >> > >> > One way of fixing this would be to autoload the defcustom of this >> > variable, but AFAIR this is sometimes frowned upon? >> >> Is there a standard solution already worked out for existing >> variables like `vc-git-annotate-switches'? > > Maybe it is, but if so, I'm not aware of it. > > Stefan, any advice? AFAIK the standard solution is one of: - try to arrange for the relevant package to be loaded before hack-local-variables does its thing. That often works for major-mode dependent variables, where we try and load the major mode early enough. For the above case I can't see a good way to use this approach. - autoload the (put ' 'safe-local-variable ...) Autoloading the `defcustom` is a *bad* idea. Stefan From debbugs-submit-bounces@debbugs.gnu.org Sun Nov 20 05:12:30 2022 Received: (at 59384-done) by debbugs.gnu.org; 20 Nov 2022 10:12:30 +0000 Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owhJO-0005Uo-Ek for submit@debbugs.gnu.org; Sun, 20 Nov 2022 05:12:30 -0500 Received: from eggs.gnu.org ([209.51.188.92]:47832) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1owhJJ-0005UZ-Qb for 59384-done@debbugs.gnu.org; Sun, 20 Nov 2022 05:12:29 -0500 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 1owhJD-0003jQ-BA; Sun, 20 Nov 2022 05:12:19 -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=KReS9jh7vjXzlRsTqISjw8lmCXad+725tMvkSfFA3S8=; b=ElKAovGI0Ijk qi11NoyZeG5Ly81bULeXEESjLemLgL9MlFBQd8Rt7qewRJ66D/WnPbWKO4S2NLrLcDYmQP5zfKhyn i48qGmdJV9lybIh1VsW6InwTQD9ORENcqmdR/1wOaMR2ZsPOs7QvWfG96vt1FWJ5L456JE7FnMgaf +IkbWI4qT9WNYhqJcIMg1R9PAs2WDPL9dS8340Fu3DqfBjieZn0mHPJjhwaCj448rac4kvYj6cKDy zJ+vVL4FssG1aI2LSRlNISynLQOZl9Cl0zDrEPhYAcbShFmJ2XxkfU9uwxFZO7MHGpipWLzsKCRU9 OnqIG8KTvCqSe14RvQiUbg==; 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 1owhJ8-0004YY-2y; Sun, 20 Nov 2022 05:12:18 -0500 Date: Sun, 20 Nov 2022 12:12:22 +0200 Message-Id: <83r0xy53zt.fsf@gnu.org> From: Eli Zaretskii To: Stefan Monnier In-Reply-To: (message from Stefan Monnier on Sat, 19 Nov 2022 17:38:35 -0500) Subject: Re: bug#59384: 29.0.50; Visiting files in Emacs Git pops up "unsafe variable" prompt References: <83h6yv85h4.fsf@gnu.org> <86wn7qaiep.fsf@mail.linkov.net> <83pmdi7mx2.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 59384-done Cc: 59384-done@debbugs.gnu.org, juri@linkov.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Stefan Monnier > Cc: Juri Linkov , 59384@debbugs.gnu.org > Date: Sat, 19 Nov 2022 17:38:35 -0500 > > AFAIK the standard solution is one of: > > - try to arrange for the relevant package to be loaded before > hack-local-variables does its thing. That often works for > major-mode dependent variables, where we try and load the > major mode early enough. For the above case I can't see a good way to > use this approach. > > - autoload the (put ' 'safe-local-variable ...) Thanks, I went with latter. From unknown Fri Jun 20 07:17:42 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 18 Dec 2022 12:24:13 +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