From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: 1) (elisp) `Advising Named Functions', 2) search filtering example Date: Mon, 17 Oct 2016 12:16:53 -0400 Message-ID: References: <5a44a850-e4fc-4c9f-a266-c74766810ba1@default> <1807679d-1125-4afe-81b7-b8d8e78aa2c6@default> <9f1cf1a7-6f05-449a-a4a2-c013cf326e9c@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1476721091 22653 195.159.176.226 (17 Oct 2016 16:18:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 17 Oct 2016 16:18:11 +0000 (UTC) Cc: emacs-devel To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 17 18:18:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwAbm-0003j7-1m for ged-emacs-devel@m.gmane.org; Mon, 17 Oct 2016 18:17:50 +0200 Original-Received: from localhost ([::1]:34320 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwAbo-0000Qi-50 for ged-emacs-devel@m.gmane.org; Mon, 17 Oct 2016 12:17:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55670) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwAat-0000PT-Sp for emacs-devel@gnu.org; Mon, 17 Oct 2016 12:16:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwAat-0005QX-1D for emacs-devel@gnu.org; Mon, 17 Oct 2016 12:16:55 -0400 Original-Received: from mail-oi0-x22c.google.com ([2607:f8b0:4003:c06::22c]:35821) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwAas-0005Py-TI for emacs-devel@gnu.org; Mon, 17 Oct 2016 12:16:54 -0400 Original-Received: by mail-oi0-x22c.google.com with SMTP id d132so218202630oib.2 for ; Mon, 17 Oct 2016 09:16:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=aE7AHZmJ1fefX6j3Ie8V889od1x8PN8IHQKAuTfyAC0=; b=BSXnESq6STWm7wkMfgUBwyOyXV/LhnPJbW6xGAE17BTZdWhNRG/G1ftnH8vG6wQ3PQ Y+O5tOE0W184LssdcDS6fVDpn0qGCIWdHOc9quPoXjzX6U2UY15MFXFQUrmvZZZ+r7fo JGoIY4ETskL4EuAXkauz1LF7BJ//ZOj5cxnE9OUpM7zTkbfgVd+7eDh7/fZj1YlGDQKG x1q5PF4C/RstcCLfQsFcfrErOCbEK/67q2BwkQ0wEGrdLRd2jb+tv9w1wv/R+ytitdw5 z3di/ZIHri16hpt2uk7zYXYtqSAj/cvh3XfXmeQRGS98yJ08bsAqEZyEjRxcfT5tJBNY jzOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=aE7AHZmJ1fefX6j3Ie8V889od1x8PN8IHQKAuTfyAC0=; b=AUsqlAXJPQZ/+gVo0PKNBAXFB1yC8+evfI2nrXqLIl3nHsn+wxY/d3hGlfL1yRR5m7 Aj136HI8cSHpSdIIBcpgTBi4K5g4ryBNft+bUaUYHjNWn4ux2F+nZvy0sHi/aX5y7oKm acKNMuIXHvoWs3qKbryK1eiutiHhuGZVex3IkRNttb9M6dO+Apoa386U7Fq6kWoJIvig 4PfvJDsEsXDJXhTWU3piEPSJ/oMcIvmsJ3DF71TwgUURzbAHFgF6Sxw1A4eg4WpXKbpT mLBaIM3rjE6xCn8U0T+rDpX/L+Ny43XryTIi/vpEcpPFmBHFlaSyRQ176qIxR7RFa4GO 90JQ== X-Gm-Message-State: AA6/9RkAr2WHlJG+r2qPyjOeh0NS3/WKc6BJxatKsW3OL431nGU6/8+HZE4CcC9Ud8n+W4R3Q1iMu2Mb/208DQ== X-Received: by 10.202.84.213 with SMTP id i204mr17836588oib.100.1476721014261; Mon, 17 Oct 2016 09:16:54 -0700 (PDT) Original-Received: by 10.157.29.239 with HTTP; Mon, 17 Oct 2016 09:16:53 -0700 (PDT) In-Reply-To: <9f1cf1a7-6f05-449a-a4a2-c013cf326e9c@default> X-Google-Sender-Auth: 41lumPVwYLSdeJQVRJ0P_dPKwCg X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:208366 Archived-At: On Mon, Oct 17, 2016 at 11:40 AM, Drew Adams wrote: > I think that is wrong also. `add-hook' _can_ be used to modify a _single > function hook_. And the doc of `add-hook' tells you so, in its last line - > `C-h f add-hook': > > ... > If HOOK's value is a single function, it is changed to a list of > functions. If you do this, then you will break the callers, which expect the value of this variable to be a single function.