From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Mathias Dahl" Newsgroups: gmane.emacs.devel Subject: Re: tumme and keyboard macros. Date: Tue, 25 Jul 2006 18:30:31 +0200 Message-ID: <7dbe73ed0607250930h2accc2d7k3f4dae902e234491@mail.gmail.com> References: <87y7ui9f39.fsf@escpc40.esc.rl.ac.uk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1153845065 2444 80.91.229.2 (25 Jul 2006 16:31:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2006 16:31:05 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 25 18:31:02 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G5Pnz-00054x-RG for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2006 18:30:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G5Pnz-00065i-7c for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2006 12:30:47 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G5Pnn-00065S-Jh for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:30:35 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G5Pnl-00064u-5s for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:30:34 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G5Pnl-00064r-0Y for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:30:33 -0400 Original-Received: from [66.249.92.170] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G5Pp6-0005oL-I2 for emacs-devel@gnu.org; Tue, 25 Jul 2006 12:31:56 -0400 Original-Received: by ug-out-1314.google.com with SMTP id u2so441676uge for ; Tue, 25 Jul 2006 09:30:31 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=F6LM7/IOYISYqnQ9d7Qo2nHDMiLa4XsNZStfnn3I3nNOR4lZFyOVNGFcUOfo+jexTOg8jvtPYL1cXz1Cf4RbgT/uuQPkl/clN6f/x5nVY4oIEBGr0S5lGeiK7DBIEiBkxJIRLg9hXgfEAXLDSZiWTHuzbG5+2XLJAeRbzscy6IU= Original-Received: by 10.78.140.17 with SMTP id n17mr2416675hud; Tue, 25 Jul 2006 09:30:31 -0700 (PDT) Original-Received: by 10.78.107.10 with HTTP; Tue, 25 Jul 2006 09:30:31 -0700 (PDT) Original-To: "Matt Hodges" In-Reply-To: <87y7ui9f39.fsf@escpc40.esc.rl.ac.uk> Content-Disposition: inline X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57619 Archived-At: > 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