unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Shug Boabby" <Shug.Boabby@gmail.com>
Subject: Re: undo custom delete
Date: 5 Oct 2005 09:47:00 -0700	[thread overview]
Message-ID: <1128530820.718199.143450@g49g2000cwa.googlegroups.com> (raw)
In-Reply-To: <yoijll18xabx.fsf@linus003.dd.chalmers.se>

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.

  reply	other threads:[~2005-10-05 16:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-04 16:03 undo custom delete Shug Boabby
2005-10-04 17:29 ` rgb
2005-10-05  9:08   ` Shug Boabby
2005-10-05 14:23     ` rgb
2005-10-05 14:36       ` Shug Boabby
2005-10-05 15:17         ` Johan Bockgård
2005-10-05 16:47           ` Shug Boabby [this message]
2005-10-05 17:49             ` Johan Bockgård

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=1128530820.718199.143450@g49g2000cwa.googlegroups.com \
    --to=shug.boabby@gmail.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).