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: question about "Making change-major-mode-hook buffer-localwhile locally let-bound!" Date: Sun, 20 Jun 2010 16:29:21 -0700 Message-ID: <205A9BF5F35E40D5B3AF0CCDCDBA7306@us.oracle.com> References: <87hbkxnvmr.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1277076630 29391 80.91.229.12 (20 Jun 2010 23:30:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 20 Jun 2010 23:30:30 +0000 (UTC) To: "=?iso-8859-1?Q?'Johan_=22Bockg=E5rd=22'?=" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jun 21 01:30:29 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 1OQTy9-00047U-7y for ged-emacs-devel@m.gmane.org; Mon, 21 Jun 2010 01:30:29 +0200 Original-Received: from localhost ([127.0.0.1]:47418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQTy8-00050e-NC for ged-emacs-devel@m.gmane.org; Sun, 20 Jun 2010 19:30:28 -0400 Original-Received: from [140.186.70.92] (port=54919 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OQTy3-00050Y-0c for emacs-devel@gnu.org; Sun, 20 Jun 2010 19:30:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OQTy1-0005hU-UT for emacs-devel@gnu.org; Sun, 20 Jun 2010 19:30:22 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:58177) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OQTy1-0005hP-Pf; Sun, 20 Jun 2010 19:30:21 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o5KNUJpK011836 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 20 Jun 2010 23:30:20 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o5KKhBRV019626; Sun, 20 Jun 2010 23:30:18 GMT Original-Received: from abhmt001.oracle.com by acsmt355.oracle.com with ESMTP id 358356991277076543; Sun, 20 Jun 2010 16:29:03 -0700 Original-Received: from dradamslap1 (/10.175.249.190) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 20 Jun 2010 16:29:03 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87hbkxnvmr.fsf@gnu.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5931 Thread-Index: AcsQzoiGZ6n5SslHTcWWRGKMJur7PAAAWKEw X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090205.4C1EA48C.0119:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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:126285 Archived-At: > > Also, out of curiosity, where is `change-major-mode-hook' > > being made buffer-local? > > (add-hook HOOK ... LOCAL) Ah yes, of course; thanks. So it seems that there are 8 zillion places where this is done. But what about my real question? What is a good way to inhibit `change-major-mode-hook' temporarily? And what is a good way to suppress this message (and preferably only this message)?