From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Shug Boabby" Newsgroups: gmane.emacs.help Subject: Re: undo custom delete Date: 5 Oct 2005 07:36:54 -0700 Organization: http://groups.google.com Message-ID: <1128523014.943427.204090@g49g2000cwa.googlegroups.com> References: <1128441829.624442.144850@o13g2000cwo.googlegroups.com> <1128446941.952911.272060@g49g2000cwa.googlegroups.com> <1128503329.733223.304600@g14g2000cwa.googlegroups.com> <1128522198.322768.196970@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1128523362 24073 80.91.229.6 (5 Oct 2005 14:42:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2005 14:42:42 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 16:42:35 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ENATb-00035f-00 for ; Wed, 05 Oct 2005 16:42:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENATb-0000Rn-6V for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 10:42:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g49g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 137.195.21.216 Original-X-Trace: posting.google.com 1128523020 26955 127.0.0.1 (5 Oct 2005 14:37:00 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Oct 2005 14:37:00 +0000 (UTC) In-Reply-To: <1128522198.322768.196970@o13g2000cwo.googlegroups.com> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-us) AppleWebKit/412.7 (KHTML, like Gecko) Safari/412.5,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g49g2000cwa.googlegroups.com; posting-host=137.195.21.216; posting-account=jQz-EQ0AAABiniXWq8YyRVQ60t_LIYwt Original-Xref: shelby.stanford.edu gnu.emacs.help:134366 Original-To: help-gnu-emacs@gnu.org 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:29941 Archived-At: and also, i'd have to ensure that the character deleted wasn't whitespace and that it was beside the last character deleted... or undo would undo not just the last word, but the last N deletes until it encounters whitespace! a pre command hook sounds like the way to do it. if anyone wants a little project to work on for a few hours, please be my guest! i'll try when i get time. could somebody please describe the buffer-undo-list in more detail to me... specifically, how do i tell which action was performed, where the action was performed, and if it was a deletion, what was deleted.