all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Harry Putnam <reader@newsguy.com>
To: help-gnu-emacs@gnu.org
Subject: Re: About abbrevs and spaces at end of line
Date: Tue, 10 Dec 2013 06:08:00 -0500	[thread overview]
Message-ID: <87txehotf3.fsf@newsguy.com> (raw)
In-Reply-To: 52A6CBCF.2010506@easy-emacs.de

Andreas Röhler <andreas.roehler@easy-emacs.de> 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 <RET> 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 <RET>
>>
>>     "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, <RET>, 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?




  reply	other threads:[~2013-12-10 11:08 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-09 21:46 About abbrevs and spaces at end of line Harry Putnam
2013-12-10  8:07 ` Andreas Röhler
2013-12-10 11:08   ` Harry Putnam [this message]
2013-12-10 11:47     ` Andreas Röhler
2013-12-10 11:53       ` Matthias Pfeifer
2013-12-11 12:29       ` Harry Putnam
2013-12-11 13:03         ` Andreas Röhler
     [not found] <mailman.8702.1386625654.10748.help-gnu-emacs@gnu.org>
2013-12-11 20:54 ` duthen.mac.01
2013-12-11 20:55 ` duthen.mac.01

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87txehotf3.fsf@newsguy.com \
    --to=reader@newsguy.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.