unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Mathias Dahl" <mathias.dahl@gmail.com>
To: "David Kastrup" <dak@gnu.org>
Cc: Chong Yidong <cyd@stupidchicken.com>, emacs-devel@gnu.org
Subject: Re: Image-mode enhancements (post-release)
Date: Wed, 23 May 2007 21:53:39 +0200	[thread overview]
Message-ID: <7dbe73ed0705231253l73421d01g1e8d6f2f4a3afe6d@mail.gmail.com> (raw)
In-Reply-To: <85veej74x1.fsf@lola.goethe.zz>

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

  parent reply	other threads:[~2007-05-23 19:53 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-23 17:54 Image-mode enhancements (post-release) Chong Yidong
2007-05-23 18:47 ` David Kastrup
2007-05-23 19:48   ` Chong Yidong
2007-05-23 19:53   ` Mathias Dahl [this message]
2007-05-23 23:46   ` Richard Stallman
2007-05-24  6:57     ` David Kastrup
2007-05-23 22:44 ` Kevin Ryde

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=7dbe73ed0705231253l73421d01g1e8d6f2f4a3afe6d@mail.gmail.com \
    --to=mathias.dahl@gmail.com \
    --cc=cyd@stupidchicken.com \
    --cc=dak@gnu.org \
    --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).