Gnus development mailing list
 help / color / mirror / Atom feed
From: Raja R Harinath <harinath@cs.umn.edu>
Subject: Prefer text/x-emacs-lisp to application/x-emacs-lisp?
Date: 04 Dec 2000 13:16:25 -0600	[thread overview]
Message-ID: <d9g0k4knee.fsf_-_@han.cs.umn.edu> (raw)
In-Reply-To: <87puj895pq.fsf@HSE-MTL-ppp64270.qc.sympatico.ca>

Hi,

Why doesn't Gnus use "text/x-emacs-lisp" by default when attaching .el
files.

I'm unclear about the distinction between application/foo and
text/foo.  But, to me, code that is meant to be read (e.g., postings
on gnu.emacs.source, or the automatic attachment of user settings by
reportbug) should be "text/x-emacs-lisp".  This way, the annoying
behaviour of Gnus while showing .el files will be avoided.  The
current behaviour of Gnus is painful since it assumes any attached
emacs lisp code is executable, and it presents the file inconveniently
-- in a different buffer that hides the *Article* buffer, rather than
inline.

In other words, is it an useful distinction to have two attachment
types for Emacs Lisp:

  text/x-emacs-lisp             Emacs Lisp code meant to be read, not
                                immediately executed.  Default
                                behaviour is to show inline,
                                preferably using emacs-lisp-mode.
                                This type is used by 'gnus-bug', and
                                as the default type for .el files.

  application/x-emacs-lisp      Code intended to be executed.
                                Default behaviour is the show "Worm"
                                warning, show code in a different
                                buffer, and if necessary, use a
                                sandbox to execute code.

- Hari
-- 
Raja R Harinath ------------------------------ harinath@cs.umn.edu
"When all else fails, read the instructions."      -- Cahn's Axiom
"Our policy is, when in doubt, do the right thing."   -- Roy L Ash



  reply	other threads:[~2000-12-04 19:16 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-05  5:45 Making Gnus more worm-safe Florian Weimer
2000-05-05  7:14 ` Pavel Janík ml.
2000-05-05  9:30   ` Florian Weimer
2000-05-05  7:23 ` William M. Perry
2000-05-05  9:39   ` Florian Weimer
2000-05-05 10:05     ` Kai Großjohann
2000-05-05 10:52       ` Florian Weimer
2000-05-05  8:21 ` Hrvoje Niksic
2000-05-05  9:10   ` Bjørn Mork
2000-05-05  9:33     ` Kai Großjohann
2000-05-05 10:14     ` Hrvoje Niksic
2000-05-05 11:05       ` Bjørn Mork
2000-05-05 11:52         ` Hrvoje Niksic
2000-05-05 18:07       ` Felix Lee
2000-05-05 19:28         ` Bruce Stephens
2000-05-05 20:54           ` Kai Großjohann
2000-05-06 19:26             ` Michael Harnois
2000-05-06 21:10               ` Kai Großjohann
2000-05-06  7:25         ` Florian Weimer
2000-05-05  9:40   ` Florian Weimer
2000-05-05 10:14     ` Hrvoje Niksic
2000-05-06  7:28       ` Florian Weimer
2000-05-06 10:41         ` Bud Rogers
2000-05-05 10:47 ` Per Abrahamsen
2000-05-05 14:11   ` Laura Conrad
2000-05-05 20:49   ` Laura Conrad
2000-05-08  0:15   ` Brian May
2000-05-08 13:57     ` Alan Shutko
2000-05-08 17:20     ` Florian Weimer
2000-05-08  6:48   ` Soeren Laursen
2000-12-04  4:21   ` Greg Stark
2000-12-04 19:16     ` Raja R Harinath [this message]
2000-12-05 11:28       ` Prefer text/x-emacs-lisp to application/x-emacs-lisp? Per Abrahamsen
2000-05-08 14:32 ` Making Gnus more worm-safe Toby Speight

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d9g0k4knee.fsf_-_@han.cs.umn.edu \
    --to=harinath@cs.umn.edu \
    /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.
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 NNTP newsgroup(s).