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 qHg5IwvJWV8kSgAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 06:34:51 +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 exo1HwvJWV+jTwAA1q6Kng (envelope-from ) for ; Thu, 10 Sep 2020 06:34:51 +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 CEC609400D3 for ; Thu, 10 Sep 2020 06:34:50 +0000 (UTC) Received: from localhost ([::1]:56996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kGGAS-00048s-T1 for larch@yhetil.org; Thu, 10 Sep 2020 02:34:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kGG8P-0002R8-Uw for emacs-orgmode@gnu.org; Thu, 10 Sep 2020 02:32:41 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:39961) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kGG8O-0006oz-C3; Thu, 10 Sep 2020 02:32:41 -0400 Received: by mail-wr1-x429.google.com with SMTP id j2so5360300wrx.7; Wed, 09 Sep 2020 23:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=UvVbckwwDLqTp4eAEQt//kZu9LCBwMXiraUyj5lXk50=; b=oTNuil4v4BBxmLwxcIj16FtFlE8GiRR2sLzUjJmn086sYBl7E75WJ5M6m6wfmOYvf+ nQTKw/nVKy0WK/0wMd+77KgIkbh/LGYW3Ma5zqcIDzdyddK5dJSPxuhQtCChTUlqCbl/ KGPcuiis+VlH+n6H6UuAMJQaVTu+0kh41KJ+ciW6EqhOi2glp5Pwc87BZHIRxOC8LW5H OJ2tbCSKJysP3IbO7kwrRgOn4HTIKYvOzl0HDywGZWKrj3NhkM8+cPtcRTfYH44ebyOX tx/empSXcrE/QSm96J6GDu+2SBfnENkZn7uzd3VaTnWPgUvyCWAg8D2CeLmP6Jme9CVE uXUQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=UvVbckwwDLqTp4eAEQt//kZu9LCBwMXiraUyj5lXk50=; b=Sc9D9RWxKDmcRj9PUhR2aO4y71DJUS3zt/gt381dd+WQs7ctgKB9jAEKTNGDlbRIWY teh8Die3wNgUqxDVygjwHoVu6N/dV//7NO6HU4QhNU6OVkanYNkk8VJQjVTyDKDAESH6 qSs9rAeqAVxdUbTIFVR7i2O8k6b0e3asWNLwpzFn222NF1uvx0LiqsZhhw11Rp6+s2j3 s9LEnntwNBHVXlIeqbcDKXAJsrUGIYyilO3pgwtxGEe4dIoMUp5KaXfFOlZhTlo5T440 eSW5hOQcbINxy7TNjYeJ25h14BKa5RtUwNUG2/bnW5PctbMQAaspsQpbVa7BqpCbaN9L sMow== X-Gm-Message-State: AOAM5328WIZMF/RFIMIWwnAt4C5q0QHg4Fxfm9lr63v+L6s5LZVjIIKd z4Y/HZp6pcsM4RUjw1LWf4CFqYgg3Uo= X-Google-Smtp-Source: ABdhPJyI6KQ+AHLmrGe0v8zs5ErDdErZ54vP0VESllPnu1URdqECE8GYhRaRuflzbz7xSNixZvyXJw== X-Received: by 2002:adf:f903:: with SMTP id b3mr7653595wrr.142.1599719557282; Wed, 09 Sep 2020 23:32:37 -0700 (PDT) Received: from my-little-tumbleweed (200.143.13.109.rev.sfr.net. [109.13.143.200]) by smtp.gmail.com with ESMTPSA id t202sm2146529wmt.14.2020.09.09.23.32.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Sep 2020 23:32:36 -0700 (PDT) From: =?utf-8?Q?K=C3=A9vin_Le_Gouguec?= To: Kyle Meyer Subject: Check for master branch from Elisp (was: Release 9.3.8) References: <878sdl1tab.fsf@gnu.org> <87blih33i8.fsf@gmail.com> <878sdlscpr.fsf@gnu.org> <87h7s8kezi.fsf@gmail.com> <878sdjmkiv.fsf@gnu.org> <87bliesbmn.fsf@kyleam.com> Date: Thu, 10 Sep 2020 08:32:35 +0200 In-Reply-To: <87bliesbmn.fsf@kyleam.com> (Kyle Meyer's message of "Wed, 09 Sep 2020 20:45:20 -0400") Message-ID: <871rjagn0c.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=kevin.legouguec@gmail.com; helo=mail-wr1-x429.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: , Cc: Bastien , 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=gmail.com header.s=20161025 header.b=oTNuil4v; 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: -1.71 X-TUID: xt4WzCfuY+m4 Kyle Meyer writes: > Can't you inspect the return value of org-git-version? That can work out, though unless I'm missing something, I need to move to the org-mode repository, ask "git branch --contains", and parse the output. Possible, but somewhat involved. (TIL: git-describe's "{tag}-{nbcommits}-g{hash}" is actually a valid revision format that other Git commands understand.) For the sake of completeness, I've tried visiting org.el and evaluating (package-desc-version (package-buffer-info)) but package-buffer-info ends up calling (version-to-list "9.4-dev"), which chokes on "-dev". FWIW, that can be worked around with: (add-to-list 'version-regexp-alist (cons "^-dev$" -1)) > (Though in my > view, distinguishing based on the functionality present with things like > fboundp, which you mention below, is typically a better approach, if > possible.) Right, that's my conclusion as well :)