From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: goncholden Newsgroups: gmane.emacs.help Subject: version> and version>= Date: Wed, 02 Feb 2022 14:27:37 +0000 Message-ID: <3D0oDYYgnO6WBbTfbJ-wnFDZPdMMJR18IsNgz5zCqj7S5GoBjA5oTJU_acBTqUonuirEFU0pLpX-nC9W_P6mLwV2EjN4D39qPDDEqNqKbfI=@protonmail.com> References: <87k0ed2xq1.fsf@gnu.org> <87bkzp2vx8.fsf@gnu.org> Reply-To: goncholden Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5485"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Stefan Monnier , help-gnu-emacs@gnu.org To: Tassilo Horn Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 02 16:18:27 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nFHOt-0001C2-Jp for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 16:18:27 +0100 Original-Received: from localhost ([::1]:46298 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFHOs-00057Z-6B for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 02 Feb 2022 10:18:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:59706) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFGc2-0007D8-PX for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 09:28:03 -0500 Original-Received: from mail-4319.protonmail.ch ([185.70.43.19]:57903) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFGbt-00029M-9K for help-gnu-emacs@gnu.org; Wed, 02 Feb 2022 09:27:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail2; t=1643812058; bh=vjIlZXuhKjVhfxOwegiQ5DzeHYbS865HHWGYIBGDDLA=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc; b=pJbs8yqwiej2wQHE+2xfhaoVWmxpZ/pArUN7uE5dIMEwYy7MtCmKGIhBiIH3GTrx2 g3I8GecDobzzInvEI1sIl34udh/oRA5N9EBIe0hahztXWPrpNuHDq3IQFifHj4o+wr kCiVuymXsqcjoKBCXHJ+QABK7/ZEGBlkeYfOpxF5zdSBLME/nXP1ycauhYv3YoVLix QFdqNrLTCLN6cyhzCB+dpzQJCrMX12eOvdEdaD+fkK0hpQoY4eqyDuVVjKImwP/8MP BbH/34tVRcVn/Ab8WUFdpp+KiAyFbZ4CKhspP3SHMW6/3Ez1Gsyq2S0zU9Tncdzxwb 5vxzME9fFsx7Q== In-Reply-To: <87bkzp2vx8.fsf@gnu.org> Received-SPF: pass client-ip=185.70.43.19; envelope-from=goncholden@protonmail.com; helo=mail-4319.protonmail.ch 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:135662 Archived-At: =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Wednesday, February 2nd, 2022 at 2:15 PM, Tassilo Horn wr= ote: > goncholden goncholden@protonmail.com writes: > > > > `emacs-version' is a string, 28.0 is a float. You cannot compare them= . Stefan suggested to use` emacs-major-version' with 28 (both > > > > > > integers) instead. > > > > It would be convenient if there was a function that could handle > > > > floats, so that one can condition not just on a major version, but > > > > upon the complete version number. > > As said in my other mail, floats are not good for this because in math, > 1.2 is greater than 1.10 but with versions, 1.10 is greater than 1.2. > See my other mail: if you really need to check major, minor, and maybe > even micro version, then use `version<' with the version strings. I missed that, you are correct then. > Bye, > Tassilo > PS: Could you please teach your mail client not to remove the Re: from > the subject of replies? Every reply of yours looks like a new > thread on first sight. Ok, I thought the Re: should not be there.