From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id ALixDg8ulF7xLwAA0tVLHw (envelope-from ) for ; Mon, 13 Apr 2020 09:17:03 +0000 Received: from aspmx2.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MGFJJREulF6VDgAAB5/wlQ (envelope-from ) for ; Mon, 13 Apr 2020 09:17:05 +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 aspmx2.migadu.com (Postfix) with ESMTPS id E1292682AD5 for ; Mon, 13 Apr 2020 09:17:02 +0000 (UTC) Received: from localhost ([::1]:41970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNvDA-0007HD-UQ for larch@yhetil.org; Mon, 13 Apr 2020 05:17:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46913) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNvCI-0007Fu-Tb for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 05:16:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNvC8-0004Kx-Jq for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 05:16:06 -0400 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]:38262) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNvC8-0004JU-CK for emacs-orgmode@gnu.org; Mon, 13 Apr 2020 05:15:56 -0400 Received: by mail-pg1-x543.google.com with SMTP id p8so4214528pgi.5 for ; Mon, 13 Apr 2020 02:15:55 -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=O2DgBepV7nB4cCqEOvbwwT1u6UuXTzTBJze/UXPp93Y=; b=uWyutdfsOIxKd2tYocrOuAW7BtZfBRNhnv3g+RUlucLgHZHbTvgUDlCTt2WPAjomns HCI61Z+mYVxDr6AXoo0mhwjVC4w/SNQaWtmUaGJtgH9x+EjIB00zte9c2FQUSVUxakxV /6/Xd+UieHZYKnRsDKH+w6Z3Kz5uqlJNtPTwH/K25JRamPEQrVHt+GC34TXghmqI2RwO nN6eiVfOlQi8ccbsOtsLvX0cT7XXGK+nqznf0NAarFFGZAJ+HN7ffPQGSOyzQUveTSIq ue7rDWTUl8KzVEAJl6YKMtMbEcGN6v4XuX7lLQnM/219vr3ZEP1u07viAlMLXneDYunq 1BXA== 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=O2DgBepV7nB4cCqEOvbwwT1u6UuXTzTBJze/UXPp93Y=; b=bgqttsHI08m6yAZ8oI3h3P8JhC4RL5FFqAIXWtVDb9NXBQQsgn7QeeoQAx9EVQwoKv RU2VUjqqeQVeLLp0IdGVSZVxk+PGhEadsiWCNYSWRSjcyr5DWRgZf14NDitpGWxZtO9W ekqAi863Rw5JAhQ7dlLzPdPruqb3UKrbLtXlUbxdWXFJPfk4HSNy9e+wUdHufLhxA4Vl lbA8x5vD6joBymOeXabQGg8tn6mh+LHFkOrgqH0Y4an96GK6H6RvvsG18fSy5mHLwxUN Y9mgoyN6eGb7QvZNFdl9AhPjso1kwNDRsDEqQp0q3aRNAPsX91Y0eappAHIlDqG3fMPy vkUw== X-Gm-Message-State: AGi0PuZb+I5t6q/E9DYmYMUoQNNTdAqOFGS/KQxONdeqIyrp5RgVKPCi 2WsnzqwyUxNkIeO9U8KusnQ= X-Google-Smtp-Source: APiQypKWL6/yKTEhRaeKpOpqLMFkqBcIQ/ckO92yX4m/RLKuOYm5u/FT3paUoLqb6J9IImU2iN75XA== X-Received: by 2002:a62:144b:: with SMTP id 72mr1246607pfu.246.1586769354027; Mon, 13 Apr 2020 02:15:54 -0700 (PDT) Received: from localhost ([101.99.64.65]) by smtp.gmail.com with ESMTPSA id 203sm8174830pfz.217.2020.04.13.02.15.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Apr 2020 02:15:53 -0700 (PDT) From: Ihor Radchenko To: numbchild@gmail.com, Nicolas Goaziou Subject: Re: [PATCH] Show hidden drawers when org-cycle on headlines In-Reply-To: <87d08c9i7j.fsf@gmail.com> References: <87ftdact0g.fsf@gmail.com> <87eesu2ekz.fsf@nicolasgoaziou.fr> <87d08c9i7j.fsf@gmail.com> Date: Mon, 13 Apr 2020 17:12:10 +0800 Message-ID: <87ftd7agwl.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::543 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 Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 X-Spam-Score: -1.21 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=uWyutdfs; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx2.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.21 / 13.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; GENERIC_REPUTATION(0.00)[-0.57733072506594]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; 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:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com,nicolasgoaziou.fr]; 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)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; 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)[] X-TUID: XDibsCSuLc2x > 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. 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----- > -- 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