From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.devel Subject: Re: [ELPA] Proposed package: vcard Date: Mon, 03 Feb 2020 13:26:35 -0800 Message-ID: <878sljnz04.fsf@ericabrahamsen.net> References: <878slnq6nu.fsf@ericabrahamsen.net> <87tv48q3nx.fsf@ericabrahamsen.net> <87imkno2r9.fsf@ericabrahamsen.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="34184"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 03 22:27:19 2020 Return-path: Envelope-to: ged-emacs-devel@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 1iyjFW-0008jv-Qx for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Feb 2020 22:27:18 +0100 Original-Received: from localhost ([::1]:47262 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyjFV-0001eR-Oy for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Feb 2020 16:27:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48538) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iyjEy-0001AN-Q8 for emacs-devel@gnu.org; Mon, 03 Feb 2020 16:26:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iyjEx-0004Vc-PN for emacs-devel@gnu.org; Mon, 03 Feb 2020 16:26:44 -0500 Original-Received: from ericabrahamsen.net ([52.70.2.18]:39040 helo=mail.ericabrahamsen.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iyjEx-0004Bq-Js for emacs-devel@gnu.org; Mon, 03 Feb 2020 16:26:43 -0500 Original-Received: from localhost (c-73-254-86-141.hsd1.wa.comcast.net [73.254.86.141]) (Authenticated sender: eric@ericabrahamsen.net) by mail.ericabrahamsen.net (Postfix) with ESMTPSA id 5E03EFA035; Mon, 3 Feb 2020 21:26:36 +0000 (UTC) In-Reply-To: (Stefan Monnier's message of "Mon, 03 Feb 2020 15:52:48 -0500") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 52.70.2.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244836 Archived-At: Stefan Monnier writes: >> And if I put point anywhere on the "type" key string, and delete/add a >> character, it is then font-locked correctly. > > Ah, that rings a bell: some of your regexps can accidentally match over > multiple lines because of [^..] patterns that can match \n Hey hey! Adding "\n" to the don't-match range did the trick. Thank you. I'm going to push version 0 now, just to have it out there. I'll try for a few more days to refine the line unfolding/decoding problem. It's a pretty edge case, though, so if that stalls I'd rather get 0.1 out there and start working with existing libraries, then come back to this. Thanks, Eric