From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wilmar Igl Newsgroups: gmane.emacs.bugs Subject: Re: Characterset for Abbrevation names limited Date: Sun, 24 Jun 2007 17:08:10 +0200 Message-ID: <467E88DA.8020906@gmx.de> References: <467A7A62.40202@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1182712790 1431 80.91.229.12 (24 Jun 2007 19:19:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Jun 2007 19:19:50 +0000 (UTC) Bcc: rgm@gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 24 21:19:48 2007 Return-path: Envelope-to: geb-bug-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 1I2Xci-0001HB-81 for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jun 2007 21:19:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2Xch-0007vx-8Y for geb-bug-gnu-emacs@m.gmane.org; Sun, 24 Jun 2007 15:19:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I2Xcf-0007vf-HP for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2007 15:19:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I2Xcf-0007vO-7y for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2007 15:19:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I2Xce-0007vK-W1 for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2007 15:19:45 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I2Xce-0001h9-Qf for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2007 15:19:44 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.60) (envelope-from ) id 1I2Xce-0000D0-8x for bug-gnu-emacs@gnu.org; Sun, 24 Jun 2007 15:19:44 -0400 Resent-Message-ID: <18046.50128.189195.422325@fencepost.gnu.org> Resent-Date: Sun, 24 Jun 2007 15:19:44 -0400 Resent-From: Glenn Morris Resent-To: bug-gnu-emacs@gnu.org In-Reply-To: X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-Bogosity: no, spamicity=0.085538, v1.0.1 User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) Resent-Date: Sun, 24 Jun 2007 15:19:44 -0400 X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15991 Archived-At: Dear Glenn, thanks for the info. In this case I'd suggest to change the prompt of global-add-abbrev from e.g.: M-x Global abbrev for "Desoxyribonucleicacid": to: M-x Global abbrev for "Desoxyribonucleicacid" (only letters [a-Z][0-9]): and/or include a similar comment into the function description. Otherwise an uninformed user might use the unsupported characters like [!"#%&/] and register the failure of the function and interpret it as a bug. Best, Wilmar Glenn Morris skrev: > Wilmar Igl wrote: > >> sofar it is not possible to use characters other the [a-Z][0-9] as names >> of abbreviations when using . >> To avoid conflicts with emacs abbreviations and other acronyms used in >> the text I would suggest to allow non-alphabetical/non-number characters >> like, [!"#%&/]. > > It's not that simple. Because of the way abbrevs are expanded, the > characters in an abbrev must all be recognized as part of a word. > So in general it's not possible to allow arbitrary characters (eg `!') > in abbrevs. In specific modes that change the syntax of some > characters to be word constituents, these characters can be used in > abbrevs. -- Wilmar IGL (Mr.) PhD, Psychologist * Postal Addresses: -Fogdevreten 13 B SE-171 65 Stockholm/Solna Sweden -c/o Michael und Christa Igl Sittling 330 D-93333 Neustadt a. d. Donau Germany * Phone: - Sweden: +46 (0) 73 75 44 9 43 (mobile) - Germany: +49 (0) 176 29 49 87 10 (mobile) - VoIP: wilmar.igl (Skype), +49 (0) 9445 35 33 31 (landline, SkypeIn) * E-mail: wilmar.igl[AT]gmx.de