From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.bugs Subject: bug#9214: `fundamental-mode-hook' not run when setting up `fundamental-mode' under certain circumstances; Info documentation incorrect Date: Sat, 28 Jan 2012 18:37:12 +0800 Message-ID: <87k44c3yg7.fsf@gnu.org> References: <87wrex4ejy.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1327769668 16542 80.91.229.3 (28 Jan 2012 16:54:28 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 28 Jan 2012 16:54:28 +0000 (UTC) Cc: 9214@debbugs.gnu.org To: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jan 28 17:54:24 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RrBXd-0007Ff-1a for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jan 2012 17:54:17 +0100 Original-Received: from localhost ([::1]:39601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr5fr-0003Tv-35 for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jan 2012 05:38:23 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:36814) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr5fo-0003Tl-Kc for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 05:38:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rr5fn-00088B-Dl for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 05:38:20 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42167) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rr5fn-000887-Av for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 05:38:19 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1Rr5gT-00017Q-SO for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 05:39:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Chong Yidong Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Jan 2012 10:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9214 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9214-submit@debbugs.gnu.org id=B9214.13277470854211 (code B ref 9214); Sat, 28 Jan 2012 10:39:01 +0000 Original-Received: (at 9214) by debbugs.gnu.org; 28 Jan 2012 10:38:05 +0000 Original-Received: from localhost ([127.0.0.1]:47547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rr5fZ-00015q-K6 for submit@debbugs.gnu.org; Sat, 28 Jan 2012 05:38:05 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:42771 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rr5fY-00015i-1i for 9214@debbugs.gnu.org; Sat, 28 Jan 2012 05:38:04 -0500 Original-Received: from [155.69.16.246] (port=50812 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Rr5eq-0000Ye-GD; Sat, 28 Jan 2012 05:37:21 -0500 In-Reply-To: <87wrex4ejy.fsf@gmail.com> ("=?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?="'s message of "Mon, 01 Aug 2011 12:22:09 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:56124 Archived-At: =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > emacs -Q > > (defvar f-m-hook-run 0) > > (add-hook 'fundamental-mode-hook > (lambda () (setq f-m-hook-run (1+ f-m-hook-run)))) > > (with-current-buffer (get-buffer-create "f-m-test-buf") > major-mode) > ;=3D> fundamental-mode > > f-m-hook-run > ;=3D> 0 > > (with-current-buffer (get-buffer-create "f-m-test-buf") > (fundamental-mode) > major-mode) > ;=3D> fundamental-mode > > f-m-hook-run > ;=3D> 1 This was fixed a few months ago (2011-10-27 commit to simple.el). Closing the bug. Thanks.