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 cMoSOg3auV7SMQAA0tVLHw (envelope-from ) for ; Mon, 11 May 2020 23:04: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 mp0 with LMTPS id 4CYNBRzauV70KgAA1q6Kng (envelope-from ) for ; Mon, 11 May 2020 23:05:00 +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 46A78940E80 for ; Mon, 11 May 2020 23:04:54 +0000 (UTC) Received: from localhost ([::1]:36444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jYHTj-0008D5-36 for larch@yhetil.org; Mon, 11 May 2020 19:04:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54624) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jYHTF-0008BL-LJ for emacs-orgmode@gnu.org; Mon, 11 May 2020 19:04:25 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]:36267) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jYHTD-0003IX-RS for emacs-orgmode@gnu.org; Mon, 11 May 2020 19:04:25 -0400 Received: by mail-wm1-x335.google.com with SMTP id w19so6458702wmc.1 for ; Mon, 11 May 2020 16:04:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=andrew-cmu-edu.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=7x2kdr8xqcSOzySFPI/VX+Nxz2qByqFhGWsc+Gk/DcE=; b=EURa/46wRFngHX+RRn7XXW9fOTlLmk5buZhjnDUWybyW/67ie0BAc7xdUEYIHq55by +SVuACNtiTgo/iYyo6g2TSRGteNBbRIMnTOR+v4pFca7+7Z72PxW2sUajwGLecDF6kvp EFboHfuMJAcRUlfaZQkcnwr9mZ5qy+HeyOGJL+hFPLTGAQwUVDjV6r0QJx9Rko1hoXxl n6y4XfCquGBGt4IM6JJmV1qf8njX/d8QXg/nW10RV9oa9R0FDdYh+ZUHSmWuO2dk/CJa 1TcvIbx5cVntx1AtlGwcjF1hMIqG862VQXD5H3uFtCYyTyna4nLEPEoMOJgYuoUeGgh5 F3QA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=7x2kdr8xqcSOzySFPI/VX+Nxz2qByqFhGWsc+Gk/DcE=; b=FUPYxOGjj4h94QL5FZd7xcBeoPXX76DK4fyl+XSyKTehKtMFBFm3yAdqrDQW+brI8n FBDI+D/s14Z92kksvDogyL7SXkxy0qMcZtRgQA9o8f17zDAL+z8AA3RjfA2WXeSor537 bwvbBjV9t3bpluEiExcaWu+uQfp4jv1Ud3FB8j8GpOwsYuu+2o6ke8lIZJN3zkQ26BEg 4IiT0a6A3efCYS+AlAYOvSJ/z9cHe+Y9TTMCgEWX8RDoxtM1vKpt6QANLjvmL84fsd91 oerjWlSUY9+c+iSXviP9lZM9wfi1NJdahDeAU+XtgIGyS+UjmC1PP7fo4x6pUCw5KWVR 3LCw== X-Gm-Message-State: AGi0PuZNsQoAiAgA0ypf0xPLGvmJ/lJe+LQsWr5+YH8Pn4P3bPp+9VG+ nb/f/jZ3QcwiQuV80EsPve3PUEyQ0A0W5nENXvwwRA== X-Google-Smtp-Source: APiQypIvek9rTl7sU0lVcuGy5Oy/qjq+1ALyJrxzdBW0eLhV5FU02OOYM7MA43iWPw9xxMsBwnMN4FLkOgVI99nXnWQ= X-Received: by 2002:a7b:c08b:: with SMTP id r11mr32377367wmh.45.1589238261818; Mon, 11 May 2020 16:04:21 -0700 (PDT) MIME-Version: 1.0 From: John Kitchin Date: Mon, 11 May 2020 19:04:10 -0400 Message-ID: Subject: get the body of a heading up to the next subheading To: org-mode-email Content-Type: multipart/alternative; boundary="0000000000000f2b3805a5675efd" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=johnrkitchin@gmail.com; helo=mail-wm1-x335.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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: -0.11 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=andrew-cmu-edu.20150623.gappssmtp.com header.s=20150623 header.b=EURa/46w; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=andrew.cmu.edu (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.11 / 13.00]; GENERIC_REPUTATION(0.00)[-0.54001710137945]; DWL_DNSWL_FAIL(0.00)[209.51.188.17:server fail]; R_SPF_ALLOW(-0.20)[+ip4:209.51.188.0/24:c]; IP_REPUTATION_HAM(0.00)[asn: 22989(0.07), country: US(-0.00), ip: 209.51.188.17(-0.54)]; URI_COUNT_ODD(1.00)[3]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.50)[cached: eggs.gnu.org]; DKIM_TRACE(0.00)[andrew-cmu-edu.20150623.gappssmtp.com:+]; MAILLIST(-0.20)[mailman]; FORGED_RECIPIENTS_MAILLIST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; 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)[jkitchin@andrew.cmu.edu,emacs-orgmode-bounces@gnu.org]; ARC_NA(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; R_DKIM_ALLOW(-0.20)[andrew-cmu-edu.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; URIBL_BLOCKED(0.00)[cmu.edu:url,andrew-cmu-edu.20150623.gappssmtp.com:dkim]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[emacs-orgmode@gnu.org]; HAS_LIST_UNSUB(-0.01)[]; RCPT_COUNT_ONE(0.00)[1]; DNSWL_BLOCKED(0.00)[209.51.188.17:from]; RWL_MAILSPIKE_POSSIBLE(0.00)[209.51.188.17:from]; FORGED_SENDER_MAILLIST(0.00)[]; DMARC_POLICY_SOFTFAIL(0.10)[andrew.cmu.edu : SPF not aligned (relaxed), DKIM not aligned (relaxed),none] X-TUID: 93rOvKwU/dyv --0000000000000f2b3805a5675efd Content-Type: text/plain; charset="UTF-8" Hi everyone, I am trying to get the body of a heading up to the next subheading. For example with this org file, * quiz one This is the description. Use emacs for this. ** question 1 what is 40 + 2 If the point is in the first heading, I want to run a function that would return the string "This is the description.\nUse emacs for this." I thought there was a simple way to do that, but so far it has eluded my google fu. Any hints? John ----------------------------------- Professor John Kitchin Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu --0000000000000f2b3805a5675efd Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi everyone,

I am trying to get the bod= y of a heading up to the next subheading. For example with this org file,

* quiz one

This is the des= cription.=C2=A0
Use emacs for this.

** q= uestion 1
what is 40=C2=A0+ 2

If the poi= nt is in the first heading, I want to run a function that would return the = string "This is the description.\nUse emacs for this."
=
I thought there was a simple way to do that, but so far it h= as eluded my google fu. Any hints?

John

----------------------------= -------
Professor John Kitchin=C2=A0
Doherty Hall A207F
Department= of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15= 213
412-268-7803
--0000000000000f2b3805a5675efd--