From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: finotti Newsgroups: gmane.emacs.help Subject: Re: abbreviation ending with "." Date: Thu, 12 Nov 2009 08:28:03 -0800 (PST) Organization: http://groups.google.com Message-ID: <398df4fc-f32e-4ef8-be43-ea37d148e37e@k19g2000yqc.googlegroups.com> References: <6713e8a2-fc67-4250-b8c3-d20894d51f0b@m26g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1258238200 14993 80.91.229.12 (14 Nov 2009 22:36:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 14 Nov 2009 22:36:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 14 23:36:33 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 1N9REO-0006Ql-PK for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 23:36:33 +0100 Original-Received: from localhost ([127.0.0.1]:39474 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N9REO-0004AO-7B for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2009 17:36:32 -0500 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!k19g2000yqc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: 160.36.149.115 Original-X-Trace: posting.google.com 1258043283 15493 127.0.0.1 (12 Nov 2009 16:28:03 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 12 Nov 2009 16:28:03 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: k19g2000yqc.googlegroups.com; posting-host=160.36.149.115; posting-account=YC-TDQoAAACFJrajgmMe4XMSABl62hTo User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4) Gecko/20091027 Fedora/3.5.4-1.fc11 Firefox/3.5.4,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:174622 X-Mailman-Approved-At: Sat, 14 Nov 2009 17:31:55 -0500 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:69733 Archived-At: Thanks for the reply! On Nov 11, 11:30=A0pm, Stefan Monnier wrote: > Abbreviations by default only work if they're exclusively made up of > "word chars" (a.k.a chars of syntax class "word"). I see. Thanks for clarifying that. > 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 > > =A0 =A0(abbrev-table-put foo-abbrev-table > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0:regexp "\\<\\(\\w+\\.?\\)\\W*= ") Should I put it in my .emacs? If so, it did not work. (BTW, I have it in my global-abbrev-table.) > See C-h v define-abbrev-table to see the default value used for > the :regexp (to which I just added \\.?). That command did not work for me: define- gives only "define-key- rebound-commands"... Any suggestions? Thanks again for the quick reply! Luis