From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alex Branham Newsgroups: gmane.emacs.bugs Subject: bug#30737: [patch] global-abbrev-mode Date: Wed, 07 Mar 2018 11:18:29 -0600 Message-ID: <87bmfzdct6.fsf@gmail.com> References: <87sh9chjjq.fsf@gmail.com> <83h8prrew3.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1520443670 25477 195.159.176.226 (7 Mar 2018 17:27:50 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 7 Mar 2018 17:27:50 +0000 (UTC) User-Agent: mu4e 1.0; emacs 26.0.91 Cc: 30737@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 07 18:27:46 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1etcqn-000571-TJ for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Mar 2018 18:27:38 +0100 Original-Received: from localhost ([::1]:34680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etcsq-0005yU-Oq for geb-bug-gnu-emacs@m.gmane.org; Wed, 07 Mar 2018 12:29:44 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57611) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etchb-0005Yo-6t for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 12:18:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etchW-000423-Uu for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 12:18:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41861) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etchW-00041z-QW for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 12:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1etchW-0003Vt-GM for bug-gnu-emacs@gnu.org; Wed, 07 Mar 2018 12:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alex Branham Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Mar 2018 17:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 30737 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 30737-submit@debbugs.gnu.org id=B30737.152044306913484 (code B ref 30737); Wed, 07 Mar 2018 17:18:02 +0000 Original-Received: (at 30737) by debbugs.gnu.org; 7 Mar 2018 17:17:49 +0000 Original-Received: from localhost ([127.0.0.1]:49758 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etchJ-0003VQ-00 for submit@debbugs.gnu.org; Wed, 07 Mar 2018 12:17:49 -0500 Original-Received: from mail-ot0-f176.google.com ([74.125.82.176]:44627) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1etchG-0003VA-MB for 30737@debbugs.gnu.org; Wed, 07 Mar 2018 12:17:47 -0500 Original-Received: by mail-ot0-f176.google.com with SMTP id 79so2747266oth.11 for <30737@debbugs.gnu.org>; Wed, 07 Mar 2018 09:17:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-transfer-encoding; bh=DCBqztHbs+74Fh0dXM27JdQhAZI6L6nHsXbNGd/vny8=; b=Vomr4uOMg6tyjUjwX9xQLwHAAPDZ8F3DLrPZl0N4ey1ER3mfM3MaOBo8s5xbKCiTTN UOFHO6nQiAMvhq7Hpdu51GKTCGd+rula8S/u1D8Tv+5O/NBWN0F6ZGW8NsSYjLO/dBfM QmquR82TubaSNaWYtmhPd3qRGJEKzVVf/308LW2wmXAqh6nRRgJRpQFCTQEIvfDnb3Pj q9GszGB3pxs6ozrhs1/agr9qh0ep+URyNnNTAloTyDuKjCGoba7Fyk8IXpZenb/9HDoq jmkxVtiiu42USbyFNxurhFIOr+KHVfDOHmzZ6iO4GY6A2nP48uszhqHAa6rptlLM61om VltA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:references:user-agent:from:to:cc:subject :in-reply-to:date:message-id:mime-version:content-transfer-encoding; bh=DCBqztHbs+74Fh0dXM27JdQhAZI6L6nHsXbNGd/vny8=; b=pdIGt2EGuotHnKNK9tL1Zo3RRUtngaH+8Am7aCVhAAcTOfREc8RJ3vEtbHEkR5663k 31HJ2lDDSGVfo6mscb/PT50ybEC9F0fM3oO/PGv5AzuvZxm9ydTQX5mVrxnUH0hCWVEw gevCC+xZoSIAG7D+4yzY4HU2ODKFFXLkTzvdsKnDglLvz3fnwNY6CtSzJYw7S+2W6vt8 3Ql3Suy1nU2fYaJKFi26EnYp5pGzGJ3yS6LJllvpo0ly8WlnWIbSK9/vTl+2jrMZXJYS WjCuUH6d8BDxo6mDBdhYAgElZ9TxpWtMUoByK/32TyiYLd/TAnYTgYFy0ep4w/rhYdGQ on4Q== X-Gm-Message-State: AElRT7EoPe6eRKSVi31lZLN0xfBNmtnV34br3bNT6x2E3SMU6BSHHf4I aqiw96GJbeN16XbqpHWppJbOO7eD X-Google-Smtp-Source: AG47ELvubw0HcbnF+BTYUsu7kExOCFJvP9LsNY5p2jn7TSBWuGe0nIRnH+YpfKs+7blhralQYt2g0w== X-Received: by 10.157.46.193 with SMTP id w59mr10600314ota.231.1520443060686; Wed, 07 Mar 2018 09:17:40 -0800 (PST) Original-Received: from mars (nat-128-62-55-61.public.utexas.edu. [128.62.55.61]) by smtp.gmail.com with ESMTPSA id e47sm9349555ote.37.2018.03.07.09.17.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 07 Mar 2018 09:17:40 -0800 (PST) In-reply-to: <83h8prrew3.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:143984 Archived-At: On Wed 07 Mar 2018 at 11:09, Eli Zaretskii wrote: >> From: Alex Branham >> Date: Tue, 06 Mar 2018 17:27:05 -0600 >> >> It's currently not very clear how we're supposed to turn on abbrev-mode >> everywhere. This patch introduces global-abbrev-mode to solve that >> particular problem. I've been using this line in my init.el for a few >> months without issue. > > Does it make sense to have it turned on in every single buffer? What > major modes do you routinely use? I use a mix of text modes (auctex, org, etc) and programming modes (python, ess, etc). I find it useful to have the global abbrev table collect common spelling mistakes or typos like teh and automatically correct them to "the". This was inspired by a blog post[1]. The author there recommends turning on abbrev-mode everywhere with setq-default, but the doc string explicitly says not to do that: "Use the command =E2=80=98abbrev-mode=E2=80= =99 to change this variable." Footnotes: [1] http://endlessparentheses.com/ispell-and-abbrev-the-perfect-auto-corre= ct.html