From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthieu Moy Newsgroups: gmane.emacs.bugs Subject: The function prin1 prints "..." at the end of a long list. Date: Tue, 15 Apr 2003 16:11:28 +0200 Sender: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050416101 1237 80.91.224.249 (15 Apr 2003 14:15:01 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 15 Apr 2003 14:15:01 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 15 16:14:52 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 195RD2-0000JO-00 for ; Tue, 15 Apr 2003 16:14:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195RDP-0001jc-01 for gnu-bug-gnu-emacs@m.gmane.org; Tue, 15 Apr 2003 10:15:15 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 195RDF-0001bH-00 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2003 10:15:05 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 195RD9-0001Mh-00 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2003 10:15:02 -0400 Original-Received: from beta.dmz-eu.st.com ([164.129.1.35]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 195RCr-0000WN-00 for bug-gnu-emacs@gnu.org; Tue, 15 Apr 2003 10:14:41 -0400 Original-Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with SMTP id 3580EDAC0 for ; Tue, 15 Apr 2003 14:14:39 +0000 (GMT) Original-Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 0) id 171A861A2; Tue, 15 Apr 2003 14:14:39 +0000 (GMT) Original-Received: from crx316.cro.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 9E4751848 for ; Tue, 15 Apr 2003 14:14:38 +0000 (GMT) Original-Received: from dais.cro.st.com (crx1286.cro.st.com [164.129.47.186]) id QAA14025 for ; Tue, 15 Apr 2003 16:18:32 +0200 (METDST) Original-Received: from crx753.crocrd (crx753 [164.129.45.53]) by dais.cro.st.com (8.11.6+Sun/8.11.6) with ESMTP id h3FEBTV11761 for ; Tue, 15 Apr 2003 16:11:29 +0200 (MEST) Original-Received: (from mm43@localhost) by crx753.crocrd (8.11.6+Sun/8.11.6) id h3FEBT424466; Tue, 15 Apr 2003 16:11:29 +0200 (MEST) X-Authentication-Warning: crx753.crocrd: mm43 set sender to Matthieu.Moy@st.com using -f Original-To: bug-gnu-emacs@gnu.org Original-Lines: 112 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (sparc-sun-solaris2.5.1) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: bug-gnu-emacs-bounces+gnu-bug-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.bugs:4796 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:4796 This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English, because the Emacs maintainers do not have translators to read other languages for them. Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list, and to the gnu.emacs.bug news group. In GNU Emacs 21.2.2 (sparc-sun-solaris2.5.1, X toolkit) of 2002-08-05 on crx968 configured using `configure --prefix=/var/tmp/bgm' 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: C locale-coding-system: nil default-enable-multibyte-characters: t Please describe exactly what actions triggered the bug and the precise symptoms of the bug: Hi, The function prin1 sometimes truncates the end of a long list (auto-mode-alist is a good example of such list): M-: (prin1 auto-mode-alist (current-buffer)) RET gives exactly this: (("\\.rc$" . c-mode) ("\\.h$" . c++-mode) ("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("README\\|LISEZ" . text-mode) ("\\.muttrc$" . shell-script-mode) ("\\.fvwm.*rc$" . shell-script-mode) ("\\.sw$" . scheme-mode) ("\\.adb\\.dg\\'" . ada-mode) ...) So, the end of the list is truncated and replaced by "...". To be sure that the actual value of auto-mode-alist is longer than this, I can do M-: (prin1 (cdddr (cdddr auto-mode-alist)) (current-buffer)) RET (("\\.muttrc$" . shell-script-mode) ("\\.fvwm.*rc$" . shell-script-mode) ("\\.sw$" . scheme-mode) ("\\.adb\\.dg\\'" . ada-mode) ("\\.ads\\.dg\\'" . ada-mode) ("\\.adb\\'" . ada-mode) ("\\.ads\\'" . ada-mode) ("\\.tre$" . trek-mode) ("\\.te?xt\\'" . text-mode) ("\\.c\\'" . c-mode) ...) See, some items are still beyond the "...", but they were not shown previously. This happens also when I do a C-h v auto-mode-alist, for example. (Well, not surprising, because C-h v calls pp, which calls prin1) More serious, it seems that Gnus uses this function to save SCORE files, so, I often have a score file like this one : ----- File SCORE --------------------------- (("references" ("" 500 731300 s) ("" 500 731306 s) ("" 500 731300 s) ("" 500 731300 s) ("" 500 731306 s) ("" 500 731306 s) ("" 500 731306 s) ("" 500 731306 s) ("" 500 731306 s) ...)) -------------------------------------------- And this prevents me from opening the group, so I have to delete those "..." manually, and I've lost most of the scoring information. (Else, opening a group gives me an error "Wrong type argument, listp \.\.\.") Now, more fun : I launch another Emacs session, and in the new session, everything works as expected : C-h v auto-mode-alist shows me the full value, and so on. The problem seems to happen randomly, but when it happens once, then, it will continue to happen until the end of the session. I have the same problem on a Solaris box and a Linux (Debian 3.0) box, both with Emacs 21.2. Is this a known bug ? Is there a workaround ? Thanks, Recent input: 1 SPC a u t o - m o d e M-/ C-h f C-x b s c r M-: C-e SPC ( c u r r e n t - b u f f e r ) C-h f C-k p r i n 1 - t o q M-x e m a c s - b u g r e C-a C-k b u g r e p o r t - Recent messages: nnml: Reading incoming mail (no new mail)...done nndiary: Reading incoming mail from file... nndiary: Reading incoming mail (no new mail)...done Checking new news...done No gnus is bad news No mail (("\\.rc$" . c-mode) ("\\.h$" . c++-mode) ("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("README\\|LISEZ" . text-mode) ("\\.muttrc$" . shell-script-mode) ("\\.fvwm.*rc$" . shell-script-mode) ("\\.sw$" . scheme-mode) ("\\.adb\\.dg\\'" . ada-mode) ...)(("\\.rc$" . c-mode) ("\\.h$" . c++-mode) ("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("README\\|LISEZ" . text-mode) ("\\.muttrc$" . shell-script-mode) ("\\.fvwm.*rc$" . shell-script-mode) ("\\.sw$" . scheme-mode) ("\\.adb\\.dg\\'" . ada-mode) ("\\.ads\\.dg\\'" . ada-mode) ("\\.adb\\'" . ada-mode) ...) (("\\.rc$" . c-mode) ("\\.h$" . c++-mode) ("\\.g?z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("\\.bz2\\'" nil jka-compr) ("\\.Z\\(~\\|\\.~[0-9]+~\\)?\\'" nil jka-compr) ("README\\|LISEZ" . text-mode) ("\\.muttrc$" . shell-script-mode) ("\\.fvwm.*rc$" . shell-script-mode) ("\\.sw$" . scheme-mode) ("\\.adb\\.dg\\'" . ada-mode) ("\\.ads\\.dg\\'" . ada-mode) ("\\.adb\\'" . ada-mode) ...) Type M-x switch-to-buffer-other-window RET to restore the other window. C-M-v to scroll the help. Loading emacsbug...done -- Matthieu MOY Ph. D Student at STMicroelectronics and Verimag -- SysAr Team