GNU bug report logs - #67173
27.1; support raw string literals in C mode (a GNU C extension)

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Rasmus Villemoes <ravi@HIDDEN>; dated Tue, 14 Nov 2023 13:44:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 67173 <at> debbugs.gnu.org:


Received: (at 67173) by debbugs.gnu.org; 16 Nov 2023 08:26:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 16 03:26:12 2023
Received: from localhost ([127.0.0.1]:54430 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r3XhT-0005FP-Vi
	for submit <at> debbugs.gnu.org; Thu, 16 Nov 2023 03:26:12 -0500
Received: from mail-vi1eur04on2111.outbound.protection.outlook.com
 ([40.107.8.111]:24327 helo=EUR04-VI1-obe.outbound.protection.outlook.com)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rasmus.villemoes@HIDDEN>) id 1r3XhP-0005B4-0J
 for 67173 <at> debbugs.gnu.org; Thu, 16 Nov 2023 03:26:10 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=kZNaERTi6EX9f7d1aP8+jZKh8CMp0GqbYhKQufYEDhKm+J9BJjp4dji5kEV0B6je6v3P+y9MsQRl42VVfgDS/Nth+bLrrP1GCdKhVtKbFClxJjPgJk+wgyjkBeUBh9Ixt1HIh+ifkLxJNN2peQ0tjLjKoIrwCgpUj61PxoW/MdgHbGHtFhJXNgJauAWxIMLFmT1w6N4nhWtuxdakiKWXbiwI4cnDYp9uQU2llnvh82Btp+6q4BDuxcpDqAzsoq9IRzqr/sU6LTsW+tvDq2caeu13hAvBwL7neAmbqO0hj+gFiwOeJ5NkCqbfBWxGZfPbMjYCwO+/ltnR1a5d7nN9Ww==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=QPdzXdQGZj3Rb4zaAK9/nMKlSO2J/Z89mINwQSe9TS4=;
 b=Q8g2zDV4DKaccQDK4cehn/hbvOJJtRlLbGDiqYCKJ4MtpC4BVVVlMntoghgMlFKS5oRCKuhJNqjlO+QNHgDrongIngw2JYBgDnquW5cGaj8/I8mxwQN17x8MX1W/5ZEgVehXkmyceiRlkrb3Wo/kAe1OVtrQs/kuXTYD7xa/4mJoc1fU3yHhZ/pA3bJqIn/5Be9gnUZXkdIomvKlr+DBdsO/5E9YRLjkCP0EM/3r5iffy26jr8rWcJSULB2ZyfeoQmW+L0B42nJioSRRdUmzwU0Syl0SX7byGvYT2JZcZiz7iKrL8wlTMMqv/gGIEjAE5HZIG0RXqdmUplJ6Uok8Qw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk;
 dkim=pass header.d=prevas.dk; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=QPdzXdQGZj3Rb4zaAK9/nMKlSO2J/Z89mINwQSe9TS4=;
 b=Wmq0KKgrTfm8bJHJAvVMItMxxwRSdYWvuGURSQDiK/mk0mJ25DDvYv4VrypduYiQmkxHw2ZcOnuVvN/H+J7RX8Zz+pOnwRG2BeVNd3tbFZIJsSLo1O9rQdpweKWWQizSEwjF6Q4If+ROLRTCUDP6UJ1VfI3W7DLumhKZUhT7TRM=
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=prevas.dk;
Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14)
 by PAVPR10MB6940.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:102:30b::8)
 with Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7002.19; Thu, 16 Nov
 2023 08:26:00 +0000
Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
 ([fe80::8bd9:31bc:d048:af15]) by DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
 ([fe80::8bd9:31bc:d048:af15%5]) with mapi id 15.20.7002.021; Thu, 16 Nov 2023
 08:26:00 +0000
Message-ID: <f57309a1-437b-4876-9577-2fe269a626e7@HIDDEN>
Date: Thu, 16 Nov 2023 09:25:58 +0100
User-Agent: Mozilla Thunderbird
Subject: Re: bug#67173: 27.1; support raw string literals in C mode (a GNU C
 extension)
Content-Language: en-US, da
To: Alan Mackenzie <acm@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <6bf89666-40d3-4772-8add-ef8c33568881@HIDDEN>
 <835y23rwwk.fsf@HIDDEN> <ZVVE08ou8mW89b-4@ACM>
From: Rasmus Villemoes <ravi@HIDDEN>
In-Reply-To: <ZVVE08ou8mW89b-4@ACM>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: MM0P280CA0031.SWEP280.PROD.OUTLOOK.COM
 (2603:10a6:190:b::19) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
 (2603:10a6:10:45a::14)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|PAVPR10MB6940:EE_
X-MS-Office365-Filtering-Correlation-Id: 4c74e27f-611d-498b-2388-08dbe67daa4d
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 6Mtr3NEOkJlea+yw8iAC3Oi70LF0pLdo4QllTus6vivxdstdZkkeF7sX1HIL7jRdpLAWPJX1OSEfkR4SiLQ11oyhU0xEHfaAxaBwSLuMXP0KhFOTk0CeIreUxlh3XLggtKzTJyiKy5IrZXtvbA4YECqDLsdQiCN/V6Et+vUMbvB3vOOKBw+/7NEWBReyQdc6kvSilY36K80ZprMkUnmRgzPRawBLiK3IbXAobHgvZOIc7CSaZB26vZJimrT+CkuMntjn+MQMrzfcZKOhnlstCdxZgRte5AUJJTBzmCPw1/hnjcQnRlPGy6s130IMoYICb6M6GGEwSMYiVsjjCtIS8iD6D9GxERs0wW66U92wu8qJFJUo1UGYMQJ6YSTJVoYjuoOFkpBa89hRgEEWY0UFdzuSmIt/1Jh6ESTPGEKrID9jzJy8kRO7smpY6kCLqEuYHAgVEDm0v+SL2i4gpzA9fYnvfjg1/EbW7Aq4hgGJiclMLipGfxkjzzeErpVJKwipQGNVjP1vVsprj72cIA05tbs5CQxhwx0jWh+1YXgDldT1j+XiQnJvdy7sscYQriScO/zw+JBhyzKbHiPVhFl8ksMzHHkvJFrTt3tO3DlSu/vgJSZ6gMWKzNU7qKNESmULJN92/1/sV5gMr4w+TaGOcg==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(13230031)(346002)(376002)(136003)(396003)(39850400004)(366004)(230922051799003)(451199024)(1800799009)(64100799003)(186009)(316002)(66556008)(8676002)(4326008)(110136005)(66476007)(66946007)(8936002)(8976002)(6486002)(36756003)(478600001)(41300700001)(31696002)(5660300002)(2906002)(38100700002)(2616005)(26005)(53546011)(6512007)(83380400001)(6506007)(31686004)(43740500002)(45980500001);
 DIR:OUT; S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ENTV0ZEVy?=
 =?utf-8?B?Y0l4a1JVallTeEJTRXBGU1BWM2pDN1BoK3BodWlSMXBaQzJnRDRNQ2xJTC9Y?=
 =?utf-8?B?TEZxV0k3K3RjbkJWOWlOOHkwajdtYzlYZGk5dVVuQnpWRlRMekhEdWJzT2pw?=
 =?utf-8?B?eGEzQlRyc0ZZWkF5Zk0wSU8yckhHYUZoRWxzUFB6WThSdjlhQ0NZbVV5RmJK?=
 =?utf-8?B?R3gwMXFvK2tCcnltWSt1SHM3OGcxYmIvU3c5Y05nc1UxN0ZpNUlzMnY5cWRl?=
 =?utf-8?B?eWRobkdCOUN6UjhnaHZqbnVyL1QxMFRCRVp0Q3l5UjRsRU9vWXl3WURWczZN?=
 =?utf-8?B?TURIRFhmdUtsYjJyeHVIMXlJaS8reTdjamdzZHdmNlJPMlFaempxTjlaM3I2?=
 =?utf-8?B?ZVhFNTNvUHlLQkNUK0tET2E4WjJoeThseVVjMUlvK1hmNFdMOVlRcm5mZ1Rv?=
 =?utf-8?B?T3YySE1XS2ZlRGFReGN0VGh5dExEOWN2UzkxMGlweVlKKzdCVFdRRW9XOHEy?=
 =?utf-8?B?MGc9PQ==?=
X-OriginatorOrg: prevas.dk
X-MS-Exchange-CrossTenant-Network-Message-Id: 4c74e27f-611d-498b-2388-08dbe67daa4d
X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Nov 2023 08:26:00.6893 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: of3R81u/NC4rqhFRKi+QPqzM8GoEtMYowbqO7j6h3igYOCLj/oRLrY60DOF1YTOzwSYgVECaG0SlO2CSlDJQZnHuEILoUpF95pxI4Lj6QrE=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR10MB6940
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 67173
Cc: 67173 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

On 15/11/2023 23.23, Alan Mackenzie wrote:
> Hello, Eli and Rasmus.
> 
> On Wed, Nov 15, 2023 at 15:03:39 +0200, Eli Zaretskii wrote:
>>> Date: Tue, 14 Nov 2023 11:30:53 +0100
>>> From:  Rasmus Villemoes via "Bug reports for GNU Emacs,
>>>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
>>> gcc, when using -std=gnu99 or newer, supports using raw string literals
>>> in C code. But emacs' C mode does not do proper syntax highlighting for
>>> that case.
> 
> Thanks!  I didn't know about that.  I can't find any mention of raw
> strings in C in the GCC manual for version 10.3.0.

No, it's not mentioned anywhere, and I don't know why they don't
document it, but it's most definitely deliberate (see the
lang_defaults[] table in libcpp/init.cc).

>>> I do not know if that can be fixed by simply adding
>>> c-before-change-check-raw-strings to C mode's
>>> c-get-state-before-change-functions.
> 
> That's the basic idea, yes, with another function to be added to
> c-before-font-lock-functions.  But there are several detailed changes
> necessary, too.

That explains why my quick hacking didn't work...

>> Alan, are you looking into this?
> 
> I am now.  What's bothering me at the moment is that this is going to
> make C Mode slower.  

Urgh, I didn't think about that. I agree that it's probably not very
widely used (probably partly due to not being documented...). I myself
only use it very rarely, and for now just use C++ mode for the file in
question where I noticed this.

So if "slower" is actually noticeable, I would probably prefer to
retract this bug report or ask that support becomes some explicit
opt-in, because 99.99% of the .c files I touch do not use raw strings.

Regardless, thanks for taking this up so quickly.

Rasmus





Information forwarded to bug-gnu-emacs@HIDDEN:
bug#67173; Package emacs. Full text available.

Message received at 67173 <at> debbugs.gnu.org:


Received: (at 67173) by debbugs.gnu.org; 16 Nov 2023 05:58:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Nov 16 00:58:02 2023
Received: from localhost ([127.0.0.1]:54323 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r3VO5-0007RL-HR
	for submit <at> debbugs.gnu.org; Thu, 16 Nov 2023 00:58:02 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58566)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1r3VNz-0007R0-SC
 for 67173 <at> debbugs.gnu.org; Thu, 16 Nov 2023 00:57:59 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1r3VNu-0003G6-1V; Thu, 16 Nov 2023 00:57:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=GKvbCEsrel/RMJkwYWVAr7Vo07FAnKzC9HNWUPq0VsM=; b=k5mqxbrO4k/t
 RBtXvdT3HCt8hr/KZjZ43CHbR5oBUUr2Iaf6XyzjCRfSqm9e74kSiUFv7SPTn+6ftKu6LUgTf+qsD
 ImWu7quI2Epj5WpU0B74gWEw+GYb6npjPEhPFswZiEPkwyhLluOMHlJ8zZrKrTi0vrTmLEP1TSA6T
 dKz//lqVe+M5DbeaYEzHv0i7ZlMSOB6QWUYzyQJ7GcQrMlelIcpuCs/hAnjGOSIiJJEqEMk1laXbF
 efZ/xOZ5Fv/wLXUIuFmFe4wYpd+BTIFZvOG2diUPd55GEsgesvL4t4oj9372HKYfFmJHKIcX92f1f
 KegSAY+qR3rnBl9CWmQtIA==;
Date: Thu, 16 Nov 2023 07:57:40 +0200
Message-Id: <83zfzep7e3.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Alan Mackenzie <acm@HIDDEN>
In-Reply-To: <ZVVE08ou8mW89b-4@ACM> (message from Alan Mackenzie on Wed, 15
 Nov 2023 22:23:15 +0000)
Subject: Re: bug#67173: 27.1; support raw string literals in C mode (a GNU C
 extension)
References: <6bf89666-40d3-4772-8add-ef8c33568881@HIDDEN>
 <835y23rwwk.fsf@HIDDEN> <ZVVE08ou8mW89b-4@ACM>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 67173
Cc: ravi@HIDDEN, 67173 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Wed, 15 Nov 2023 22:23:15 +0000
> Cc: Rasmus Villemoes <ravi@HIDDEN>, 67173 <at> debbugs.gnu.org
> From: Alan Mackenzie <acm@HIDDEN>
> 
> > > I do not know if that can be fixed by simply adding
> > > c-before-change-check-raw-strings to C mode's
> > > c-get-state-before-change-functions.
> 
> That's the basic idea, yes, with another function to be added to
> c-before-font-lock-functions.  But there are several detailed changes
> necessary, too.
> 
> > Alan, are you looking into this?
> 
> I am now.  What's bothering me at the moment is that this is going to
> make C Mode slower.  I suppose I could add an option into C Mode so that
> raw strings can be enabled only when they're needed, but this would be
> quite awkward, and a new departure for CC Mode.

We could support fontification of raw strings only when
font-lock-maximum-decoration is set, or something.  Any solution that
makes this optional behavior is okay from where I stand, since I don't
believe raw string literals will be used frequently enough to make
this a UX issue.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#67173; Package emacs. Full text available.

Message received at 67173 <at> debbugs.gnu.org:


Received: (at 67173) by debbugs.gnu.org; 15 Nov 2023 22:23:25 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 15 17:23:25 2023
Received: from localhost ([127.0.0.1]:54099 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r3OI8-0000b9-Rd
	for submit <at> debbugs.gnu.org; Wed, 15 Nov 2023 17:23:25 -0500
Received: from mail.muc.de ([193.149.48.3]:63002)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@HIDDEN>) id 1r3OI5-0000at-Az
 for 67173 <at> debbugs.gnu.org; Wed, 15 Nov 2023 17:23:23 -0500
Received: (qmail 65512 invoked by uid 3782); 15 Nov 2023 23:23:16 +0100
Received: from acm.muc.de (p4fe15c08.dip0.t-ipconnect.de [79.225.92.8]) (using
 STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Wed, 15 Nov 2023 23:23:15 +0100
Received: (qmail 25777 invoked by uid 1000); 15 Nov 2023 22:23:15 -0000
Date: Wed, 15 Nov 2023 22:23:15 +0000
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#67173: 27.1; support raw string literals in C mode (a GNU C
 extension)
Message-ID: <ZVVE08ou8mW89b-4@ACM>
References: <6bf89666-40d3-4772-8add-ef8c33568881@HIDDEN>
 <835y23rwwk.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <835y23rwwk.fsf@HIDDEN>
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
From: Alan Mackenzie <acm@HIDDEN>
X-Primary-Address: acm@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 67173
Cc: Rasmus Villemoes <ravi@HIDDEN>, 67173 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Hello, Eli and Rasmus.

On Wed, Nov 15, 2023 at 15:03:39 +0200, Eli Zaretskii wrote:
> > Date: Tue, 14 Nov 2023 11:30:53 +0100
> > From:  Rasmus Villemoes via "Bug reports for GNU Emacs,
> >  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>

> > gcc, when using -std=gnu99 or newer, supports using raw string literals
> > in C code. But emacs' C mode does not do proper syntax highlighting for
> > that case.

Thanks!  I didn't know about that.  I can't find any mention of raw
strings in C in the GCC manual for version 10.3.0.

> > I do not know if that can be fixed by simply adding
> > c-before-change-check-raw-strings to C mode's
> > c-get-state-before-change-functions.

That's the basic idea, yes, with another function to be added to
c-before-font-lock-functions.  But there are several detailed changes
necessary, too.

> Alan, are you looking into this?

I am now.  What's bothering me at the moment is that this is going to
make C Mode slower.  I suppose I could add an option into C Mode so that
raw strings can be enabled only when they're needed, but this would be
quite awkward, and a new departure for CC Mode.

-- 
Alan Mackenzie (Nuremberg, Germany)




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#67173; Package emacs. Full text available.

Message received at 67173 <at> debbugs.gnu.org:


Received: (at 67173) by debbugs.gnu.org; 15 Nov 2023 16:28:04 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Nov 15 11:28:04 2023
Received: from localhost ([127.0.0.1]:53110 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r3IkF-00026h-5F
	for submit <at> debbugs.gnu.org; Wed, 15 Nov 2023 11:28:04 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:58120)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1r3IQf-0001QS-PA
 for 67173 <at> debbugs.gnu.org; Wed, 15 Nov 2023 11:07:50 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1r3FYc-0001Zo-9G; Wed, 15 Nov 2023 08:03:50 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=2M1o23la/UXhPa5Us5YaGm969aqVWHlEHpGqo4IrOd0=; b=M57GkQ0gi7/v
 m8mOIV9lfUbUAlvSWXHcYSBsl6zruJ8MC2FBfKu5CPpOe4KCaasNLtSM6G4GIGdpY6Kn+vUu4Vppn
 3KnnYrHKA93lfdcohTz1vQR24IVQe1V+MWXjflgOvXtaGNIJqkpiZOughvFQeCzsNz2+oITwnoglF
 w5lBnndO5Xd65wt6bcWTG4lRBVGqIK6F/hOdDU0HyU9xrR6QplhrtODWW/e3Bfx+flk6EKMJaVk9F
 A0PlmMj+ki4+AK+XnD6v09QSxLx01TPZ6FVLbswri3K7NYLBrrxpf9HJegvS2bptAmIMGJnn1ClgZ
 uQ1ISR0Qcz8fRn5QmR3QSA==;
Date: Wed, 15 Nov 2023 15:03:39 +0200
Message-Id: <835y23rwwk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Rasmus Villemoes <ravi@HIDDEN>, Alan Mackenzie <acm@HIDDEN>
In-Reply-To: <6bf89666-40d3-4772-8add-ef8c33568881@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#67173: 27.1;
 support raw string literals in C mode (a GNU C extension)
References: <6bf89666-40d3-4772-8add-ef8c33568881@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 67173
Cc: 67173 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Tue, 14 Nov 2023 11:30:53 +0100
> From:  Rasmus Villemoes via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> gcc, when using -std=gnu99 or newer, supports using raw string literals
> in C code. But emacs' C mode does not do proper syntax highlighting for
> that case.
> 
> I do not know if that can be fixed by simply adding
> c-before-change-check-raw-strings to C mode's
> c-get-state-before-change-functions.

Alan, are you looking into this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#67173; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 14 Nov 2023 13:43:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Nov 14 08:43:49 2023
Received: from localhost ([127.0.0.1]:60523 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1r2thj-0004pC-Ti
	for submit <at> debbugs.gnu.org; Tue, 14 Nov 2023 08:43:49 -0500
Received: from lists.gnu.org ([2001:470:142::17]:54440)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rasmus.villemoes@HIDDEN>) id 1r2qn0-0002mE-Vg
 for submit <at> debbugs.gnu.org; Tue, 14 Nov 2023 05:37:03 -0500
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 <rasmus.villemoes@HIDDEN>)
 id 1r2qmB-0006bO-Rj
 for bug-gnu-emacs@HIDDEN; Tue, 14 Nov 2023 05:36:11 -0500
Received: from mail-am0eur02on20713.outbound.protection.outlook.com
 ([2a01:111:f400:fe13::713]
 helo=EUR02-AM0-obe.outbound.protection.outlook.com)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rasmus.villemoes@HIDDEN>)
 id 1r2qm6-0001gU-Ko
 for bug-gnu-emacs@HIDDEN; Tue, 14 Nov 2023 05:36:11 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
 b=iOw/RxmMgEYob1HuGdaWF7TCKmAjeXIoVxEY5gtwFnyQDupkmMt741YZSRnh9T9OlXgQKi5eBkmMZsniKNZUCGA4kP0au/BU4V5et4It+KzCCdKF4/caAVj0Z7QWIf4wm4V4lnhK5ryKEuORh/cUSvD0XiHKr6yDVHwAI4MIPuGTFnQE4P9iFoZSEt7fJd5W65tMU2zb5IoW9VLmUZtFZngIaM7sZ7PgkiyCoIHYVLRGxqUpNUSkh+P/qtH7IlxEkOCRbPV4Ni38dTH3WpgxXmZGhs7MP4RRAEJGLz4LW+y8PsF5XGpa1+NrzRFkOaVtdsoTk8p/HxkDENCx7tkDMw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 
 s=arcselector9901;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;
 bh=zMQ6BQAWwZD2cr5jYiRyOftNDjtb37pl2rBBUhtM4+c=;
 b=Vu7u1p8vVzWJAQZNoUV3fTKno/gC0zzCvAWj7bNyhIRli2iuTT61Z5LkrF3i92TJv7pSbVdbaOIY6ZdU6i4x3Sm2bd4mAfv6DzCTHxd82tSGQDFH734gCmOMBXrbMY7t5t3QoM5zB0bBw68xoyTU00FBUCiz57NkwzFVk6S+i7XzhMx+KrXTgyMpn6L+zNrEER5j5C+69d1ml3ZDNSFgdLj+ZwUsSP+ChaQCdQiuW4oGbaIa3jMbOmKVNaE5amgBV4BWh//C0tacisJlZ7udY/HAskhykKl5bYHb8CgJMhHtXMrqcEg+RuQAtNP5fSm/HaypxPWc48iAC1nt4OzEbw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
 smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk;
 dkim=pass header.d=prevas.dk; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1;
 h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
 bh=zMQ6BQAWwZD2cr5jYiRyOftNDjtb37pl2rBBUhtM4+c=;
 b=l2778LVcAFGDWgx0O27aBtiq2+K98+Li/QtarQPTenZPj6xn+aC7Z56qYHEF66teSKG09k1SK3hJlCLrb8Irt/ChMVqWdJ9ny0R0UNXNZL1sjhPi6WGwDVGdZ9H+txSnfi9G48MQmUtamarm0CeAGVcEESyiD8745SNmQ+w67gg=
Authentication-Results: dkim=none (message not signed)
 header.d=none;dmarc=none action=none header.from=prevas.dk;
Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45a::14)
 by GV2PR10MB6067.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:150:af::8) with
 Microsoft SMTP Server (version=TLS1_2,
 cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6977.31; Tue, 14 Nov
 2023 10:30:55 +0000
Received: from DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
 ([fe80::8bd9:31bc:d048:af15]) by DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
 ([fe80::8bd9:31bc:d048:af15%5]) with mapi id 15.20.6977.029; Tue, 14 Nov 2023
 10:30:55 +0000
Message-ID: <6bf89666-40d3-4772-8add-ef8c33568881@HIDDEN>
Date: Tue, 14 Nov 2023 11:30:53 +0100
User-Agent: Mozilla Thunderbird
Content-Language: en-US, da
To: bug-gnu-emacs@HIDDEN
From: Rasmus Villemoes <ravi@HIDDEN>
Subject: 27.1; support raw string literals in C mode (a GNU C extension)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-ClientProxiedBy: MM0P280CA0059.SWEP280.PROD.OUTLOOK.COM
 (2603:10a6:190:b::26) To DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
 (2603:10a6:10:45a::14)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: DB9PR10MB7100:EE_|GV2PR10MB6067:EE_
X-MS-Office365-Filtering-Correlation-Id: c1c76fe5-3c1b-4880-77a3-08dbe4fcc8c4
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: iDtwYv1midw2AzL4dK+OOQy9GZd5HCS3uWTe1ExmDSLl9XmDVXTY1A2MbJQnzGNPFWvMSuUEUKwZ6X74mbKnZZ5jV8TAwbv258bsQW/JqGzH3p/M1+3qFerWszWIxAsgcSfq/TlgZPT/SLCORAGsvdGRzQunbIAFRySHxyUnbbtpf3Tt2XM9g7gi8pq4xmdxMoouuEJVNtJNQY0xjqiLeOZNdo/quGC8FRR7uGtAjFtRMeW+6ZAwHu+m2egTw375ZU574CQA21RNFYN4nkT7AHQtQM/suRD4gBXezsG7YWCikGfb4t8Nxb5OOfO2b91joq0L9TtEqrtHmMCCqCMH3+9ZCzfNX3+vCxmmg4K7YOHCc28ZIDBi8ij57itIPKfScKuToqXNn8tn2WPDWsCL+livjldlevcJf2qOCOvvBH40dMfZEnY9eQuezpSn9SdoAZflc/xaFwJ+8uRemQP+bsCgAaBTLsAxuHGImuuDlft73lOSgbuDijjC5Qg/pxIZ3xK5nmG6VFG1ETk3vNoVWBsdGTpf9ayxSbI4/OabOBtShbW/o3ZpHY3L3VLaewB+ypO0OloMiNh0ClYbyCu+MBXcfXs2RBK7yJsGe4AnmcBTijF8fDjfFLIkbXPU35DeHnzUS6YYkQ/NjK8t05ai8w==
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
 IPV:NLI; SFV:NSPM; H:DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE;
 SFS:(13230031)(346002)(376002)(366004)(136003)(396003)(39850400004)(230922051799003)(451199024)(64100799003)(1800799009)(186009)(6506007)(2616005)(6512007)(8976002)(26005)(478600001)(6486002)(36756003)(8676002)(8936002)(5660300002)(41300700001)(31696002)(2906002)(66946007)(66556008)(66476007)(6916009)(316002)(38100700002)(83380400001)(31686004)(43740500002)(45980500001);
 DIR:OUT; SFP:1102; 
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?RGFCbjJRckNDVis0RXA4V0prdXJDeS9tV2pnQWQyOEV3YWlGL2dEejNoYUhH?=
 =?utf-8?B?MXpHVGZuanlCWHlZN205THI5QVM0c0tzUmxPSWVGM2c3R1VKKzh0ZGJHeFUx?=
 =?utf-8?B?Y1VxOG5VeVZkUFFHeFlzSDNzd2hXbU9VZ1VkWFBVRENHSk9zVGV4RkZIQnFn?=
 =?utf-8?B?Q05YNk9IaEpndXdGN0pINThBbnRXVHE3RTlTRGVHd3lxb2RxK3NDU21VNHBL?=
 =?utf-8?B?L1o4cUZaWHdTWFJsRjB3ME1vUjVIbVBJcW5YdTFIZG4rN0JWbTlrb1kyQ3Vw?=
 =?utf-8?B?V2hXSkxnNlVySVc1dnVodjlnMHdTQ1ZKb0VndUJ1QWJrbE1ZblNFbVJDcUh3?=
 =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dDJqRXVtZlg0bTN0WTJybnQza241KzJY?=
 =?utf-8?B?bjZURlNUUFNlZ20vVkN2YzQ4WFpoNHFNUjRWazY1Zm9tVXRlZmZJT3pRWnFI?=
 =?utf-8?B?U0E9PQ==?=
X-OriginatorOrg: prevas.dk
X-MS-Exchange-CrossTenant-Network-Message-Id: c1c76fe5-3c1b-4880-77a3-08dbe4fcc8c4
X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB7100.EURPRD10.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2023 10:30:55.5717 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: cSJ6GCq8pK4vr2Sc4J+nxrFApKD3I7hOUBb5juf3pOgLOwJg7pwxVZaB6G9toxfG/nlqTQYEIYJ7qni+7EpNaw4lh3KAL7RjgjUqOzwEynI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR10MB6067
Received-SPF: permerror client-ip=2a01:111:f400:fe13::713;
 envelope-from=rasmus.villemoes@HIDDEN;
 helo=EUR02-AM0-obe.outbound.protection.outlook.com
X-Spam_score_int: -10
X-Spam_score: -1.1
X-Spam_bar: -
X-Spam_report: (-1.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, FORGED_SPF_HELO=1,
 SPF_HELO_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01,
 T_SPF_PERMERROR=0.01 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 14 Nov 2023 08:43:47 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

gcc, when using -std=gnu99 or newer, supports using raw string literals
in C code. But emacs' C mode does not do proper syntax highlighting for
that case.

I do not know if that can be fixed by simply adding
c-before-change-check-raw-strings to C mode's
c-get-state-before-change-functions.

Configured using:
 'configure --build x86_64-linux-gnu --prefix=/usr
 --sharedstatedir=/var/lib --libexecdir=/usr/lib
 --localstatedir=/var/lib --infodir=/usr/share/info
 --mandir=/usr/share/man --enable-libsystemd --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --build
 x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib
 --libexecdir=/usr/lib --localstatedir=/var/lib
 --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd
 --with-pop=yes
 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/27.1/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/27.1/site-lisp:/usr/share/emacs/site-lisp
 --with-sound=alsa --without-gconf --with-mailutils --with-cairo
 --with-x=yes --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 'CFLAGS=-g -O2
 -ffile-prefix-map=/build/emacs-WL9mhG/emacs-27.1+1=.
-fstack-protector-strong
 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time
 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND GPM DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS LIBSYSTEMD
JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LANG: en_DK.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix

Major mode: C/*l

Minor modes in effect:
  shell-dirtrack-mode: t
  yas-global-mode: t
  yas-minor-mode: t
  cscope-minor-mode: t
  desktop-save-mode: t
  display-time-mode: t
  electric-pair-mode: t
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  size-indication-mode: t
  column-number-mode: t
  line-number-mode: t
  transient-mark-mode: t
  abbrev-mode: t





Acknowledgement sent to Rasmus Villemoes <ravi@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#67173; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.