From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Edward O'Connor" Newsgroups: gmane.emacs.devel Subject: Re: Idempotency of add-hook wrt lambda expressions Date: Thu, 5 Mar 2009 12:59:19 -0800 Message-ID: <3b31caf90903051259r1f6ccf1et8f3d59afd6dcbdbb@mail.gmail.com> References: <74F2CF19-2E71-473F-A352-A628B3B29A8E@gmail.com> <861vtcxpt1.fsf@lola.quinscape.zz> <87prgvya1w.fsf@marauder.physik.uni-ulm.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1236286805 2872 80.91.229.12 (5 Mar 2009 21:00:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Mar 2009 21:00:05 +0000 (UTC) To: Reiner Steib , David Kastrup , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Mar 05 22:01:21 2009 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.50) id 1LfKgq-0003XE-WE for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 22:01:13 +0100 Original-Received: from localhost ([127.0.0.1]:34962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfKfV-0002bT-Jn for ged-emacs-devel@m.gmane.org; Thu, 05 Mar 2009 15:59:49 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LfKfO-0002Vi-Px for emacs-devel@gnu.org; Thu, 05 Mar 2009 15:59:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LfKfO-0002Tb-0G for emacs-devel@gnu.org; Thu, 05 Mar 2009 15:59:42 -0500 Original-Received: from [199.232.76.173] (port=37528 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LfKfN-0002T3-P3 for emacs-devel@gnu.org; Thu, 05 Mar 2009 15:59:41 -0500 Original-Received: from yw-out-1718.google.com ([74.125.46.154]:26362) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LfKf4-0001K3-05; Thu, 05 Mar 2009 15:59:22 -0500 Original-Received: by yw-out-1718.google.com with SMTP id 6so88111ywa.66 for ; Thu, 05 Mar 2009 12:59:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=4TFnEGPpzMNOPhIX29Kgq9PE7vZVma6xppQQCA5RDaM=; b=hqlyPrHFgRflr7mxP/wIJpVhNkpr8RcJwQmX0llm8+JlT1aV9LXEmJiUCaVSkB8IoS r+A3yOYVn1suaZ8qkiR5afFlPI3K3HTanKPMZIdtfHyRzhD03oYhbo9cZlhU39oPt0Ij WxRmV/TYIDzI70otK+bpoEbq0mh5g3AgsQPKk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=xkoCthv+44zffQbRGuI2l8offdo+ElOyWuuVmlKAXSQrr7HCmUaiZdWaDf4zJloqzZ VSd7jXqpm/ALgsW2mCF2ACkLqp1kJFflTkD6jgqkTf5eJs0uUZ2TXiebCfDrtiOMsEdH vCOCTbUYSLHqvL0KHMnhD7ZI4a7eCugSerwtc= Original-Received: by 10.231.15.74 with SMTP id j10mr467412iba.30.1236286759913; Thu, 05 Mar 2009 12:59:19 -0800 (PST) In-Reply-To: <87prgvya1w.fsf@marauder.physik.uni-ulm.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:109484 Archived-At: >> For example, (info "(emacs) Init Examples") carefully explains >> >> =C2=A0 =C2=A0* Turn on Auto Fill mode automatically in Text mode and rel= ated >> =C2=A0 =C2=A0 =C2=A0modes. >> >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 (add-hook 'text-mode-hook >> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 '(lambda () (auto-fill-mode 1)= )) > > Maybe we should provide turn-on-auto-fill-mode and use it here? `turn-on-auto-fill' and `turn-off-auto-fill' are already defined in simple.el. The docs should just be updated to use them. --=20 Ted