all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Compatibility code for `filter-buffer-substring-functions'?
@ 2012-03-28  0:16 Bastien
  2012-03-28  0:55 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Bastien @ 2012-03-28  0:16 UTC (permalink / raw)
  To: emacs-devel

Hi all,

While compiling the latest version of Org-mode with Emacs 24.0.94.1
I get this warning:

,----
| In org-indent-mode:
| org-indent.el:212:11:Warning: `buffer-substring-filters' is an obsolete
|     variable (as of 24.1); use `filter-buffer-substring-functions' instead.
`----

Okay.  But replacing `buffer-substring-filters' by
`filter-buffer-substring-functions' is not trivial.

Before I spend time on this, I wonder if anyone has had to do this 
work.  If so, any code/advice to share?

Thanks in advance!

-- 
 Bastien



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Compatibility code for `filter-buffer-substring-functions'?
  2012-03-28  0:16 Compatibility code for `filter-buffer-substring-functions'? Bastien
@ 2012-03-28  0:55 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-03-28  0:55 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-devel

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))))



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-28  0:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-28  0:16 Compatibility code for `filter-buffer-substring-functions'? Bastien
2012-03-28  0:55 ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.