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: Image-mode enhancements (post-release) Date: Wed, 23 May 2007 21:53:39 +0200 Message-ID: <7dbe73ed0705231253l73421d01g1e8d6f2f4a3afe6d@mail.gmail.com> References: <87lkff8ly6.fsf@stupidchicken.com> <85veej74x1.fsf@lola.goethe.zz> NNTP-Posting-Host: lo.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 1179950039 22511 80.91.229.12 (23 May 2007 19:53:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 May 2007 19:53:59 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: "David Kastrup" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 23 21:53:50 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hqwu5-0001je-32 for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 21:53:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqwu6-00046M-Ld for ged-emacs-devel@m.gmane.org; Wed, 23 May 2007 15:53:50 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hqwu3-000463-90 for emacs-devel@gnu.org; Wed, 23 May 2007 15:53:47 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hqwtz-00042Y-EA for emacs-devel@gnu.org; Wed, 23 May 2007 15:53:46 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hqwty-00042P-Vp for emacs-devel@gnu.org; Wed, 23 May 2007 15:53:43 -0400 Original-Received: from ug-out-1314.google.com ([66.249.92.172]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hqwty-0003vJ-Gt for emacs-devel@gnu.org; Wed, 23 May 2007 15:53:42 -0400 Original-Received: by ug-out-1314.google.com with SMTP id 34so714325ugf for ; Wed, 23 May 2007 12:53:40 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CEBR5CNen0Y967nlry3Fsiy9D9O+MapUs35Xhend9h0C3oc+H5OIN9zsBwaFFT9pg9pgv2f8DOh8dCEKKhmmX3rYe5uiPUT5552HnxG01DA0kte8GiJFkPHRheG5zim+4fMnmGF6ehB8glxLDZ9gSA5MidUMthVHPCPB88iS3c8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fJ21KG89Yusq58Qqg+Flv8SnJgWqPnKc72QlaHoGoBX7Z9nkSjm8sLn6HK0i+RBr1RkUysShWefNo0yJw7ckXXvLFYDX/RLh4w6ypaAceXbZc/QVSpvzUBOMolaCPZ30Q+59FQF0Yo8msy+98Y61Cail4rdASMc6JmqBXhHFPHw= Original-Received: by 10.78.137.7 with SMTP id k7mr277263hud.1179950019602; Wed, 23 May 2007 12:53:39 -0700 (PDT) Original-Received: by 10.78.75.13 with HTTP; Wed, 23 May 2007 12:53:39 -0700 (PDT) In-Reply-To: <85veej74x1.fsf@lola.goethe.zz> Content-Disposition: inline X-detected-kernel: Linux 2.4-2.6 (Google crawlbot) 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:71683 Archived-At: > > One other useful feature which is not currently implemented would be > > to resize the image to fit the Emacs window if it is too large, and > > to provide a way to toggle between the full-sized and window-fitted > > versions of the image (Firefox has a similar feature). > > tumme (or whatever it is called now) has a mode like that. And here it is: (defun image-dired-display-image (file &optional original-size) "Display image FILE in image buffer. Use this when you want to display the image, semi sized, in a new window. The image is sized to fit the display window (using a temporary file, don't worry). Because of this, it will not be as quick as opening it directly, but on most modern systems it should feel snappy enough. If optional argument ORIGINAL-SIZE is non-nil, display image in its original size." ... /Mathias