@@ -65,13 +65,13 @@ The following functions relate to the init file and user configuration:
6565.. function :: parse_and_bind(string) 
6666
6767   Execute the init line provided in the *string * argument. This calls
68-    :c:func: `rl_parse_and_bind ` in the underlying library.
68+    :c:func: `! rl_parse_and_bind
6969
7070
7171.. function :: read_init_file([filename]) 
7272
7373   Execute a readline initialization file. The default filename is the last filename
74-    used. This calls :c:func: `rl_read_init_file ` in the underlying library.
74+    used. This calls :c:func: `! rl_read_init_file
7575
7676
7777Line buffer
@@ -82,21 +82,21 @@ The following functions operate on the line buffer:
8282
8383.. function :: get_line_buffer() 
8484
85-    Return the current contents of the line buffer (:c:data: `rl_line_buffer `
85+    Return the current contents of the line buffer (:c:data: `! rl_line_buffer
8686   in the underlying library).
8787
8888
8989.. function :: insert_text(string) 
9090
9191   Insert text into the line buffer at the cursor position.  This calls
92-    :c:func: `rl_insert_text ` in the underlying library, but ignores
92+    :c:func: `! rl_insert_text
9393   the return value.
9494
9595
9696.. function :: redisplay() 
9797
9898   Change what's displayed on the screen to reflect the current contents of the
99-    line buffer.  This calls :c:func: `rl_redisplay ` in the underlying library.
99+    line buffer.  This calls :c:func: `! rl_redisplay
100100
101101
102102History file
@@ -109,21 +109,21 @@ The following functions operate on a history file:
109109
110110   Load a readline history file, and append it to the history list.
111111   The default filename is :file: `~/.history `.  This calls
112-    :c:func: `read_history ` in the underlying library.
112+    :c:func: `! read_history
113113
114114
115115.. function :: write_history_file([filename]) 
116116
117117   Save the history list to a readline history file, overwriting any
118118   existing file.  The default filename is :file: `~/.history `.  This calls
119-    :c:func: `write_history ` in the underlying library.
119+    :c:func: `! write_history
120120
121121
122122.. function :: append_history_file(nelements[, filename]) 
123123
124124   Append the last *nelements * items of history to a file.  The default filename is
125125   :file: `~/.history `.  The file must already exist.  This calls
126-    :c:func: `append_history ` in the underlying library.  This function
126+    :c:func: `! append_history
127127   only exists if Python was compiled for a version of the library
128128   that supports it.
129129
@@ -135,7 +135,7 @@ The following functions operate on a history file:
135135
136136   Set or return the desired number of lines to save in the history file.
137137   The :func: `write_history_file ` function uses this value to truncate
138-    the history file, by calling :c:func: `history_truncate_file ` in
138+    the history file, by calling :c:func: `! history_truncate_file
139139   the underlying library.  Negative values imply
140140   unlimited history file size.
141141
@@ -148,7 +148,7 @@ The following functions operate on a global history list:
148148
149149.. function :: clear_history() 
150150
151-    Clear the current history.  This calls :c:func: `clear_history ` in the
151+    Clear the current history.  This calls :c:func: `! clear_history
152152   underlying library.  The Python function only exists if Python was
153153   compiled for a version of the library that supports it.
154154
@@ -163,32 +163,32 @@ The following functions operate on a global history list:
163163.. function :: get_history_item(index) 
164164
165165   Return the current contents of history item at *index *.  The item index
166-    is one-based.  This calls :c:func: `history_get ` in the underlying library.
166+    is one-based.  This calls :c:func: `! history_get
167167
168168
169169.. function :: remove_history_item(pos) 
170170
171171   Remove history item specified by its position from the history.
172-    The position is zero-based.  This calls :c:func: `remove_history ` in
172+    The position is zero-based.  This calls :c:func: `! remove_history
173173   the underlying library.
174174
175175
176176.. function :: replace_history_item(pos, line) 
177177
178178   Replace history item specified by its position with *line *.
179-    The position is zero-based.  This calls :c:func: `replace_history_entry `
179+    The position is zero-based.  This calls :c:func: `! replace_history_entry
180180   in the underlying library.
181181
182182
183183.. function :: add_history(line) 
184184
185185   Append *line * to the history buffer, as if it was the last line typed.
186-    This calls :c:func: `add_history ` in the underlying library.
186+    This calls :c:func: `! add_history
187187
188188
189189.. function :: set_auto_history(enabled) 
190190
191-    Enable or disable automatic calls to :c:func: `add_history ` when reading
191+    Enable or disable automatic calls to :c:func: `! add_history
192192   input via readline.  The *enabled * argument should be a Boolean value
193193   that when true, enables auto history, and that when false, disables
194194   auto history.
@@ -206,7 +206,7 @@ Startup hooks
206206
207207.. function :: set_startup_hook([function]) 
208208
209-    Set or remove the function invoked by the :c:data: `rl_startup_hook `
209+    Set or remove the function invoked by the :c:data: `! rl_startup_hook
210210   callback of the underlying library.  If *function * is specified, it will
211211   be used as the new hook function; if omitted or ``None ``, any function
212212   already installed is removed.  The hook is called with no
@@ -215,7 +215,7 @@ Startup hooks
215215
216216.. function :: set_pre_input_hook([function]) 
217217
218-    Set or remove the function invoked by the :c:data: `rl_pre_input_hook `
218+    Set or remove the function invoked by the :c:data: `! rl_pre_input_hook
219219   callback of the underlying library.  If *function * is specified, it will
220220   be used as the new hook function; if omitted or ``None ``, any
221221   function already installed is removed.  The hook is called
@@ -247,9 +247,9 @@ with a custom completer, a different set of word delimiters should be set.
247247   starting with *text *.
248248
249249   The installed completer function is invoked by the *entry_func * callback
250-    passed to :c:func: `rl_completion_matches ` in the underlying library.
250+    passed to :c:func: `! rl_completion_matches
251251   The *text * string comes from the first parameter to the
252-    :c:data: `rl_attempted_completion_function ` callback of the
252+    :c:data: `! rl_attempted_completion_function
253253   underlying library.
254254
255255
@@ -261,7 +261,7 @@ with a custom completer, a different set of word delimiters should be set.
261261.. function :: get_completion_type() 
262262
263263   Get the type of completion being attempted.  This returns the
264-    :c:data: `rl_completion_type ` variable in the underlying library as
264+    :c:data: `! rl_completion_type
265265   an integer.
266266
267267
@@ -270,7 +270,7 @@ with a custom completer, a different set of word delimiters should be set.
270270
271271   Get the beginning or ending index of the completion scope.
272272   These indexes are the *start * and *end * arguments passed to the
273-    :c:data: `rl_attempted_completion_function ` callback of the
273+    :c:data: `! rl_attempted_completion_function
274274   underlying library.  The values may be different in the same
275275   input editing scenario based on the underlying C readline implementation.
276276   Ex: libedit is known to behave differently than libreadline.
@@ -281,7 +281,7 @@ with a custom completer, a different set of word delimiters should be set.
281281
282282   Set or get the word delimiters for completion.  These determine the
283283   start of the word to be considered for completion (the completion scope).
284-    These functions access the :c:data: `rl_completer_word_break_characters `
284+    These functions access the :c:data: `! rl_completer_word_break_characters
285285   variable in the underlying library.
286286
287287
@@ -291,7 +291,7 @@ with a custom completer, a different set of word delimiters should be set.
291291   specified, it will be used as the new completion display function;
292292   if omitted or ``None ``, any completion display function already
293293   installed is removed.  This sets or clears the
294-    :c:data: `rl_completion_display_matches_hook ` callback in the
294+    :c:data: `! rl_completion_display_matches_hook
295295   underlying library.  The completion display function is called as
296296   ``function(substitution, [matches], longest_match_length) `` once
297297   each time matches need to be displayed.
0 commit comments