From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#23705: 25.0.94; Upper-case abbrev expansion doesn't work with subword-mode enabled Date: Wed, 08 Jun 2016 05:40:20 +0300 Message-ID: <831t48s8rv.fsf@gnu.org> References: <86ziqyn5u9.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1465353631 8289 80.91.229.3 (8 Jun 2016 02:40:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 8 Jun 2016 02:40:31 +0000 (UTC) Cc: 23705@debbugs.gnu.org, pbqbqp@gmail.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 08 04:40:18 2016 Return-path: Envelope-to: geb-bug-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 1bATPh-0000f1-5K for geb-bug-gnu-emacs@m.gmane.org; Wed, 08 Jun 2016 04:40:13 +0200 Original-Received: from localhost ([::1]:54141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bATPg-0002Ed-6o for geb-bug-gnu-emacs@m.gmane.org; Tue, 07 Jun 2016 22:40:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54100) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bATPY-0002D1-M1 for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 22:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bATPW-00010E-KS for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 22:40:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:46999) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bATPW-00010A-HK for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 22:40:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bATPW-0000Y7-CP for bug-gnu-emacs@gnu.org; Tue, 07 Jun 2016 22:40:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 08 Jun 2016 02:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23705-submit@debbugs.gnu.org id=B23705.14653535952094 (code B ref 23705); Wed, 08 Jun 2016 02:40:02 +0000 Original-Received: (at 23705) by debbugs.gnu.org; 8 Jun 2016 02:39:55 +0000 Original-Received: from localhost ([127.0.0.1]:59336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bATPO-0000Xi-U2 for submit@debbugs.gnu.org; Tue, 07 Jun 2016 22:39:55 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34846) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bATPN-0000XV-M1 for 23705@debbugs.gnu.org; Tue, 07 Jun 2016 22:39:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bATPF-0000x7-ER for 23705@debbugs.gnu.org; Tue, 07 Jun 2016 22:39:48 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bATPF-0000wo-Al; Tue, 07 Jun 2016 22:39:45 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4949 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1bATPD-0003o4-4d; Tue, 07 Jun 2016 22:39:43 -0400 In-reply-to: (message from Glenn Morris on Tue, 07 Jun 2016 17:51:35 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:119245 Archived-At: > From: Glenn Morris > Date: Tue, 07 Jun 2016 17:51:35 -0400 > Cc: 23705@debbugs.gnu.org > > Arash wrote: > > > If I evalulate this in `emacs -Q' with subword-mode enabled, 8G won't expand: > > > > (define-abbrev-table 'c++-mode-abbrev-table > > '(("8g" "struct" nil 0) > > ("8G" "class" nil 0))) > > Ref http://debbugs.gnu.org/17558#25 > > "Someone" needs to change instances of -word in abbrev.el to -word-strictly. > Perhaps just abbrev--before-point is enough. But who knows. Actually, I don't think this is a bug. In subword-mode, "8G" is 2 words. At the time, I deliberately left abbrevs out of the *-word-strictly conversion, since I believe users of this mode should be able to expand sub-words. So I think the OP needs to change the abbrevs in use to not bump into this contradiction.