From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bozhidar Batsov Newsgroups: gmane.emacs.devel Subject: Re: Running a major-mode without invoking its hooks Date: Wed, 23 Jul 2014 12:54:43 +0300 Message-ID: References: <86d2cwvgzn.fsf@yandex.ru> <86d2cwvgzn.fsf@yandex.ru> <86d2cwvgzn.fsf@yandex.ru> <86d2cwvgzn.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="53cf8663_327b23c6_6d75" X-Trace: ger.gmane.org 1406109309 32446 80.91.229.3 (23 Jul 2014 09:55:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Jul 2014 09:55:09 +0000 (UTC) Cc: emacs-devel To: Dmitry Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jul 23 11:55:00 2014 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 1X9tGF-0006oQ-WF for ged-emacs-devel@m.gmane.org; Wed, 23 Jul 2014 11:55:00 +0200 Original-Received: from localhost ([::1]:43700 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9tGF-0001Ia-BX for ged-emacs-devel@m.gmane.org; Wed, 23 Jul 2014 05:54:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9tG8-0001IT-It for emacs-devel@gnu.org; Wed, 23 Jul 2014 05:54:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X9tG3-0004Ew-Tq for emacs-devel@gnu.org; Wed, 23 Jul 2014 05:54:52 -0400 Original-Received: from mail-we0-x232.google.com ([2a00:1450:400c:c03::232]:53312) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X9tG3-0004Eq-MB for emacs-devel@gnu.org; Wed, 23 Jul 2014 05:54:47 -0400 Original-Received: by mail-we0-f178.google.com with SMTP id w61so913268wes.37 for ; Wed, 23 Jul 2014 02:54:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:message-id:in-reply-to:references:subject :mime-version:content-type; bh=emyX8ckI7JiTFcIfa1QNDsW2X2ucaZWICSKc0WpgYHI=; b=V3pZfituRa2qWuKWttsNK4zAkXOBKGPku+54rI8w51ko1gmXebl8uIbNAJ7boin7i5 FUJdXm8X9/hEcryZGJF5ZnQNzuHHW7sD1Ss7Y3dCZIJhPAfXkq4V7esZVYoHo+suPGOT 2w/z2zjiCdwVSj6buJyFD02s6xd1UtDlxbj/amzA3AONZtfZnfZW3hSAl1pB9LYCs+S1 aP1YHLzxcfBHZHSdfRmm67Pk20sFy52miIbpDFx3ydiSg2xyxNy48pd+/4OnEObgjJQ1 hdjwOFysj3V53uCzg9cjDdrobs10LIgvpgjfB5ly/vOHZko0h3p+JtqAh7XxLM2dSKRr rz1Q== X-Received: by 10.180.39.139 with SMTP id p11mr23590380wik.50.1406109286188; Wed, 23 Jul 2014 02:54:46 -0700 (PDT) Original-Received: from Bozhidars-MacBook-Pro.local ([95.87.231.111]) by mx.google.com with ESMTPSA id u10sm4758247wjz.43.2014.07.23.02.54.44 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 23 Jul 2014 02:54:45 -0700 (PDT) In-Reply-To: <86d2cwvgzn.fsf@yandex.ru> X-Mailer: Airmail (247) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::232 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:173090 Archived-At: --53cf8663_327b23c6_6d75 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On July 23, 2014 at 7:25:39 AM, Dmitry (dgutov=40yandex.ru) wrote: Hi Bozhidar,=C2=A0 Bozhidar Batsov writes:=C2=A0 > I was wondering what=E2=80=99s the preferred approach to run a major mo= de=C2=A0 > without triggering any if its hooks.=C2=A0 Try binding =60delay-mode-hooks' to t around the call.=C2=A0 And maybe =60delayed-mode-hooks' to nil, also, so that they aren't=C2=A0 triggered later.=C2=A0 Exactly what I needed - works like a charm. Thanks, Dmitry=21 --53cf8663_327b23c6_6d75 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline