From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +DjeJ3ACc2Y8BAEAqHPOHw:P1 (envelope-from ) for ; Wed, 19 Jun 2024 16:08:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +DjeJ3ACc2Y8BAEAqHPOHw (envelope-from ) for ; Wed, 19 Jun 2024 18:08:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=hxGNN2yr; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718813296; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=jHbwW1HbAuPo5b1ETK+EQoSLha6qF7PTvIN8N10BAJk=; b=X4Cyc0QFqi93QPu90MN2GN1pB+4A1l6GKdzMYOHIiSVm8BhegSMuSVFipjzi2sX3CqYxMF +qTnx3kZFVNPXLNv6yr/T5kqad2Z7At6m8TAf+VFQXrhRb0ZGV+eJD3WFQMEzTC6ifog8H 1nWujsGImLvNXaKKBtQwTBc6IN+WAjnSwFyFBSSdA38rz1+ksJZIoe91+RUVoQV0CYHe0y +IgwpB+iPbi+XLfEcOPYaVf2upQ3pi7UJNM/WvLUTA7v/9Ce3HNMt1HOgBncDacVtMZHjq NQ0M+K+ZeFlLBSLkzZclsxk3mRRlfACBmpJw/ZBHXhhyu5Z5kpY2u9/1/HHPbw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=hxGNN2yr; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718813296; a=rsa-sha256; cv=none; b=MrZEN9glUsfSAWjSxuoqNp4jPFznnEBiPvipPFZEo/uMkFM0jQkRFWEIZFjcl6qtB9Eaax VrRHI/KH2zoKw1UgtAC1NMKrVEWLym7tL8C8Tby6PtnZS9rhyg4st7aNUzSUNGjDL0uIG7 p5BveqnMpWUJXVEj58rdC4VHmEkYdYiekLf+gY5MHLfJlKexO54DWIxRLQwFfhSm1SH8IW gBUVOCMizU3N5ZIOVqegezQDUgbXGehgBqknHgVIonPAxhJVASqHRmqHEhfW6T1f6G6MEF +K/E68O6Uth27C0mRVeoepAv2+xSGQ6ulAT2GdNXe0wuJVYjd3kccMEiV5HpiQ== 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 7BAF625553 for ; Wed, 19 Jun 2024 18:08:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJxqH-0002NA-83; Wed, 19 Jun 2024 12:07:25 -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 1sJxqF-0002Me-Nf for emacs-orgmode@gnu.org; Wed, 19 Jun 2024 12:07:23 -0400 Received: from mail-pg1-x529.google.com ([2607:f8b0:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJxqD-0004qd-Vt for emacs-orgmode@gnu.org; Wed, 19 Jun 2024 12:07:23 -0400 Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-70df2135426so1565798a12.2 for ; Wed, 19 Jun 2024 09:07:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718813240; x=1719418040; darn=gnu.org; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=jHbwW1HbAuPo5b1ETK+EQoSLha6qF7PTvIN8N10BAJk=; b=hxGNN2yr+TccJ14fvOYOE5A+jazd2JnfXuA1IT+FvKPyK418YA/iaCZzMgv0gqbMaE 0HWtfwtPhejEq1JZyGxs7g6OvZgjJg+hHvG51kgEl6aB5fn1uInfL2dlm2w1Abf6Y8Re 5q9pwx9Okc/BgIh9F2/+8cTK33Q+dAVLQ9R+mi5sVpgmgVJvHVMLAVDtE9Xs4i2mpQ8U MUmd29LxcaSen4T8/xR/LeB4hJOafK3BPYALs2Iprd1BpCAfSJQGEnDIInYsp2S/BYnn nguUDjxr7o06dI0yr5iUzkBKLlpjRBdIfPuiS9WvzqI/wn8U1gwYt5N6ee0qyiSfOyF/ mebQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718813240; x=1719418040; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=jHbwW1HbAuPo5b1ETK+EQoSLha6qF7PTvIN8N10BAJk=; b=Nlqy2XbT0c7etT/ZxYGsT+LI0WHKiku2Yyy2dIrFxsFCbBxMjiofaxbH9atCSerz8A +MsIajK+kGtgdtkK3Hr4NEvQC0ECXKSCPTLWGIGJv2CdO5pB83qCIoYoRJcg0OMZRMT6 hJ441AAzpPsA0Jmcr+IWELDaQfB0rMHzSh0m06oPI3s6lo+kdiGozFhQ57+daKAduBt4 eEauwkf/N8LAxLBp0aKkfiWdPHOwrMl34Hl9slI6jUe3GroqTBwfD/riMgKLndfXhF5c qENi1r/oJYMVBT9SS9Sh8RStskzMETJmpLuQR18dNKVjeMEmJdZ8mGoCsUw1P/M1uFXf 90ng== X-Gm-Message-State: AOJu0Yyl64/2blRsOKx3umNHUmt2ZNz4ZGMAHx6lNV2vlvnCKcWuEb9r z9p+LwWXeqT/PmmUDNuKpmqS0tBHtvbC+AlrgIeyB6AnwM0REVqzaKy/UV8t8xSJl4JGfpyr0nL pyMJFUR08pn3O7RUzSmhIHGo+K04dFXte X-Google-Smtp-Source: AGHT+IGC3TE4QbYR2Fj+P9p/Cx6QZBSWVPvYKnmH8kwnbbq3ljm4A9fajpaiOMSWSEHrnJtHSoU6z6a+1hTpE2UVnmk= X-Received: by 2002:a17:90a:b893:b0:2c4:aba4:d84e with SMTP id 98e67ed59e1d1-2c7b5d8e507mr2885138a91.43.1718813239299; Wed, 19 Jun 2024 09:07:19 -0700 (PDT) MIME-Version: 1.0 From: Rustom Mody Date: Wed, 19 Jun 2024 21:37:36 +0530 Message-ID: Subject: continuing about orgalist org-element interaction To: emacs-orgmode@gnu.org Cc: Nicolas Goaziou Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::529; envelope-from=rustompmody@gmail.com; helo=mail-pg1-x529.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, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -8.20 X-Migadu-Queue-Id: 7BAF625553 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.20 X-TUID: mz+ioWqOhMXM I guess in a way the other thread (Sub: orgalist send bug) is done and orgalist in the new version is usable enough for me that I can live with the warning. But I was troubled with the possibility of lots of load path shadows so I spent some time cleaning up. [In any case since emacs had got upgraded recently, things like use-package are now in emacs so they had to be removed. So it's good I did that] But I felt like still poking around seeing if I could see what's the issue. I figured its these 5 lines at the start of org-element-at-point (unless (derived-mode-p 'org-mode) (display-warning '(org-element org-element-parser) (format-message "`org-element-at-point' cannot be used in non-Org buffer %S (%s)" (current-buffer) major-mode))) Now the current buffer (in my case) is text-mode, obviously not org mode so why that check?? Commenting out those lines the error message has gone. (And of course its still working) [I also checked that the corresponding send from ORGTBL does NOT invoke org-element-at-point] Now obviously I dont understand enough about the innards of org to make any suggestion to remove as Ive currently tried. But still there is the question (really for Nicolas) What is the meaning of ensuring that its org mode and warning otherwise when orgalist (like orgtbl) are meant specifically for non org buffers? Thanks Rusi