From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: Loading when viewing docstring of autoloaded function Date: Mon, 2 Jul 2012 09:13:30 -0700 Message-ID: References: <87395mgy6t.fsf@gnu.org> <784B0F307BD44CC4B673B79667EDEB25@us.oracle.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341245630 24586 80.91.229.3 (2 Jul 2012 16:13:50 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 2 Jul 2012 16:13:50 +0000 (UTC) Cc: 'Chong Yidong' , emacs-devel@gnu.org To: "'Samuel Bronson'" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 02 18:13:49 2012 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 1SljFy-0005d3-Oi for ged-emacs-devel@m.gmane.org; Mon, 02 Jul 2012 18:13:46 +0200 Original-Received: from localhost ([::1]:50968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SljFx-0000sJ-Mq for ged-emacs-devel@m.gmane.org; Mon, 02 Jul 2012 12:13:45 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46751) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SljFr-0000sA-2F for emacs-devel@gnu.org; Mon, 02 Jul 2012 12:13:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SljFp-0001By-7L for emacs-devel@gnu.org; Mon, 02 Jul 2012 12:13:38 -0400 Original-Received: from rcsinet15.oracle.com ([148.87.113.117]:46716) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SljFp-0001Bf-0d; Mon, 02 Jul 2012 12:13:37 -0400 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q62GDWVU022113 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 Jul 2012 16:13:33 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q62GDVXn009939 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 Jul 2012 16:13:32 GMT Original-Received: from abhmt105.oracle.com (abhmt105.oracle.com [141.146.116.57]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q62GDVbF004743; Mon, 2 Jul 2012 11:13:31 -0500 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 02 Jul 2012 09:13:31 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: Thread-Index: Ac1Yae6DuBfMSN7+TFWDQA6C7zFSwgAA30Wg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 1) X-Received-From: 148.87.113.117 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:151360 Archived-At: > >> The most annoying aspect is that autoloaded functions often have > >> docstrings containing key substitution constructs, which > >> are expanded into `M-x FOO' because the relevant keymaps are > >> not yet defined. > > > > Let the user decide. Add a user option. Make your new > > behavior the default, if you like. But give users an easy > > way to choose not to load stuff just for doc strings. The code > > change is trivial - it costs nothing to give users a say. > > How about just adding a "load module and rerender" button to the > *Help* buffer in that case? > > I've been annoyed by such docstrings, but at the same time I can see > myself being much *more* annoyed at the proposed "just load it" > solution in certain instances. Some packages, like it or not, do > things that may be undesirable when you so much as load them. Good, but again: give users the choice. That behavior could be one of the option values.