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 ms0.migadu.com with LMTPS id UDxgE53OF2G3EQEAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 16:09:33 +0200 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 CF02D53OF2E6fgAAbx9fmQ (envelope-from ) for ; Sat, 14 Aug 2021 14:09:33 +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 799D7CA01 for ; Sat, 14 Aug 2021 16:09:32 +0200 (CEST) Received: from localhost ([::1]:54822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEuLp-0007zd-GS for larch@yhetil.org; Sat, 14 Aug 2021 10:09:29 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50124) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEuLP-0007zV-4Q for emacs-orgmode@gnu.org; Sat, 14 Aug 2021 10:09:03 -0400 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]:40595) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEuLM-0006Jh-Nj for emacs-orgmode@gnu.org; Sat, 14 Aug 2021 10:09:02 -0400 Received: by mail-pj1-x102f.google.com with SMTP id n13-20020a17090a4e0d00b0017946980d8dso6110710pjh.5 for ; Sat, 14 Aug 2021 07:09:00 -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=gWd9Q4qaEnPFWf50yn/0NNIFJKAwSGE8RaepyAFAE+U=; b=XrW0tSSoV00eAi1f2axec0wsC9/PJGvedfNEpCORS1G4syEq0Lrh0+OeM48IzlE+zA S9QwcruznJc3y7VrS6aHPoMuwnxdFcg03UsXMAVxcVKCS1heCWPnzCPKrfz8G6B2t1de 4+M8aZf227Dl5qAGg8pQSpjf82MniDk3pBrpEpAdC0jVrmUgLDksz9MMuiW4+FDEdT8s pq3qcTUVcd9/jN7QuTL6VAYxqUDy2fUlz+7P6Rfg7wQAIOOe84JWDXtQKSCDyofoi+K9 GGAh3JhqOaGxdTk2lhtn7aETudEP/VDGuxp3d7gZ9qj/B1wvfd13gw6X27d4Bg85NFH9 Aflw== 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=gWd9Q4qaEnPFWf50yn/0NNIFJKAwSGE8RaepyAFAE+U=; b=Eu+tm4iEKBRsxN8G12vfXCmO/Bi0WZGSe4KSmfH6F1VMthroORRf0w9vgeYr222cJI OK0sv9E87ZHsTWMGJm5xl2/QppttcuvHNViGwk0Pi+Ixcmp7QOtKzCuVT9fn19OS8FkJ 6sjtFCltlvsG9B+oUuAxeN6nP5YQTal34YFGHfaPRw3N+VdE03uViNnN4qs4AMjviGvA 3a9sQJVziSne2c8Sg+kO8hvlRxX59/O6WQXQkC2Bn5A5aEtiX+K6bYXT4ZNP/of2I7+T QabadZ/jgoDvn+RTJF9L82jNVAJRDzAXcq+GylNeeY80uTfL4BCkwUQOSzLVfaROKx65 oI8Q== X-Gm-Message-State: AOAM5304+A2cSEycZ99BttBCpalAbmvSW3FHwtWe/qEIacRd/Pkmlb3/ gzBDRl6fa5v4CMvKXzuGTtM= X-Google-Smtp-Source: ABdhPJw2hyG/pJKuk4RezrGOI6gFoeEwGEQQ0Z3Wk5bDAnGgmL+EGsiyt2LT3VaZ424kEaLXULaZRw== X-Received: by 2002:a17:90a:458c:: with SMTP id v12mr7771957pjg.50.1628950139082; Sat, 14 Aug 2021 07:08:59 -0700 (PDT) Received: from localhost ([104.250.131.79]) by smtp.gmail.com with ESMTPSA id z131sm6102650pfc.159.2021.08.14.07.08.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 07:08:58 -0700 (PDT) From: Ihor Radchenko To: John Kitchin Subject: Re: Custom function for killing the thing at point In-Reply-To: References: <87im095682.fsf@gmail.com> <87o8a07qaj.fsf@localhost> Date: Sat, 14 Aug 2021 22:09:24 +0800 Message-ID: <87h7fsf78r.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102f; envelope-from=yantar92@gmail.com; helo=mail-pj1-x102f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no 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: , Cc: org-mode-email , Rodrigo Morales Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1628950173; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=gWd9Q4qaEnPFWf50yn/0NNIFJKAwSGE8RaepyAFAE+U=; b=ALSRNj+mFGS32UtjpjosRgXD2Tyuz+j8bTEBayF84QkvQ0HvFIktE2lI0U85dhvUjNgbQN XcquARilUFVfrIuo5z6Asg1Ar32Ca45jGQH4K4axLuknphOszNlRMuMoRryaj8yE5m6WgE CNoB3LgHcyBfEDFfqjxqOiS21GkLZe6y+tDMLCtVGloj4/cCFDDhafzPz5dBkO2hEVbHgn s2xjBIL77RV0HMl0oekgVB6Ai8a02MJGIUkyKk0i07O7klSgK9Nw4odDvSK0Xoo8d5HYih dn1oKRnnWjcxLpvS2npBz0M1sq9b7AJa1nbDlXtvswhh2W3LSL769EgWa220/Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628950173; a=rsa-sha256; cv=none; b=aKTPuBgq9NM8m58ASqBzsSAuYzZWyjMXqE2n0w4lAHA2BI8insnS01iRpmdHzqpaIOUW1T OATMOScU+g1TD+N9rcOG2mdGUg7QqJxlB1rkRIdupmFb9xK4nU4iFoOALK2sBbpaKx7RcU qAgmNMvUO4EnOhcC2z5XjYkrUGlR83AHtAcPe3D0At6HZ/ofTMdm0lgYE1o3MzrSs5nNBj vpAU9ogRrKy5AfVu1Kc6Vh1d/opP6bSCZ3CrFh+eE5wGo2pc8KtuGR+xqidqflDIFPvGLF nPyscK89AuiK0bALqTu0lRIs6RTawVxfIKutE2zyljZmTd81zN4Eg/+EaRqx0w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=XrW0tSSo; 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-Migadu-Spam-Score: 0.69 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=XrW0tSSo; 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-Migadu-Queue-Id: 799D7CA01 X-Spam-Score: 0.69 X-Migadu-Scanner: scn0.migadu.com X-TUID: ffG5MtBVxW7m John Kitchin writes: > alternatively, fall back to org-mark-element. I am not sure what > differences in what you are trying to achieve and this are, but this should > cover all org elements: Sounds more reasonable as a default. (org-mark-element) will mark everything including affiliated keywords and post-blank empty lines. (:begin .. :end) will not include the affiliated keywords and extra blank lines. Best, Ihor