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: Sun, 29 Jan 2012 09:40:43 +0800 Message-ID: <87obtnqo9w.fsf@gnu.org> References: <87wrex4ejy.fsf@gmail.com> <87k44c3yg7.fsf@gnu.org> <87wr8bzic0.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 1327801270 3237 80.91.229.3 (29 Jan 2012 01:41:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 29 Jan 2012 01:41:10 +0000 (UTC) Cc: =?UTF-8?Q?=C5=A0t=C4=9Bp=C3=A1n_?= =?UTF-8?Q?N=C4=9Bmec?= , 9214@debbugs.gnu.org To: Juanma Barranquero Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jan 29 02:41:09 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 1RrJlR-0004gc-I5 for geb-bug-gnu-emacs@m.gmane.org; Sun, 29 Jan 2012 02:41:05 +0100 Original-Received: from localhost ([::1]:60041 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrJlR-0001kO-6h for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jan 2012 20:41:05 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:53525) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrJlO-0001kJ-Q3 for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:41:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RrJlN-00066o-RX for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:41:02 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RrJlN-00066k-Oc for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:41:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RrJlO-0006DB-DH for bug-gnu-emacs@gnu.org; Sat, 28 Jan 2012 20:41:02 -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: Sun, 29 Jan 2012 01:41:02 +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.132780125723865 (code B ref 9214); Sun, 29 Jan 2012 01:41:02 +0000 Original-Received: (at 9214) by debbugs.gnu.org; 29 Jan 2012 01:40:57 +0000 Original-Received: from localhost ([127.0.0.1]:42669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrJlI-0006Cr-Fj for submit@debbugs.gnu.org; Sat, 28 Jan 2012 20:40:56 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:52883 ident=Debian-exim) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RrJlG-0006Ck-2d for 9214@debbugs.gnu.org; Sat, 28 Jan 2012 20:40:55 -0500 Original-Received: from bb121-7-229-69.singnet.com.sg ([121.7.229.69]:45981 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1RrJlE-0000Wn-6w; Sat, 28 Jan 2012 20:40:52 -0500 In-Reply-To: (Juanma Barranquero's message of "Sun, 29 Jan 2012 00:34:53 +0100") 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:56163 Archived-At: Juanma Barranquero writes: > 2012/1/28 =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec : > >> And, how can I run code whenever a new buffer is setup (in >> fundamental-mode), if `fundamental-mode-hook' is not meant for that? > > You can perhaps fake it with some combination of (setq-default > major-mode my-fundamental-mode), `buffer-list-update-hook', and > advices. It won't be pretty, though. Or use after-change-major-mode-hook.