From 9a17dde6ec166935165d53d858d6fb31868f814f Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 3 Dec 2012 23:39:14 +0100 Subject: doc/ranger.1: add a warning about overwriting hooks --- doc/ranger.1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/ranger.1') diff --git a/doc/ranger.1 b/doc/ranger.1 index 1bbcd349..dcfc3b95 100644 --- a/doc/ranger.1 +++ b/doc/ranger.1 @@ -357,8 +357,11 @@ Also try: \& pydoc ranger.api .Ve .PP -The \fIexamples\fR directory contains several sample plugins, including a well -documented hello-world plugin using hooks in a compatibility-friendly way. +Note that you should \s-1NOT\s0 simply overwrite a function unless you know what +you're doing. Instead, save the existing function and call it from your new +one. This way, multiple plugins can use the same hook. There are several +sample plugins in the \fIexamples/\fR directory, including a hello-world plugin +that describes this procedure. .SH "KEY BINDINGS" .IX Header "KEY BINDINGS" Key bindings are defined in the file \fIranger/config/rc.conf\fR. Check this -- cgit 1.4.1-2-gfad0