all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* List of possible coding systems
@ 2003-02-10 22:20 Stefan Monnier
  2003-02-11 22:25 ` Richard Stallman
  2003-02-12  0:09 ` Kenichi Handa
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Monnier @ 2003-02-10 22:20 UTC (permalink / raw)



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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-12  0:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-10 22:20 List of possible coding systems Stefan Monnier
2003-02-11 22:25 ` Richard Stallman
2003-02-12  0:09 ` Kenichi Handa

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.