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 09:47:00 -0700 Organization: http://groups.google.com Message-ID: <1128530820.718199.143450@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> <1128523014.943427.204090@g49g2000cwa.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1128531189 21392 80.91.229.2 (5 Oct 2005 16:53:09 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Oct 2005 16:53:09 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 05 18:53:02 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1ENCTQ-0004ES-Oa for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 18:50:33 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ENCTQ-00019A-0M for geh-help-gnu-emacs@m.gmane.org; Wed, 05 Oct 2005 12:50:32 -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: 24 Original-NNTP-Posting-Host: 137.195.21.216 Original-X-Trace: posting.google.com 1128530826 31786 127.0.0.1 (5 Oct 2005 16:47:06 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 5 Oct 2005 16:47:06 +0000 (UTC) In-Reply-To: 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:134375 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:29950 Archived-At: thanks Johan, I had already read the documentation about this list... but my lisp skills are weak and it seems that buffer-undo-list can contain many different types of elements, namely an element can be of the type: position (beg . end) (text . position) (t high . low) (nil property value beg . end) (put-text-property beg end property value) (marker . adjustment) nil how can i get the first element from the list, and once i have it test which type it is, reference it's components and delete it from the list if need be. it doesn't seem to record the operation that was performed... but the object type (text . position) is the important one... i want to check if the element is of this type, and if it is, then i want to be able to do more checks on the position part before proceeding.