From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.help Subject: Re: About abbrevs and spaces at end of line Date: Wed, 11 Dec 2013 07:29:48 -0500 Organization: Still searching... Message-ID: <87wqjbwoxv.fsf@newsguy.com> References: <87r49lg0j6.fsf@newsguy.com> <52A6CBCF.2010506@easy-emacs.de> <87txehotf3.fsf@newsguy.com> <52A6FF60.3000101@easy-emacs.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1386765930 19883 80.91.229.3 (11 Dec 2013 12:45:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2013 12:45:30 +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 13:45:36 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 1VqjAU-0000Ad-WD for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 13:45:35 +0100 Original-Received: from localhost ([::1]:56495 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqjAU-0004zi-Jb for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 07:45:34 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqjA6-0004q3-MH for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 07:45:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqjA0-0007BV-9v for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 07:45:10 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:39941) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqjA0-00078D-4K for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 07:45:04 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VqivQ-0004Eo-8u for help-gnu-emacs@gnu.org; Wed, 11 Dec 2013 13:30:00 +0100 Original-Received: from z65-50-57-227.ips.direcpath.com ([65.50.57.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Dec 2013 13:30:00 +0100 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 11 Dec 2013 13:30:00 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 70 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: z65-50-57-227.ips.direcpath.com User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.0.92 (gnu/linux) Cancel-Lock: sha1:AcRnEQSW2rOsljJC0K41mqORhas= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:94939 Archived-At: 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: >>> Solution: abbrev-mode off. Use any other key to M-x expand-abbrev RET. >>> This will expand it, but not insert a space. I was not sure what you mean by 'Use any other key . . . '