From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id GB7sMt6QEmeD+gAAe85BDQ:P1 (envelope-from ) for ; Fri, 18 Oct 2024 16:46:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id GB7sMt6QEmeD+gAAe85BDQ (envelope-from ) for ; Fri, 18 Oct 2024 18:46:22 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dWIcMA8G; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1729269982; a=rsa-sha256; cv=none; b=afzT0biLqcaRUcSE+mjnajP3SwGf3cIiUwa8hBuse/zqMYwjN5aH2+2MkzNtGrFTWIureK v95lGp8mCQdOZuGodT2/l63GQv6WmnhREfxhcmmFFklg/6I6VH/sYW/DLw3HimyNiaumWq /3qD4m+zLxPmkg2StlSvRPKCFDVnvTRxINFtXAnVoeFA7dQvZAV9TM1WjYEppw4X+manAT ZTn5uPQ9h/m6smN6Gg08IPWH/rS/tkYnDce/yL9o28+jxvU8iBTlHkyNfnC38vvT8cUDdv RvAuAatU5BlwUfhx/jscSsAw3/up6TN0j59sY9cjyvcYc/HHtomgMN8+aJBZpg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=dWIcMA8G; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1729269982; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=i1Bzp2YXQC8P21L/SsCoYDrgRjkFXFLUHj0KuMv4XwA=; b=fi7q7YhqKMIn4Ywl0pjhJDmbkZHrHX1qohhjMlslM/2ICwOuyxInw8gBAt6EHrC+YhCpZp zJ0X3OUaNdG1VHCX+es8zC9N/MLQv6Pk+F3e3Orr+E/oLom2Mj7SKjutEza8yyfFepYL21 BTmev5fcp988T6768gYZjbi6IJ1VvNjlRIC0wFeWkS/O2wzmvPWA0BF4PZDrx7PHWuteIc FM9bXIHWhGHZHuxuV3tYAV3KQ8QScqJjYRLy3qMekrNGA6gDX6h/iF0KsmEN99CT4LuvRb 3BoGlIRHOPLFsbblDGKrgE1GZJ+kFo6rfC/RyXxaGUQ1Kxhuirwxw9yubyclxg== 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 7251F64A8 for ; Fri, 18 Oct 2024 18:46:22 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t1q6i-0008NU-TM; Fri, 18 Oct 2024 12:45:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t1q6X-0008Mp-T1 for emacs-orgmode@gnu.org; Fri, 18 Oct 2024 12:45:42 -0400 Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t1q6V-0007pR-Mt for emacs-orgmode@gnu.org; Fri, 18 Oct 2024 12:45:32 -0400 Received: by mail-pg1-x544.google.com with SMTP id 41be03b00d2f7-7db54269325so1856516a12.2 for ; Fri, 18 Oct 2024 09:45:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1729269930; x=1729874730; darn=gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=i1Bzp2YXQC8P21L/SsCoYDrgRjkFXFLUHj0KuMv4XwA=; b=dWIcMA8Gh5YocRkXQ+UJJ/tlR+/cLfLQgbUorfIu9b+j259qkWlbZtEg7HfxcWc78e hOWbBfFW9Uzj3Vogm73i955GwCcV//uTQoZ13h/Rulqs8LKNQ6E5Vm9x+hQQvqugunEf zSz3UITPpGsqp/pb6kSg2n5Qgj2LzBZ9/SsYi51WHL9XcW1JSWDTor1eofxojAipQ8PF XPu0qItYmDZQFdF326iNu41tgsbXP9SdUjxzcaBsY0BpSp3W0IXduZvZJYCXIlDR3S4Y aphdXk8IaCgvY1A49NA7TeGjkuDLfTH7xB/dsu+r3YaCb2YhKPnUB99wfYH+WpdaAlkR MyAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1729269930; x=1729874730; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=i1Bzp2YXQC8P21L/SsCoYDrgRjkFXFLUHj0KuMv4XwA=; b=LUEi7W+08tHWDV7wZ1KdtLiMsbxCBonvb6LUqZMLVb8R/avAi7Mp6M80/0NSuH0spu 9U1Xn+iSLF+cj7vidD2gbtzjNBDv7LeP+zGEZc2Nn1Bf5fI3i9++X7J7Nr9S7VO81BS5 7cm8Qf/nXDnD5YTVYqFq0+XNbflU0DBRufkq6m/+DWsQ4+zpVLGcTkJw5BjSHeDPY7AH IiyBNHsu05sf7OaL5br7FJe3+qk3eaSuXDh13olxz7BmxTPy8bRsFEtpZ4GbG5+VjdZp 04nhL7+cSp18XEZ9uzmz7fVfT3dXuAi/X5hpGgTgxf07lwo7bS28GhKB+SlrxSkM8DgO Tksw== X-Gm-Message-State: AOJu0YxIpkrqnetDtKVUCxh0UqvmC1pOHEeH/C4W49dYnshXyoxS0276 lH8I1GEYB7C23BmOblA8syJExDzNRbbJ3GalTDePwGKbFrglXQsHcNoEo8AF X-Google-Smtp-Source: AGHT+IHwTrsVurEM8pzztYrsGOohhBOq+0YEkh0Y+b8Pd7vJH4v7ZVXgXSzMSb3sz17/4iu5tt890A== X-Received: by 2002:a05:6a20:ac43:b0:1d8:b962:6087 with SMTP id adf61e73a8af0-1d92c4bad75mr4514814637.10.1729269930011; Fri, 18 Oct 2024 09:45:30 -0700 (PDT) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-71ea34b21e6sm1660719b3a.209.2024.10.18.09.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Oct 2024 09:45:29 -0700 (PDT) From: Visuwesh To: Ihor Radchenko Cc: org-mode-email Subject: Re: [PATCH] Add yank-media handler for LibreOffice Calc tables In-Reply-To: <87a5f2zl4f.fsf@localhost> (Ihor Radchenko's message of "Thu, 17 Oct 2024 17:37:20 +0000") References: <87r08i3alo.fsf@gmail.com> <871q0ise9x.fsf@localhost> <87msj53o2o.fsf@gmail.com> <87msj5dx8l.fsf@localhost> <87ttdawssj.fsf@gmail.com> <87a5f2zl4f.fsf@localhost> Date: Fri, 18 Oct 2024 22:15:21 +0530 Message-ID: <87iktpweam.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=visuweshm@gmail.com; helo=mail-pg1-x544.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -1.57 X-Spam-Score: -1.57 X-Migadu-Queue-Id: 7251F64A8 X-Migadu-Scanner: mx12.migadu.com X-TUID: 0SsjhjjJgz2Q [=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=85= =E0=AE=95=E0=AF=8D=E0=AE=9F=E0=AF=8B=E0=AE=AA=E0=AE=B0=E0=AF=8D 17, 2024] I= hor Radchenko wrote: > Visuwesh writes: > >>> Consider the following example: >>> >>> * Heading >>> >>> M-x yank-media ... will slurp the heading >>> >>> | * Heading a | b | c | >>> >>> In contrast, the existing handlers will only insert some text at point, >>> never touching the text around. >> >> Would it be sufficient to unconditionally insert a newline after point? >> Maybe even after going to end of current element (if that can be done). > > It will be more fragile compared to using temporary buffer. > As an alternative, you can apply narrowing around the call to > `org-table-convert-region'. Thanks for the explanation. I understand your initial suggestion. I will use a temp buffer in an updated patch. > Also, do note that any text exceeding > `org-table-convert-region-max-lines' will lead to > `org-table-convert-region' throwing an error. Catching that and messaging the user should be sufficient? I will post an updated patch if someone comments on how to resolve the encoding issue.