From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id QLqgI6E9lV44BQAA0tVLHw (envelope-from ) for ; Tue, 14 Apr 2020 04:35:45 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id YaCDJaQ9lV5QHgAAbx9fmQ (envelope-from ) for ; Tue, 14 Apr 2020 04:35:48 +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 5D0159422AB for ; Tue, 14 Apr 2020 04:35:46 +0000 (UTC) Received: from localhost ([::1]:52442 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jODIX-0000PP-C1 for larch@yhetil.org; Tue, 14 Apr 2020 00:35:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57939) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jODHz-0000Me-1F for emacs-orgmode@gnu.org; Tue, 14 Apr 2020 00:35:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jODHx-0001Q8-Pm for emacs-orgmode@gnu.org; Tue, 14 Apr 2020 00:35:10 -0400 Received: from [183.249.128.92] (port=9394 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jODHx-0001Mi-B3 for emacs-orgmode@gnu.org; Tue, 14 Apr 2020 00:35:09 -0400 Received: by dark.localdomain (Postfix, from userid 1000) id B47F22420F8; Tue, 14 Apr 2020 00:31:31 +0800 (HKT) References: <87ftdact0g.fsf@gmail.com> <87eesu2ekz.fsf@nicolasgoaziou.fr> <87d08c9i7j.fsf@gmail.com> <87ftd7agwl.fsf@localhost> User-agent: mu4e 1.3.8; emacs 28.0.50 From: stardiviner To: Ihor Radchenko Subject: [SOLVED] Re: [PATCH] Show hidden drawers when org-cycle on headlines In-reply-to: <87ftd7agwl.fsf@localhost> Date: Tue, 14 Apr 2020 00:31:31 +0800 Message-ID: <877dyj9wkc.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 183.249.128.92 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: , Reply-To: numbchild@gmail.com 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: 1.59 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" 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 [1.59 / 13.00]; HAS_REPLYTO(0.00)[numbchild@gmail.com]; GENERIC_REPUTATION(0.00)[-0.57642175672882]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; FREEMAIL_FROM(0.00)[gmail.com]; REPLYTO_ADDR_EQ_FROM(0.00)[]; R_MISSING_CHARSET(2.50)[]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.28), country: US(-0.01), ip: 209.51.188.17(-0.58)]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:22989, ipnet:209.51.188.0/24, country:US]; MID_RHS_MATCH_FROM(0.00)[]; TAGGED_FROM(0.00)[larch=yhetil.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_NEQ_ENVFROM(0.00)[numbchild@gmail.com,emacs-orgmode-bounces@gnu.org]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; FREEMAIL_REPLYTO(0.00)[gmail.com]; HAS_LIST_UNSUB(-0.01)[]; MIME_TRACE(0.00)[0:+]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[gmail.com : SPF not aligned (relaxed), No valid DKIM,none] X-TUID: 6IOphJ5TKDcf =2D----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 und= er a >> headline when I press [Tab] (org-cycle) to expand it. It's more intuitiv= e. > > I recall seeing something similar in stackoverflow. > Here it is: > https://stackoverflow.com/questions/17478260/completely-hide-the-properti= es-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 und= er a >> headline when I press [Tab] (org-cycle) to expand it. It's more intuitiv= e. >> >> I agree your opinion. I wonder is it possible to define a buffer local v= ariable >> so that user can control this behavior. WDYT? >> >>> >>> Regards, >> >> >> - --=20 >> [ 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 >>=20=20=20=20=20=20=20 >> -----BEGIN PGP SIGNATURE----- >> >> iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6T3JAUHG51bWJjaGls >> ZEBnbWFpbC5jb20ACgkQG13xyVromsPm0Af+JPZpVaz0GBhs3TS4rbKA58fO5RNS >> lBbL0oaLpua9sBIh2erwLCnVff6hDcXW9tZp9CCXkFMlvx/kHJ8izGf8Sq59rPsa >> X7N7szot6W+KJXLEsy+v3VwYcvKX5um8BBh+FrfUguLuCInUy03ZXquiruxHVZun >> eKc67YBi5KpDJVyhkBD3NGSzuhmP8kiJ2hx05dh9PpLB9+YUeUX+8bb82biEu/O0 >> ynWItysHG7t116+UuSQ0ShHE2yJffZqa0ygKfIukdPw7hLqBKSrudZX0Zp9yyPHh >> SKh+olNHbOyQCpSZRjrMzhDETBP/g+FjiCMlmO2024F3FOZtyhQF+ALCfw=3D=3D >> =3D0jTv >> -----END PGP SIGNATURE----- >> =2D --=20 [ 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 =20=20=20=20=20=20 =2D----BEGIN PGP SIGNATURE----- iQFIBAEBCAAyFiEE8J9lDX1nSBmJJZFAG13xyVromsMFAl6Uk+MUHG51bWJjaGls ZEBnbWFpbC5jb20ACgkQG13xyVromsPYmAf/X0l7OXFrPUR86aGuKdppM+uk3/t1 edt3uCt1C2LCUZ2wiiCbCdmXgtTpwQumJjUnUM1WK9viNlMZq5FkmuWSZMwVwhc9 mR7f4QFHGPfjJF02YEWjAOpR27do5N+jZrsH8u2hcSaf9IpdL0bxA/n5nLTXpmpB +ghOSAT186LqWCCDcxhNFH7vUOKrE2gtrWPo5LeedWiHgfuMJuvhESSbWGfHFHL4 ptxWlrEovDXZKZwsxVxZ578o27p8WgTkoRtfZjv3++lTG0BBg8DuOEfOWuZYDvf2 98OX2JnFoo57rL5KU9JFU8Y170RvRxDQF2ND7tg1e5RQcPoGFEKG+tfMaQ=3D=3D =3DkaPH =2D----END PGP SIGNATURE-----