unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mathias Dahl" <mathias.dahl@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: tumme and keyboard macros.
Date: Tue, 25 Jul 2006 18:30:31 +0200	[thread overview]
Message-ID: <7dbe73ed0607250930h2accc2d7k3f4dae902e234491@mail.gmail.com> (raw)
In-Reply-To: <87y7ui9f39.fsf@escpc40.esc.rl.ac.uk>

> It might be useful for tumme-forward-char and tumme-backward-char
> (perhaps tumme-{forward/backward}-image would be better names?) to
> signal an error from the last and first thumbnails respectively.  This
> would make useful `C-u 0 C-x e' type execution of keyboard macros in
> *tumme* buffers.
>
> (Support for prefix args would be good for all the movement commands.)

I just commited a rename of those commands. Also, below is a new
version of `tumme-forward-image' with the changes you asked for.
Please try it out:

(defun tumme-forward-image (&optional arg)
  "Move to next image and display properties.
Optional prefix ARG says how many images to move; default is one
image."
  (interactive "p")
  (let (pos (steps (or arg 1)))
    (dotimes (i steps)
      (if (save-excursion
            (forward-char)
            (while (and (not (eobp))
                        (not (tumme-image-at-point-p)))
              (forward-char))
            (setq pos (point))
            (tumme-image-at-point-p))
          (goto-char pos)
        (error "No more images"))))
  (when tumme-track-movement
    (tumme-track-original-file))
  (tumme-display-thumb-properties))

/Mathias

  parent reply	other threads:[~2006-07-25 16:30 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25 10:03 tumme and keyboard macros Matt Hodges
2006-07-25 15:20 ` Mathias Dahl
2006-07-25 15:34   ` Mathias Dahl
2006-07-25 17:27     ` Matt Hodges
2006-07-25 16:30 ` Mathias Dahl [this message]
2006-07-26  6:28   ` Matt Hodges
2006-07-26  9:57     ` Mathias Dahl

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=7dbe73ed0607250930h2accc2d7k3f4dae902e234491@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --cc=emacs-devel@gnu.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).