summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorhut <hut@lavabit.com>2012-12-03 23:39:14 +0100
committerhut <hut@lavabit.com>2012-12-04 23:32:21 +0100
commit9a17dde6ec166935165d53d858d6fb31868f814f (patch)
tree35063e23876b31dcc9f1ea8110a7beb84dd3635e /doc
parentadff84a4645953d3c2feb929eecfd67badc99eff (diff)
downloadranger-9a17dde6ec166935165d53d858d6fb31868f814f.tar.gz
doc/ranger.1: add a warning about overwriting hooks
Diffstat (limited to 'doc')
-rw-r--r--doc/ranger.17
-rw-r--r--doc/ranger.pod7
2 files changed, 10 insertions, 4 deletions
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
diff --git a/doc/ranger.pod b/doc/ranger.pod
index 219d2f0b..bab92412 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -257,8 +257,11 @@ Also try:
 
  pydoc ranger.api
 
-The F<examples> directory contains several sample plugins, including a well
-documented hello-world plugin using hooks in a compatibility-friendly way.
+Note that you should NOT 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 F<examples/> directory, including a hello-world plugin
+that describes this procedure.
 
 
 
id='n206' href='#n206'>206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263