From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id wN2vAlKblF4JXgAA0tVLHw (envelope-from ) for ; Mon, 13 Apr 2020 17:03:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id aLfKJFSblF5YZAAA1q6Kng (envelope-from ) for ; Mon, 13 Apr 2020 17:03:16 +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 8559E941F0B for ; Mon, 13 Apr 2020 17:03:14 +0000 (UTC) Received: from localhost ([::1]:46710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO2UJ-00042J-GK for larch@yhetil.org; Mon, 13 Apr 2020 13:03:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39419) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jO2TV-00042A-IB for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 13:02:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jO2TT-0007Ir-VI for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 13:02:21 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:34865) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jO2TT-0007II-NG for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 13:02:19 -0400 Received: by mail-pl1-x644.google.com with SMTP id y12so3292697pll.2 for ; Mon, 13 Apr 2020 10:02:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:references:date:message-id :mime-version; bh=0N2lb7e8C0TVZCnO4CT9nfSq9Q8VRlywn7zyF0Cd9F0=; b=WBN7PFCBLmkcpprQwElWfTS6bH5izn7aoIBuwHty/kgoI5DewzfgRlnmiGA8oMdWod 6cjfbF2E4Md9cJYX6Hz2KIhqX9QJKupEjQdEbVJXddIaDQusepS7Ao1s486UVOaF/ewL BaEI9T1l680w/eA4JCqUHbg3/45F3FXzlm2fb9CQIyhX70mtXHUpSzymnrkO0+ljQoBJ yUReZhdC9tLb6Ut5TRK5PNnCBRTWhv0WqgY0PVuqny4jF2cqzLXo6uhyvFOr8xI8tk/R tgk4MnUJj+Zs+vDegOPbNKCNMEZWdszIxgbREs6OwFfLHYnf2bPK4uj6BZpePvzmjK0S HIHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version; bh=0N2lb7e8C0TVZCnO4CT9nfSq9Q8VRlywn7zyF0Cd9F0=; b=NkYu+PnBPmDxXRWXsntrm1K19qOrZSv4hF83CTn5O6rWjh0o9nOesJNdm858AigUF7 oiPzx0eUWoWwAh0m/TK2KoJjtaSXfyHFfqtr0z9OVRnlt9fw8unIJeKQ9twHb0qmBSge eiq0hK3Uu9+1b/Aww9ORuXlbDWmBTmxHJs3EFuHH3UloBqLASEkgr7diA4j/pKau9M8I eDs6T2VJWqtPdvAEWkZKvmo7QmRQbMJitGIx3K/re3zIILc5zYCM8gFD4PGAoFEVXkir jEBY9IO1OzU6J/aG88BmcZ4K7WThlqd49LG7QStzkjn2FaA7mbilfH+UBHTaGpeDd9gk GyTg== X-Gm-Message-State: AGi0PuaYbDsZQSbZaRCJBD+le/s3kNUkJCcP9KnBwGVbo32zDYwjQUNL sIGEJBDlnZZpgqD+MVA1Xg0= X-Google-Smtp-Source: APiQypL2yOgsuOxG6dWG/a270pI8BJsYAZRL/+wtRQeGUavTMpF4JjzPc73eeHLxXYUEm7dax0EKZg== X-Received: by 2002:a17:90a:8c83:: with SMTP id b3mr22101363pjo.141.1586797338539; Mon, 13 Apr 2020 10:02:18 -0700 (PDT) Received: from localhost ([210.3.160.230]) by smtp.gmail.com with ESMTPSA id a12sm2613388pfr.28.2020.04.13.10.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 10:02:18 -0700 (PDT) From: Ihor Radchenko To: stardiviner Subject: Re: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines In-Reply-To: <877dyj9wkc.fsf@gmail.com> References: <87ftdact0g.fsf@gmail.com> <87eesu2ekz.fsf@nicolasgoaziou.fr> <87d08c9i7j.fsf@gmail.com> <87ftd7agwl.fsf@localhost> <877dyj9wkc.fsf@gmail.com> Date: Tue, 14 Apr 2020 00:58:30 +0800 Message-ID: <87k12j491l.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::644 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: , Cc: emacs-orgmode@gnu.org, Nicolas Goaziou Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: 0.59 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=WBN7PFCB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.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-Scan-Result: default: False [0.59 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.57705665382081]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; R_DKIM_REJECT(1.00)[gmail.com:s=20161025]; FREEMAIL_FROM(0.00)[gmail.com]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.28), country: US(-0.01), ip: 209.51.188.17(-0.58)]; DKIM_TRACE(0.00)[gmail.com:-]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; TAGGED_FROM(0.00)[larch=yhetil.org]; FROM_NEQ_ENVFROM(0.00)[yantar92@gmail.com,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; MID_RHS_NOT_FQDN(0.50)[]; RCVD_COUNT_SEVEN(0.00)[7]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed),none] X-TUID: K0HBx5XdVFdc > Thanks Ihor, I indeed found related code in Org Mode source. I implemented a > similar functionality in my patch. Oh. I somehow missed your first message... Now, actually adding something to the discussion. FYI, there is org-cycle-include-plain-lists variable. If it is set to 'integrate, plain lists will be included into cycling with point at headline. This is against the logic that org-cycle only needs to be dealing with headlines. So, I don't see your patch breaking the present conventions in org. stardiviner writes: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > > Ihor Radchenko writes: > >>> I try to record into under headline. For example, I use "org-contacts.el" which >>> record people personalized info. I want to see all properties drawer under a >>> headline when I press [Tab] (org-cycle) to expand it. It's more intuitive. >> >> I recall seeing something similar in stackoverflow. >> Here it is: >> https://stackoverflow.com/questions/17478260/completely-hide-the-properties-drawer-in-org-mode >> >> The accepted answer has a hint how to achieve what your want. >> > > Thanks Ihor, I indeed found related code in Org Mode source. I implemented a > similar functionality in my patch. > >> Best, >> Ihor >> >> >> stardiviner writes: >> >>> -----BEGIN PGP SIGNED MESSAGE----- >>> Hash: SHA256 >>> >>> >>> Nicolas Goaziou writes: >>> >>>> Hello, >>>> >>>> stardiviner writes: >>>> >>>>> I think the hidden drawers info is useful for users, this should be >>>>> shown when org-cycle on headlines. >>>> >>>> Doesn't this defeat the whole purpose of drawers? What problem do you >>>> want to solve? >>> >>> Hmm, you're right, my patch seems against the purpose of drawers. >>> >>> I try to record into under headline. For example, I use "org-contacts.el" which >>> record people personalized info. I want to see all properties drawer under a >>> headline when I press [Tab] (org-cycle) to expand it. It's more intuitive. >>> >>> I agree your opinion. I wonder is it possible to define a buffer local variable >>> so that user can control this behavior. WDYT? >>> >>>> >>>> Regards, >>> >>> >>> - -- >>> [ stardiviner ] >>> I try to make every word tell the meaning what I want to express. >>> >>> Blog: https://stardiviner.github.io/ >>> IRC(freenode): stardiviner, Matrix: stardiviner >>> GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 >>> >>> -----BEGIN PGP SIGNATURE----- >>> >>> iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6T3JAUHG51bWJjaGls >>> ZEBnbWFpbC5jb20ACgkQG13xyVromsPm0Af+JPZpVaz0GBhs3TS4rbKA58fO5RNS >>> lBbL0oaLpua9sBIh2erwLCnVff6hDcXW9tZp9CCXkFMlvx/kHJ8izGf8Sq59rPsa >>> X7N7szot6W+KJXLEsy+v3VwYcvKX5um8BBh+FrfUguLuCInUy03ZXquiruxHVZun >>> eKc67YBi5KpDJVyhkBD3NGSzuhmP8kiJ2hx05dh9PpLB9+YUeUX+8bb82biEu/O0 >>> ynWItysHG7t116+UuSQ0ShHE2yJffZqa0ygKfIukdPw7hLqBKSrudZX0Zp9yyPHh >>> SKh+olNHbOyQCpSZRjrMzhDETBP/g+FjiCMlmO2024F3FOZtyhQF+ALCfw== >>> =0jTv >>> -----END PGP SIGNATURE----- >>> > > > - -- > [ stardiviner ] > I try to make every word tell the meaning what I want to express. > > Blog: https://stardiviner.github.io/ > IRC(freenode): stardiviner, Matrix: stardiviner > GPG: F09F650D7D674819892591401B5DF1C95AE89AC3 > > -----BEGIN PGP SIGNATURE----- > > iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6Uk+MUHG51bWJjaGls > ZEBnbWFpbC5jb20ACgkQG13xyVromsPYmAf/X0l7OXFrPUR86aGuKdppM+uk3/t1 > edt3uCt1C2LCUZ2wiiCbCdmXgtTpwQumJjUnUM1WK9viNlMZq5FkmuWSZMwVwhc9 > mR7f4QFHGPfjJF02YEWjAOpR27do5N+jZrsH8u2hcSaf9IpdL0bxA/n5nLTXpmpB > +ghOSAT186LqWCCDcxhNFH7vUOKrE2gtrWPo5LeedWiHgfuMJuvhESSbWGfHFHL4 > ptxWlrEovDXZKZwsxVxZ578o27p8WgTkoRtfZjv3++lTG0BBg8DuOEfOWuZYDvf2 > 98OX2JnFoo57rL5KU9JFU8Y170RvRxDQF2ND7tg1e5RQcPoGFEKG+tfMaQ== > =kaPH > -----END PGP SIGNATURE----- -- Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong University, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg