From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthias Pfeifer Newsgroups: gmane.emacs.help Subject: Re: About abbrevs and spaces at end of line Date: Tue, 10 Dec 2013 12:53:08 +0100 Message-ID: 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: quoted-printable X-Trace: ger.gmane.org 1386676398 4016 80.91.229.3 (10 Dec 2013 11:53:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Dec 2013 11:53:18 +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:53:24 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 1VqLsR-0006pG-Vo for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 12:53:24 +0100 Original-Received: from localhost ([::1]:48626 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLsR-0005vF-IW for geh-help-gnu-emacs@m.gmane.org; Tue, 10 Dec 2013 06:53:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLsF-0005vA-U6 for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:53:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqLsE-0001ui-JF for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:53:11 -0500 Original-Received: from mail-wg0-x22b.google.com ([2a00:1450:400c:c00::22b]:32856) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqLsE-0001ue-8F for help-gnu-emacs@gnu.org; Tue, 10 Dec 2013 06:53:10 -0500 Original-Received: by mail-wg0-f43.google.com with SMTP id k14so4825122wgh.22 for ; Tue, 10 Dec 2013 03:53:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UHLPRwOukDsRoHD4CB1GrbJbo2ZdW4pP6Er7ciYiwhQ=; b=wMs5mYsqQAHwKJtC90B9rBuh4kJINnYmMwXpSQCnL9i8xCIX33cZUQr8DT2z/MlTOs JqSkc+KNP4Tp38lxI0ksdCRwH0lrzhN8tJfsPX+ycoc8DYn/xSnIavjdKvDkUhoErdzp +OGSmctevh4s6gojg2/MZJX11lml4APwcY117KdQGNAz6wIuy0ZtdDElpoOkLee3mzj2 POmrQGDumgEcyie1Ec/L3kszrlVqX5fh//yv9nFP39mMq3OZwfGVULcvQdwyqyRIgWtm nDflG6hDyAPz4Q9yTqY1C97q2t4jewlPopR2rpYjHKG3DYqsHb6hYWHgJ7a/5GTRulF4 7IiQ== X-Received: by 10.194.104.42 with SMTP id gb10mr20485444wjb.16.1386676388720; Tue, 10 Dec 2013 03:53:08 -0800 (PST) Original-Received: by 10.217.87.2 with HTTP; Tue, 10 Dec 2013 03:53:08 -0800 (PST) In-Reply-To: <52A6FF60.3000101@easy-emacs.de> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22b X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:94924 Archived-At: Hi Harry, If you take some time to get comfortable with emacs hippie-expand that might be an option, too. hippie-expand overloads the tab key with a list of functions and chooses one that fits to the current position. There is also a function that expands abbrevs before point. matthias 2013/12/10 Andreas R=C3=B6hler > Am 10.12.2013 12:08, schrieb Harry Putnam: > > Andreas R=C3=B6hler 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. > > >