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 QFApHkafkl7kUwAA0tVLHw (envelope-from ) for ; Sun, 12 Apr 2020 04:55:34 +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 gCoOGkifkl47FgAAB5/wlQ (envelope-from ) for ; Sun, 12 Apr 2020 04:55:36 +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 C4885682D68 for ; Sun, 12 Apr 2020 04:55:33 +0000 (UTC) Received: from localhost ([::1]:58834 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNUeZ-0006vI-QQ for larch@yhetil.org; Sun, 12 Apr 2020 00:55:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55620) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNUe9-0006ux-Hm for emacs-orgmode@gnu.org; Sun, 12 Apr 2020 00:55:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jNUe8-0002hV-4j for emacs-orgmode@gnu.org; Sun, 12 Apr 2020 00:55:05 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:54446) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jNUe7-0002eO-U9 for emacs-orgmode@gnu.org; Sun, 12 Apr 2020 00:55:04 -0400 Received: by mail-pj1-x102f.google.com with SMTP id np9so2509446pjb.4 for ; Sat, 11 Apr 2020 21:55:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:in-reply-to:references:date:message-id:mime-version :content-transfer-encoding; bh=TTftTkhlJkIjkELNsvCPA1RKTK/a+Nxmsdyg5VH6CNM=; b=VZ1NmLKVEAIvzrzw4QzYzvefXb36scy5hrTTCLXC0+wFx8dSmabviyjMqY9VmaSUSC hmKjHcWtt5TA0z5ndIi4uX1p44LD2AvSSZhmR+CaC+cthrgEWtbLLYtbhYxph4Zm9UA+ URPz9bQh9IJodEMG9Sh/xY6c/IL49ytoP1Ing08jJfKObklrGgqXAWWXuMfPaYZbjvzj J1x32CysfGSSufbRr/WqlyN8mi7kM6lZayFlhKVmEhsVG6zE/IXEVIsgFWK/z4kSCSsD 2zP/cCtSAiYgL/7EtqRXkxJeo0ami56DRRdwwpcF+qLEIVBbxy3XDd9sjJDUoWaAIfzF rY6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=TTftTkhlJkIjkELNsvCPA1RKTK/a+Nxmsdyg5VH6CNM=; b=dMZNpJpLPjFddKoIbyGiNOt5mevT3gd9xWceJnfyahC0BFc+K54Tq9RVPIoAMTGctf 2SjPjIzXi3kTjVsEbUM6XqH5/I2DJSgJP7q+kZ7z26XrdZvPCRtPoCq2MDECvRKBdLo3 QAoDW0RKo5e2thh56wyzETZ5uPZgiU0fEJpqLYcbv9T7vDawkfMtOoHngIGaEdT3Hh4N Y77vB+kSxl5TwUlHkDbOAEMM80whDIsCIFIBVtoHp6Xd8GxRLoHgLrzQ0gWhTwNHWSRT dOFQDctQkxxoFFvC7eYMbLW2+flx5iVGiGeNLp+NswUHYeKbos7ynFRcbEp/g7RLIPDe zZag== X-Gm-Message-State: AGi0PuZrtLUDPDhODK0+Id5GpiQ138FCKlzJGWxLJ6sVW8X8woJfDB8V u1PxF21s2LgXOhuhE5Qe7cg= X-Google-Smtp-Source: APiQypKROPRERaDUPUf4isK7G+2ufkY2mLkDjz/yGT9SvnZuhDIXcMP+CQTvbWn7VK0FxxKlZwa6eA== X-Received: by 2002:a17:90b:3783:: with SMTP id mz3mr14625161pjb.27.1586667302428; Sat, 11 Apr 2020 21:55:02 -0700 (PDT) Received: from localhost ([101.99.64.65]) by smtp.gmail.com with ESMTPSA id v36sm5013836pgn.44.2020.04.11.21.55.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Apr 2020 21:55:01 -0700 (PDT) From: Ihor Radchenko To: gmauer@gmail.com, emacs-orgmode Subject: Re: How to get all headings from current location up to the root In-Reply-To: References: Date: Sun, 12 Apr 2020 12:51:18 +0800 Message-ID: <877dylxq61.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::102f 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 X-Spam-Score: -1.21 Authentication-Results: aspmx2.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=VZ1NmLKV; 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.57952592472644]; 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.29), country: US(-0.01), ip: 209.51.188.17(-0.58)]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; MAILLIST(-0.20)[mailman]; FREEMAIL_TO(0.00)[gmail.com,gnu.org]; 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)[]; 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: tAoxSZAtNp4M org-get-outline-path ;)=20 George Mauer writes: > I feel silly that I can=E2=80=99t figure this out but how do I get the cu= rrent > heading, its parent, its parent parent, etc via elisp? --=20 Ihor Radchenko, PhD, Center for Advancing Materials Performance from the Nanoscale (CAMP-nano) State Key Laboratory for Mechanical Behavior of Materials, Xi'an Jiaotong U= niversity, Xi'an, China Email: yantar92@gmail.com, ihor_radchenko@alumni.sutd.edu.sg