From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.help Subject: Re: Cursor at end of region pasted in Date: Fri, 20 Feb 2004 17:01:01 +0100 Organization: Dept of Numerical Analysis and Computer Science, KTH Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <340bc066.0402200054.7e63d9c0@posting.google.com> <87llmykpjs.fld@barrow.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1077294252 32320 80.91.224.253 (20 Feb 2004 16:24:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Feb 2004 16:24:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 20 17:23:53 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AuDRL-0005ym-00 for ; Fri, 20 Feb 2004 17:23:51 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1AuDLC-0005k8-P0 for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Feb 2004 11:17:26 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!luth.se!inn.nada.kth.se!not-for-mail Original-Newsgroups: comp.emacs,gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: fnatte.nada.kth.se Original-X-Trace: inn.nada.kth.se 1077292869 26217 130.237.226.103 (20 Feb 2004 16:01:09 GMT) Original-X-Complaints-To: usenet@inn.nada.kth.se Original-NNTP-Posting-Date: Fri, 20 Feb 2004 16:01:09 +0000 (UTC) User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) Cancel-Lock: sha1:GVgAUd2KSh8cm4uhhIddkZVK9c4= Original-Xref: shelby.stanford.edu comp.emacs:83354 gnu.emacs.help:121075 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:17026 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17026 Stefan Monnier writes: >>> > (goto-char (1+ (point))) >>> Aka (forward-char -1) >> That would surprise me. > > Ahh... nitpicker! forward-char also signals errors on out of range inputs, which goto-char doesn't. Hence workarounds like this: (defsubst imap-forward () (or (eobp) (forward-char)))