From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +DCYJWpyT2SdrAAASxT56A (envelope-from ) for ; Mon, 01 May 2023 10:03:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id kKyiJWpyT2QZGAAA9RJhRA (envelope-from ) for ; Mon, 01 May 2023 10:03:54 +0200 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 12F939BB6 for ; Mon, 1 May 2023 10:03:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ptOFj-0002ft-BF; Mon, 01 May 2023 03:47:20 -0400 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 1ptOFf-0002fk-SA for emacs-orgmode@gnu.org; Mon, 01 May 2023 03:47:15 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ptOFe-0006P9-4I for emacs-orgmode@gnu.org; Mon, 01 May 2023 03:47:15 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id CA6B42400AA for ; Mon, 1 May 2023 09:47:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1682927232; bh=Vr27TLnw4duRozbgDIyhAoxwUBG8LJHPwMnpLtTMMLc=; h=From:To:Cc:Subject:Date:From; b=ns52dauhJXV8WMwM5PxbS6V5od5T5dclgnZnzhgMNlcCxB0zmgvIR1QlPZLNNwGAT gtJ7EwFoEOZRGg39Q8+heKp/iV/XLiH8NPGRAT80t/wGluEm741uNzTRRVq0NLR0Gt stcd8nX4BxtdqCVQntecyNEtEx0egoaimtPz+TwhPrPbsgEAX1fTtjT7gprJoaHfzS VIQY6pZKTFWnxXILgaXKYbTR3+4fQZ0MXGM9DR0L+f6WcLsOx2Zqj0zumbhRhdccBF N6ZohSm634IdzyZkR9kWa1LgfhMVgQobByK6nksDrbVB2eURQ+ZIY9wZQ++/poa2it 9+bHt2l60cE0A== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Q8wKD2xZ4z9rxH; Mon, 1 May 2023 09:47:12 +0200 (CEST) From: Ihor Radchenko To: numbchild@gmail.com Cc: emacs-orgmode@gnu.org Subject: Re: [SUGGESTION] Re: [PATCH] org-crypt-decrypt-entry: Apply initial visibility upon decryption In-Reply-To: References: <87pm7lyvdd.fsf@localhost> Date: Mon, 01 May 2023 07:50:17 +0000 Message-ID: <87jzxsqyme.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1682928234; a=rsa-sha256; cv=none; b=Wf6iGc7iWroUM+klmnX2G9FwrFxb39J8U6hGvPqF5m+S6eCYvOSAG0Sz6WZYOJkUxeEJty oap1RPeu+qsLNraJLBfiPQOXDrkXoooEQ55g3umfaWfUcLPKIozAgKhGL2eob57F83WTj7 CnIPUDbNpSbqo2FHHcQ44ONjfTLDesK1YjccxcxBxhz1HnM/E9isI9e5RwB7bZVzHSPEIt 6DMeWZNpyEtvHGVWWQTPG8+B+C1sR0I/LbbvL6yV/Eb07K0EBi6sM5tWcT6o2I4dO1qsEJ rZLLA9nha+Ve2N5uKAludINK+yQDaWAtJJQN6GLVrVx1ZfRErEBntumcZs/3RQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ns52dauh; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1682928234; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=E5AyVSH4LT9IsEI0o5oql6tKVk0VZGV8PjrfImyrYsY=; b=KuII7mV2rvjJ7ASjG1BD0+ymLksbC2St/J8JQYeANdMKepcCj52phywcVQN3BX+AZ8DGyP Rguqo/WaA9w1k8RdU5fNioDZzXvGGb1GVCKBMWdcVu3Lj267sQtUJz5ihB+A+V8AavmRvs RHf/fs8L0ZZQKpkmdSomtHafmFtM5k2EpkXGegryyWB79I8rYN8w5jCh4QLDdCUAwLdgzO bE5xp+2LbE+Tf+8242X0Ct9+JH7LQr9wdS+xzf5tSaGQwDOQAAOUHGp+NGcpIDGRykmH4/ dsqFdfy18sTYJfti1JMMTBDVuEh6buXh4q8ua8PUHa99eJoNrzbyNotpWv8Mfw== X-Migadu-Spam-Score: -9.69 X-Spam-Score: -9.69 X-Migadu-Queue-Id: 12F939BB6 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=ns52dauh; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-TUID: GLHLNR6nuS3U "Christopher M. Miles" writes: > I'm also try to improve this file to improve large Org buffer saving performance. org-encrypt already caches the encrypted text and takes basically no time for the repeated encryption, as long the text to be encrypted is unchanged. > I have some ideas: > > - auto encrypt buffer on buffer save hook (currently mechanism, your patch improved it) Sorry, but my patch has nothing to do with save hook. It only changes decryption. > - auto decrypt on org-cycle expand headline if current headline is encrypted. e.g. on `org-cycle-hook` I am not sure how it has anything to do with performance. You can already use C-c C-r (or M-x org-reveal) to decrypt entry at point. We should certainly not attempt decryption on by default - it may be annoying when you actually do not want to decrypt anything, just look inside. > - auto encrypt ONLY current fold action on headline scope if has crypt key specified. e.g. on `org-cycle-hook` That might be possible, but I often do not want my encrypted sub-headings being encrypted while I re-structure and re-fold my file. May you elaborate what performance issues you are experiencing? -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at