From unknown Fri Sep 05 20:54:52 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62581: matching for global Resent-From: Friedrich (QSS) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 Apr 2023 06:21:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62581 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62581@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.1680330059668 (code B ref -1); Sat, 01 Apr 2023 06:21:02 +0000 Received: (at submit) by debbugs.gnu.org; 1 Apr 2023 06:20:59 +0000 Received: from localhost ([127.0.0.1]:35270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piUbj-0000Ai-6j for submit@debbugs.gnu.org; Sat, 01 Apr 2023 02:20:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:52370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piTxI-0007LR-8h for submit@debbugs.gnu.org; Sat, 01 Apr 2023 01:39:12 -0400 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 1piTxB-0000IY-SY for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 01:39:06 -0400 Received: from hs.q-software-solutions.de ([78.46.64.243] helo=mail.q-software-solutions.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piTx9-0003fC-Q5 for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 01:39:05 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.q-software-solutions.de (Postfix) with ESMTP id 20EDB16006B for ; Sat, 1 Apr 2023 07:39:00 +0200 (CEST) Received: from mail.q-software-solutions.de ([127.0.0.1]) by localhost (mail.q-software-solutions.de [127.0.0.1]) (amavis, port 10024) with ESMTP id gE-xrLxkBj-f for ; Sat, 1 Apr 2023 07:38:59 +0200 (CEST) Received: from fam-dominicus.de (fam-dominicus.de [176.9.65.118]) by mail.q-software-solutions.de (Postfix) with ESMTPSA id 5953116002E for ; Sat, 1 Apr 2023 07:38:59 +0200 (CEST) Message-ID: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> Date: Sat, 01 Apr 2023 07:46:02 +0200 From: Friedrich (QSS) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Group-Office (6.6.120) Received-SPF: pass client-ip=78.46.64.243; envelope-from=frido@q-software-solutions.de; helo=mail.q-software-solutions.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Mailman-Approved-At: Sat, 01 Apr 2023 02:20:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) =E2=80=8BDear Maintainers,=20 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 ve= rsion of the installed GNU Global command. If optional programmatic argum= ent NOERROR is non-nil, then instead of throwing an error if Global isn't= available, return nil." (interactive) (let ((b (condition-case n= il =09 (cedet-gnu-global-call (list "--version")) =09 (error = nil))) =09(rev nil)) (if (not b) =09(progn =09 (when (called-i= nteractively-p 'interactive) =09 (message "GNU Global not found.")) = =09 nil) (with-current-buffer b =09(goto-char (point-min)) =09= -> here (re-search-forward "(?GNU GLOBAL)? \\([0-9.]+\\)" nil t) =09(set= q rev (match-string 1)) (if (version< rev cedet-global-min-versio= n) =09 (if noerror =09=09nil =09 (error "Version of GNU Globa= l is %s. Need at least %s" =09=09 rev cedet-global-min-version)) = =09 ;; Else, return TRUE, as in good enough. =09 (when (called-interact= ively-p 'interactive) =09 (message "GNU Global %s - Good enough for C= EDET." rev)) =09 t))))) My gnu Global announces itself here with:= global --version global (Global) 6.6.9 Powered by Berkeley DB 1.8= 5 and SQLite3 3.8.7.1. And so the match does not work replacing "= (?GNU GLOBAL)? with just "global (Global) ..."=20 works for me = With best regards Friedrich From unknown Fri Sep 05 20:54:52 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Friedrich (QSS) Subject: bug#62581: closed (Re: bug#62581: matching for global) Message-ID: References: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> X-Gnu-PR-Message: they-closed 62581 X-Gnu-PR-Package: emacs Reply-To: 62581@debbugs.gnu.org Date: Mon, 11 Sep 2023 23:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1694476382-12968-1" This is a multi-part message in MIME format... ------------=_1694476382-12968-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #62581: matching for global which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 62581@debbugs.gnu.org. --=20 62581: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62581 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1694476382-12968-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 62581-done) by debbugs.gnu.org; 11 Sep 2023 23:52:51 +0000 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 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 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) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 11 Sep 2023 16:52:36 -0700 From: Stefan Kangas In-Reply-To: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> (Friedrich's message of "Sat, 01 Apr 2023 07:46:02 +0200") References: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> MIME-Version: 1.0 Date: Mon, 11 Sep 2023 16:52:36 -0700 Message-ID: Subject: Re: bug#62581: matching for global To: Friedrich Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 62581-done Cc: 62581-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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. ------------=_1694476382-12968-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 1 Apr 2023 06:20:59 +0000 Received: from localhost ([127.0.0.1]:35270 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piUbj-0000Ai-6j for submit@debbugs.gnu.org; Sat, 01 Apr 2023 02:20:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:52370) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1piTxI-0007LR-8h for submit@debbugs.gnu.org; Sat, 01 Apr 2023 01:39:12 -0400 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 1piTxB-0000IY-SY for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 01:39:06 -0400 Received: from hs.q-software-solutions.de ([78.46.64.243] helo=mail.q-software-solutions.de) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1piTx9-0003fC-Q5 for bug-gnu-emacs@gnu.org; Sat, 01 Apr 2023 01:39:05 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.q-software-solutions.de (Postfix) with ESMTP id 20EDB16006B for ; Sat, 1 Apr 2023 07:39:00 +0200 (CEST) Received: from mail.q-software-solutions.de ([127.0.0.1]) by localhost (mail.q-software-solutions.de [127.0.0.1]) (amavis, port 10024) with ESMTP id gE-xrLxkBj-f for ; Sat, 1 Apr 2023 07:38:59 +0200 (CEST) Received: from fam-dominicus.de (fam-dominicus.de [176.9.65.118]) by mail.q-software-solutions.de (Postfix) with ESMTPSA id 5953116002E for ; Sat, 1 Apr 2023 07:38:59 +0200 (CEST) Message-ID: <66b37a0a17bad0155f665947071d1553@fam-dominicus.de> Date: Sat, 01 Apr 2023 07:46:02 +0200 Subject: matching for global From: Friedrich (QSS) To: bug-gnu-emacs@gnu.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Mailer: Group-Office (6.6.120) Received-SPF: pass client-ip=78.46.64.243; envelope-from=frido@q-software-solutions.de; helo=mail.q-software-solutions.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 01 Apr 2023 02:20:57 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) =E2=80=8BDear Maintainers,=20 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 ve= rsion of the installed GNU Global command. If optional programmatic argum= ent NOERROR is non-nil, then instead of throwing an error if Global isn't= available, return nil." (interactive) (let ((b (condition-case n= il =09 (cedet-gnu-global-call (list "--version")) =09 (error = nil))) =09(rev nil)) (if (not b) =09(progn =09 (when (called-i= nteractively-p 'interactive) =09 (message "GNU Global not found.")) = =09 nil) (with-current-buffer b =09(goto-char (point-min)) =09= -> here (re-search-forward "(?GNU GLOBAL)? \\([0-9.]+\\)" nil t) =09(set= q rev (match-string 1)) (if (version< rev cedet-global-min-versio= n) =09 (if noerror =09=09nil =09 (error "Version of GNU Globa= l is %s. Need at least %s" =09=09 rev cedet-global-min-version)) = =09 ;; Else, return TRUE, as in good enough. =09 (when (called-interact= ively-p 'interactive) =09 (message "GNU Global %s - Good enough for C= EDET." rev)) =09 t))))) My gnu Global announces itself here with:= global --version global (Global) 6.6.9 Powered by Berkeley DB 1.8= 5 and SQLite3 3.8.7.1. And so the match does not work replacing "= (?GNU GLOBAL)? with just "global (Global) ..."=20 works for me = With best regards Friedrich ------------=_1694476382-12968-1--