From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.bugs Subject: bug#62581: matching for global Date: Mon, 11 Sep 2023 16:52:36 -0700 Message-ID: References: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> 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="34527"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 62581-done@debbugs.gnu.org To: Friedrich Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 12 01:53:22 2023 Return-path: Envelope-to: geb-bug-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 1qfqiX-0008iX-7R for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Sep 2023 01:53:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qfqiC-0003U5-E7; Mon, 11 Sep 2023 19:53:00 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qfqiA-0003Tn-CX for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 19:52:58 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qfqiA-0008QW-4I for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 19:52:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qfqiE-0003NK-DD for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2023 19:53:02 -0400 Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Sep 2023 23:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 62581 X-GNU-PR-Package: emacs Mail-Followup-To: 62581@debbugs.gnu.org, stefankangas@gmail.com, frido@q-software-solutions.de Original-Received: via spool by 62581-done@debbugs.gnu.org id=D62581.169447637112946 (code D ref 62581); Mon, 11 Sep 2023 23:53:02 +0000 Original-Received: (at 62581-done) by debbugs.gnu.org; 11 Sep 2023 23:52:51 +0000 Original-Received: from localhost ([127.0.0.1]:55240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfqi3-0003Mj-6N for submit@debbugs.gnu.org; Mon, 11 Sep 2023 19:52:51 -0400 Original-Received: from mail-lj1-x234.google.com ([2a00:1450:4864:20::234]:59828) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qfqi0-0003MR-6N for 62581-done@debbugs.gnu.org; Mon, 11 Sep 2023 19:52:50 -0400 Original-Received: by mail-lj1-x234.google.com with SMTP id 38308e7fff4ca-2bcd7a207f7so80197951fa.3 for <62581-done@debbugs.gnu.org>; Mon, 11 Sep 2023 16:52:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694476358; x=1695081158; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=Br1NPFXFFGIni6TQ8r6zH9LQJEAxYBIH0XGc430owsQ=; b=c/0XQQEd4LsSVpzJcK0I8F23rWu4W2p7Bw/N8xNrapXq+76KYeUv5p26rfsLuO8+Wh YvEE8PcmJs08z6HdKluPcJu8iG9wk+DxDkfkAOGaMKEGU02H60k+wi++kmM8iEOp1CHB fSUHM+kIiWyctCpVFLtw0G95AP5GBHKRnaXaEGfkw0yKhZchjDe+8MpTUQnRc9BrRI1U Vdk3maYfpCvDxsa+S8m9fZ5UHrinG8/6swQosuzR0AdlqgRwpTwRsr3hFthz1XDIGNe5 MlF+/HA712iPl84WWfLnev3VxPsNddE/vfvANJrlMLb0uQbtFSXyNiqigJandCoxHb+0 Iqaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694476358; x=1695081158; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Br1NPFXFFGIni6TQ8r6zH9LQJEAxYBIH0XGc430owsQ=; b=mEXDF8G4ES3YdALA9LRxF0sOFBXgCA7Uhcwe/1uNtT0xGk23zJVT+JVlkVyEStHtqh 8FyUrhweJLHTm2CHBNEOGTGzkX4AFetSXZ4GgzCii3qKgXzqpVlDa90EvDzGt1p9tpUf OcZ69wa3+BPXrMbH9/OKBxc3p5YMN+zP8HGAHnZT8mQepT0qjXj5FG3fWjQjSgZogE00 I+FaY58tAUcI/gEz/Zkn99CiCe7CVGZN/LEYUUG+Jkh0C/50FQuWmy+Vm6IQqg+b0T29 /gOppybY+GXHdZ8jF7hlXXyAqAYVxJcVU1usEgSXuCBK7KdZV3LQxV0XGSJXgEJ4lbv+ toCA== X-Gm-Message-State: AOJu0YxL9rR6K/GUeXP0ETn6Z8xNeqv7X8svZbhZlktMRlv29Gw4avLv TSvpgdrmqSup6WqH2LEXEk2RfBtUQqT8u0lI4PQMxn8uRM0= X-Google-Smtp-Source: AGHT+IEgiluegycykfvPEPWRyTSNzRwEZ/VOAGT2WOSU06vlh4epTx3BKHHUf5otZd3TjBYgym2KB7ankrIl6P/iYqE= X-Received: by 2002:a2e:80c6:0:b0:2ba:8127:a2c3 with SMTP id r6-20020a2e80c6000000b002ba8127a2c3mr9304502ljg.34.1694476357573; Mon, 11 Sep 2023 16:52:37 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 16:52:36 -0700 In-Reply-To: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> (Friedrich's message of "Sat, 01 Apr 2023 07:46:02 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:270103 Archived-At: Version: 30.1 Friedrich (QSS) writes: > =E2=80=8BDear Maintainers, > at least here run into a probelm while trying to load cedet global: > /home/frido/src/emacs/lisp/cedet/cedet-global.e > (defun cedet-gnu-global-version-check (&optional noerror) > "Check the version of the installed GNU Global command. > If optional programmatic argument NOERROR is non-nil, > then instead of throwing an error if Global isn't available, > return nil." > (interactive) > (let ((b (condition-case nil > (cedet-gnu-global-call (list "--version")) > (error nil))) > (rev nil)) > (if (not b) > (progn > (when (called-interactively-p 'interactive) > (message "GNU Global not found.")) > nil) > (with-current-buffer b > (goto-char (point-min)) > -> here (re-search-forward "(?GNU GLOBAL)? \\([0-9.]+\\)" nil t) > (setq rev (match-string 1)) > (if (version< rev cedet-global-min-version) > (if noerror > nil > (error "Version of GNU Global is %s. Need at least %s" > rev cedet-global-min-version)) > ;; Else, return TRUE, as in good enough. > (when (called-interactively-p 'interactive) > (message "GNU Global %s - Good enough for CEDET." rev)) > t))))) > > My gnu Global announces itself here with: > > global --version > global (Global) 6.6.9 > Powered by Berkeley DB 1.85 and SQLite3 3.8.7.1. I can verify this: $ global --version global (Global) 6.6.10 Powered by Berkeley DB 1.85 and SQLite3 3.43.0. > And so the match does not work > replacing "(?GNU GLOBAL)? > > with just "global (Global) ..." > works for me Thanks, this should now be fixed on master.