From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Aur=C3=A9lien_Aptel?= Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Sun, 6 Jul 2014 17:14:19 +0200 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1404659677 4546 80.91.229.3 (6 Jul 2014 15:14:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jul 2014 15:14:37 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jul 06 17:14:29 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X3o96-0003xC-Ia for ged-emacs-devel@m.gmane.org; Sun, 06 Jul 2014 17:14:28 +0200 Original-Received: from localhost ([::1]:46293 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3o96-0007FV-2r for ged-emacs-devel@m.gmane.org; Sun, 06 Jul 2014 11:14:28 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3o92-0007D5-6w for emacs-devel@gnu.org; Sun, 06 Jul 2014 11:14:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X3o90-0000MQ-LL for emacs-devel@gnu.org; Sun, 06 Jul 2014 11:14:24 -0400 Original-Received: from mail-la0-x22a.google.com ([2a00:1450:4010:c03::22a]:33906) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X3o90-0000M7-Al for emacs-devel@gnu.org; Sun, 06 Jul 2014 11:14:22 -0400 Original-Received: by mail-la0-f42.google.com with SMTP id pn19so2213253lab.29 for ; Sun, 06 Jul 2014 08:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=gfp267Lk5RCQykUFcJTTm3l+qi/VKMb+5T8aAn2W29c=; b=Ky0q0FnRgCeG6NH72maU0I9xHH/WSIknf/1g5C1VPsZjvvMJdkgLWpCZK3IxyHQEdw qvIsjl2lPfwJY8n179+8FQrKHs1pHQoGCGm+k29h8TznnCbsSaUwHbL6FxMS6v9dNy/s nJAzurP2lh+V5lEclNUsXiFEwpFdKbDZqydva4sYNbsb5H9j9FoFCVJ4WZ7grvwpX3vd h9S84OX2o+YP1WKaKgRxHRgKBtWgfevQE8olYsED/v0tESO+kVpDhZC19qx2nrLuxwS/ BblcXleUz0qIxZpsg2o5qVgk18itk2WdYCGipRWL1/HvjAVjRjW4ge2lbrpwSagrEfSW OoGQ== X-Received: by 10.112.171.37 with SMTP id ar5mr15203lbc.98.1404659659594; Sun, 06 Jul 2014 08:14:19 -0700 (PDT) Original-Received: by 10.114.77.202 with HTTP; Sun, 6 Jul 2014 08:14:19 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: PiFmrMi2U6ByeHioyzdF7ANC_NU X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22a X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172883 Archived-At: I've focused on the docstring part these last few days. Dave's patch was using Emacs' make-docfile utility to generate a .doc file (from a .c file) per module which was loaded along the module by calling its own version of snarf_documentation that skipped some checks. I've tried to do the same thing but there are several problems which I suspect where already there in Dave's patch. The doc member of a subr struct is not a pointer to the doc string but an offset in the build global doc file (Vfile_doc_name aka etc/DOC). This saves memory but since we now have multiple doc files it doesn't work. If you update Vfile_doc_name to the module's doc file, Fdocumentation will only work on this module's functions. We could: - switch back to storing the doc string in memory for modules - make an alist or something to map a function name to a doc file -