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.devel Subject: Re: did the abbrev mechanism ever expand =?windows-1252?B?q3R3?= =?windows-1252?B?byB3b3Jkc7s=?= to =?windows-1252?Q?=ABtwo?= different =?windows-1252?Q?words=BB=2E?= Date: Thu, 07 Jan 2021 15:36:52 -0500 Message-ID: References: <871rewmrsh.fsf@mat.ucm.es> <83zh1kjyg4.fsf@gnu.org> 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="24375"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Uwe Brauer , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 07 21:54:10 2021 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 1kxcIL-00068T-GA for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Jan 2021 21:54:09 +0100 Original-Received: from localhost ([::1]:48230 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kxcIK-0007t2-In for ged-emacs-devel@m.gmane-mx.org; Thu, 07 Jan 2021 15:54:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52264) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxc1j-0003dg-Ov for emacs-devel@gnu.org; Thu, 07 Jan 2021 15:36:59 -0500 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:63183) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kxc1h-0000EO-Ba; Thu, 07 Jan 2021 15:36:58 -0500 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 826E4100240; Thu, 7 Jan 2021 15:36:55 -0500 (EST) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 1A8E5100068; Thu, 7 Jan 2021 15:36:54 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1610051814; bh=FetKFqatQnsvqy7wfbY8CcI8QbuescVoR9CXCF+nXb4=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=QdMNqE5DmLljIDkIyGQ59Ov6z3e/MnlJTrAjrjm5Nn+8v1XlC2NbxFZ+YLL1ZgZo2 5Ht3X9OJZnjJ5kXc66bL17QPgI/0YfOU7QKN+NW0xqOj4IKwN6h7Ix74u5QAT6d85G HoxwYRZvrOuJ/iHcS2zAn689BzjtBfUxZKBKE1oniP9tnAEfc9iOJM9EK1Z1hlXa+B JG9wDm9caNPsV0Zs5rd80ZMgLoxdUiMqN+qGuync1/bLBgcslEQbl4Y7ivy3b5Ln5x ICzo1dWn+4KEwwmRLfXu+WEs4+f5lki8kygkUTodrwJfRBABuB5CTuKaUKfK+4njAd oeMwpRMEJwP/g== Original-Received: from alfajor (unknown [45.72.224.181]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id DCDAE12024D; Thu, 7 Jan 2021 15:36:53 -0500 (EST) In-Reply-To: <83zh1kjyg4.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 07 Jan 2021 22:15:23 +0200") 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: 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:262710 Archived-At: > An =E2=80=9Cabbrev=E2=80=9D is a word that has been defined to =E2=80= =9Cexpand=E2=80=9D into a specified > =E2=80=9Cexpansion=E2=80=9D. When you insert a word-separator characte= r following the > abbrev, that expands the abbrev=E2=80=94replacing the abbrev with its e= xpansion. > For example, if =E2=80=98foo=E2=80=99 is defined as an abbrev expanding= to =E2=80=98find outer > otter=E2=80=99, then typing =E2=80=98f o o .=E2=80=99 will insert =E2= =80=98find outer otter.=E2=80=99. > > This mean a word-separator character cannot be part of an abbrev. That's true for the default behavior. Since Emacs-24, abbrev tables do support abbrevs whose name includes non-word characters, but it requires extra work on the part of the user in order to characterize the possible names via the `:regexp` property (see `C-h o define-abbrev-table`). Stefan