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

* Re: List of possible coding systems
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2003-02-11 22:25 UTC (permalink / raw)
  Cc: emacs-devel

    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 have no objections in principle.  What does Handa think?

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

* Re: List of possible coding systems
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Kenichi Handa @ 2003-02-12  0:09 UTC (permalink / raw)
  Cc: emacs-devel

In article <200302102220.h1AMKNE23788@rum.cs.yale.edu>, "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu> writes:

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

I think it's a good idea.  In select-safe-coding-system, now
one can select a coding system not listed.  So, removing
them won't cause a big problem.

If there's no objection, could you please install it?

---
Ken'ichi HANDA
handa@m17n.org


> 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



> _______________________________________________
> Emacs-devel mailing list
> Emacs-devel@gnu.org
> http://mail.gnu.org/mailman/listinfo/emacs-devel

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