From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: abbreviation ending with "." Date: Wed, 11 Nov 2009 23:30:47 -0500 Organization: UseNetServer.com Message-ID: References: <6713e8a2-fc67-4250-b8c3-d20894d51f0b@m26g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1258000854 10415 80.91.229.12 (12 Nov 2009 04:40:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 12 Nov 2009 04:40:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 12 05:40:47 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N8RUD-0004tc-G0 for geh-help-gnu-emacs@m.gmane.org; Thu, 12 Nov 2009 05:40:45 +0100 Original-Received: from localhost ([127.0.0.1]:47508 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N8RUD-0006DF-17 for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Nov 2009 23:40:45 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!news.glorb.com!news2.glorb.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!TEKSAVVY.COM-Free-a2kHrUvQQWlmc!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:74A/dOaSrhfOLPTKI8I2WPx4/W0= Original-X-Complaints-To: abuse@usenetserver.com Original-Lines: 22 Original-X-Trace: 3582a4afb8f78e9af3e8c23776 Original-Xref: news.stanford.edu gnu.emacs.help:174612 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:69685 Archived-At: > I want to have an abbreviation that turns "p." into "para" > (Portuguese). But all my abbreviations that end with "." are not > expanded. I googled around and could not find anything on this. Abbreviations by default only work if they're exclusively made up of "word chars" (a.k.a chars of syntax class "word"). So you can either change the char "." to be a word constituent (which may lead to surprises), or you can change the setting on the abbrev-table in which you placed that "p." abbreviation. E.g. if it's added to the abbrev table named `foo-abbrev-table', you could do (abbrev-table-put foo-abbrev-table :regexp "\\<\\(\\w+\\.?\\)\\W*") See C-h v define-abbrev-table to see the default value used for the :regexp (to which I just added \\.?). Stefan