From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: About abbrevs and spaces at end of line Date: Wed, 11 Dec 2013 14:03:49 +0100 Message-ID: <52A862B5.7050504@easy-emacs.de> References: <87r49lg0j6.fsf@newsguy.com> <52A6CBCF.2010506@easy-emacs.de> <87txehotf3.fsf@newsguy.com> <52A6FF60.3000101@easy-emacs.de> <87wqjbwoxv.fsf@newsguy.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1386766857 30947 80.91.229.3 (11 Dec 2013 13:00:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2013 13:00:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 11 14:01:02 2013 Return-path: Envelope-to: geh-help-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 1VqjPR-0003If-QP for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 14:01:01 +0100 Original-Received: from localhost ([::1]:56833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqjPR-0002bH-GS for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 08:01:01 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51457) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqjPA-0002aw-JI for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 08:00:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqjP4-0003Wh-Eq for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 08:00:44 -0500 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:50134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqjP4-0003VX-3o for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 08:00:38 -0500 Original-Received: from purzel.sitgens (brln-4dbc4042.pool.mediaWays.net [77.188.64.66]) by mrelayeu.kundenserver.de (node=mrbap4) with ESMTP (Nemesis) id 0MXovv-1W5m4K2FPz-00WEko; Wed, 11 Dec 2013 14:00:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <87wqjbwoxv.fsf@newsguy.com> X-Provags-ID: V02:K0:mBV/K5pCFka/YIl/6yAnUwXHGHO8lG/SDhHCxthdlcl W8K1y2g6Z3VOwEthX3zvrNK5NMP9UismKdqtwX1Y3VYF8/yNiM HzElRRTHiZbEaGH5hqQ0lIpY2ewnFGEQImjTXm7W8EEEx9pS6n zUqBf/gqJqhCYSwU4LpWxJ5RDeJ/bAJCrOIll0u+ZJw+NTQTvx E3Bp7jED84TKAjv287z41jWxxOtiqxp/n1Nmpz05E0BI4/ZFSg M3RkMIIvyJRwiTpnkOEXGe3ixkOvE7vbyXVLRGAGUurCKI2/Y3 2MeaijZCU9ehK/7pH6hNeb93ZDdjiLsYNDlTMUZEMjiChE/IJv TF5Z8eXqeSii8ZjJ8ZEk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94940 Archived-At: Am 11.12.2013 13:29, schrieb Harry Putnam: > Andreas Röhler writes: > >> Am 10.12.2013 12:08, schrieb Harry Putnam: >>> Andreas Röhler writes: >>> >>>> Am 09.12.2013 22:46, schrieb Harry Putnam: >>>>> Is there some smooth way to avoid having a space at the end of line >>>>> when activating an abbrev as the last thing done before newline? >>> >>> [...] >>> >>>>> The short and long is: Invoking with spc leaves unsightly marks like >>>>> an underscore if done at the end of a line and invoking with is >>>>> not always desirable if a new line is not needed. >>> >>> [...] >>> >>>>> >>>>> I have visions of some tricky way of setting up an abbrev with hardly >>>>> any more effort than the normal >>>>> >>>>> M-x edit-abbrevs >>>>> >>>>> "tru" 0 "\"TRUE\";" >>>>> >>>>> In the cperl-table, then pressing C-c >>>>> >>>>> Where I only need to edit the cperl abbrev table. >>>>> >>>>> >>>>> >>>>> >>>> >>>> Problem results from binding abbrev-expand to SPACE. >>>> Abbrev is expanded, than SPACE is inserted, as you typed it. >>>> >>>> Solution: abbrev-mode off. Use any other key to M-x expand-abbrev RET. >>>> This will expand it, but not insert a space. >>> >>> Thank you. >>> >>> After looking into this a bit, I'm not seeing a handy way to set >>> something else permanently. >>> >>> In fact it appears there are nearly half a dozen ways to invoke >>> expansion. >>> >>> space, , C-x ' (At least two more key combos that I already >>> forgot) >>> >>> So there must be a list or regex or something. >>> >> >> Do you mean "list of keys"? > > I'm suggesting there must already be a list of keys that invoke > expansion. > >>> I'd like to add some other char to the list somehow. >>> >> >> Are you asking how to bind another key onto expand-abbrev command? > > You seemed to be suggesting that could be done when you said: > Yes, there is a plenty of unused combos to employ. For example that one: (global-set-key [(super \{)] 'expand-abbrev)