From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#1723: 23.0.60; Odd behaviour with #'check-coding-systems-region Date: Sun, 28 Dec 2008 17:20:58 +0000 Message-ID: <18775.46458.207909.501459@parhasard.net> Reply-To: Aidan Kehoe , 1723@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1230486230 7284 80.91.229.12 (28 Dec 2008 17:43:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 28 Dec 2008 17:43:50 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 28 18:44:56 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LGzh1-0004ML-9o for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 18:44:47 +0100 Original-Received: from localhost ([127.0.0.1]:59343 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGzfn-0000Xe-Ik for geb-bug-gnu-emacs@m.gmane.org; Sun, 28 Dec 2008 12:43:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LGzfk-0000X7-0q for bug-gnu-emacs@gnu.org; Sun, 28 Dec 2008 12:43:28 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LGzfg-0000Wn-Bm for bug-gnu-emacs@gnu.org; Sun, 28 Dec 2008 12:43:26 -0500 Original-Received: from [199.232.76.173] (port=59884 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LGzfg-0000Wj-9V for bug-gnu-emacs@gnu.org; Sun, 28 Dec 2008 12:43:24 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:34389) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LGzff-0003iX-G2 for bug-gnu-emacs@gnu.org; Sun, 28 Dec 2008 12:43:23 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBSHhLhh024160; Sun, 28 Dec 2008 09:43:21 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mBSHU3oS020523; Sun, 28 Dec 2008 09:30:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Aidan Kehoe Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 28 Dec 2008 17:30:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 1723 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123048486119191 (code B ref -1); Sun, 28 Dec 2008 17:30:03 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 28 Dec 2008 17:21:01 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBSHKtSl019185 for ; Sun, 28 Dec 2008 09:20:58 -0800 Original-Received: from mail.gnu.org ([199.232.76.166]:42631 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LGzIx-0005aW-H8 for emacs-pretest-bug@gnu.org; Sun, 28 Dec 2008 12:19:55 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LGzJr-0001ag-AM for emacs-pretest-bug@gnu.org; Sun, 28 Dec 2008 12:20:54 -0500 Original-Received: from daedalus.ipv4.asclepian.ie ([213.133.100.226]:56613 helo=daedalus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LGzJq-0001ZM-RY for emacs-pretest-bug@gnu.org; Sun, 28 Dec 2008 12:20:51 -0500 Original-Received: by daedalus.asclepian.ie (Postfix, from userid 1002) id D0BACB839; Sun, 28 Dec 2008 17:21:03 +0000 (GMT) X-Mailer: VM 8.0.12-devo-585 under 21.5 (beta28) "fuki" 69a1eda3da06+ XEmacs Lucid (i386-apple-darwin8.11.1) X-NS5-file-as-sent: t X-Echelon-distraction: arrangements COSCO cypherpunk colonel constitution David John Oates X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 28 Dec 2008 12:43:26 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:23536 gmane.emacs.pretest.bugs:23563 Archived-At: Hi! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing l= ist. Please describe exactly what actions triggered the bug and the precise symptoms of the bug: The check-coding-systems-region docstring says this:=20 (check-coding-systems-region start end coding-system-list) =20 Check if the region is encodable by coding systems. =20 start and end are buffer positions specifying the region. coding-system-list is a list of coding systems to check. =20 The value is an alist ((CODING-SYSTEM POS0 POS1 ...) ...), where CODING-SYSTEM is a member of coding-system-list and can't encode the whole region, POS0, POS1, ... are buffer positions where non-encodable characters are found. =20 If all coding systems in coding-system-list can encode the region, the value is nil. [...] It is unclear to me what "value" means there. My provisional assumption was that it meant "return value", but that doesn't reflect the behaviour of the function: (with-temp-buffer (insert "a") (check-coding-systems-region (point-min)= (point-max) '(iso-8859-1))) =3D> t ;; That would have been nil, not t, were my assumption correct.=20 =20 (with-temp-buffer (insert "\u20ac") (check-coding-systems-region (point= -min) (point-max) '(iso-8859-1))) =3D> ((iso-8859-1 1)) Is the docstring wrong? Is the behaviour wrong? Is my understanding of th= e docstring wrong? Whichever way, something needs to be fixed, I am a generally- and technically-literate native speaker of English and if I ha= ve misunderstood it, other people will too.=20 A pre-emptive happy New Year to you all,=20 Aidan In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, NS apple-appkit-824.48) of 2008-12-27 on bonbon Windowing system distributor `Apple', version 97.112.112.108.101.45.97.11= 2.112.107.105.116.45.56.50.52.46.52.56 configured using `configure '--with-ns' '--enable-asserts' '--enable-mai= ntainer-mode' '--enable-cocoa-experimental-ctrl-g' '--with-xpm' '--with-j= peg' '--with-tiff' '--with-png' 'LDFLAGS=3D-L/opt/local/lib -L/usr/X11R6/= lib -L/usr/local/lib' 'CPPFLAGS=3D-I/opt/local/include -I/usr/X11R6/inclu= de -I/usr/local/include'' 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: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-e C-j C-p C-p C-e C-b C-b C-p C-p=20 M-4 SPC C-a C-k ? \ u 2 0 a c C-a C-d " C-e " C-j C-n=20 C-e C-b C-b C-b C-k ( i s o - 8 8 5 9 - 1 ) ) C-j C-p=20 C-p C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-d C-d C-d C-d C-d C-d C-d C-d C-d=20 C-d C-d C-d SPC C-b C-p C-a C-p C-k C-n C-n C-e C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b C-b=20 C-b SPC C-y C-e C-j C-x o=20 C-x b f d a s f d s a f d a s : C-g=20 M-4 SPC =20 C-x o C-p C-p C-p C-p C-p C-p C-e C-n C-e C-j C-p C-d=20 C-e C-a C-k C-x o C-y C-x o C-n C-n C-n=20 C-n C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f C-f=20 C-f C-f C-f C-f C-d C-d C-d C-d ( p o i n t - m i o=20 n n ) C-a C-k C-x o =20 : C-y =20 C-b C-u C-x =3D C-x C-o C-x o =20 C-x 1 C-r f o n t C-s C-s C-r C-r C-p C-p C-p C-p C-p=20 C-p C-p C-x b * s c x r e p=20 o r t - e m a c s - b u g Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Type C-x 1 to delete the help window, C-M-v to scroll help. Mark set Quit Mark set ((iso-8859-1 1)) Type C-x 4 C-o RET to restore the other window. Char: =E2=82=AC (8364, #o20254, #x20ac, file ...) point=3D1 of 1 (0%) col= umn=3D0 Mark saved where search started --=20 =C2=BFD=C3=B3nde estar=C3=A1 ahora mi sobrino Yoghurtu Ngh=C3=A9, que tuv= o que huir precipitadamente de la aldea por culpa de la escasez de rinocerontes?