From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: List of possible coding systems Date: Mon, 10 Feb 2003 17:20:23 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200302102220.h1AMKNE23788@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1044915770 27427 80.91.224.249 (10 Feb 2003 22:22:50 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 10 Feb 2003 22:22:50 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18iMK9-00078E-00 for ; Mon, 10 Feb 2003 23:22:49 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18iMVL-0001kv-00 for ; Mon, 10 Feb 2003 23:34:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iMIG-0005ZB-08 for emacs-devel@quimby.gnus.org; Mon, 10 Feb 2003 17:20:52 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18iMI5-0005TV-00 for emacs-devel@gnu.org; Mon, 10 Feb 2003 17:20:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18iMHy-0005FZ-00 for emacs-devel@gnu.org; Mon, 10 Feb 2003 17:20:36 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18iMHn-0005Dy-00 for emacs-devel@gnu.org; Mon, 10 Feb 2003 17:20:24 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.11.6/8.11.6) id h1AMKNE23788; Mon, 10 Feb 2003 17:20:23 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11547 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11547 How about the change below ? It removes `raw-text', `emacs-mule', and `no-conversion' from the list of possible coding-systems to choose from (when prompting the user during file-save) unless nothing else can be used. I've found that people tend to misunderstand what those things are and that such coding systems are only useful internally or when used from elisp, but not as the coding-system to use to save a given file. Any objection ? Stefan Index: international/mule-cmds.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/international/mule-cmds.el,v retrieving revision 1.221 diff -u -r1.221 mule-cmds.el --- international/mule-cmds.el 4 Feb 2003 13:09:38 -0000 1.221 +++ international/mule-cmds.el 10 Feb 2003 22:16:19 -0000 @@ -748,6 +746,14 @@ (eq 'coding-category-iso-8-else (coding-system-category elt))) (push elt l)))) + + ;; Remove raw-text, emacs-mule and no-conversion unless nothing + ;; else is available. + (setq codings + (or (delq 'raw-text + (delq 'emacs-mule + (delq 'no-conversion codings))) + '(raw-text emacs-mule no-conversion))) (let ((window-configuration (current-window-configuration))) (save-excursion