From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#15485: add-abbrev: don't use hard-coded forward-word Date: Thu, 15 Aug 2019 16:50:44 -0700 Message-ID: <87a7cat2cr.fsf@mouse.gnus.org> References: <524849DB.4090407@easy-emacs.de> <87pnl73y3n.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="46289"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 15485@debbugs.gnu.org To: Mauro Aranda Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 16 01:51:23 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyPWb-000Bu3-7R for geb-bug-gnu-emacs@m.gmane.org; Fri, 16 Aug 2019 01:51:21 +0200 Original-Received: from localhost ([::1]:47908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyPWZ-0005dE-Gr for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Aug 2019 19:51:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46208) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1hyPWI-0005d2-SH for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 19:51:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hyPWH-0002qq-RL for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 19:51:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:43868) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hyPWH-0002qi-OB for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 19:51:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hyPWH-0000Mo-LJ for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2019 19:51:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Aug 2019 23:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15485 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix Original-Received: via spool by 15485-submit@debbugs.gnu.org id=B15485.15659130561400 (code B ref 15485); Thu, 15 Aug 2019 23:51:01 +0000 Original-Received: (at 15485) by debbugs.gnu.org; 15 Aug 2019 23:50:56 +0000 Original-Received: from localhost ([127.0.0.1]:52689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyPWC-0000MW-Bv for submit@debbugs.gnu.org; Thu, 15 Aug 2019 19:50:56 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:49380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hyPWA-0000MN-Ut for 15485@debbugs.gnu.org; Thu, 15 Aug 2019 19:50:55 -0400 Original-Received: from [50.225.213.182] (helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hyPW4-0008BC-U0; Fri, 16 Aug 2019 01:50:51 +0200 In-Reply-To: (Mauro Aranda's message of "Thu, 15 Aug 2019 09:41:26 -0300") 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: 209.51.188.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:165161 Archived-At: Mauro Aranda writes: > I don't think the OP wanted to use `add-abbrev' in a Lisp program. What > I understand is that the problem reported arises when someone wants to > add an abbrev for a programming construct (in the example: "") > it is likely that `add-abbrev' won't give the entire desired > expansion. > > With that being said, at least in current Emacs it is easy to add that > abbrev, by setting the mark and point properly and calling > `add-mode-abbrev' with a 0 prefix argument. Ah, I see. >> However, it's possible that the `forward-word' should perhaps be >> changed, but on the other hand, abbrev.el will probably be deprecated >> any year now in favour of nabbrev.el, so I don't think it's a good idea > > What is nabbrev.el? I did a search in what I believe are usual places, > but didn't found anything. Sorry, I was completely confused. Somehow I was thinking about advice.el/nadvice.el here. :-/ -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no