From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Jean-Christophe Helary Newsgroups: gmane.emacs.devel Subject: abbrev definition (manual) Date: Wed, 26 Jul 2017 08:18:46 +0900 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501024774 6896 195.159.176.226 (25 Jul 2017 23:19:34 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2017 23:19:34 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 26 01:19:30 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 1da96w-0001Xo-4t for ged-emacs-devel@m.gmane.org; Wed, 26 Jul 2017 01:19:30 +0200 Original-Received: from localhost ([::1]:35020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da971-0008Ue-Q8 for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2017 19:19:35 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38766) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1da96P-0008UK-3l for emacs-devel@gnu.org; Tue, 25 Jul 2017 19:18:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1da96K-0004Sc-3k for emacs-devel@gnu.org; Tue, 25 Jul 2017 19:18:57 -0400 Original-Received: from mail-pf0-x229.google.com ([2607:f8b0:400e:c00::229]:34113) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1da96J-0004Qj-U6 for emacs-devel@gnu.org; Tue, 25 Jul 2017 19:18:52 -0400 Original-Received: by mail-pf0-x229.google.com with SMTP id q85so63832579pfq.1 for ; Tue, 25 Jul 2017 16:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=b/5Phym1YOwcxr1xzGAsuBGtkpwH/RaAhmZdIHM1UmE=; b=TELFVcwvDkftWaDLnb3epYEVfxXlWKbm/UjjlX3beIv7IlfNMow6sep5B/nu3tEzf6 AQczTykZZwe44N2tHqVCgE9QdrOxHg84ZqFpEerhY5C1vLGHkNXUZyv8yL/KxbE3SqqD RwQ3xePQygeB7YAdqJQjurPJbnzyQByw9b1Fp3z+byBWGGQSsafaBnTse8YeC2qTuaDs 96vZMCOKKsJApHDqKA4EEI3zI+bYHqVQW77PV2Dq+g/U2H/9skIvi98DoPuCGRJy12Ly fS9Z99db7ejP+ayqlFof+OwhHjb9FWScM7+N75IsjpqJ/n28v4YhN/ZB/pi08s5oGFZN RUFg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=b/5Phym1YOwcxr1xzGAsuBGtkpwH/RaAhmZdIHM1UmE=; b=d9LMFeO6+x37fxHS8wVntXzsGZ0PdK4qzryTvyBV/9SQhvZzoY22JjjDpr0EK0xsTr bEDxMJ0M9R5mlKYx7qbwpr2KRlFJYrAPAr6vqTfYxjSI7MshuiFq12c2lsxxFoOcvn2X 2fWfktYY9Qj0tukEHqd+2TNG1lIhecVWFozZHR/kGqyWsI37FCc5nNmqu/n+G/gQ1/5t 25zQed9N32ibk8gKt2YLIO1YsRlvKR6iCUSXNrVy+0UyqBrrmNPJAx42zMmsIgb653+8 ItU5kGDdKUWsWDnKGvzuut02oqsKcMwXtppE2gamJ2O19nBIN/5+1c5i1uP3ioc6t52q 03Vg== X-Gm-Message-State: AIVw113NsWDteda4r+C0tw5P3uY/NckNU/aDy+BLJGplWubKLIrL4bqK 9zdfUo/TXWYBVPhc4Qc= X-Received: by 10.98.157.218 with SMTP id a87mr20697238pfk.208.1501024729380; Tue, 25 Jul 2017 16:18:49 -0700 (PDT) Original-Received: from [192.168.24.53] (pl12518.ag0304.nttpc.ne.jp. [128.53.234.230]) by smtp.gmail.com with ESMTPSA id q88sm30673468pfa.10.2017.07.25.16.18.48 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jul 2017 16:18:48 -0700 (PDT) X-Mailer: Apple Mail (2.3273) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400e:c00::229 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:217029 Archived-At: I find the manual explanation for the definition of an abbrev confusing: 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). This reads the abbrev itself using the minibuffer, = and then defines it as an abbrev for one or more words before point. Use = a numeric argument to say how many words before point should be taken as = the expansion. For example, to define the abbrev =E2=80=98foo=E2=80=99 = as mentioned above, insert the text =E2=80=98find outer otter=E2=80=99 = and then type C-u 3 C-x a g f o o RET. What about that: 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. Jean-Christophe=20