From doom@kzsu.stanford.edu Wed Nov 4 14:04:29 2009 Received: (at submit) by emacsbugs.donarmstrong.com; 4 Nov 2009 22:04:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA,MURPHY_DRUGS_REL8 autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA4M4Sme002992 for ; Wed, 4 Nov 2009 14:04:29 -0800 Received: from mail.gnu.org ([199.232.76.166]:54666 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1N5nxr-0003Si-II for emacs-pretest-bug@gnu.org; Wed, 04 Nov 2009 17:04:27 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1N5nxl-0006xw-0H for emacs-pretest-bug@gnu.org; Wed, 04 Nov 2009 17:04:27 -0500 Received: from m208-84.dsl.rawbw.com ([198.144.208.84]:40747 helo=localhost) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N5nxk-0006xh-3p for emacs-pretest-bug@gnu.org; Wed, 04 Nov 2009 17:04:20 -0500 Received: by localhost (Postfix, from userid 1000) id D3E6E6900AA; Wed, 4 Nov 2009 13:25:09 -0800 (PST) From: Joseph Brenner To: emacs-pretest-bug@gnu.org Subject: 23.1.50; weak documentation of prefer-coding-system Date: Wed, 04 Nov 2009 13:25:09 -0800 Message-ID: <87y6mmc79m.fsf@kzsu.stanford.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Greylist: delayed 2374 seconds by postgrey-1.27 at monty-python; Wed, 04 Nov 2009 17:04:19 EST 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) In GNU Emacs 23.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1) of 2009-10-22 on fineline Windowing system distributor `The X.Org Foundation', version 11.0.10600000 configured using `configure '--prefix' '/usr/local/emacs/cvs-102209'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: shell-dirtrack-mode: t display-time-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: g f C-x 1 s C-p C-p C-p C-p SPC SPC C-p C-p o C-n C-n + P i c k C-n R P i r SPC c SPC SPC C-p C-p f o C-n C-x 2 C-x o M-x s h e l l k 3 b SPC & C-x 0 C-x 2 ^ ^ ^ g C-n f g f g C-n o C-p s C-n C-p C-p C-p C-p C-p C-p C-p C-p C-p o g o C-n C-n C-n C-n C-n o C-x o g ^ g ^ g C-x 0 g C-x 5 0 C-x C-b C-x o C-n C-n C-n C-n C-n C-n C-n C-n < C-s n o t e s - C-a f > C-n C-n C-y C-a C-k C-y C-x C-x C-p C-o C-o D r e w SPC A d m a a m s SPC n u d g e s SPC m e SPC t o SPC d o SPC a SPC b u f g SPC r e p o r t : C-x C-s C-x C-p M-x d o o m SPC r e v SPC C-x o C-x C-g C-a C-n C-x C-o C-x C-s C-n C-l C-n C-n C-n C-n C-k C-n C-k C-k C-k C-x C-o C-x C-s C-n C-n C-n C-n C-n M-f M-b M-h v M-h f C-SPC M-f M-f M-f M-w C-x C-p M-h i u u u s C-y u u u C-n C-n C-n C-n C-n C-n C-a s s s C-x 0 C-a M-x r e p o r t SPC e m SPC b SPC Recent messages: Searching subfile elisp-2... Searching subfile elisp-3... Searching subfile elisp-4... Searching subfile elisp-5... Searching subfile elisp-6... Searching subfile elisp-7... Searching subfile elisp-8... Searching subfile elisp-9... Searching subfile elisp-10... Searching subfile elisp-11... Info-search: Search failed: "prefer-coding-system" Load-path shadows: /home/doom/End/Cave/DesktopAutosave/lib/emacs/desktop-recover-setup hides /home/doom/lib/emacs/Dots/desktop-recover-setup /home/doom/End/Cave/DiredExternalApps/lib/emacs/image-dired hides /home/doom/lib/emacs/image-dired /home/doom/End/Cave/DiredExternalApps/lib/emacs/dired-external-apps hides /home/doom/lib/emacs/dired-external-apps /home/doom/lib/emacs/Dots/setup-colors-dark hides /home/doom/lib/emacs/setup-colors-dark /usr/local/emacs/cedet-1.0pre6/speedbar/speedbar hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/speedbar /home/doom/lib/emacs/Dots/strokes hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/strokes /usr/local/emacs/cedet-1.0pre6/speedbar/sb-image hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/sb-image /home/doom/End/Cave/DiredExternalApps/lib/emacs/image-dired hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/image-dired /usr/local/emacs/cedet-1.0pre6/common/ezimage hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/ezimage /usr/local/emacs/cedet-1.0pre6/speedbar/dframe hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/dframe /home/doom/End/Cave/DesktopAutosave/lib/emacs/desktop hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/desktop /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-xface hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-xface /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-folder hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-folder /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-comp hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-comp /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-utils hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-utils /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-thread hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-thread /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-speed hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-speed /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-show hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-show /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-seq hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-seq /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-search hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-search /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-print hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-print /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-mime hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-mime /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-limit hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-limit /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-letter hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-letter /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-tool-bar hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-tool-bar /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-inc hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-inc /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-junk hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-junk /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-funcs hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-funcs /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-scan hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-scan /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-alias hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-alias /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-e hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-e /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-buffers hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-buffers /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-loaddefs hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-loaddefs /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-gnus hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-gnus /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-compat hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-compat /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-acros hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-acros /usr/local/emacs/cvs-032909/share/emacs/23.0.91/lisp/mh-e/mh-identity hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/mh-e/mh-identity /home/doom/lib/emacs/Dots/gnus-setup hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/gnus/gnus-setup /usr/local/emacs/cedet-1.0pre6/eieio/eieio-base hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio-base /usr/local/emacs/cedet-1.0pre6/eieio/eieio-speedbar hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio-speedbar /usr/local/emacs/cedet-1.0pre6/eieio/eieio-opt hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio-opt /usr/local/emacs/cedet-1.0pre6/eieio/eieio-comp hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio-comp /usr/local/emacs/cedet-1.0pre6/eieio/eieio hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio /usr/local/emacs/cedet-1.0pre6/eieio/eieio-datadebug hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio-datadebug /usr/local/emacs/cedet-1.0pre6/eieio/chart hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/chart /usr/local/emacs/cedet-1.0pre6/eieio/eieio-custom hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/emacs-lisp/eieio-custom /usr/local/emacs/cedet-1.0pre6/srecode/srecode hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/srecode /usr/local/emacs/cedet-1.0pre6/common/cedet-files hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/cedet-files /usr/local/emacs/cedet-1.0pre6/common/cedet-cscope hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/cedet-cscope /usr/local/emacs/cedet-1.0pre6/semantic/semantic hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/semantic /usr/local/emacs/cedet-1.0pre6/common/pulse hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/pulse /usr/local/emacs/cedet-1.0pre6/common/mode-local hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/mode-local /usr/local/emacs/cedet-1.0pre6/common/inversion hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/inversion /usr/local/emacs/cedet-1.0pre6/ede/ede hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/ede /usr/local/emacs/cedet-1.0pre6/common/data-debug hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/data-debug /usr/local/emacs/cedet-1.0pre6/common/cedet hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/cedet /usr/local/emacs/cedet-1.0pre6/common/cedet-idutils hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/cedet-idutils /usr/local/emacs/cedet-1.0pre6/common/cedet-global hides /usr/local/emacs/cvs-102209/share/emacs/23.1.50/lisp/cedet/cedet-global Features: (shadow mail-extr message ecomplete rfc822 nnheader gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug eieio-opt help-mode view image-mode vc vc-dispatcher ispell sh-script nroff-mode sb-info info vc-rcs thingatpt desktop-recover newcomment rect mule-util semantic-tag-file semantic-tag-write eldoc semanticdb-typecache semanticdb-find semanticdb-ref executable semantic-c semantic-dep semantic-gcc semantic-c-by semantic-lex-spp css-mode mmm-sample mmm-mason mmm-mode mmm-univ mmm-class mmm-region mmm-utils semantic-html html-mode jsp-html-helper-mode asp-html-helper-mode php-html-helper-mode html-helper-mode tempo cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs semantic-decorate-mode semantic-decorate pulse vc-git semanticdb-file semantic-edit semantic-el semantic-bovine bovine-debug semantic-debug multi-isearch ede-dired mh-utils mh-folder desktop doom-fineline ansi-color registers-defined strokes macroman doom-filters find_and_replace doom-mh mh-comp sendmail mh-scan mh-gnus mml mml-sec mm-view smime password-cache dig mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 ietf-drums qp mm-util mail-prsvr gnus-util netrc time-date mh-e mh-compat mailabbrev mh-acros mh-buffers mh-loaddefs mhe-setup fugly-keystroke-macros dired-imagery-doomery-keystroke-macros image-dired thinknow picture doomfile doomfiles-hacking-setup caving-setup w3m-load mmm-auto mmm-vars mmm-compat generic-x mmm-setup html-setup senator which-func semantic-imenu semantic-sb imenu semantic-mru-bookmark semanticdb-mode semantic-idle ede-simple cedet-files ede-linux ede-emacs ede-cpp-root cedet cedet-contrib-load contrib-loaddefs cogre-load cogre-loaddefs speedbar-load speedbar-loaddefs ede-load ede-loaddefs ede-speedbar ede-files ede eieio-speedbar semantic-ia-sb semantic-analyze semantic-scope semantic-analyze-fcn semantic-sort semanticdb-el semanticdb-search semantic-find semanticdb semantic-ctxt semantic-format semantic-util-modes semantic-util semantic semantic-lex semantic-tag working fame speedbar sb-image ezimage dframe assoc eieio-custom ede-source eieio-base srecode-load srecode srecode-loaddefs semantic-load semantic-fw semantic-loaddefs mode-local eieio-load eieio-loaddefs cedet-load cedet-compat cedet-loaddefs eieio inversion apache-dev sgml-mode sepia edmacro kmacro sepia-cpan sepia-ido ido sepia-tree tree-widget sepia-w3m w3m-perldoc w3m browse-url timezone w3m-hist w3m-e22 wid-edit w3m-ccl ccl w3m-fsf w3m-favicon w3m-image w3m-proc w3m-util gud easy-mmode cperl-mode perlnow easymenu template perlnow-wrapper perl-setup elisp-hacking-setup doom-print printer-setup shell-setup perlups derived byte-opt bytecomp byte-compile jka-compr find-func timeclock-x timeclock timeclock-setup junk-o-doom text-setup live-dangerously datestamps shell comint ring dired-external-apps diredonsequences dired-setup info-to-registers basic-keymap-changes paracide redroot simple-color-change setup-colors-dark dired-x dired-aux dired regexp-opt paren uniquify advice help-fns advice-preload server time emacs-setup cl cl-19 load-path-setup tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind gtk x-toolkit x multi-tty emacs) From juri@jurta.org Thu Nov 5 18:27:57 2009 Received: (at 4869) by emacsbugs.donarmstrong.com; 6 Nov 2009 02:27:57 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.2 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mx2.starman.ee (smtp-out2.starman.ee [85.253.0.4]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA62RtFR015999 for <4869@emacsbugs.donarmstrong.com>; Thu, 5 Nov 2009 18:27:57 -0800 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Received: from mail.starman.ee (62.65.208.152.cable.starman.ee [62.65.208.152]) by mx2.starman.ee (Postfix) with ESMTP id 6EC623F4314; Fri, 6 Nov 2009 04:27:49 +0200 (EET) From: Juri Linkov To: Joseph Brenner Cc: 4869@debbugs.gnu.org Subject: Re: bug#4869: 23.1.50; weak documentation of prefer-coding-system Organization: JURTA References: <87y6mmc79m.fsf@kzsu.stanford.edu> Date: Fri, 06 Nov 2009 03:47:28 +0200 In-Reply-To: <87y6mmc79m.fsf@kzsu.stanford.edu> (Joseph Brenner's message of "Wed, 04 Nov 2009 13:25:09 -0800") Message-ID: <87r5sce70b.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii > 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/ From lennart.borgman@gmail.com Thu Nov 5 18:50:30 2009 Received: (at 4869) by emacsbugs.donarmstrong.com; 6 Nov 2009 02:50:30 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.3 required=4.0 tests=AWL,FOURLA,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-yx0-f190.google.com (mail-yx0-f190.google.com [209.85.210.190]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA62oSuh019184 for <4869@emacsbugs.donarmstrong.com>; Thu, 5 Nov 2009 18:50:29 -0800 Received: by yxe28 with SMTP id 28so596695yxe.19 for <4869@emacsbugs.donarmstrong.com>; Thu, 05 Nov 2009 18:50:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=cYLTTyL3rEZmohapvCK2FzTDiY8LJ6HQGpVvvkhZNBY=; b=dADsuE/USqLnEOHfnlozVRltSv2rmB3hvBJB0TRrvNczLa181jcetW533XS1jAhths +dltDCfEktgbSuBK8PzD9riCe+WquFkqNxrlrdWmyNx+74DUR4ANAHP5IOvLo0GHsas7 Ty3QiprkahXnby98sMZ7dts7ZqeTdj2q9nrb4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=r5o27JUndvXb8kKyAQ3UrkfJgJvWM6JjucOO4scYyDZP9oP8S+j2IHtTJ3vMyugk7u zYOCnHA7WvBbLbBPUoSGUOG7FTCo0Q/QPHmvQRehKcCmUDwhqByXf/bjXEMnWuM7Y7qp YhpWo7/GtsXnGAdWHOehplZGNCmSyWijgJmyA= MIME-Version: 1.0 Received: by 10.101.28.1 with SMTP id f1mr1049128anj.126.1257475823095; Thu, 05 Nov 2009 18:50:23 -0800 (PST) In-Reply-To: <87r5sce70b.fsf@mail.jurta.org> References: <87y6mmc79m.fsf@kzsu.stanford.edu> <87r5sce70b.fsf@mail.jurta.org> From: Lennart Borgman Date: Fri, 6 Nov 2009 03:50:03 +0100 Message-ID: Subject: Re: bug#4869: 23.1.50; weak documentation of prefer-coding-system To: Juri Linkov , 4869@debbugs.gnu.org Cc: Joseph Brenner Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Fri, Nov 6, 2009 at 2:47 AM, Juri Linkov wrote: >> 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: >> >> =C2=A0 =C2=A0(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): >> >> =C2=A0 =C2=A0error: Invalid coding system `utf-8' >> >> At a minimum, the documentation should be made more explicit, and I >> would strongly suggest adding a code example: >> >> =C2=A0 =C2=A0(prefer-coding-system 'utf-8) > > Why not allow both? =C2=A0Some MULE functions allow a symbol and a string= . Because it is at least a rudimentary type check? ;-) From eliz@gnu.org Fri Nov 6 00:42:03 2009 Received: (at 4869) by emacsbugs.donarmstrong.com; 6 Nov 2009 08:42:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-1.6 required=4.0 tests=AWL,FOURLA,GMAIL, HAS_BUG_NUMBER,RCVD_IN_NIX1 autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mtaout21.012.net.il (mtaout21.012.net.il [80.179.55.169]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nA68g1TP030076 for <4869@emacsbugs.donarmstrong.com>; Fri, 6 Nov 2009 00:42:03 -0800 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0KSO00C00IO25W00@a-mtaout21.012.net.il> for 4869@emacsbugs.donarmstrong.com; Fri, 06 Nov 2009 10:41:35 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.37.193]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KSO00BG3IT89330@a-mtaout21.012.net.il>; Fri, 06 Nov 2009 10:41:33 +0200 (IST) Date: Fri, 06 Nov 2009 10:41:42 +0200 From: Eli Zaretskii Subject: Re: bug#4869: 23.1.50; weak documentation of prefer-coding-system In-reply-to: X-012-Sender: halo1@inter.net.il To: Lennart Borgman , 4869@debbugs.gnu.org Cc: juri@jurta.org, doom@kzsu.stanford.edu Reply-to: Eli Zaretskii Message-id: <834op8avuh.fsf@gnu.org> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-transfer-encoding: 8BIT References: <87y6mmc79m.fsf@kzsu.stanford.edu> <87r5sce70b.fsf@mail.jurta.org> > From: Lennart Borgman > Date: Fri, 6 Nov 2009 03:50:03 +0100 > Cc: Joseph Brenner > > > Why not allow both?  Some MULE functions allow a symbol and a string. > > Because it is at least a rudimentary type check? ;-) There's no need for this type check because prefer-coding-system already checks its argument with coding-system-p, which is the full type check for coding systems. From rgm@gnu.org Mon Nov 9 18:27:36 2009 Received: (at control) by emacsbugs.donarmstrong.com; 10 Nov 2009 02:27:37 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.8 required=4.0 tests=AWL,ONEWORD autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAA2RZqr024665 for ; Mon, 9 Nov 2009 18:27:36 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1N7gSE-0001Vw-0Y; Mon, 09 Nov 2009 21:27:34 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19192.53141.924423.83698@fencepost.gnu.org> Date: Mon, 9 Nov 2009 21:27:33 -0500 From: Glenn Morris To: control Subject: control close 4851 close 4868 tags 4856 moreinfo severity 4869 minor retitle 4887 globalized-minor-modes in new fundamental mode buffers From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 10:35:02 2011 Received: (at control) by debbugs.gnu.org; 13 Jul 2011 14:35:02 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0Wj-0004lR-Bl for submit@debbugs.gnu.org; Wed, 13 Jul 2011 10:35:01 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0Wg-0004lC-GG for control@debbugs.gnu.org; Wed, 13 Jul 2011 10:34:59 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qh0WU-0001y8-Tl for control@debbugs.gnu.org; Wed, 13 Jul 2011 16:34:46 +0200 Date: Wed, 13 Jul 2011 16:34:46 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #4869 X-MailScanner-ID: 1Qh0WU-0001y8-Tl X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311172486.9803@Dee0Sv200Y1Xy7hiO0us0Q X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 4869 fixed close 4869 24.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jul 13 10:35:16 2011 Received: (at 4869) by debbugs.gnu.org; 13 Jul 2011 14:35:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0Wu-0004mR-4O for submit@debbugs.gnu.org; Wed, 13 Jul 2011 10:35:16 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qh0Wn-0004lP-Cz for 4869@debbugs.gnu.org; Wed, 13 Jul 2011 10:35:09 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qh0WZ-0001yN-UE; Wed, 13 Jul 2011 16:34:51 +0200 From: Lars Magne Ingebrigtsen To: Joseph Brenner Subject: Re: 23.1.50; weak documentation of prefer-coding-system In-Reply-To: <87y6mmc79m.fsf@kzsu.stanford.edu> (Joseph Brenner's message of "Wed, 04 Nov 2009 13:25:09 -0800") Date: Wed, 13 Jul 2011 16:34:42 +0200 Message-ID: References: <87y6mmc79m.fsf@kzsu.stanford.edu> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Talking Heads's _Remain In Light_: "Born Under Punches (The Heat Goes On)" X-Hashcash: 1:23:110713:4869@debbugs.gnu.org::Vh/rxb3vBsOXKwtE:000000000000000000000000000000000000000007CpG X-Hashcash: 1:23:110713:doom@kzsu.stanford.edu::iGiX+rQC3SzVI1tk:0000000000000000000000000000000000000008zp0 MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1Qh0WZ-0001yN-UE X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1311172492.1547@Mxgx+n1/Pjf7iPyceHLSMA X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 4869 Cc: 4869@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Joseph Brenner writes: > At a minimum, the documentation should be made more explicit, and I > would strongly suggest adding a code example: > > (prefer-coding-system 'utf-8) I've now added this example to Emacs 24. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From unknown Tue Jun 24 06:56:53 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 11 Aug 2011 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator