From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Colin Baxter Newsgroups: gmane.emacs.devel Subject: Re: abbrev definition (manual) Date: Wed, 26 Jul 2017 08:00:43 +0100 Message-ID: <87k22vznqc.fsf@yandex.com> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501052546 23810 195.159.176.226 (26 Jul 2017 07:02:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 26 Jul 2017 07:02:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) Cc: , emacs-devel To: Jean-Christophe Helary Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 26 09:02:19 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1daGKk-0005Yw-KB for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 09:02:14 +0200 Original-Received: from localhost ([::1]:36444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daGKq-0003PR-8s for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 03:02:20 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1daGJi-0002tH-IK for emacs-devel@gnu.org; Wed, 26 Jul 2017 03:01:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1daGJf-0000Qg-HI for emacs-devel@gnu.org; Wed, 26 Jul 2017 03:01:10 -0400 Original-Received: from forward4m.cmail.yandex.net ([5.255.216.22]:48287) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1daGJf-0000Q1-6q for emacs-devel@gnu.org; Wed, 26 Jul 2017 03:01:07 -0400 Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward4m.cmail.yandex.net (Yandex) with ESMTP id EFD4720778; Wed, 26 Jul 2017 10:01:04 +0300 (MSK) Original-Received: from smtp2o.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id 3E3FC50811C1; Wed, 26 Jul 2017 10:00:45 +0300 (MSK) Original-Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id CGqrynvebU-0iAGpEkf; Wed, 26 Jul 2017 10:00:45 +0300 (using TLSv1.2 with cipher AES128-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1501052445; bh=il1vIupB1pgmmftqh9zvqvZA/slDLjQsGj2QdvDp9KU=; h=From:To:Cc:Cc:Subject:References:Date:In-Reply-To:Message-ID; b=bfYYxWexWKO/xr05YCeAfTpY+1dtSI9+vnNrQDOR8dxJHvMU7yWtn8WqEBAhZ/tMm MjUCPmuNGLhn5vQWgwfHow+sPn12Q2GTfJ5JLZppWinVxCZudW2svOaepnKJxN1Kq4 xhxDNUyZrP0kzbTbo9GnjS0l/FBCgKOszpLzwOpE= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.com X-Yandex-Suid-Status: 1 0,1 0 X-Face: -P+89ASh_wrs;AUGm`!l[}/o-lyK}5W.gq\fkJ{#d6Gu,hWrZNz::iMm5PJb} __A96]-LUrl)X=uF=V|\3-\9/sXvBs/H In-Reply-To: (Jean-Christophe Helary's message of "Wed, 26 Jul 2017 08:18:46 +0900") Face: iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAABmJLR0QA/wD/AP+gvaeTAAAA JUlEQVQokWP4/5/hPy4cGrrqAAPD//+4MBMDBWBU86jmUc1YAABEGSUO7ENchAAAAABJRU5ErkJg gg== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.255.216.22 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:217034 Archived-At: Dear Jean-Christophe, >>>>> Jean-Christophe Helary writes: > The usual way to define an abbrev is to enter the > text you want the abbrev to expand to, position > point after it, and type C-x a g > (add-global-abbrev). Use a numeric argument to say > how many words before point should be taken as the > expansion. This prompts for the abbrev itself in > the minibuffer, and then defines it as an abbrev > for the words specified before point. For example, > to define the abbrev 'foo' as mentioned above, > insert the text 'find outer otter' and then type > C-u 3 C-x a g f o o RET. For me, this is a great improvement over the original. What do you think of the idea of mentioning the use of the universal argument C-u, if only as a reminder for newbies like myself? I suppose that my suggestion might not conform to the way manuals are written. Best wishes, Colin. -- -- Colin Baxter m43cap@yandex.com GnuPG fingerprint: 68A8 799C 0230 16E7 BF68 2A27 BBFA 2492 91F5 41C8