From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ivan Zakharyaschev Newsgroups: gmane.emacs.devel Subject: patch: broken docstrings for functions from .elc.gz's Date: Sun, 30 Mar 2003 18:24:35 +0400 (MSD) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="8323328-50656100-1049034275=:11010" X-Trace: main.gmane.org 1049034234 5783 80.91.224.249 (30 Mar 2003 14:23:54 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 30 Mar 2003 14:23:54 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 30 16:23:53 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18zdiz-0001V9-00 for ; Sun, 30 Mar 2003 16:23:53 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18zdmM-0008Cg-00 for ; Sun, 30 Mar 2003 16:27:22 +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 18zdic-0007QF-04 for emacs-devel@quimby.gnus.org; Sun, 30 Mar 2003 09:23:30 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18zdiD-0007NN-00 for emacs-devel@gnu.org; Sun, 30 Mar 2003 09:23:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18zdi9-00077x-00 for emacs-devel@gnu.org; Sun, 30 Mar 2003 09:23:04 -0500 Original-Received: from [213.247.143.25] (helo=stat.lonet.ru) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18zdi8-0006ZT-00 for emacs-devel@gnu.org; Sun, 30 Mar 2003 09:23:00 -0500 Original-Received: from arrakis.zephyrous ([212.1.252.202]) by stat.lonet.ru (8.11.4/8.11.4) with ESMTP id h2UEMoK05621 for ; Sun, 30 Mar 2003 18:22:50 +0400 Original-Received: from localhost (IDENT:ivan@arrakis.zephyrous [127.0.0.1]) by arrakis.zephyrous (8.12.8/8.8.7) with ESMTP id h2UEOZEg012868 for ; Sun, 30 Mar 2003 18:24:35 +0400 X-X-Sender: ivan@arrakis.zephyrous Original-To: emacs-devel@gnu.org X-Mailer: try to guess X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12750 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12750 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. Send mail to mime@docserver.cac.washington.edu for more info. --8323328-50656100-1049034275=:11010 Content-Type: TEXT/PLAIN; charset=US-ASCII Hello! A bug in Emacs 21.2 (and 21.3) has been reported by Sergey Vlasov (a patch that aims to fix it is attached): having life.elc compressed: /usr/share/emacs/21.3/lisp/play/life.elc.gz sometimes results in a broken docstring for `life'. More precisely: After Emacs startup: C-h f life RET (the doc for the autoloaded function is fine) M-: (load "/usr/share/emacs/21.3/lisp/play/life.elc.gz") RET C-h f life RET (the full doc is fine) M-: (load "/usr/share/emacs/21.3/lisp/play/life") RET C-h f life RET (the doc is broken) Debugging shows that `jka-compr-load' is called in the first case, but it isn't called in the second one. Modifying a test in src/lread.c fixes this bad behaviour. Usually libraries are loaded in a way similar to the second case, so usually the docstrings get broken. As I can see from the CVS, the issue is still there in the main Emacs development branch. The patch is for 21.3. (There is a description of it inside.) Regards, -- Ivan Zakharyaschev ALT Linux Team member I'm a Sisyphus developer: it's core is GNU/Linux http://www.altlinux.ru, http://www.altlinux.com JID: imz at altlinux.org --8323328-50656100-1049034275=:11010 Content-Type: TEXT/PLAIN; charset=US-ASCII; name="emacs-21.3-use-handler-for-load.patch" Content-Transfer-Encoding: BASE64 Content-ID: Content-Description: for 21.3; should be done for MAIN, too Content-Disposition: attachment; filename="emacs-21.3-use-handler-for-load.patch" QXQgdGhpcyBwbGFjZSwgV2UgY2FuIGZpbmQgYSByZWFsIGZpbGUgd2l0aCBz dWZmaXhlZCBmaWxlbmFtZSAoYGZuJykNCnRoYXQgbmVlZHMgdG8gYmUgaGFu ZGxlZCBpbiBhIHNwZWNpYWwgd2F5IChlLmcuIGEgY29tcHJlc3NlZCANCm9u ZTogIi9hLmVsYy5neiIpIHdoaWxlIGBmaWxlbmFtZScgaG9sZHMgdGhlIHJl cXVlc3RlZCANCmZpbGVuYW1lIHdpdGhvdXQgdGhlIHN1ZmZpeCAoIi9hIiku DQoNCkluIHRoaXMgY2FzZSwgdGhlIGZpbGUgc2hvdWxkbid0IGJlIG9wZW5l ZCBhbmQgdGhlIGZ1bmN0aW9uIChvcGVucCgpKQ0Kc2hvdWxkIG5vdCByZXR1 cm4gdGhlIGZkLiBJdCBzaG91bGQgcmV0dXJuIC0yLCBhbmQgdGhlIGNhbGxp bmcgDQpmdW5jdGlvbiAobG9hZCgpKSBzaG91bGQgY2FsbCB0aGUgY29ycmVz cG9uZGluZyBoYW5kbGVyIGluIG9yZGVyDQp0byBsb2FkIGl0Lg0KDQpJdCB1 c2VkIHRvIGNoZWNrIHdoZXRoZXIgdGhlcmUgaXMgYSBzcGVjaWFsIGhhbmRs ZXIgYnkgcGFzc2luZyBgZmlsZW5hbWUnLg0KU3VjaCBhIHRlc3QgdXNlZCBu b3QgdG8gZ2l2ZSB0aGUgZXhwZWN0ZWQgcmVzdWx0LCBzaW5jZSB0aGUgaGFu ZGxlcg0KaXMgYXBwbGljYWJsZSB0byB0aGUgcmVhbCAoc3VmZml4ZWQpIGZv dW5kIGZpbGVuYW1lIGBmbicuDQoNCkxvYWRpbmcgbGlicmFyaWVzIHN0b3Jl ZCBhcyBjb21wcmVzc2VkIC5lbGMtZmlsZXMgdXNlZCB0byBiZSBicm9rZW4g DQpiZWNhdXNlIG9mIHRoaXM6IHRoZSBjb3JyZXNwb25kaW5nIGxvYWQtaGFu ZGxlciAoYGprYS1jb21wci1sb2FkJykgDQp1c2VkIG5vdCBiZSBjYWxsZWQs IGFuZCB0aGUgZG9jc3RyaW5ncyBmb3IgdGhlIGxvYWRlZCBmdW5jdGlvbnMN CmdvdCBjb3JydXB0ZWQgd2hlbiBkaXNwbGF5ZWQuDQoNCkl2YW4gWmFraGFy eWFzY2hldiA8aW16QGFsdGxpbnV4Lm9yZz4NCg0KLS0tIGVtYWNzLTIxLjMv c3JjL2xyZWFkLmMuaGFuZGxlTG9hZAkyMDAzLTAzLTMwIDEzOjIyOjMxICsw NDAwDQorKysgZW1hY3MtMjEuMy9zcmMvbHJlYWQuYwkyMDAzLTAzLTMwIDEz OjI0OjAyICswNDAwDQpAQCAtMTAxMiw3ICsxMDEyLDcgQEANCiAJICBpZiAo YWJzb2x1dGUpDQogCSAgICBoYW5kbGVyID0gUW5pbDsNCiAJICBlbHNlDQot CSAgICBoYW5kbGVyID0gRmZpbmRfZmlsZV9uYW1lX2hhbmRsZXIgKGZpbGVu YW1lLCBRZmlsZV9leGlzdHNfcCk7DQorCSAgICBoYW5kbGVyID0gRmZpbmRf ZmlsZV9uYW1lX2hhbmRsZXIgKGJ1aWxkX3N0cmluZyAoZm4pLCBRZmlsZV9l eGlzdHNfcCk7DQogCSAgaWYgKCEgTklMUCAoaGFuZGxlcikgJiYgISBleGVj X29ubHkpDQogCSAgICB7DQogCSAgICAgIGludCBleGlzdHM7DQo= --8323328-50656100-1049034275=:11010 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://mail.gnu.org/mailman/listinfo/emacs-devel --8323328-50656100-1049034275=:11010--