From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Agustin Martin Newsgroups: gmane.emacs.devel Subject: Re: Autoloading (was: bug#5752: 23.1.94; sgml-lexical-context in post-command-hook) Date: Thu, 8 Jul 2010 19:41:21 +0200 Message-ID: References: <20100322113620.2500673506.qww314159@motoko.argon.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: dough.gmane.org 1278610900 29554 80.91.229.12 (8 Jul 2010 17:41:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 8 Jul 2010 17:41:40 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 08 19:41:39 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OWv6R-0003Bw-A3 for ged-emacs-devel@m.gmane.org; Thu, 08 Jul 2010 19:41:39 +0200 Original-Received: from localhost ([127.0.0.1]:50393 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWv6Q-0004Mc-PT for ged-emacs-devel@m.gmane.org; Thu, 08 Jul 2010 13:41:38 -0400 Original-Received: from [140.186.70.92] (port=59581 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OWv6K-0004MX-Gh for emacs-devel@gnu.org; Thu, 08 Jul 2010 13:41:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OWv6J-00088Q-0z for emacs-devel@gnu.org; Thu, 08 Jul 2010 13:41:32 -0400 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:44871) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OWv6I-000883-Nt for emacs-devel@gnu.org; Thu, 08 Jul 2010 13:41:30 -0400 Original-Received: by bwz9 with SMTP id 9so738687bwz.0 for ; Thu, 08 Jul 2010 10:41:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=P1wFe7LdDEkVZCVLykW/XBTZCLP045DECSVMB7xELMY=; b=an0+E4IyalwxZjZg3GW3v0roacs7BUjs2ORAtIyy4ih/7sPsSCtEYfZdpD9AW31YZ/ 1Ko/H9Yz3uK6g3mL5EYSM8pUX7hcYTzftDnr2lBRPjHI98l7k8hQGKb1+g/YTT6xv129 9IJ+NthZzEU1GgQOHny2PMprUn7a9x8aNI/+Y= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=Rgg6AfbKHWEPCzKl4yFT9DC9D5dM9k9EPrqDxX6jwByZ7FgDU2YQJ+Ku2gNlU6iADM JZ4ZPNnYgLXBY5ixrp7Kb7xUgBRG/Ul4dDMDBjt0+gehDeiAC5Gv5XV501ktee84xf6k HosFvEwXhez+5BrBuBO/5KMXtc2y0qaEGiU/0= Original-Received: by 10.204.133.146 with SMTP id f18mr5248175bkt.97.1278610881662; Thu, 08 Jul 2010 10:41:21 -0700 (PDT) Original-Received: by 10.204.68.81 with HTTP; Thu, 8 Jul 2010 10:41:21 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: Zn60Lf32GGmrIMSfC1CbgnFlsFA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:126915 Archived-At: 2010/3/23 Stefan Monnier : >> Fixed in emacs-23 branch by autoloading sgml-lexical-context in >> flyspell.el. > > BTW, such manual autoloads are slightly problematic since they fail to > provide docstrings (and arglists). I am seeing an obscure problem with sgml-lexical-context and Debian emacs-snapshot, when used together with psgml as preferred sgml mode. psgml provides 'sgml-mode, but has no `sgml-lexical-context' definition. Either if I manually load 'sgml-mode' or trust autoload at some points I get errors like. Error in post-command-hook: (wrong-type-argument stringp nil) sgml-lexical-context: Wrong type argument: stringp, nil Function seems loaded since describe-function sgml-lexical-context works, and I can even explicitly evaluate it in the buffer (and seems to evaluate correctly). Cheers,