From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#17685: 24.3.91.1; help-C-file-name failes to create temp buffer " *DOC*" Date: Wed, 04 Jun 2014 09:15:41 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401888387 6108 80.91.229.3 (4 Jun 2014 13:26:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2014 13:26:27 +0000 (UTC) Cc: 17685@debbugs.gnu.org To: Stefan Guath Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 04 15:26:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1WsBCs-0001fy-St for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jun 2014 15:26:19 +0200 Original-Received: from localhost ([::1]:33034 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsBCs-0003sm-CO for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Jun 2014 09:26:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36627) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsB37-0004Dy-S9 for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2014 09:16:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsB2w-0005dF-QD for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2014 09:16:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44401) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsB2w-0005d9-Mu for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2014 09:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WsB2w-0002hr-5X for bug-gnu-emacs@gnu.org; Wed, 04 Jun 2014 09:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Jun 2014 13:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17685-submit@debbugs.gnu.org id=B17685.140188775710389 (code B ref 17685); Wed, 04 Jun 2014 13:16:02 +0000 Original-Received: (at 17685) by debbugs.gnu.org; 4 Jun 2014 13:15:57 +0000 Original-Received: from localhost ([127.0.0.1]:43278 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsB2m-0002h7-Eo for submit@debbugs.gnu.org; Wed, 04 Jun 2014 09:15:57 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:38973) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WsB2f-0002gp-Um for 17685@debbugs.gnu.org; Wed, 04 Jun 2014 09:15:50 -0400 Original-Received: from fmsmemgm.homelinux.net (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id s54DFghG027549; Wed, 4 Jun 2014 09:15:42 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id E3E78AE23E; Wed, 4 Jun 2014 09:15:41 -0400 (EDT) In-Reply-To: (Stefan Guath's message of "Wed, 4 Jun 2014 10:47:44 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV4963=0 X-NAI-Spam-Version: 2.3.0.9378 : core <4963> : inlines <965> : streams <1203124> : uri <1775002> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:89974 Archived-At: > emacs -Q > (find-lisp-object-file-name 'visible-bell 'defvar) ;visible-bell is just an > example and can be replaced with any variable. > RESULT: > C-source > EXPECTED RESULT: > "src/dispnew.c" Here's the reason for the behavior: the DOC file is moderately large, so we don't want to load it into memory just because the user did C-h v visible-bell RET. So we only populate the *DOC* buffer when the user actually clicks on the "C-source" link to jump to the source code. And once the buffer is populated, then there's no reason not to use it, so if *DOC* exists then we do use it. We could probably change it so that we always populate the *DOC* buffer in the case where the C sources are available (so the behavior would stay unchanged for users running pre-compiled Emacs, while it would work better for those users who compile it themselves and keep the source in place). But I'm not sure it'd really be an improvement. Stefan