From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.help Subject: Re: document when no hook is available Date: Sat, 10 Dec 2011 03:45:43 +0100 Message-ID: References: <87y5ulxyui.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1323485194 13221 80.91.229.12 (10 Dec 2011 02:46:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 10 Dec 2011 02:46:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: jidanni@jidanni.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Dec 10 03:46:30 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RZCxK-0007S8-6U for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Dec 2011 03:46:30 +0100 Original-Received: from localhost ([::1]:58112 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZCxJ-0006uL-Qg for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Dec 2011 21:46:29 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:42029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZCxG-0006uG-9w for help-gnu-emacs@gnu.org; Fri, 09 Dec 2011 21:46:27 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RZCxF-00012R-DY for help-gnu-emacs@gnu.org; Fri, 09 Dec 2011 21:46:26 -0500 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:40362) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RZCxF-00012N-9C for help-gnu-emacs@gnu.org; Fri, 09 Dec 2011 21:46:25 -0500 Original-Received: by iahk25 with SMTP id k25so6021832iah.0 for ; Fri, 09 Dec 2011 18:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=Da8Zt/k0nCPCXOsUam2diRQYS3ubb5ceYoZVFgr8wqQ=; b=W3mpwJLDqdIPnVivkE85kMnwu6bz55xEAUV/07JwoezELLg4U+rqgLS3UAOawa/sWG vs3PtG90RkrXddfWFcw1RUVQM/p3wG1PWg2xaGL69U70QV/VCvcSx8/evT3idqTBh9a4 Fv3qPgJqI2rrQrxdHFucRTE2RNKsLcPaDAYuQ= Original-Received: by 10.182.139.34 with SMTP id qv2mr1052695obb.46.1323485184286; Fri, 09 Dec 2011 18:46:24 -0800 (PST) Original-Received: by 10.182.150.72 with HTTP; Fri, 9 Dec 2011 18:45:43 -0800 (PST) In-Reply-To: <87y5ulxyui.fsf@jidanni.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83176 Archived-At: On Fri, Dec 9, 2011 at 21:40, wrote: > E.g., the user wants all ZZZ mode files to be in flyspell-prog-mode. The > problem is the ZZZ-mode author didn't remember to add a hook, and we are > on a read only system where all we can change is our .emacs. Doesn't (defadvice ZZZ-mode (after ZZZ-add-hook activate) (run-mode-hooks 'ZZZ-mode-hook)) suffice? =C2=A0 =C2=A0 Juanma