unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Stefan Monnier <monnier@iro.umontreal.ca>, emacs-devel@gnu.org
Subject: Re: Putting auto-image-file-mode in Options menu
Date: Mon, 14 Mar 2005 11:21:36 +0100	[thread overview]
Message-ID: <x51xaiplxr.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87ll8qap2h.fsf@jurta.org> (Juri Linkov's message of "Mon, 14 Mar 2005 03:23:02 +0200")

Juri Linkov <juri@jurta.org> writes:

> Stefan Monnier <monnier@iro.umontreal.ca> writes:
>>> There is already "Automatic File De/compression" menu item
>>> for auto-compression-mode in the Options menu, but no menu item
>>> for auto-image-file-mode.  This looks like an unintentional omission.
>>
>> I think it's omitted because it's a very rarely used feature.
>
> Indeed, auto-image-file-mode is useful only for viewing images.
> OTOH, editing image files as plain text in Emacs is a rare
> operation too.  And even with auto-image-file-mode set to t,
> editing is possible after visiting them with find-file-literally.
> With all this said, I have a question: is there any reason not
> to turn auto-image-file-mode on by default?

If you are working through a slow X connection, accidentally visiting
an image file could be a very expensive mistake.  In the past,
displaying an image that was overtall could really confuse Emacs.
This has become much better recently, but I don't know how the
situation is with overwide images.

Anyway, there are ASCII-based image file formats like ASCII PBM, PGM,
PPM, PAM and XBM and XPM.  Much more often than not, when I open such
files with Emacs, I really don't want to see the picture, but the
source text (to see comments, assignment of colors and palette, ranges
and so on).  And using find-file-literally (even if we provided it in
the menus, where it currently isn't) does not cater overly gracefully
for the line endings in those files.

> I would like to ask the same question for auto-compression-mode too.
> What is the reason not to turn it on by default?  How often people
> visit compressed files for editing without uncompressing?

I don't know how well auto-compression-mode deals with things like
missing compression commands.  If it fails gracefully, enabling it by
default should not do much harm.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2005-03-14 10:21 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-13  2:14 Putting auto-image-file-mode in Options menu Juri Linkov
2005-03-13 13:32 ` Stefan Monnier
2005-03-14  1:23   ` Juri Linkov
2005-03-14 10:21     ` David Kastrup [this message]
2005-03-15 13:18       ` Juri Linkov
2005-03-15 18:39       ` Richard Stallman
2005-03-16 17:55         ` Juri Linkov
2005-03-20  0:22           ` Richard Stallman
2005-03-20  0:54             ` David Kastrup
2005-03-20 18:01               ` Richard Stallman
2005-03-20 18:22                 ` David Kastrup
2005-03-21 17:30                   ` Richard Stallman
2005-03-20 21:47             ` Juri Linkov
2005-03-21 17:29               ` Richard Stallman
2005-03-27  1:39                 ` Miles Bader
2005-03-28 16:25                   ` Richard Stallman
2005-03-28 20:44                     ` Miles Bader
2005-03-28 21:37                       ` Eli Zaretskii
2005-03-29  3:00                         ` Richard Stallman
2005-03-29  3:01                       ` Richard Stallman
2005-03-22 20:43             ` Juri Linkov
2005-03-23  6:21               ` Richard Stallman
2005-03-23 20:48                 ` Juri Linkov
2005-03-25  6:43                   ` Richard Stallman
2005-03-18  0:37         ` Miles Bader
2005-03-14 13:07     ` Stefan Monnier
2005-03-15 13:19       ` Juri Linkov
2005-03-15 14:41         ` Stefan
2005-03-15 17:27           ` Juri Linkov
2005-03-15 18:39     ` Richard Stallman
2005-03-16 17:10       ` Kevin Rodgers
2005-03-17 23:01         ` Richard Stallman
2005-03-17 23:21           ` Stefan Monnier
2005-03-18 18:20             ` Richard Stallman
2005-03-27 23:18               ` auto-compression-mode (was: Putting auto-image-file-mode in Options menu) Juri Linkov
2005-03-28 22:53                 ` Richard Stallman
2005-03-14  3:00 ` Putting auto-image-file-mode in Options menu Richard Stallman

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=x51xaiplxr.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).