From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6LdkFJVNcWYjEwEA62LTzQ:P1 (envelope-from ) for ; Tue, 18 Jun 2024 09:04:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 6LdkFJVNcWYjEwEA62LTzQ (envelope-from ) for ; Tue, 18 Jun 2024 11:04:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YplyB4SW; 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=1718701461; 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=fSbFqa4db2adznlgaNMUmLIvF1XFAABjB/7Zb8yF6dM=; b=B8JTp29nzyGZxZ+iHQG2dIoGMcdfdUmBW1baELfXA5sVoWKVFWqvHmOt26Uyu07pw8kmJF KNB0FO38jGrHWxy2BREFtCSNiuZns8iVW2FRH0Y5kK+hNZklJqUqHJI01kbN8KWvksM+AD LsJnasLRDee4xyiA5PtwOtSUo6SodWx7yfVufz0OtinIulzkXf1z9h79YV9Z8V9fNzCfRi 3AWfyLPDrtk8Z4maJ/FF767qBFQJ12V87pLdaChvv8idTu4jajvtg97h8BoLXjaR47JbDg wpRIgGcbGBxr+qbSMOHtIzGzO0EwE80rA8wbrOQt6NRnAnWqnj18AxwdsLeXVg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718701461; a=rsa-sha256; cv=none; b=T3Krns04DJzXkOezWmR/jJ+KJX3ZPqBJzBLPUVFiV96FL3mLdmrsv1Whjgu7ByiDZTkJsM OzCP1GWfA4INpQIrYaglGebuo//oUy3epDhteP94EHGp2rch7bUfbHe6FwzDez3cn4p51g Ij//Rozn5qiz/syynn0Jgn8fkix+Hd9XgndHq5r4olCo+nKE92oHM0EC1rvFm3UBN7FWTb qkeqnQOYc4DtP5ACutSRTOOpqoKHf9tXtjiD7mO7byp8MdPqOF9Xwj2Ipm96j6l1shd3Wu A91kWkXf8Q3Xp/ijX+Kw+d7IocKLYs9RxsKyyOt3lAIXBCwkZ5XM3RzakavCEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=YplyB4SW; 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" 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 31EB066F8C for ; Tue, 18 Jun 2024 11:04:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJUS1-0006jN-KP; Tue, 18 Jun 2024 04:44: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 1sJURz-0006j2-RX for emacs-orgmode@gnu.org; Tue, 18 Jun 2024 04:44:23 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJURw-0004I3-RW for emacs-orgmode@gnu.org; Tue, 18 Jun 2024 04:44:22 -0400 Received: by mail-pj1-x102a.google.com with SMTP id 98e67ed59e1d1-2c2dee9d9a1so4263778a91.3 for ; Tue, 18 Jun 2024 01:44:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718700259; x=1719305059; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=fSbFqa4db2adznlgaNMUmLIvF1XFAABjB/7Zb8yF6dM=; b=YplyB4SWVRDRgAFn6/OLyyqSsZTA3ARA40g+Ilw25f5n4MOyBM8sCGIqkiANa2mTR0 7G2KVOyC9eFzmUlN6nVczoZDeu5fYsGJkEVnBhE0+wIyBJjrRo+7GtHFOymqCHHlS5z0 3QQYsVaJ97+RhfpgCHy8cR51Vs1wj7T3CgittAuL+FFUscIRpp4sUoeJ7i/EPS0Nu7yz Fut7UWhajlFFufUapg30LQrW8HDSsyHaDO8yQhq/mNtIsbSdSK4OaiAA5fDeKkmTnDvq OIyuuMQPtTY41oKuhAWaIbvgWoqeGAZGb3ErOz/MFtWkvjqp6o74IgpbecK6h//v6J6G bc8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718700259; x=1719305059; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=fSbFqa4db2adznlgaNMUmLIvF1XFAABjB/7Zb8yF6dM=; b=Jt76+TxgzchzMmcxoYHDBdJo57XM9ZGOKLPW+jG4/dZhmtT1R8EtCSxgkRqmiEDmaE qGJfSbvPlED3s/7RRp7YUYaCN4NlIMUs7UJsh+R1t5IV5FGTmnUeBQ9iAgaIOuj6UWSM KRlhnaFE67DQpvGgnJYttLhgmUK4IlFlCKfbkDexM9rSmkol9gkkePFNEmUhusIDm83C 22goJpM8sQTdtiC/geG8nnf3JvTzuFg/muLzFs3NAwtUUWukh+nEnAPSBB+ubsHcYYdQ uvLbWfqpopS//26Gia1cyO/+8rd5d9Yk2EwQx1LinTij/9wsFGvy2P5gPLmup9g4iHMi pbHg== X-Forwarded-Encrypted: i=1; AJvYcCW63m06kahvD+pqdeg2TJEtrpeiPwnUf4J2p5NoZWcP/gW5loSZklG0/PG5adEWIz1Tl2787qTk2xU7q6CB+XOx+jRA8GE= X-Gm-Message-State: AOJu0YwCQdk1jRm9weglmZwBX0SheHkaJ0mngZnaQaUMupMGRQdY1Apm 8jrYBDWgizF2F1fXDzSJqmSQBzSgyLBiMBPdDF9aIEJgKB7ln+/9Ux0ijibXHzEs0XZg0CjY8Xj 0ua8dgQOnYr9kptEBFO8qMuH7FIN354/X X-Google-Smtp-Source: AGHT+IE0HLSH64RU1rfv9JoTaHzKwwHpHO3JhsbuHenaKXMWQSCv8oA22FHC4ieDqT2onmo1PlT/h5TIn6MnLDrh3X4= X-Received: by 2002:a17:90b:3b87:b0:2c4:f357:b7b8 with SMTP id 98e67ed59e1d1-2c4f357b83bmr8416410a91.43.1718700258675; Tue, 18 Jun 2024 01:44:18 -0700 (PDT) MIME-Version: 1.0 References: <87le36gwus.fsf@localhost> <87v827wihu.fsf@nicolasgoaziou.fr> <878qz2ahjg.fsf@localhost> <8734paaebn.fsf@localhost> In-Reply-To: <8734paaebn.fsf@localhost> From: Rustom Mody Date: Tue, 18 Jun 2024 14:14:34 +0530 Message-ID: Subject: Re: [BUG] orgalist send bug To: Ihor Radchenko Cc: Nicolas Goaziou , emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=rustompmody@gmail.com; helo=mail-pj1-x102a.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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.70 X-Spam-Score: -6.70 X-Migadu-Queue-Id: 31EB066F8C X-Migadu-Scanner: mx11.migadu.com X-TUID: S18Ddo3arlZ1 On Tue, Jun 18, 2024 at 1:09=E2=80=AFPM Ihor Radchenko wrote: > > Rustom Mody writes: > > >> 1. make repro > >> 2. (push "/path/to/orgalist/folder/on/elpa/dir" load-path) > >> > >> > > Doing that alone does not find orgalist-mode > > If I add: > > 3. load-file "/path/to/orgalist/folder/on/elpa/dir/orgalist-autoloads.e= l" > > > > then orgalist minor mode starts > > > > But on M-x orgalist-send-list I get > > > > Debugger entered--Lisp error: (error "Not at a list item") > > error("Not at a list item") > > Hmm. Let's try to isolate things even further. > > May you > > 1. make repro > 2. download orgalist source code separately All I can find is https://elpa.gnu.org/packages/orgalist.html That has a link https://elpa.gnu.org/packages/orgalist-1.14.tar which is broken Also it has versions 1.14 and 1.15 confused Latest orgalist-1.14.tar But below the badge GNU ELPA orgalist 1.15 When I changed the 14 in the link to 15 I could download a tar file It seems to contain the same file that elpa gets I load it by hand Get the same error: Debugger entered--Lisp error: (error "Not at a list item") error("Not at a list item") (if (orgalist--at-item-p) nil (error "Not at a list item")) (catch 'exit (if (orgalist--at-item-p) nil (error "Not at a list item")) (save-excursion (let ((case-fold-search t)) (re-search-backward "^[ \11]*#\\+ORGLST:" nil t) (if (looking-at "[ \11]*#\\+ORGLST:[ \11]+SEND[ \11]+\\(\\S-+\\)[ \11]+\\([^ \11\n]...") nil (if maybe (throw 'exit nil) (error "Don't know how to transform this list"))))) (let* ((name (regexp-quote (match-string 1))) (transform (intern (match-string 2))) (bottom-point (save-excursion (re-search-forward "\\(\\\\end{comment}\\|@end ignore\\|-->\\)" nil t) (match-beginning 0))) (top-point (progn (re-search-backward "#\\+ORGLST" nil t) (re-search-forward (org-item-beginning-re) bottom-point t) (match-beginning 0))) (plain-list (save-excursion (goto-char top-point) (funcall 'org-list-to-lisp)))) (if (fboundp transform) nil (error "No such transformation function %s" transform)) (let ((txt (funcall transform plain-list))) (save-excursion (goto-char (point-min)) (let ((receiver-count 0) (begin-re (format "BEGIN +RECEIVE +ORGLST +%s\\([ \11]\\|$\\)" name)) (end-re (format "END +RECEIVE +ORGLST +%s\\([ \11]\\|$\\)" name))) (while (re-search-forward begin-re nil t) (setq receiver-count (1+ receiver-count)) (let (...) (if ... nil ...) (beginning-of-line) (delete-region beg ...) (insert txt "\n"))) (cond ((> receiver-count 1) (message "List converted and installed at receiver locations")) ((=3D receiver-count 1) (message "List converted and installed at receiver location")) (t (user-error "No valid receiver location found")))))))) orgalist-send-list() funcall-interactively(orgalist-send-list) command-execute(orgalist-send-list record) execute-extended-command(nil "orgalist-send-list" "orgalist-se") funcall-interactively(execute-extended-command nil "orgalist-send-list" "orgalist-se") command-execute(execute-extended-command)