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: Tue, 10 Dec 2013 06:08:00 -0500 Organization: Still searching... Message-ID: <87txehotf3.fsf@newsguy.com> References: <87r49lg0j6.fsf@newsguy.com> <52A6CBCF.2010506@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 1386673712 23185 80.91.229.3 (10 Dec 2013 11:08:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 11:08:32 +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:08:37 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 1VqLB6-0005bw-Vw for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 12:08:37 +0100 Original-Received: from localhost ([::1]:48450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLB6-0007UG-HN for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 06:08:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32860) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLAq-0007T5-IY for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:08:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqLAk-0005gG-8y for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:08:20 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:48190) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLAk-0005ej-20 for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:08:14 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VqLAi-0005H6-SL for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 12:08:12 +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 ; Tue, 10 Dec 2013 12:08:12 +0100 Original-Received: from reader by z65-50-57-227.ips.direcpath.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 10 Dec 2013 12:08:12 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 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:W084syGFJMWRSb4rrkV+25Lgyi0= 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:94922 Archived-At: 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. I'd like to add some other char to the list somehow. Any clues how I might do that?