Stefan Kangas <stefan@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 15485) by debbugs.gnu.org; 15 Aug 2019 23:50:56 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 19:50:56 2019 Received: from localhost ([127.0.0.1]:52689 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hyPWC-0000MW-Bv for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 19:50:56 -0400 Received: from quimby.gnus.org ([80.91.231.51]:49380) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1hyPWA-0000MN-Ut for 15485 <at> debbugs.gnu.org; Thu, 15 Aug 2019 19:50:55 -0400 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 <larsi@HIDDEN>) id 1hyPW4-0008BC-U0; Fri, 16 Aug 2019 01:50:51 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Mauro Aranda <maurooaranda@HIDDEN> Subject: Re: bug#15485: add-abbrev: don't use hard-coded forward-word References: <524849DB.4090407@HIDDEN> <87pnl73y3n.fsf@HIDDEN> <CABczVwfPWM0gWoCvrv2+yM28rCef6GGXggsOB12tcypte_Lz8Q@HIDDEN> Date: Thu, 15 Aug 2019 16:50:44 -0700 In-Reply-To: <CABczVwfPWM0gWoCvrv2+yM28rCef6GGXggsOB12tcypte_Lz8Q@HIDDEN> (Mauro Aranda's message of "Thu, 15 Aug 2019 09:41:26 -0300") Message-ID: <87a7cat2cr.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Mauro Aranda <maurooaranda@HIDDEN> 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 e [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15485 Cc: Andreas =?utf-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN>, 15485 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Mauro Aranda <maurooaranda@HIDDEN> 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: "<?php ?>") > 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
bug-gnu-emacs@HIDDEN
:bug#15485
; Package emacs
.
Full text available.Debbugs Internal Request <help-debbugs@HIDDEN>
to internal_control <at> debbugs.gnu.org
.
Full text available.Received: (at 15485) by debbugs.gnu.org; 15 Aug 2019 14:34:45 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 10:34:45 2019 Received: from localhost ([127.0.0.1]:52123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hyGpx-0001ru-Ao for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 10:34:45 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:44843) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <andreas.roehler@HIDDEN>) id 1hyGpv-0001rd-Fj for 15485 <at> debbugs.gnu.org; Thu, 15 Aug 2019 10:34:44 -0400 Received: from [192.168.178.39] ([87.123.193.193]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MiIlc-1iSfhS1xRe-00fTRI; Thu, 15 Aug 2019 16:34:36 +0200 Subject: Re: bug#15485: add-abbrev: don't use hard-coded forward-word To: Mauro Aranda <maurooaranda@HIDDEN>, Lars Ingebrigtsen <larsi@HIDDEN> References: <524849DB.4090407@HIDDEN> <87pnl73y3n.fsf@HIDDEN> <CABczVwfPWM0gWoCvrv2+yM28rCef6GGXggsOB12tcypte_Lz8Q@HIDDEN> From: =?UTF-8?Q?Andreas_R=c3=b6hler?= <andreas.roehler@HIDDEN> Message-ID: <1e93bdc1-a85a-b189-8a15-ab5b4441fcf9@HIDDEN> Date: Thu, 15 Aug 2019 16:37:16 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <CABczVwfPWM0gWoCvrv2+yM28rCef6GGXggsOB12tcypte_Lz8Q@HIDDEN> Content-Type: multipart/alternative; boundary="------------4D39560839D0609198F61CC4" Content-Language: en-US X-Provags-ID: V03:K1:V17bSAs5NGB3525jgJdmAMtHX/q8RLCPIM7UQhlVItNEMAMopb/ hUip7JKOoV7AgHOwx90Tm0WlzQ68CX9LlwYecjZm1W4T4DsjrYIv/h8IH84xsPdpDsgbWcs syMinTa4vwLlDLnxmzo5mUzZmpGiYKFM+zyPJL3zf9ptlzeDTD3olYLdjiwUNgbnBfCRPNQ ioRMK8Q3juD8cc389xe1A== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:NHmYpgjIigo=:BZq7644H6dDhIuTfOEIX6j 96LtP55Dwyy15+bCXASVq0JntFbEuXYUULi/UkOhHbTTsdZ8vRLqoEPoYy1T49xUdr7GU3/ii 6cL8G77dugMHBjd/IjWydRQYp7TTmBTQwIagIM3JBPM3yRnVORF/KJhE9ukf0/aULR+gMvCRL Ui4L9HzQfqVh9fx0pgwliZh3+Ff6jPjDu3KAgfdjQfqan8HXLYBsWyXnlVlnydZ20kDW7cmxc ziJ6ha0XIGNEX9uFVFz0jzPTLEpsvsAJvarD3dzCZ3XWxG6K2oJQEPcpehI8hdafUw6yO+eJg PIpVIZIXNPVGKAcsEGeL5eTvQ65d3oh5xig8Lj2Uc92moZJINj8k/rNxQkNmZ2FlULWgFM44n wxnvB383uPxFrPwvkRswMdOVAgNUIgmyuSSRWonIgBjN27gZjTqhBSl2fmOgvjCxqt7pWuhBp Q3ktNVW95pfJGZiSr51k+7oHu8EatPAbxbF/lalVdd4o6f9WylvrlVTkl4ZUXBxM80hjv28LC oe4F6ZGT+R43FQjq7Mvo7hSx2mvB7b4Wxzu09q/q55KJ80rWJAVy+D2/jyh1lZS1dsb6lSqq8 fEdV9fkfS78acYtdjEGmyEGyfTeJy5wdWbFMcR9ygNz/TgwjydNUESCrJpbXYEHeTGyyDxKjo KLw8UUd3u7XHoEE50pvdME1YpqjI+babm7HgQhXdj9ksbxpas3pQqS5++ykU1KqOrgyxbaPIu 5uwHbcuJqdYM9WGKsG5NvqKhtMa9/ZdN6ILEsvN3YxJtneEKICXr6ShtaIZ7UBq7yDewp8hvi LN0MmYt X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 15485 Cc: 15485 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.3 (-) This is a multi-part message in MIME format. --------------4D39560839D0609198F61CC4 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Hi all, On 15.08.19 14:41, Mauro Aranda wrote: > Hello Lars. > > Lars Ingebrigtsen <larsi@HIDDEN <mailto:larsi@HIDDEN>> writes: > > > Andreas Röhler <andreas.roehler@HIDDEN > <mailto:andreas.roehler@HIDDEN>> writes: > > > >> add-abbrev uses forward-word to catch the expansion, which isn't good > >> for programming code. > >> > >> See > >> > >> > http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbreviation-to-emmet-mode-in-emacs/19079683#19079683 > >> > >> Suggest to use forward-symbol instead, or still better to make if > customizable: > > > > `add-abbrev' doesn't have a doc string itself, but as all the in-tree > > callers of this function says: > > > > --- > > Don't use this function in a Lisp program; use `define-abbrev' instead. > > --- > > > > So you probably shouldn't use this programmatically, either. > > 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: "<?php ?>") > 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. > > > 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. The idea was to get rid of the restriction only word-syntax chars might compose an abbreviation. After all, when playing with a patched Emacs allowing all chars, it turned out word-chars are much more easy to type, so didn't use symbol-composed abbrevs finally. --------------4D39560839D0609198F61CC4 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body text="#000000" bgcolor="#FFFFFF"> <p>Hi all,<br> </p> <div class="moz-cite-prefix">On 15.08.19 14:41, Mauro Aranda wrote:<br> </div> <blockquote type="cite" cite="mid:CABczVwfPWM0gWoCvrv2+yM28rCef6GGXggsOB12tcypte_Lz8Q@HIDDEN"> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <div dir="ltr">Hello Lars.<br> <br> Lars Ingebrigtsen <<a href="mailto:larsi@HIDDEN" moz-do-not-send="true">larsi@HIDDEN</a>> writes:<br> <br> > Andreas Röhler <<a href="mailto:andreas.roehler@HIDDEN" moz-do-not-send="true">andreas.roehler@HIDDEN</a>> writes:<br> ><br> >> add-abbrev uses forward-word to catch the expansion, which isn't good<br> >> for programming code.<br> >><br> >> See<br> >><br> >> <a href="http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbreviation-to-emmet-mode-in-emacs/19079683#19079683" moz-do-not-send="true">http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbreviation-to-emmet-mode-in-emacs/19079683#19079683</a><br> >><br> >> Suggest to use forward-symbol instead, or still better to make if customizable:<br> ><br> > `add-abbrev' doesn't have a doc string itself, but as all the in-tree<br> > callers of this function says:<br> ><br> > ---<br> > Don't use this function in a Lisp program; use `define-abbrev' instead.<br> > ---<br> ><br> > So you probably shouldn't use this programmatically, either.<br> <br> I don't think the OP wanted to use `add-abbrev' in a Lisp program. What<br> I understand is that the problem reported arises when someone wants to<br> add an abbrev for a programming construct (in the example: "<?php ?>")<br> it is likely that `add-abbrev' won't give the entire desired<br> expansion.<br> <br> With that being said, at least in current Emacs it is easy to add that<br> abbrev, by setting the mark and point properly and calling<br> `add-mode-abbrev' with a 0 prefix argument.<br> <br> > However, it's possible that the `forward-word' should perhaps be<br> > changed, but on the other hand, abbrev.el will probably be deprecated<br> > any year now in favour of nabbrev.el, so I don't think it's a good idea<br> <br> What is nabbrev.el? I did a search in what I believe are usual places,<br> but didn't found anything.</div> </blockquote> <p><br> </p> <p>The idea was to get rid of the restriction only word-syntax chars might compose an abbreviation.</p> <p>After all, when playing with a patched Emacs allowing all chars, it turned out word-chars are much more easy to type, so didn't use symbol-composed abbrevs finally. <br> </p> </body> </html> --------------4D39560839D0609198F61CC4--
bug-gnu-emacs@HIDDEN
:bug#15485
; Package emacs
.
Full text available.Received: (at 15485) by debbugs.gnu.org; 15 Aug 2019 12:41:49 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Aug 15 08:41:49 2019 Received: from localhost ([127.0.0.1]:50786 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hyF4d-00059h-AC for submit <at> debbugs.gnu.org; Thu, 15 Aug 2019 08:41:49 -0400 Received: from mail-lf1-f46.google.com ([209.85.167.46]:45774) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <maurooaranda@HIDDEN>) id 1hyF4a-00059S-H8 for 15485 <at> debbugs.gnu.org; Thu, 15 Aug 2019 08:41:45 -0400 Received: by mail-lf1-f46.google.com with SMTP id a30so1524952lfk.12 for <15485 <at> debbugs.gnu.org>; Thu, 15 Aug 2019 05:41:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xA7+ACwK7IzfBO1TFMHouN7zHGhv63cKKwdIzO5Gw5Y=; b=XSb/h8BqQZI7v6UyZ09YNknkMIoux1RlqBGSe42ppO0Z2JwbA5w98+hPjdXRyOV+qH udhfqBDCvEDa464h8QRxOuEF+GfG+IyJWnKwzCcw05vYweYZUAznXGgjXzqb0f/gv72V xavd2yu5fsAcMWHVTQs/wUgfLynQEVDpEfYVpR7mIHD5wEsbDN5TTzIOP0bZp9o3Fx4K VCt1USPjQ8NEcg3TzCOX2d0OY+UquIdOtrhdtjK+fFcQ0J5WamN0wxG9SsdeDOgdUxLz 9P9BUUOg3nGd/+sIuX5mBDrKFV7M56b7sqIxr4WAQZA92MHHgR38JdrMLvo7XOkpUOag s6Rg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xA7+ACwK7IzfBO1TFMHouN7zHGhv63cKKwdIzO5Gw5Y=; b=OjCSHNYUinNtXMUeSS59kpLIknaYRw07ZroZyvLYm1ZQa7qCjeu0OJyRFy6gjO49DC DuFb26AJvifRhYSUstqdCeTiLBdebnLJ9LBfnjsL+wWIks8krh2H3/n1CF2DvnWS5Sry IejE0Yioy25188HUsqkqqLqCBoHbH0r9utBcx5TMgsEmkpKLz6F+dq6nXBgqyQyD+HD6 5fdswF37z4/bBrzskMd2o9J7pDg18qIHpje0VuS+A+OBoaqlpu5hmOqJhZDXvk7uC1z2 ccPfjL6rbCGQh5o2MXLD2CBZOV77A8ZX2te4np6oToxKlkysPjUBvD/K7LZTmuEF+8yt C+ug== X-Gm-Message-State: APjAAAXsdjtRI462S2PUWPQM2hV+pjgpLF7T0VpPWKFnaMb1ZjhDYACz ID50vm3IPHWkeKPvgBoTYn05DfScMo1j99fzh+w= X-Google-Smtp-Source: APXvYqzrgxuGCNqQvKG4D2yd8myn4QgFYe+GRH45cWMW/WBZ5ZxiqDYWJxZc7Lq3BeOrqT9xvFPbutE98j+Q0GLhxOo= X-Received: by 2002:ac2:4c8c:: with SMTP id d12mr2255752lfl.58.1565872898472; Thu, 15 Aug 2019 05:41:38 -0700 (PDT) MIME-Version: 1.0 References: <524849DB.4090407@HIDDEN> <87pnl73y3n.fsf@HIDDEN> In-Reply-To: <87pnl73y3n.fsf@HIDDEN> From: Mauro Aranda <maurooaranda@HIDDEN> Date: Thu, 15 Aug 2019 09:41:26 -0300 Message-ID: <CABczVwfPWM0gWoCvrv2+yM28rCef6GGXggsOB12tcypte_Lz8Q@HIDDEN> Subject: Re: bug#15485: add-abbrev: don't use hard-coded forward-word To: Lars Ingebrigtsen <larsi@HIDDEN> Content-Type: multipart/alternative; boundary="000000000000e07dd10590273154" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15485 Cc: =?UTF-8?Q?Andreas_R=C3=B6hler?= <andreas.roehler@HIDDEN>, 15485 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) --000000000000e07dd10590273154 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Lars. Lars Ingebrigtsen <larsi@HIDDEN> writes: > Andreas R=C3=B6hler <andreas.roehler@HIDDEN> writes: > >> add-abbrev uses forward-word to catch the expansion, which isn't good >> for programming code. >> >> See >> >> http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbre= viation-to-emmet-mode-in-emacs/19079683#19079683 >> >> Suggest to use forward-symbol instead, or still better to make if customizable: > > `add-abbrev' doesn't have a doc string itself, but as all the in-tree > callers of this function says: > > --- > Don't use this function in a Lisp program; use `define-abbrev' instead. > --- > > So you probably shouldn't use this programmatically, either. 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: "<?php ?>") 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. > 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. --000000000000e07dd10590273154 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hello Lars.<br><br>Lars Ingebrigtsen <<a href=3D"mailto= :larsi@HIDDEN">larsi@HIDDEN</a>> writes:<br><br>> Andreas R=C3=B6= hler <<a href=3D"mailto:andreas.roehler@HIDDEN">andreas.roehler@e= asy-emacs.de</a>> writes:<br>><br>>> add-abbrev uses forward-wo= rd to catch the expansion, which isn't good<br>>> for programming= code.<br>>><br>>> See<br>>><br>>> <a href=3D"http:= //stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbreviati= on-to-emmet-mode-in-emacs/19079683#19079683">http://stackoverflow.com/quest= ions/19073674/how-can-i-add-my-personal-abbreviation-to-emmet-mode-in-emacs= /19079683#19079683</a><br>>><br>>> Suggest to use forward-symbo= l instead, or still better to make if customizable:<br>><br>> `add-ab= brev' doesn't have a doc string itself, but as all the in-tree<br>&= gt; callers of this function says:<br>><br>> ---<br>> Don't us= e this function in a Lisp program; use `define-abbrev' instead.<br>>= ---<br>><br>> So you probably shouldn't use this programmaticall= y, either.<br><br>I don't think the OP wanted to use `add-abbrev' i= n a Lisp program.=C2=A0 What<br>I understand is that the problem reported a= rises when someone wants to<br>add an abbrev for a programming construct (i= n the example: "<?php ?>")<br>it is likely that `add-abbrev= ' won't give the entire desired<br>expansion.<br><br>With that bein= g said, at least in current Emacs it is easy to add that<br>abbrev, by sett= ing the mark and point properly and calling<br>`add-mode-abbrev' with a= 0 prefix argument.<br><br>> However, it's possible that the `forwar= d-word' should perhaps be<br>> changed, but on the other hand, abbre= v.el will probably be deprecated<br>> any year now in favour of nabbrev.= el, so I don't think it's a good idea<br><br>What is nabbrev.el?=C2= =A0 I did a search in what I believe are usual places,<br>but didn't fo= und anything.</div> --000000000000e07dd10590273154--
bug-gnu-emacs@HIDDEN
:bug#15485
; Package emacs
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Lars Ingebrigtsen <larsi@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 15485) by debbugs.gnu.org; 15 Aug 2019 03:29:41 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Aug 14 23:29:41 2019 Received: from localhost ([127.0.0.1]:50228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1hy6SK-0005ar-Nf for submit <at> debbugs.gnu.org; Wed, 14 Aug 2019 23:29:40 -0400 Received: from quimby.gnus.org ([80.91.231.51]:33824) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <larsi@HIDDEN>) id 1hy6SJ-0005aj-Ag for 15485 <at> debbugs.gnu.org; Wed, 14 Aug 2019 23:29:39 -0400 Received: from 24-104-73-23-ip-static.hfc.comcastbusiness.net ([24.104.73.23] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from <larsi@HIDDEN>) id 1hy6SF-0007K7-7K; Thu, 15 Aug 2019 05:29:38 +0200 From: Lars Ingebrigtsen <larsi@HIDDEN> To: Andreas =?utf-8?Q?R=C3=B6hler?= <andreas.roehler@HIDDEN> Subject: Re: bug#15485: add-abbrev: don't use hard-coded forward-word References: <524849DB.4090407@HIDDEN> Date: Wed, 14 Aug 2019 20:29:32 -0700 In-Reply-To: <524849DB.4090407@HIDDEN> ("Andreas \=\?utf-8\?Q\?R\=C3\=B6h\?\= \=\?utf-8\?Q\?ler\=22's\?\= message of "Sun, 29 Sep 2013 17:40:11 +0200") Message-ID: <87pnl73y3n.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Andreas Röhler <andreas.roehler@HIDDEN> writes: > add-abbrev uses forward-word to catch the expansion, which isn't good > for programming code. > > See > > http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbreviation-to-emmet- [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15485 Cc: 15485 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) Andreas R=C3=B6hler <andreas.roehler@HIDDEN> writes: > add-abbrev uses forward-word to catch the expansion, which isn't good > for programming code. > > See > > http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abb= reviation-to-emmet-mode-in-emacs/19079683#19079683 > > Suggest to use forward-symbol instead, or still better to make if customi= zable: (I'm going through old bug reports that have unfortunately gotten no responses yet.) `add-abbrev' doesn't have a doc string itself, but as all the in-tree callers of this function says: --- Don't use this function in a Lisp program; use `define-abbrev' instead. --- So you probably shouldn't use this programmatically, either. 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 to change anything here, and I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no
bug-gnu-emacs@HIDDEN
:bug#15485
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 29 Sep 2013 15:38:21 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 29 11:38:21 2013 Received: from localhost ([127.0.0.1]:44939 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1VQJ4f-0001FQ-0S for submit <at> debbugs.gnu.org; Sun, 29 Sep 2013 11:38:21 -0400 Received: from eggs.gnu.org ([208.118.235.92]:60999) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from <andreas.roehler@HIDDEN>) id 1VQJ4c-0001FH-3H for submit <at> debbugs.gnu.org; Sun, 29 Sep 2013 11:38:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <andreas.roehler@HIDDEN>) id 1VQJ4V-0001G4-5O for submit <at> debbugs.gnu.org; Sun, 29 Sep 2013 11:38:17 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56303) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <andreas.roehler@HIDDEN>) id 1VQJ4V-0001G0-1s for submit <at> debbugs.gnu.org; Sun, 29 Sep 2013 11:38:11 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34450) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <andreas.roehler@HIDDEN>) id 1VQJ4P-00022v-20 for bug-gnu-emacs@HIDDEN; Sun, 29 Sep 2013 11:38:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <andreas.roehler@HIDDEN>) id 1VQJ4I-0001EF-V8 for bug-gnu-emacs@HIDDEN; Sun, 29 Sep 2013 11:38:04 -0400 Received: from moutng.kundenserver.de ([212.227.126.186]:64039) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <andreas.roehler@HIDDEN>) id 1VQJ4I-0001E3-LB for bug-gnu-emacs@HIDDEN; Sun, 29 Sep 2013 11:37:58 -0400 Received: from purzel.sitgens (brln-4dba32f8.pool.mediaWays.net [77.186.50.248]) by mrelayeu.kundenserver.de (node=mreu4) with ESMTP (Nemesis) id 0MfNr4-1VBOoR1tV4-00OpZt; Sun, 29 Sep 2013 17:37:57 +0200 Message-ID: <524849DB.4090407@HIDDEN> Date: Sun, 29 Sep 2013 17:40:11 +0200 From: =?ISO-8859-15?Q?Andreas_R=F6hler?= <andreas.roehler@HIDDEN> User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: bug-gnu-emacs@HIDDEN Subject: add-abbrev: don't use hard-coded forward-word Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:haDtR39ummSyqSgHrPT9mdhE9IDjkVqnDghDW3jVl68 s5+EL8XzvjIXqNyppft2Cs7oLT1851QPCAMUNlQZok9bvnmp4y 53R8oCArhQxYl+b/m6+UOqwxG67gr9268+U5lnBzlGdxIso8uw wNIkyRUJiJZlQuLOfq58R/1/oPACREIeVfSH0lmcYgXPQ6rgbs 7XAllCmnJOvUFfSjHL1qi3VUr1xrNcKpaw14zxjtXPqN1XwFEB PtM3uLD0QwLq03X4h2svNd+SY1lNQrP48NbqjPnUifIpZuqdZ6 IpRmqTyZlGV2TZvBOldfnU5UwEVz2ZG9NwxH1V+jb/+FB2Ytz/ NgquTD9ld026IrlSEuVx0q6QOnJbtEiihjBi2w4c0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -5.0 (-----) add-abbrev uses forward-word to catch the expansion, which isn't good for programming code. See http://stackoverflow.com/questions/19073674/how-can-i-add-my-personal-abbreviation-to-emmet-mode-in-emacs/19079683#19079683 Suggest to use forward-symbol instead, or still better to make if customizable: (funcall add-abbrev-move-function
Andreas Röhler <andreas.roehler@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#15485
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.