From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: Re: abbreviation definitions with non word characters Date: Wed, 26 Nov 2014 13:10:49 +0100 Organization: The Church of Emacs Message-ID: <87vbm2yxfa.fsf@vsl28t2g.ww011> References: <87fvd7gwq2.fsf@vsl28t2g.ww011> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417003885 19909 80.91.229.3 (26 Nov 2014 12:11:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2014 12:11:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 13:11:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XtbRG-0008If-28 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 13:11:18 +0100 Original-Received: from localhost ([::1]:33471 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtbRF-0008Ks-G8 for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2014 07:11:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43534) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtbQy-0008Kg-4V for help-gnu-emacs@gnu.org; Wed, 26 Nov 2014 07:11:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtbQs-0003P8-MH for help-gnu-emacs@gnu.org; Wed, 26 Nov 2014 07:11:00 -0500 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:42411) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtbQs-0003P2-FN for help-gnu-emacs@gnu.org; Wed, 26 Nov 2014 07:10:54 -0500 Original-Received: by mail-wi0-f169.google.com with SMTP id r20so15215121wiv.0 for ; Wed, 26 Nov 2014 04:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:organization:references:date:in-reply-to :message-id:user-agent:mime-version:content-type; bh=Z6Q7YikUJm1HV3S1rxye5FJ6upsj1HdJyLS665g4+1c=; b=sENSr/LEv8bhFC+vzdOo3IuOWrsOyIrgQ8J19u2pVCoFBS30pru5jlKPFHrqWSKsDp xysPIGXHNXdX6W3xT4oD6wXg0Wzj6DuYOSyDBQSyLIxIdvgqL1DYNfbclk4CWe1acFO8 wbUXzNPTvnT0kdWRwu+Pv6Igi3/P8J5xpQNEsfetuAISzQUald+iNwz9Z8q0nO5cqfPo gSViMfmntner9JF7HBRgr1LrtlHnDGiHrpyFpbETfYGthfhek5jbNBkhH/FTuByFydhk ripi50yeBVkAsQnWnIdToTmQR9s4bnuaQGI7Hh5Ey8u514ZiK8uc3rQKFPYQXZTtaRze quxw== X-Received: by 10.194.87.131 with SMTP id ay3mr49145312wjb.66.1417003852921; Wed, 26 Nov 2014 04:10:52 -0800 (PST) Original-Received: from vsl28t2g.ww011 (p57ACF244.dip0.t-ipconnect.de. [87.172.242.68]) by mx.google.com with ESMTPSA id nj9sm6863895wic.10.2014.11.26.04.10.51 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Nov 2014 04:10:52 -0800 (PST) In-Reply-To: (Stefan Monnier's message of "Tue, 25 Nov 2014 10:01:30 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101216 Archived-At: Stefan Monnier writes: >> does somebody have an example with the use of :regexp in the property >> list of abbreviation tables? > > I think there are examples in python.el, fortran.el, and f90.el (tho > the last two are probably identical). from fortan.el: ... (";w" . "write" ) (";wh" . "where" ))) "Abbrev table for Fortran mode." ;; Accept ; as the first char of an abbrev. Also allow _ in abbrevs. :regexp "\\(?:[^[:word:]_;]\\|^\\)\\(;?[[:word:]_]+\\)[^[:word:]_]*") Thank you, exactly what I was looking for! Dieter -- Best wishes H. Dieter Wilhelm Darmstadt, Germany