unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Joseph Brenner <doom@kzsu.stanford.edu>
Cc: 4869@emacsbugs.donarmstrong.com
Subject: bug#4869: 23.1.50; weak documentation of prefer-coding-system
Date: Fri, 06 Nov 2009 03:47:28 +0200	[thread overview]
Message-ID: <87r5sce70b.fsf@mail.jurta.org> (raw)
In-Reply-To: <87y6mmc79m.fsf@kzsu.stanford.edu> (Joseph Brenner's message of "Wed, 04 Nov 2009 13:25:09 -0800")

> The function prefer-coding-system does not explain if the CODING-SYSTEM
> argument must be a symbol or a string (or either).
>
> Without seeing a code example, a user might try using a quoted string:
>
>    (prefer-coding-system "utf-8")
>
> In which case, the error message is very confusing (this makes it sound
> as though utf-8 is not supported):
>
>    error: Invalid coding system `utf-8'
>
> At a minimum, the documentation should be made more explicit, and I
> would strongly suggest adding a code example:
>
>    (prefer-coding-system 'utf-8)

Why not allow both?  Some MULE functions allow a symbol and a string.

-- 
Juri Linkov
http://www.jurta.org/emacs/





  reply	other threads:[~2009-11-06  1:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-04 21:25 bug#4869: 23.1.50; weak documentation of prefer-coding-system Joseph Brenner
2009-11-06  1:47 ` Juri Linkov [this message]
2009-11-06  2:50   ` Lennart Borgman
2009-11-06  8:41     ` Eli Zaretskii
2011-07-13 14:34 ` Lars Magne Ingebrigtsen

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=87r5sce70b.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=4869@emacsbugs.donarmstrong.com \
    --cc=doom@kzsu.stanford.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.
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).