From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: dbdkmezz Newsgroups: gmane.emacs.help Subject: Re: Using abbrev-prefix-mark to add a suffix starts a new line Date: Tue, 20 Jul 2010 03:51:46 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7c813f96-4f6e-4335-b09f-7fe1b8551b92@d8g2000yqf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1291929667 3952 80.91.229.12 (9 Dec 2010 21:21:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 21:21:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 22:21:04 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQnvD-0004NL-Ky for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 22:21:03 +0100 Original-Received: from localhost ([127.0.0.1]:39225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQnv6-0001qs-Ul for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 16:20:57 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!d8g2000yqf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 94.195.105.125 Original-X-Trace: posting.google.com 1279623106 9966 127.0.0.1 (20 Jul 2010 10:51:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 20 Jul 2010 10:51:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: d8g2000yqf.googlegroups.com; posting-host=94.195.105.125; posting-account=0jOerwoAAACa-LOjXDrHQ_ktyM5PUMxZ User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:179868 X-Mailman-Approved-At: Thu, 09 Dec 2010 16:00:12 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:77081 Archived-At: On 20 July, 11:08, dbdkmezz wrote: > This is odd. I discovered that I could use abbrev-prefix-mark `M-' to > add prefixes and suffixes to abbreviations yesterday, and it all > worked fine (I think!). But now when I use to add suffixes it adds the > suffix fine, but then moves the pointer down to the next line (if > there is a lower line to go to). I know there's nothing in the > documentation about using this command for suffixes (it only mentions > prefixes) but it makes sense, and it does at least half work. > > Anyone have any ideas about what might be going on, or how I can fix > this? > > Thanks > > Paul Apologies for replying to my own post, but realised I didn't include enough details. It only adds the extra line when using a space to expand the abbreviation. If I expand it with another character (such as a comma or a full-stop) then instead of adding a new line it just add's a extra space before the expanding character. (Again, this is fine when just using an abbreviation as usual, it only goes wrong when using the abbrev-prefix-mark to add a suffix.) Also, I've just discovered that I can use the command expand-abbrev, or `C-x a e', to expand abbreviations, and then add the suffix. Doing things this way works perfectly, and I guess is the way we are expected to add suffixes. So these problems only occur when using the abbrev-prefix-mark outside it's expected use, so can probably be ignored :) Paul