aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c8
-rw-r--r--src/emacs-module.c2
-rw-r--r--src/xterm.c4
3 files changed, 5 insertions, 9 deletions
diff --git a/src/buffer.c b/src/buffer.c
index d8842a6d770..f3532a86189 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -6236,10 +6236,10 @@ Lisp programs may give this variable certain special values:
6236 6236
6237 DEFVAR_LISP ("inhibit-read-only", Vinhibit_read_only, 6237 DEFVAR_LISP ("inhibit-read-only", Vinhibit_read_only,
6238 doc: /* Non-nil means disregard read-only status of buffers or characters. 6238 doc: /* Non-nil means disregard read-only status of buffers or characters.
6239If the value is t, disregard `buffer-read-only' and all `read-only' 6239A non-nil value that is a list means disregard `buffer-read-only' status,
6240text properties. If the value is a list, disregard `buffer-read-only' 6240and disregard a `read-only' text property if the property value is a
6241and disregard a `read-only' text property if the property value 6241member of the list. Any other non-nil value means disregard `buffer-read-only'
6242is a member of the list. */); 6242and all `read-only' text properties. */);
6243 Vinhibit_read_only = Qnil; 6243 Vinhibit_read_only = Qnil;
6244 6244
6245 DEFVAR_PER_BUFFER ("cursor-type", &BVAR (current_buffer, cursor_type), Qnil, 6245 DEFVAR_PER_BUFFER ("cursor-type", &BVAR (current_buffer, cursor_type), Qnil,
diff --git a/src/emacs-module.c b/src/emacs-module.c
index cdcbe061b53..e43e4907d2e 100644
--- a/src/emacs-module.c
+++ b/src/emacs-module.c
@@ -683,7 +683,7 @@ module_copy_string_contents (emacs_env *env, emacs_value value, char *buf,
683 683
684 /* Since we set HANDLE-8-BIT and HANDLE-OVER-UNI to nil, the return 684 /* Since we set HANDLE-8-BIT and HANDLE-OVER-UNI to nil, the return
685 value can be nil, and we have to check for that. */ 685 value can be nil, and we have to check for that. */
686 CHECK_TYPE (!NILP (lisp_str_utf8), Qunicode_string_p, lisp_str_utf8); 686 CHECK_TYPE (!NILP (lisp_str_utf8), Qunicode_string_p, lisp_str);
687 687
688 ptrdiff_t raw_size = SBYTES (lisp_str_utf8); 688 ptrdiff_t raw_size = SBYTES (lisp_str_utf8);
689 ptrdiff_t required_buf_size = raw_size + 1; 689 ptrdiff_t required_buf_size = raw_size + 1;
diff --git a/src/xterm.c b/src/xterm.c
index fc68c77048f..bd9688fda81 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1291,11 +1291,7 @@ x_clear_under_internal_border (struct frame *f)
1291 int border = FRAME_INTERNAL_BORDER_WIDTH (f); 1291 int border = FRAME_INTERNAL_BORDER_WIDTH (f);
1292 int width = FRAME_PIXEL_WIDTH (f); 1292 int width = FRAME_PIXEL_WIDTH (f);
1293 int height = FRAME_PIXEL_HEIGHT (f); 1293 int height = FRAME_PIXEL_HEIGHT (f);
1294#ifdef USE_GTK
1295 int margin = 0;
1296#else
1297 int margin = FRAME_TOP_MARGIN_HEIGHT (f); 1294 int margin = FRAME_TOP_MARGIN_HEIGHT (f);
1298#endif
1299 int face_id = 1295 int face_id =
1300 !NILP (Vface_remapping_alist) 1296 !NILP (Vface_remapping_alist)
1301 ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID) 1297 ? lookup_basic_face (NULL, f, INTERNAL_BORDER_FACE_ID)