From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4O3RBZGSg2DbhAEAgWs5BA (envelope-from ) for ; Sat, 24 Apr 2021 05:37:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id CI9YAZGSg2AbOwAAB5/wlQ (envelope-from ) for ; Sat, 24 Apr 2021 03:37:53 +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 9CCB81B5C4 for ; Sat, 24 Apr 2021 05:37:51 +0200 (CEST) Received: from localhost ([::1]:34370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1la978-0002z5-60 for larch@yhetil.org; Fri, 23 Apr 2021 23:37:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53058) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la93V-0007t5-Um for emacs-orgmode@gnu.org; Fri, 23 Apr 2021 23:34:05 -0400 Received: from out2.migadu.com ([2001:41d0:2:aacc::]:30119) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1la93R-0003t3-AV for emacs-orgmode@gnu.org; Fri, 23 Apr 2021 23:34:05 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kyleam.com; s=key1; t=1619235236; h=from:from: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; bh=PwCzwqmDzx3PCZpJUGLLK6JGmVRw4Ij80ks8NbcWAOQ=; b=uN1nSHe1Um5rHJH0DefDe9HZdo0y0UbD8sMc6RXX0N7X8ckPmNsxcRe7XHqxaZKPsTmX95 wpPA/0/rW2Q6S1u+FbnqDMhBP+KbguoB4G6uYq0ZlkzyfOalCXM0KHAMKGjTexCnFKq7re Zphdx7p5NIJW1c3DrVTnsRbiF5VnHltb1raF6GNp6u99mJRKRUL8Za93OMNBEUnTM1AFxe 4JLjE0/pU6UgX30to0dgr+F+9JmZty2iTyiWIMA1f7F9udUhXQKoRs4pcAPXBEVCBSAhgb gCaqfDp5RIv06Utrhp601ZXoevzARm/rlCtRjQrCwL41XJGjoTy8ViNj2WFsRQ== From: Kyle Meyer To: Uwe Brauer Subject: Re: Bug: org-caputure fails, sometimes [9.3.7 (release_9.3.7-705-gea9463 @ /home/oub/emacs/site-lisp/packages/org/)] In-Reply-To: <87czuoszea.fsf@mat.ucm.es> References: <87czuoszea.fsf@mat.ucm.es> Date: Fri, 23 Apr 2021 23:33:54 -0400 Message-ID: <87h7jwgxul.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Migadu-Auth-User: kyle@kyleam.com Received-SPF: pass client-ip=2001:41d0:2:aacc::; envelope-from=kyle@kyleam.com; helo=out2.migadu.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, 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=1619235471; 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=PwCzwqmDzx3PCZpJUGLLK6JGmVRw4Ij80ks8NbcWAOQ=; b=ASXcJGLSVIZpjMHxIGAtpv1veV0Fk5cOz4tszlTqftadUay6gb6s7l6xyP4tnUkVg/IiEz NcYrw4FjKAItkDGqLZ2NKkhshK45ljcR44Ti8orn5Fdmlr/t4USyvc0dk4f4fqOkRaonZw kjY3vLyqk5oPcRwp3bf+gmL3K4WHPKutb4zTvzSbQDmLpAh764qvS8V+EQSE9n1SaPGDHw LG2Y5jfasZ9zZwcJRbZpJTDto3gz1SOoCs5mlhC/VUhOsCaL4Hzkw3eYPDgi5y42f81Gch EY9TQaDLsYTznoTmpT+lRrkhnbyFMIuxONUh+YjkZhg+QisHq4orKpBdxsaGDw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1619235471; a=rsa-sha256; cv=none; b=flB7XWEfG2nidp2GgMY7hYppcUbLcU85/sIb2mjonVEdrTsjTaZHDCudJw/OrDjjzVVlZF R814qS5zS/QSksnOvGFHTvCelEulyOEK0A3ORvzHm2b3C9T83syKutdVlFhjFqx1Jtk1WI Z9QwmOywO9bhK7/zaaU+foACcnOod/DS51zcqeOB6dRf7rGMq+j3QZpf4TXzfatP0HMCUF euAOKfAM9laD0JVHQdMsj1nKbOYfg8XoafG4uN1uT8jauH7LxTq0Yv4ln0KsX6H42H/1Js qJwUUC9o3YpkBo8Q477rYAGsUy/jcXSpceNsPfmIYPDh6Cm+tEjUUaPclCSuzg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=uN1nSHe1; 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.64 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=kyleam.com header.s=key1 header.b=uN1nSHe1; dmarc=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: 9CCB81B5C4 X-Spam-Score: -2.64 X-Migadu-Scanner: scn0.migadu.com X-TUID: tlS8wan8OtlX Uwe Brauer writes: > I am running GNU emacs and org mode, whose versions are specified below. > Sometimes when being in a gnus message buffer and running org-capture > I obtain an error whose bug trace I attach. Usually I have to restart > emacs. > > ,---- > |=20 > | Debugger entered--Lisp error: (error "Capture template =E2=80=98ms=E2= =80=99: No article on current line") > | signal(error ("Capture template =E2=80=98ms=E2=80=99: No article on c= urrent line")) > | error("Capture template `%s': %s" "ms" "No article on current line") > | org-capture(nil) > | funcall-interactively(org-capture nil) > | call-interactively(org-capture nil nil) > | command-execute(org-capture) With this backtrace alone (which involves org-capture catching the internal error), I think it's going to be hard for anyone to guess what's going on here. It sounds like once you encounter this error, subsequent calls reliably trigger it. Next time you run into it, I'd suggest re-evaluating org-capture to something like below to hopefully see a more informative backtrace. diff --git a/lisp/org-capture.el b/lisp/org-capture.el index 831c3e1f4..b20124ced 100644 --- a/lisp/org-capture.el +++ b/lisp/org-capture.el @@ -693,9 +693,7 @@ (defun org-capture (&optional goto keys) (string-prefix-p "CAPTURE-" (buffer-name))) (kill-buffer (current-buffer))) (set-window-configuration (org-capture-get :return-to-wconf)) - (error "Capture template `%s': %s" - (org-capture-get :key) - (error-message-string error)))) + (signal (car error) (cdr error)))) (when (and (derived-mode-p 'org-mode) (org-capture-get :clock-in)) (condition-case nil (progn