From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id SF8HKaGpbl8WYgAA0tVLHw (envelope-from ) for ; Sat, 26 Sep 2020 02:38:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id AJYDJaGpbl96eQAA1q6Kng (envelope-from ) for ; Sat, 26 Sep 2020 02:38:25 +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 E0DC79402B7 for ; Sat, 26 Sep 2020 02:38:24 +0000 (UTC) Received: from localhost ([::1]:60782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kM06R-0005lJ-TH for larch@yhetil.org; Fri, 25 Sep 2020 22:38:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52644) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM05l-0005kw-GV for emacs-orgmode@gnu.org; Fri, 25 Sep 2020 22:37:41 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:58216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kM05i-00047s-Ml for emacs-orgmode@gnu.org; Fri, 25 Sep 2020 22:37:40 -0400 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 35719EF9DF; Fri, 25 Sep 2020 22:37:36 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:in-reply-to:references:date:message-id:mime-version :content-type; s=sasl; bh=dHMMq1jSFcDTbigkw2TdkBZTEDw=; b=o06uVf rEIzGPyz4jXafbP3+r97zG3Z7Zpxzw10o3NI1fSLV5qz4lLHWWSW0cyz15GP5pcf RHvapDWGh1wRMcxJdty9TIyjdpACQsLv3nCcU0HamhjI8yLI8mCwLmsj/+U0F8Ft Z9N4DfCQes1D5SPRqhzX56iGTso2zhxNISOEg= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 14500EF9DE; Fri, 25 Sep 2020 22:37:36 -0400 (EDT) (envelope-from kyle@kyleam.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=kyleam.com; h=from:to:cc:subject:in-reply-to:references:date:message-id:mime-version:content-type; s=mesmtp; bh=j1VKCpFYgZZOvocOlrBMy+Z55gvfuJYRyBI/ufc/9cA=; b=ftzmGUvBPMB8Ceo2b44yzGL4Fvdg2w4c6TgI1qck7peidvk8xATbyF35K9H3WkzauDE+0O7z7/jDoKbzI3kYfuY/HJpfgd0lraajzxCLplwgBBHIVWULRAF2J3csjqJibNRD1I6xM020EtBtIxrCKTeBCdbBBrJMzHP8J7jbh+Q= Received: from localhost (unknown [45.33.91.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 1CC79EF9DD; Fri, 25 Sep 2020 22:37:33 -0400 (EDT) (envelope-from kyle@kyleam.com) From: Kyle Meyer To: No Wayman Subject: Re: Bug: org-capture: %L causes arg out of range error for empty string annotation [9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)] In-Reply-To: <87lfgyz48x.fsf@gmail.com> References: <87d02al383.fsf@gmail.com> <87lfgyz48x.fsf@gmail.com> Date: Fri, 25 Sep 2020 22:37:30 -0400 Message-ID: <871ripl0ut.fsf@kyleam.com> MIME-Version: 1.0 Content-Type: text/plain X-Pobox-Relay-ID: 3AE801E4-FFA1-11EA-BAFC-F0EA2EB3C613-24757444!pb-smtp20.pobox.com Received-SPF: pass client-ip=173.228.157.52; envelope-from=kyle@kyleam.com; helo=pb-smtp20.pobox.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/25 22:37:36 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, 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-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=pobox.com header.s=sasl header.b=o06uVf r; dkim=pass header.d=kyleam.com header.s=mesmtp header.b=ftzmGUvB; 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-Spam-Score: -1.21 X-TUID: D/2KVkBojlSD No Wayman writes: > No Wayman writes: > >> If `v-a' is an empty string, the call to `replace-match' throws >> an >> Args out of range error. Similar assignments in that area of the >> code use an `and' comparison to guard against this, so perhaps >> it >> should be: >> >> >>> (v-L (if (and v-a (string-match l-re v-a)) >>> (replace-match "\\1" nil nil v-a) >>> v-a)) > > See attached patch Thank you. Applied (1d66a58a2).