From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id bppgMi8gF2GvawEAgWs5BA (envelope-from ) for ; Sat, 14 Aug 2021 03:45:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id uGpuLS8gF2G6LAAAB5/wlQ (envelope-from ) for ; Sat, 14 Aug 2021 01:45:19 +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 012842C6DC for ; Sat, 14 Aug 2021 03:45:19 +0200 (CEST) Received: from localhost ([::1]:37314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mEijd-0008Al-9G for larch@yhetil.org; Fri, 13 Aug 2021 21:45:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38512) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mEij8-0008AM-43 for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 21:44:46 -0400 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]:39699) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mEij6-0001of-Q4 for emacs-orgmode@gnu.org; Fri, 13 Aug 2021 21:44:45 -0400 Received: by mail-lj1-x233.google.com with SMTP id h2so18332219lji.6 for ; Fri, 13 Aug 2021 18:44:43 -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=kuRVlcpTOxd6uFdJf59CIx4DwvpvTCi3jPpJXNk7Bw8=; b=iuIYAClsMzYaxdF0Fkq+4av6iOgmFQuLpmysxtzjh5EadYamymzx0zuFsKWr63jkXC D0m7ovzM/I8g4rWC/vga5clWmOCfCiEK/p2uznJ9gLwTaur89vBV+7JMhC0xR75E6WzL X7GX8TuvI+kLjmql73zIKRuWkREIBA9oKWmrY1nWoMFuEOU1fgZYniQvUJRZJcy8+I/U b51gAhC9LIPv1Yq+WXpBRDYPI6QMxa2rCdzUuVZadrQrJlWIfF76guaucW8Iifvh/5/D ChPrt2bgmezfHRS1EewaktjNq4wR5ZWdFo0WG2ytRLQVIYP9ioPevYWJTFtDPq92H1xA GDag== 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=kuRVlcpTOxd6uFdJf59CIx4DwvpvTCi3jPpJXNk7Bw8=; b=AZgvIXiqotWUFpRFXJmzfejDXYehri0yZrjtwMd2DVb7X/gtZuNAV/5FFY+kSKlmXt ovi54RMJxUitYIpQ7J75Vr1jRbM+uZu2UR6L9guIjXQVW2j3TYsQcpAxPwNRR0cDoxG5 9GMQ0VHUro0dpvSJiurb6cUkWCLNhbb6XIY49QXZKvLtH2czUaR7V+Awr2ZR/szFoWyG Nl3zQUL9zfqU+lGmijbeHfyGBYa23butundK4NpixngjO9JQJA4LVtaAuNb8ZN0L0hmd ZToywgGvV3PGXYVHcVwuoUXLG/xRafOdUYrZlc41jpUcLClfATlXObnPSBXrmb4jd8Oc MOWg== X-Gm-Message-State: AOAM530wuCqco2L8Bg7eUjIAD5YXfTiHrDvYs6C/xHNMj0h/1PTIvMfm F52Q4NjQwWwX04vaRaejo1o= X-Google-Smtp-Source: ABdhPJy3M+zQlagm4ehk7BZcT0ifqxfsTfYveeS4/FdEP7dDRhnn0bU1jUGoBj6hDfciuAWASjio7Q== X-Received: by 2002:a2e:a90a:: with SMTP id j10mr3852919ljq.426.1628905481623; Fri, 13 Aug 2021 18:44:41 -0700 (PDT) Received: from localhost ([158.255.2.9]) by smtp.gmail.com with ESMTPSA id a10sm294346lfl.215.2021.08.13.18.44.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Aug 2021 18:44:41 -0700 (PDT) From: Ihor Radchenko To: Rodrigo Morales Subject: Re: Custom function for killing the thing at point In-Reply-To: <87im095682.fsf@gmail.com> References: <87im095682.fsf@gmail.com> Date: Sat, 14 Aug 2021 09:45:08 +0800 Message-ID: <87o8a07qaj.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=yantar92@gmail.com; helo=mail-lj1-x233.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: emacs-orgmode@gnu.org 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=1628905519; 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=kuRVlcpTOxd6uFdJf59CIx4DwvpvTCi3jPpJXNk7Bw8=; b=Nqi256V6hSX7OQAJ9Z40178eG9sX2z7Y1py1FgOBB+sEa+fQOcZiuLM4OZZpivdEdh8ZJN lrjN5HoWV621k+pUK8lza8kwl6qv/ZxQNUjd0TwHiWbBuNYnjH21te12uI5dZ59PCpBO5E Um6T2p+N+dS8N17Hs5by+UOjson8XtTrT1kgT0OLuhkCHCtYpm4TUeqvZlOeaj9IVR97Do SyZy+cE3FKy+JiOOP5vwYmo17pKcuf1FdvyBxJuBHTKfuCDIZKURNzmZk7jTcESAYpII8J fA45iVQ6bY8D0DtUHZCQEm/fC5gsyMD6YycQ4b4ik1AB9z49ibG23gEtxYWBqw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1628905519; a=rsa-sha256; cv=none; b=NnLeQ3VnoxSFPAUQ+EkpEd47lGJjWKwnPrOTnXe8N0ue1jjKANKG0M8cNZFQ3mIQggxWv7 z/Bg2f9SX5LAFF3vj0FtviUSAAbw/2Bt7sFk0NLNMxLo0h6IOa/SdtuznH9wI5bVMdzqQ4 7RmJd+5uq+i9+MrPJZI8y8v6Cb7dX9PUcia/MTSYN7HE3h88jZy3eXe238uvQF63NJZJzg zCxQsGKcCqYI7P4kloTB2wiW7zypYt2HIsrLMlWnqQw4udQRORoJ0gRcxb3loNOwQulB1J A5+f9T+GAljOGZ72gMajgqDdtpiBOBlXmR/o28NhaHglBT0UJO/iW38TGXGFMQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=iuIYACls; dmarc=pass (policy=none) header.from=gmail.com; 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: -2.61 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=iuIYACls; dmarc=pass (policy=none) header.from=gmail.com; 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: 012842C6DC X-Spam-Score: -2.61 X-Migadu-Scanner: scn1.migadu.com X-TUID: kRwUZ1IXuvjy Rodrigo Morales writes: > (t > (error "The element at point couldn't be copied."))) I would fall back to region between :begin and :end of the element. Also, it might be helpful to print a short message about what element have just been copied. Best, Ihor