[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tumme and keyboard macros.

From: Mathias Dahl
Subject: Re: tumme and keyboard macros.
Date: Tue, 25 Jul 2006 18:30:31 +0200

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
 (interactive "p")
 (let (pos (steps (or arg 1)))
   (dotimes (i steps)
     (if (save-excursion
           (while (and (not (eobp))
                       (not (tumme-image-at-point-p)))
           (setq pos (point))
         (goto-char pos)
       (error "No more images"))))
 (when tumme-track-movement


reply via email to

[Prev in Thread] Current Thread [Next in Thread]