From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id OJYWFqe2Xl+4DwAA0tVLHw (envelope-from ) for ; Mon, 14 Sep 2020 00:17:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 2Ic/EKe2Xl9VZAAAB5/wlQ (envelope-from ) for ; Mon, 14 Sep 2020 00:17:43 +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 3368494036A for ; Mon, 14 Sep 2020 00:17:42 +0000 (UTC) Received: from localhost ([::1]:34464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kHcBh-000083-5y for larch@yhetil.org; Sun, 13 Sep 2020 20:17:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45900) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHcBJ-00007r-09 for emacs-orgmode@gnu.org; Sun, 13 Sep 2020 20:17:17 -0400 Received: from mail-oln040092005070.outbound.protection.outlook.com ([40.92.5.70]:13646 helo=NAM02-SN1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kHcBF-0005tv-NW for emacs-orgmode@gnu.org; Sun, 13 Sep 2020 20:17:16 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iI8mT8IJncnkEI7aNHkSbcmm7JjZRYtH7sPH0mOyxVeRJog9cVdKAD5awokNzfrh37sE22G4MuBH+AKd6F0rZupUP4l9y0BxV4LkZYhuONfVAQbrk6YwUWV1XGVcf5CY45nRdWeGjkgdPKw2VntYIENHdSE8z37Al6dsyD4hiZO8btI5clPGPeBsdI33p41YgaeNLnt/ghf407eXyAtFk9D2yBmPy1w/N54mxiJxMJqHQzZnj9PcLfq+vnTfdKvdPe5mDgn/iwvKUhWMii1WwFiWiR6XCAEZQQ3fUATdCxAv0gEUwsVpK98zmVlNp3aEvhb0mlsuF8ssw8qNjNP4QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2pUUON/GrYIl/q9VUKWLg7r7MyKtGXHGPdIasyX2WlU=; b=nFPgHF4nz5f4YNnZduNt6Xc3UJTy4Oy/XK8ukMpgX368jvFMTA5ZpL/v5XzfvKklqHznsL4B74POvfonUcqRC93HP7E9TY2an9Y7tqIAexeJsZ1nKjaL49ck0xHhEmdXP6xyZhRULxB4pdWTwqVyxUodN47fWLDnf5PVwv+zySwIFjfNF0Q4KXHQrSDiZzN8CiH5RGPphqCC5IUwHUBVbOkKVVBWptHjTLCUYPTSozJ1k1w7LeYOwBrZETvhcCVCuCoBIBBqoQTSQwTwz61hO/9OGlescuKVU6t8ws7ElT1UY+XReRzD/cAv3wMNWyOW8o/jajw8NbnGgEM1M+gTCw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2pUUON/GrYIl/q9VUKWLg7r7MyKtGXHGPdIasyX2WlU=; b=MbfO5gi7pQYSp/DHjmf5EQBpYl2Iie2nj1j8Bg6npHQuT654hV7CnsS0tFdU+fGCyXPHSrqPqL/HGomKHGT2J8r75jaTeFGAVvAfTTAaVH/YHGdYMwr9qfZ0mWLy7VTh6XfovHhEue19j5GJTEMdbxXFNzOcjOvVrT+mY96Qe0ko/nzUdY+vKZbDmqhqtU73z5qc3KYMtwAY5i6HRuX4i9W20xDb+f2Sc0FTwKqvuZEXqzAj/+aEyGD77FTUPYfiRT1IE3vpX+9r8rPnLCggS8dGmp0PCI7PZybv87LxA5AjjAYTeyfw4q0OHKkh7RqiiXGVu5Jt1wCj7X4opgbcvQ== Received: from BL2NAM02FT062.eop-nam02.prod.protection.outlook.com (10.152.76.57) by BL2NAM02HT243.eop-nam02.prod.protection.outlook.com (10.152.77.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16; Mon, 14 Sep 2020 00:02:08 +0000 Received: from SJ0PR03MB5615.namprd03.prod.outlook.com (2a01:111:e400:7e46::4a) by BL2NAM02FT062.mail.protection.outlook.com (2a01:111:e400:7e46::313) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3370.16 via Frontend Transport; Mon, 14 Sep 2020 00:02:08 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:32A0DAFC5EF148E887ACECB8E27D3DB7FA55C384C8F746B9454CD773E17EAF7C; UpperCasedChecksum:683BBF7B34763E8442EDDDA740A07318D3DEFCCB9768F45472D59806ABDFE0E0; SizeAsReceived:3505; Count:45 Received: from SJ0PR03MB5615.namprd03.prod.outlook.com ([fe80::45d1:a1b8:b6f1:8378]) by SJ0PR03MB5615.namprd03.prod.outlook.com ([fe80::45d1:a1b8:b6f1:8378%4]) with mapi id 15.20.3370.016; Mon, 14 Sep 2020 00:02:08 +0000 From: David Masterson To: emacs-orgmode@gnu.org Subject: Re: Getting Org-Crypt to work (doc bug?) References: <87h7s2gjjz.fsf@nicolasgoaziou.fr> Date: Sun, 13 Sep 2020 17:02:04 -0700 In-Reply-To: <87h7s2gjjz.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Sun, 13 Sep 2020 10:36:16 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Content-Type: text/plain X-ClientProxiedBy: BYAPR05CA0039.namprd05.prod.outlook.com (2603:10b6:a03:74::16) To SJ0PR03MB5615.namprd03.prod.outlook.com (2603:10b6:a03:27a::12) X-Microsoft-Original-Message-ID: <87lfhdns3n.fsf@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from penguin (2600:8802:500:419:216:3eff:fee7:3d5d) by BYAPR05CA0039.namprd05.prod.outlook.com (2603:10b6:a03:74::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3391.4 via Frontend Transport; Mon, 14 Sep 2020 00:02:08 +0000 X-Microsoft-Original-Message-ID: <87lfhdns3n.fsf@outlook.com> X-TMN: [zrqpS7KRmZzgz6rnqfR/89t2FqLnXBZfLdRRQk0F5Skcr8lVpbBpMYZXi0KJMI6z] X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 380db150-4c49-465d-ed39-08d858416c1f X-MS-TrafficTypeDiagnostic: BL2NAM02HT243: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: CK/26vzO3yChTKoXlpuQyrT9fHWTiJ8NcAMc2Qzvj4RHKR/+Ls3K6/dELvu4ngjOQOk+cRD0st7/wz0k4ubW5L/4PTl6ZKIJfkdJNpzQ3RTu53lqwlgwZj0ng62lIc19nYFGODK+MHOpwcaGBGXS3IJCiLV9rxBW6/Id3a03/s4nuHTP3TNDjG93/SdbDdBT X-MS-Exchange-AntiSpam-MessageData: DJyV211IWExCK+bwEKeZ2jxaDPiCLpDzIaP9BEBitUj83dhte3NBGMLVvmVa62RUY7i6He7zNaP8GY7L7AhnykfbUujvw9yaTJugG0JFceC5V5gq5U0vG8IpXx5Psfo4EYVAAgeynFUxL6ZUQLYyhciEJP5MPtO2Mw2r4P9pWu4MF570h+lQek9xv/QJPsAVoOBa79Xq6NzFF5Nz0JNaUg== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 380db150-4c49-465d-ed39-08d858416c1f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Sep 2020 00:02:08.4807 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: BL2NAM02FT062.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2NAM02HT243 Received-SPF: pass client-ip=40.92.5.70; envelope-from=dsmasterson92630@outlook.com; helo=NAM02-SN1-obe.outbound.protection.outlook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/13 20:17:11 X-ACL-Warn: Detected OS = Windows NT kernel [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=MbfO5gi7; dmarc=pass (policy=none) header.from=outlook.com; 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-Spam-Score: -2.71 X-TUID: hfaQuZwjI8IC Nicolas Goaziou writes: > Hello, > > David Masterson writes: > >> I'm trying to get org-crypt to work, but I'm missing something. >> Following the Org-Crypt Info page, I've set it up for symmetric >> encryption and added a :crypt: tag to a header. When I try to save the >> file, it reports that no key was specified, so it will do symmetric >> encryption. And then it freezes. C-g will unfreeze, but the buffer is >> slightly messed up like it started working on something, but waited for >> an external command? GPG is installed. What am I missing? > > Could you explain more precisely what you did? For example, I encounter > no problem crypting the following file: > > * Test :crypt: > > This is crypted. > > # Local Variables: > # org-crypt-key: nil > # End: > > Upon saving the file, I type the key twice, and the entry is encrypted. > > Note that I evaluated (org-crypt-use-before-save-magic) once beforehand. I'm setting up Org this way: (use-package org :init (setq org-tags-exclude-from-inheritance '("crypt") org-crypt-key nil ) :config (progn (require 'org-crypt) (org-crypt-use-before-save-magic) ) ) I did essentially what you did (added :crypt: to a header in one of my files) and tried to save the file. Found it! I started Emacs on Linux via 'xterm -e emacs &' because something else had done this to me (forget what). The thing is that GPG is asking for the passphrase on the xterm window and not in the Emacs. I didn't notice this because Emacs covered it. Someone else mentioned the gpg-agent(?) to prevent this (is there another way?). Both things should be mentioned in the Org-Mode Info pages for org-crypt. -- David Masterson