From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: non word abbrevs Date: Mon, 01 Nov 2021 08:03:00 -0400 Message-ID: References: <2F7AC7B8-48AA-4BF3-B5AA-A4141F248109@traduction-libre.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20229"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs To: Jean-Christophe Helary Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 01 13:03:59 2021 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 1mhW2g-00052Q-K8 for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Nov 2021 13:03:58 +0100 Original-Received: from localhost ([::1]:42626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhW2e-0002rH-Lz for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 01 Nov 2021 08:03:56 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35594) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhW1x-0002oU-7l for help-gnu-emacs@gnu.org; Mon, 01 Nov 2021 08:03:13 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:20834) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhW1u-0003It-PF for help-gnu-emacs@gnu.org; Mon, 01 Nov 2021 08:03:12 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id DAB231003B4; Mon, 1 Nov 2021 08:03:08 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 5FD181001C8; Mon, 1 Nov 2021 08:03:07 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1635768187; bh=7ZOuFMyYkDwhdPoOeEpv9zBtpBYwqW7xWZC78DXolxQ=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=jvHfJMnXptGg3fC05Jf/TdjspkVKiMLIubqC0DGHZa/yBrUat/YcE645xACYn//oS HGmYP8aaH0bqhT1uFr0LrzHexrrWA5RtuWJEdXO6k3eo2YXSGnXoZh9/hctrKZ+YuS 0t6e15weMP7DzRJQIRAFFo3/czjwzBWsUJ7PGywcOmu7RiU8wrEPmLX/tVNYx7i5ZH KjFIBgfbpwXGu8B79uMAUmsWJxf53DEH/6LipGe5g3w5lQKLneVTNGhW6DEHpSdRLK rKpCt88hcFpKWtQWh8V2wRCM0qvr1M1KnkM+DAGf7Zl1I/nQzZCDcjZL8HciCD+K06 62vR5/dFIHCkQ== Original-Received: from pastel (unknown [45.72.241.23]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 0D3691206F6; Mon, 1 Nov 2021 08:03:07 -0400 (EDT) In-Reply-To: (Jean-Christophe Helary's message of "Mon, 1 Nov 2021 16:57:20 +0900") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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:134287 Archived-At: > :regexp "\(?\)") > I must be missing something. Hmmm... backslashes? ;-) The above string is the same as "(?)" (in recentish Emacsen the above backslashes should presumably be highlighted in a font-lock-warning color for that reason). Beware also that this regexp is matched backwards and stops as soon as it finds a match, so it finds the *shortest* match rather than the longest match. IOW the