From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id mEW3OCJ6KmCmZAAA0tVLHw (envelope-from ) for ; Mon, 15 Feb 2021 13:41:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id kDRcNCJ6KmD9eQAAbx9fmQ (envelope-from ) for ; Mon, 15 Feb 2021 13:41:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 72484323CC for ; Mon, 15 Feb 2021 14:41:54 +0100 (CET) Received: from localhost ([::1]:49744 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lBe8P-0003v4-6d for larch@yhetil.org; Mon, 15 Feb 2021 08:41:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:36252) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBe5Z-0001mD-4k for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 08:38:57 -0500 Received: from ciao.gmane.io ([116.202.254.214]:57514) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lBe5W-0006LN-NI for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 08:38:56 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lBe5T-00080e-PI for emacs-orgmode@gnu.org; Mon, 15 Feb 2021 14:38:51 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Colin Baxter Subject: encryption problems using org-mode Date: Mon, 15 Feb 2021 13:38:42 +0000 Message-ID: <8735xxxxgd.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cancel-Lock: sha1:gKSmb3Nhz5RzQJlJSi83DyG5JoM= X-Face: BHjiJOg/Qmj'BQgsAKL@])L)e62P)C"Y=6T Face: iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeBAMAAAAodabAAAAAB3RJTUUH1wQdAAY04/L8hgAA AAlwSFlzAAAewQAAHsEBw2lUUwAAAARnQU1BAACxjwv8YQUAAAASUExURc7OzpwAAAAAAP////8A AGNj/2aqqTQAAAA8SURBVHjaYzA2NnEBAmdj01D8wNgYpM7F2JiBgYFREAgEGJiU8AMGBpA6QaCG UVtGbRm1ZdSWUVsGjS0Aq20lJnMawnkAAAAASUVORK5CYII= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 0.74 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=yandex.com (policy=none); spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 72484323CC X-Spam-Score: 0.74 X-Migadu-Scanner: scn0.migadu.com X-TUID: hG5XxL9hl2qr Hello, I have an encryption problem that has materialised only today. I think it's an org-mode issue since that package is the only one I have refreshed with a new 'pull' today I have a symmetrically encrypted file data.org.gpg for which I have the line: # Local Variables: # eval: (sensitive-mode t) # End: The sensitive-mode is defined as #+begin_src elisp (define-minor-mode sensitive-mode "For sensitive files like password lists and gpg file. It disables backup= creation and auto saving. With no argument, this command toggles the mode.= Non-null prefix argument turns on the mode. Null prefix argument turns off= the mode." ;; the initial value nil ;; the indicator for the mode line " Sensitive" ;; the minor mode bindings nil (if (symbol-value sensitive-mode) (progn ;; disable backups (set (make-local-variable 'backup-inhibited) t) ;; disable auto-save (if auto-save-default (auto-save-mode -1))) ;; resort to default value of backup-inhibited (kill-local-variable 'backup-inhibited) ;; resort to default auto save setting (if auto-save-default (auto-save-mode 1)))) #+end_src This has worked until today. Now if data.org.gpg is opened I get an error. Debugger entered--Lisp error: (void-variable minor-modes) (sensitive-mode t) (eval (sensitive-mode t)) (hack-one-local-variable eval (sensitive-mode t)) (hack-local-variables-apply) (#f(compiled-function (&optional handle-mode) "Parse and put into effect = this buffer's local variables spec.\nFor buffers visiting files, also puts = into effect directory-local\nvariables.\nUses `hack-local-variables-apply' = to apply the variables.\n\nIf HANDLE-MODE is nil, we apply all the specifie= d local\nvariables. If HANDLE-MODE is neither nil nor t, we do the same,\n= except that any settings of `mode' are ignored.\n\nIf HANDLE-MODE is t, all= we do is check whether a \"mode:\"\nis specified, and return the correspon= ding mode symbol, or nil.\nIn this case, we try to ignore minor-modes, and = return only a\nmajor-mode.\n\nIf `enable-local-variables' or `local-enable-= local-variables' is nil,\nthis function does nothing. If `inhibit-local-va= riables-regexps'\napplies to the file in question, the file is not scanned = for\nlocal variables, but directory-local variables may still be applied." = #) no-mode) (funcall #f(compiled-function (&optional handle-mode) "Parse and put into= effect this buffer's local variables spec.\nFor buffers visiting files, al= so puts into effect directory-local\nvariables.\nUses `hack-local-variables= -apply' to apply the variables.\n\nIf HANDLE-MODE is nil, we apply all the = specified local\nvariables. If HANDLE-MODE is neither nil nor t, we do the= same,\nexcept that any settings of `mode' are ignored.\n\nIf HANDLE-MODE i= s t, all we do is check whether a \"mode:\"\nis specified, and return the c= orresponding mode symbol, or nil.\nIn this case, we try to ignore minor-mod= es, and return only a\nmajor-mode.\n\nIf `enable-local-variables' or `local= -enable-local-variables' is nil,\nthis function does nothing. If `inhibit-= local-variables-regexps'\napplies to the file in question, the file is not = scanned for\nlocal variables, but directory-local variables may still be ap= plied." #) no-mode) (with-no-warnings (funcall ad--addoit-function handle-mode)) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function hand= le-mode))) (let (ad-return-value) (setq ad-return-value (with-no-warnings (funcall a= d--addoit-function handle-mode))) (when handle-mode (setq so-long-mode--inh= ibited ad-return-value)) ad-return-value) (ad-Advice-hack-local-variables #f(compiled-function (&optional handle-mo= de) "Parse and put into effect this buffer's local variables spec.\nFor buf= fers visiting files, also puts into effect directory-local\nvariables.\nUse= s `hack-local-variables-apply' to apply the variables.\n\nIf HANDLE-MODE is= nil, we apply all the specified local\nvariables. If HANDLE-MODE is neith= er nil nor t, we do the same,\nexcept that any settings of `mode' are ignor= ed.\n\nIf HANDLE-MODE is t, all we do is check whether a \"mode:\"\nis spec= ified, and return the corresponding mode symbol, or nil.\nIn this case, we = try to ignore minor-modes, and return only a\nmajor-mode.\n\nIf `enable-loc= al-variables' or `local-enable-local-variables' is nil,\nthis function does= nothing. If `inhibit-local-variables-regexps'\napplies to the file in que= stion, the file is not scanned for\nlocal variables, but directory-local va= riables may still be applied." #) no-mode) (apply ad-Advice-hack-local-variables #f(compiled-function (&optional han= dle-mode) "Parse and put into effect this buffer's local variables spec.\nF= or buffers visiting files, also puts into effect directory-local\nvariables= .\nUses `hack-local-variables-apply' to apply the variables.\n\nIf HANDLE-M= ODE is nil, we apply all the specified local\nvariables. If HANDLE-MODE is= neither nil nor t, we do the same,\nexcept that any settings of `mode' are= ignored.\n\nIf HANDLE-MODE is t, all we do is check whether a \"mode:\"\ni= s specified, and return the corresponding mode symbol, or nil.\nIn this cas= e, we try to ignore minor-modes, and return only a\nmajor-mode.\n\nIf `enab= le-local-variables' or `local-enable-local-variables' is nil,\nthis functio= n does nothing. If `inhibit-local-variables-regexps'\napplies to the file = in question, the file is not scanned for\nlocal variables, but directory-lo= cal variables may still be applied." #) no-mode) (hack-local-variables no-mode) (run-mode-hooks org-mode-hook) (org-mode) (set-auto-mode-0 org-mode nil) (#f(compiled-function (&optional keep-mode-if-same) "Select major mode ap= propriate for current buffer.\n\nTo find the right major mode, this functio= n checks for a -*- mode tag\nchecks for a `mode:' entry in the Local Variab= les section of the file,\nchecks if it uses an interpreter listed in `inter= preter-mode-alist',\nmatches the buffer beginning against `magic-mode-alist= ',\ncompares the filename against the entries in `auto-mode-alist',\nthen m= atches the buffer beginning against `magic-fallback-mode-alist'.\n\nIf `ena= ble-local-variables' is nil, or if the file name matches\n`inhibit-local-va= riables-regexps', this function does not check\nfor any mode: tag anywhere = in the file. If `local-enable-local-variables'\nis nil, then the only mode= : tag that can be relevant is a -*- one.\n\nIf the optional argument KEEP-M= ODE-IF-SAME is non-nil, then we\nset the major mode only if that would chan= ge it. In other words\nwe don't actually set it to the same mode the buffe= r already has." #) nil) (funcall #f(compiled-function (&optional keep-mode-if-same) "Select major= mode appropriate for current buffer.\n\nTo find the right major mode, this= function checks for a -*- mode tag\nchecks for a `mode:' entry in the Loca= l Variables section of the file,\nchecks if it uses an interpreter listed i= n `interpreter-mode-alist',\nmatches the buffer beginning against `magic-mo= de-alist',\ncompares the filename against the entries in `auto-mode-alist',= \nthen matches the buffer beginning against `magic-fallback-mode-alist'.\n\= nIf `enable-local-variables' is nil, or if the file name matches\n`inhibit-= local-variables-regexps', this function does not check\nfor any mode: tag a= nywhere in the file. If `local-enable-local-variables'\nis nil, then the o= nly mode: tag that can be relevant is a -*- one.\n\nIf the optional argumen= t KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode only if that wo= uld change it. In other words\nwe don't actually set it to the same mode t= he buffer already has." #) nil) (with-no-warnings (funcall ad--addoit-function keep-mode-if-same)) (setq ad-return-value (with-no-warnings (funcall ad--addoit-function keep= -mode-if-same))) (progn (setq so-long-mode--inhibited nil) (when so-long-mode-enabled (so-= long-check-header-modes)) (setq ad-return-value (with-no-warnings (funcall = ad--addoit-function keep-mode-if-same))) (when so-long-mode-enabled (unless= so-long-mode--inhibited (when (and (apply 'derived-mode-p so-long-target-m= odes) (so-long-line-detected-p)) (setq so-long-original-mode major-mode) (s= o-long-mode))))) (let (ad-return-value) (progn (setq so-long-mode--inhibited nil) (when so= -long-mode-enabled (so-long-check-header-modes)) (setq ad-return-value (wit= h-no-warnings (funcall ad--addoit-function keep-mode-if-same))) (when so-lo= ng-mode-enabled (unless so-long-mode--inhibited (when (and (apply 'derived-= mode-p so-long-target-modes) (so-long-line-detected-p)) (setq so-long-origi= nal-mode major-mode) (so-long-mode))))) ad-return-value) (ad-Advice-set-auto-mode #f(compiled-function (&optional keep-mode-if-sam= e) "Select major mode appropriate for current buffer.\n\nTo find the right = major mode, this function checks for a -*- mode tag\nchecks for a `mode:' e= ntry in the Local Variables section of the file,\nchecks if it uses an inte= rpreter listed in `interpreter-mode-alist',\nmatches the buffer beginning a= gainst `magic-mode-alist',\ncompares the filename against the entries in `a= uto-mode-alist',\nthen matches the buffer beginning against `magic-fallback= -mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file name ma= tches\n`inhibit-local-variables-regexps', this function does not check\nfor= any mode: tag anywhere in the file. If `local-enable-local-variables'\nis= nil, then the only mode: tag that can be relevant is a -*- one.\n\nIf the = optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the major mode= only if that would change it. In other words\nwe don't actually set it to= the same mode the buffer already has." #)) (apply ad-Advice-set-auto-mode #f(compiled-function (&optional keep-mode-= if-same) "Select major mode appropriate for current buffer.\n\nTo find the = right major mode, this function checks for a -*- mode tag\nchecks for a `mo= de:' entry in the Local Variables section of the file,\nchecks if it uses a= n interpreter listed in `interpreter-mode-alist',\nmatches the buffer begin= ning against `magic-mode-alist',\ncompares the filename against the entries= in `auto-mode-alist',\nthen matches the buffer beginning against `magic-fa= llback-mode-alist'.\n\nIf `enable-local-variables' is nil, or if the file n= ame matches\n`inhibit-local-variables-regexps', this function does not chec= k\nfor any mode: tag anywhere in the file. If `local-enable-local-variable= s'\nis nil, then the only mode: tag that can be relevant is a -*- one.\n\nI= f the optional argument KEEP-MODE-IF-SAME is non-nil, then we\nset the majo= r mode only if that would change it. In other words\nwe don't actually set= it to the same mode the buffer already has." #) nil) (set-auto-mode) (normal-mode t) (after-find-file nil t) (find-file-noselect-1 # "~/.emacs-files/secure/data.= org.gpg" nil nil "~/.emacs-files/secure/data.org.gpg" (655687 2049)) (find-file-noselect "~/.emacs-files/secure/data.org.gpg") (bookmark-default-handler ("data.org.gpg" (filename . "~/.emacs-files/sec= ure/data.org.gpg") (front-context-string . "#+TITLE: Dat") (rear-contex= t-string) (position . 1) (annotation . "Author: Colin Baxter \nDate: ..."))) (bookmark-handle-bookmark "data.org.gpg") (bookmark--jump-via "data.org.gpg" pop-to-buffer-same-window) (bookmark-jump "data.org.gpg") (bookmark-bmenu-this-window) (funcall-interactively bookmark-bmenu-this-window) (call-interactively bookmark-bmenu-this-window nil nil) (command-execute bookmark-bmenu-this-window) Best wishes,