diff options
| author | Martin Rudalics | 2016-02-01 19:01:34 +0100 |
|---|---|---|
| committer | Martin Rudalics | 2016-02-01 19:01:34 +0100 |
| commit | e639e10a63c574609df3f745c4adb538415d9b1b (patch) | |
| tree | ed407a425b02011707ada1376ad98bdf7f828571 /src/buffer.c | |
| parent | d766ca8ff1e4ff1a30385508e1f456fad6bfe9f8 (diff) | |
| download | emacs-e639e10a63c574609df3f745c4adb538415d9b1b.tar.gz emacs-e639e10a63c574609df3f745c4adb538415d9b1b.zip | |
Some corrections in Elisp manual
* doc/lispref/buffers.texi (Read Only Buffers): Describe optional
argument POSITION.
* doc/lispref/debugging.texi (Error Debugging): `debug-on-signal'
is an option.
* doc/lispref/display.texi (Refresh Screen): Describe optional
argument FRAME of `redraw-frame'.
(Attribute Functions): Describe optional argument CHARACTER of
`face-font'.
(Defining Images): `image-load-path' is an option.
(Beeping): `ring-bell-function' is an option.
* doc/lispref/frames.texi (Size and Position): The PIXELWISE
argument of `set-frame-size' is optional.
(Raising and Lowering): The TERMINAL argument of `tty-top-frame'
is optional.
* doc/lispref/keymaps.texi (Controlling Active Maps): Fix doc of
`set-transient-map'.
* doc/lispref/minibuf.texi (Text from Minibuffer):
`read-regexp-defaults-function' is an option.
(Minibuffer Contents): `delete-minibuffer-contents' is a command.
* doc/lispref/modes.texi (Mode Line Variables):
`mode-line-position' and `mode-line-modes' are variables, not
options.
* doc/lispref/strings.texi (Creating Strings): The START argument
of `substring' is optional.
* doc/lispref/text.texi (Buffer Contents): Describe optional
argument NO-PROPERTIES of `thing-at-point'.
(User-Level Deletion): Both arguments of
`delete-trailing-whitespace' are optional.
(Margins): Use @key{RET} instead of @kbd{RET}.
* doc/lispref/windows.texi (Display Action Functions): Write
non-@code{nil} instead of non-nil.
(Choosing Window Options): The WINDOW arg of
`split-window-sensibly' is optional.
(Choosing Window Options): Write non-@code{nil} instead of
non-nil.
(Window Start and End): Both args of `window-group-end' are
optional.
* src/buffer.c (Fbarf_if_buffer_read_only): Rename argument POS
to POSITION to keep consisteny with doc-string.
Diffstat (limited to 'src/buffer.c')
| -rw-r--r-- | src/buffer.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/buffer.c b/src/buffer.c index 74b6fb6a47f..653e3fe05f8 100644 --- a/src/buffer.c +++ b/src/buffer.c | |||
| @@ -2145,16 +2145,16 @@ DEFUN ("barf-if-buffer-read-only", Fbarf_if_buffer_read_only, | |||
| 2145 | doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. | 2145 | doc: /* Signal a `buffer-read-only' error if the current buffer is read-only. |
| 2146 | If the text under POSITION (which defaults to point) has the | 2146 | If the text under POSITION (which defaults to point) has the |
| 2147 | `inhibit-read-only' text property set, the error will not be raised. */) | 2147 | `inhibit-read-only' text property set, the error will not be raised. */) |
| 2148 | (Lisp_Object pos) | 2148 | (Lisp_Object position) |
| 2149 | { | 2149 | { |
| 2150 | if (NILP (pos)) | 2150 | if (NILP (position)) |
| 2151 | XSETFASTINT (pos, PT); | 2151 | XSETFASTINT (position, PT); |
| 2152 | else | 2152 | else |
| 2153 | CHECK_NUMBER (pos); | 2153 | CHECK_NUMBER (position); |
| 2154 | 2154 | ||
| 2155 | if (!NILP (BVAR (current_buffer, read_only)) | 2155 | if (!NILP (BVAR (current_buffer, read_only)) |
| 2156 | && NILP (Vinhibit_read_only) | 2156 | && NILP (Vinhibit_read_only) |
| 2157 | && NILP (Fget_text_property (pos, Qinhibit_read_only, Qnil))) | 2157 | && NILP (Fget_text_property (position, Qinhibit_read_only, Qnil))) |
| 2158 | xsignal1 (Qbuffer_read_only, Fcurrent_buffer ()); | 2158 | xsignal1 (Qbuffer_read_only, Fcurrent_buffer ()); |
| 2159 | return Qnil; | 2159 | return Qnil; |
| 2160 | } | 2160 | } |