From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 0ChoDZidbV8jBwAA0tVLHw (envelope-from ) for ; Fri, 25 Sep 2020 07:34:48 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CNwwCZidbV9NTgAAbx9fmQ (envelope-from ) for ; Fri, 25 Sep 2020 07:34:48 +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 721F99400BF for ; Fri, 25 Sep 2020 07:34:47 +0000 (UTC) Received: from localhost ([::1]:33946 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kLiFg-0001yi-PA for larch@yhetil.org; Fri, 25 Sep 2020 03:34:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kLiF8-0001yO-Rs for emacs-orgmode@gnu.org; Fri, 25 Sep 2020 03:34:10 -0400 Received: from mail-qk1-x730.google.com ([2607:f8b0:4864:20::730]:45666) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kLiF7-0004De-58 for emacs-orgmode@gnu.org; Fri, 25 Sep 2020 03:34:10 -0400 Received: by mail-qk1-x730.google.com with SMTP id o5so1903827qke.12 for ; Fri, 25 Sep 2020 00:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=HfFQStjWJiYDs7E3VGqTC+oss3jBHDLUUgM4RF6YqRQ=; b=Hs7aUYHQe1QetjcHqv9t/0sgLvKjs7hiA7GssLMrVDGrNaDJ7jXjjfbHf9dxh5ZhNT QTu/HKjSbvCyyIm9sW3nt7+Qlj1ka66hcdH9H95bC523C2ANQX45AXS1FCLgprO9SwdC ESBCKLaQcyiafU+UbuCQpaUXs/RfgLEgNbM7xKsjdktET3zOitRSk+XzI0HeokUk48M/ QC1FrtYc33CQUKtRbns0kJ+KPgaevxNRijHGtXpLeo4oRpyI6yNgTcx/4KruqDLBtlH2 WdjkThjdwjcOWidWAj0Mjv295H2i9lPOrMgqmCrGwoQdwxWkfhYXsfrVQEBQVHsHrPkb 4p4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=HfFQStjWJiYDs7E3VGqTC+oss3jBHDLUUgM4RF6YqRQ=; b=qF0qY697C0BxwSn7pMpTGyljwpAiExz7SnCeYSJbcaJ+izlX8XCYXCJMxL1h9J5g6S ITnz5sWN5nIYdycz0jhDuFxO8+dzNhXrDqv43m2klWNxxzPVI80o+ZHIQMo9HkXUkpmp WMsFBNBWNgAuagwmupecDWIuwGIymse0VN/hGQUI500eyU3fHv7hP9xsXyac+Pvd/Rk0 0vAoP+QaGwLGaZbwU8SYE0x5mOUlXyoJkQUL1Npt8oX+YlTG5NUt/i/Zzobc3MZo9TW7 u5crLPHbGFpMbWrwo5cqjqoGce824Wa7Cd06SOLmL7uk/4XPqYKqokV5Dt51O2paWvhu rCPQ== X-Gm-Message-State: AOAM532DYb3BkyJ6WcHRBNOnitF46JbMfADKRAPsX93ZZTO9m/GaHxog i0RBwoqqWyGM388901O3eh/ZURCFMeXB1g== X-Google-Smtp-Source: ABdhPJyK7MT/6r2fT2b65xiNsfp3maMEWQDClKh5q+u9rSBbaE5jt3OJJ7RM9+OOdFIo6w9GNI3NEg== X-Received: by 2002:a05:620a:389:: with SMTP id q9mr2853388qkm.349.1601019247229; Fri, 25 Sep 2020 00:34:07 -0700 (PDT) Received: from laptop ([2601:8b:c300:1024:3635:54a:8d7c:f1d8]) by smtp.gmail.com with ESMTPSA id a11sm1405566qto.2.2020.09.25.00.34.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Sep 2020 00:34:06 -0700 (PDT) User-agent: mu4e 1.5.5; emacs 28.0.50 From: No Wayman To: emacs-orgmode@gnu.org Subject: 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/)] Date: Fri, 25 Sep 2020 03:34:04 -0400 Message-ID: <87d02al383.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::730; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qk1-x730.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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.23 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" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=Hs7aUYHQ; dmarc=pass (policy=none) header.from=gmail.com; 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: -0.21 X-TUID: S6tBUuvLRQtk d06aa486d6c3163b6ef6e9ab665117bd93dff34a introduces the following in `org-capture-fill-template': > (v-L (if (or v-a (string-match l-re v-a)) > (replace-match "\\1" nil nil v-a) > v-a)) If `v-a' is an empty string, the call to `replace-match' throws an Args out of range error. Similar assignments in that are 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)) Emacs : GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.23, cairo version 1.17.3) of 2020-09-19 Package: Org mode version 9.4 (release_9.4-31-g8c44f2 @ /home/n/.emacs.d/straight/build/org/)