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: Tue, 10 Dec 2013 12:47:44 +0100 Message-ID: <52A6FF60.3000101@easy-emacs.de> References: <87r49lg0j6.fsf@newsguy.com> <52A6CBCF.2010506@easy-emacs.de> <87txehotf3.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 1386675901 30653 80.91.229.3 (10 Dec 2013 11:45:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 11:45:01 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Dec 10 12:45:06 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 1VqLkP-0000Cb-2o for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 12:45:05 +0100 Original-Received: from localhost ([::1]:48598 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLkO-00029e-EL for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 06:45:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39740) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLk2-0001wJ-RS for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:44:48 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqLju-0007DC-6G for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:44:42 -0500 Original-Received: from moutng.kundenserver.de ([212.227.126.186]:51724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLjt-0007Cz-TN for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:44:34 -0500 Original-Received: from purzel.sitgens (brln-4d0c096d.pool.mediaWays.net [77.12.9.109]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0Lxbix-1VW0ZQ3b23-017Cp8; Tue, 10 Dec 2013 12:44:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 In-Reply-To: <87txehotf3.fsf@newsguy.com> X-Provags-ID: V02:K0:JlIKdUIPWUCD+JtTIMwPIT59wbQVLNjTZvZTPrOJ8rP baq16Wo+4ClVuK6TTGQA1o295w1jvkXEi4+sJM8MtQHNjGFcwX WmUKS9FGB5XtA/0TmJENgGblcb3MpaZx6J5ite2MrSfwXDLQ+Q slBdRxTL0uqdaezLbXEq0nXg97qzUBJ8vT6fi7LPdv1SguvWNc aDSVyxqmQ+D231jQCBhD8RXa5fLQ4jZFVqcbm0oH01C4+XmZ0p XRraO16LX2mkTumjraiH8eb4GjsBI7nscqNXJEUf8W2iUZYRDZ 83Es6Irnj4ngJq+uE47JMPXkPtC20FqlBwehx/N+ec2ae8gVG2 0xQdxvkn5nXegaYT2ytE= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.186 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:94923 Archived-At: 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'd like to add some other char to the list somehow. > Are you asking how to bind another key onto expand-abbrev command? > Any clues how I might do that? > > > BTW another solution might advice abbrev-expand with (delete-char -1) - which would DTRT with only.