From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: Compatibility code for `filter-buffer-substring-functions'? Date: Tue, 27 Mar 2012 20:55:07 -0400 Message-ID: <44mx71o87o.fsf@fencepost.gnu.org> References: <87d37xlgvn.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1332896122 24846 80.91.229.3 (28 Mar 2012 00:55:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 28 Mar 2012 00:55:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Bastien Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Mar 28 02:55:19 2012 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 1SChAR-0004w5-13 for ged-emacs-devel@m.gmane.org; Wed, 28 Mar 2012 02:55:15 +0200 Original-Received: from localhost ([::1]:35203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SChAQ-00070u-FX for ged-emacs-devel@m.gmane.org; Tue, 27 Mar 2012 20:55:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:49103) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SChAM-0006yh-Kt for emacs-devel@gnu.org; Tue, 27 Mar 2012 20:55:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SChAK-0004bO-SD for emacs-devel@gnu.org; Tue, 27 Mar 2012 20:55:10 -0400 Original-Received: from fencepost.gnu.org ([208.118.235.10]:37982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SChAK-0004bK-P9 for emacs-devel@gnu.org; Tue, 27 Mar 2012 20:55:08 -0400 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1SChAJ-0002kj-Kq; Tue, 27 Mar 2012 20:55:07 -0400 X-Spook: Al Jazeera NWO Baranyi STARLAN AIEWS tempest clandestine X-Ran: 5g({+q:zud>4;u_u!%X~IljI'{EDF.vzb~"~p-T>c!Jg_vyMqwM>cy"sSm:nLPW$K>s7(p X-Hue: magenta X-Attribution: GM In-Reply-To: <87d37xlgvn.fsf@gnu.org> (Bastien's message of "Wed, 28 Mar 2012 02:16:12 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.10 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:149235 Archived-At: Bastien wrote: > Okay. But replacing `buffer-substring-filters' by > `filter-buffer-substring-functions' is not trivial. Eg, the org-agenda one seems equivalent to: (add-hook 'filter-buffer-substring-functions (lambda (fun start end delete) (substring-no-properties (funcall fun start end delete))))