From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id tgNmCiuAFl+aKgAA0tVLHw (envelope-from ) for ; Tue, 21 Jul 2020 05:42:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id aEHxBSuAFl8WJwAAB5/wlQ (envelope-from ) for ; Tue, 21 Jul 2020 05:42:03 +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 ACC6B94077C for ; Tue, 21 Jul 2020 05:42:02 +0000 (UTC) Received: from localhost ([::1]:36012 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jxl2O-00045S-IF for larch@yhetil.org; Tue, 21 Jul 2020 01:42:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35906) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jxl1v-00045M-6x for emacs-orgmode@gnu.org; Tue, 21 Jul 2020 01:41:31 -0400 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]:34120) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jxl1t-0004qE-M4 for emacs-orgmode@gnu.org; Tue, 21 Jul 2020 01:41:30 -0400 Received: by mail-wr1-x443.google.com with SMTP id f7so19897173wrw.1 for ; Mon, 20 Jul 2020 22:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version; bh=fwCLhE2YMZAogAc+PVt4vnNIju+aqhHYXiSW/9VSz2Q=; b=ci1WeGGF6dlTS53Qvb4jO3h4YIQlmZQPBx1kJxSdNQM30C7D9FxqTpu3j/NQ6p4yPq 2U+fs+cZVVh2h1bGKn/ehvA6OGFYnu28x7gzlVm0Fa1o2wj3J9NbOPcaBfkypjlV8JG6 r3OVjFTy+ciDhXEZVUWMp+p0RzWCMRpENJEpz8EhhINQzArU+4UMLD+vuIiEjdM1auTY F9mYjEo1KFd9UMVhaVfFb7gxNyFV0WSaWd8V0G1uIzk5pEYidtk8jM6tlOGfFWybZufZ JxjnP+l2sfg0triqs+4MUZ0VuZe6jAcWdkZ7XK8EYQY+QBnA+Q8GgB0JZraIcvrrr5/m r9hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :date:message-id:mime-version; bh=fwCLhE2YMZAogAc+PVt4vnNIju+aqhHYXiSW/9VSz2Q=; b=fuYCUhpSQq00SDxePUGd1C03lGIaJdf4F9pSd93YjCSAVoRLmmcd1GwNiWWNEHtEZR D6kxO5h+ksjX3oaYIBa8P1Vf1cXk+VH16ZStCLaVSGcamTAtqw51G49wgi2fMZmBLtFA KzhI76sHmPNy3KJc/Nbp8r1ZoWJ1Bra84QeuSTBoRFI3WY2nNaILWZmf3e+ft4Jaus5Z YAC7Yq2X05SeRjEZuxnyRHcOsHOprk2uZO4blh4odNb6A/05bUoHrt1Tql7cdvorL36F EdSfxO6Znk5wxuJlf90SsYe5YAJDNRVZQGYINlOcEOChsdjXV7BHzcpjtkEhEAvofAoc 73Ng== X-Gm-Message-State: AOAM533/7MIZjHxbdx75q7dPlp++b0awjwC4clhH3LE2lLHB6uzmbkpp iuDFFQz/SNNc08pME48QC4U4FoQ= X-Google-Smtp-Source: ABdhPJyOkG/toHJfy+S3SQDg7bymDwaQkUCmxbY98FavHwXM9pr/wq2D30V7vqnPw+ldetWNPv1Wyw== X-Received: by 2002:adf:f311:: with SMTP id i17mr25996113wro.237.1595310087631; Mon, 20 Jul 2020 22:41:27 -0700 (PDT) Received: from thinkpad.localdomain (avr50-1-82-241-204-20.fbx.proxad.net. [82.241.204.20]) by smtp.gmail.com with ESMTPSA id s19sm13919639wrb.54.2020.07.20.22.41.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jul 2020 22:41:26 -0700 (PDT) From: Leo Vivier To: emacs-orgmode@gnu.org Subject: Re: [PATCH] org: Update example in docstring to accommodate new name and new format In-Reply-To: <87ft9mgckh.fsf@hidden> References: <87ft9mgckh.fsf@hidden> Date: Tue, 21 Jul 2020 07:41:25 +0200 Message-ID: <87blk9h1bu.fsf@hidden> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::443; envelope-from=leo.vivier+dev@gmail.com; helo=mail-wr1-x443.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=fail (rsa verify failed) header.d=gmail.com header.s=20161025 header.b=ci1WeGGF; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: 0.59 X-TUID: srS30wh2w2m2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi again, I forgot a closing paren in the previous commit. You=E2=80=99ll find an am= ended version below, as well as a little more context-lines. Sorry! HTH, --=20 Leo Vivier --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-org-Update-docstring.patch >From 01acc00866f14a6e70e3abcb024534c392dc8a27 Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Mon, 20 Jul 2020 22:11:15 +0200 Subject: [PATCH] org: Update docstring * lisp/org.el (org-find-olp): Update example in docstring to accommodate new name and new format --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 12a853bd6..a5d552fc0 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -13494,21 +13494,21 @@ completion." (setq org-clock-effort nval) (org-clock-update-mode-line))) (run-hook-with-args 'org-property-changed-functions key nval))) (defun org-find-olp (path &optional this-buffer) "Return a marker pointing to the entry at outline path OLP. If anything goes wrong, throw an error. You can wrap this call to catch the error like this: (condition-case msg - (org-mobile-locate-entry (match-string 4)) + (org-find-olp (list (match-string 4)) t) (error (nth 1 msg))) The return value will then be either a string with the error message, or a marker if everything is OK. If THIS-BUFFER is set, the outline path does not contain a file, only headings." (let* ((file (if this-buffer buffer-file-name (pop path))) (buffer (if this-buffer (current-buffer) (find-file-noselect file))) (level 1) -- 2.26.2 --=-=-=--