aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in5
-rw-r--r--src/alloc.c13
-rw-r--r--src/buffer.c10
-rw-r--r--src/keyboard.c4
-rw-r--r--src/menu.c3
-rw-r--r--src/xdisp.c13
-rw-r--r--src/xwidget.c2
7 files changed, 37 insertions, 13 deletions
diff --git a/src/Makefile.in b/src/Makefile.in
index 150575864da..5f72076dc45 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -505,6 +505,11 @@ $(srcdir)/macuvs.h $(lispsource)/international/charprop.el: \
505$(lispsource)/international/ucs-normalize.elc: | \ 505$(lispsource)/international/ucs-normalize.elc: | \
506 $(lispsource)/international/charprop.el 506 $(lispsource)/international/charprop.el
507 507
508## ns-win.el loads ucs-normalize, so it also needs the above-mentioned
509## 2 uni-*.el files to exist.
510$(lispsource)/term/ns-win.elc: | \
511 $(lispsource)/international/charprop.el
512
508lispintdir = ${lispsource}/international 513lispintdir = ${lispsource}/international
509${lispintdir}/cp51932.el ${lispintdir}/eucjp-ms.el: FORCE 514${lispintdir}/cp51932.el ${lispintdir}/eucjp-ms.el: FORCE
510 ${MAKE} -C ../admin/charsets $(notdir $@) 515 ${MAKE} -C ../admin/charsets $(notdir $@)
diff --git a/src/alloc.c b/src/alloc.c
index b40c1f387cb..f0e9f208ca3 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1122,10 +1122,17 @@ lisp_free (void *block)
1122 1122
1123/* Use aligned_alloc if it or a simple substitute is available. 1123/* Use aligned_alloc if it or a simple substitute is available.
1124 Address sanitization breaks aligned allocation, as of gcc 4.8.2 and 1124 Address sanitization breaks aligned allocation, as of gcc 4.8.2 and
1125 clang 3.3 anyway. */ 1125 clang 3.3 anyway. Aligned allocation is incompatible with
1126 unexmacosx.c, so don't use it on Darwin. */
1126 1127
1127#if ! ADDRESS_SANITIZER 1128#if ! ADDRESS_SANITIZER && !defined DARWIN_OS
1128# if defined HYBRID_MALLOC 1129# if !defined SYSTEM_MALLOC && !defined DOUG_LEA_MALLOC && !defined HYBRID_MALLOC
1130# define USE_ALIGNED_ALLOC 1
1131# ifndef HAVE_ALIGNED_ALLOC
1132/* Defined in gmalloc.c. */
1133void *aligned_alloc (size_t, size_t);
1134# endif
1135# elif defined HYBRID_MALLOC
1129# if defined HAVE_ALIGNED_ALLOC || defined HAVE_POSIX_MEMALIGN 1136# if defined HAVE_ALIGNED_ALLOC || defined HAVE_POSIX_MEMALIGN
1130# define USE_ALIGNED_ALLOC 1 1137# define USE_ALIGNED_ALLOC 1
1131# endif 1138# endif
diff --git a/src/buffer.c b/src/buffer.c
index 3e410670c54..98b61c350e2 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.
2146If the text under POSITION (which defaults to point) has the 2146If 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}
diff --git a/src/keyboard.c b/src/keyboard.c
index 7e95ad7ad16..baca4b56fb5 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -10304,7 +10304,7 @@ handle_interrupt (bool in_signal_handler)
10304 { 10304 {
10305 write_stdout ("Auto-save? (y or n) "); 10305 write_stdout ("Auto-save? (y or n) ");
10306 c = read_stdin (); 10306 c = read_stdin ();
10307 if ((c & 040) == 'Y') 10307 if (c == 'y' || c == 'Y')
10308 { 10308 {
10309 Fdo_auto_save (Qt, Qnil); 10309 Fdo_auto_save (Qt, Qnil);
10310#ifdef MSDOS 10310#ifdef MSDOS
@@ -10336,7 +10336,7 @@ handle_interrupt (bool in_signal_handler)
10336 write_stdout ("Abort (and dump core)? (y or n) "); 10336 write_stdout ("Abort (and dump core)? (y or n) ");
10337#endif 10337#endif
10338 c = read_stdin (); 10338 c = read_stdin ();
10339 if ((c & ~040) == 'Y') 10339 if (c == 'y' || c == 'Y')
10340 emacs_abort (); 10340 emacs_abort ();
10341 while (c != '\n') 10341 while (c != '\n')
10342 c = read_stdin (); 10342 c = read_stdin ();
diff --git a/src/menu.c b/src/menu.c
index caae228a259..cbddef35754 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -1236,6 +1236,9 @@ no quit occurs and `x-popup-menu' returns nil. */)
1236 { 1236 {
1237 /* Use the mouse's current position. */ 1237 /* Use the mouse's current position. */
1238 struct frame *new_f = SELECTED_FRAME (); 1238 struct frame *new_f = SELECTED_FRAME ();
1239
1240 XSETFASTINT (x, 0);
1241 XSETFASTINT (y, 0);
1239#ifdef HAVE_X_WINDOWS 1242#ifdef HAVE_X_WINDOWS
1240 if (FRAME_X_P (new_f)) 1243 if (FRAME_X_P (new_f))
1241 { 1244 {
diff --git a/src/xdisp.c b/src/xdisp.c
index 78fddd60fc0..8f1e98d99ef 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -7234,14 +7234,23 @@ get_next_display_element (struct it *it)
7234 buffer position is stored in the 'position' 7234 buffer position is stored in the 'position'
7235 member of the iteration stack slot below the 7235 member of the iteration stack slot below the
7236 current one, see handle_single_display_spec. By 7236 current one, see handle_single_display_spec. By
7237 contrast, it->current.pos was is not yet updated 7237 contrast, it->current.pos was not yet updated
7238 to point to that buffer position; that will 7238 to point to that buffer position; that will
7239 happen in pop_it, after we finish displaying the 7239 happen in pop_it, after we finish displaying the
7240 current string. Note that we already checked 7240 current string. Note that we already checked
7241 above that it->sp is positive, so subtracting one 7241 above that it->sp is positive, so subtracting one
7242 from it is safe. */ 7242 from it is safe. */
7243 if (it->from_disp_prop_p) 7243 if (it->from_disp_prop_p)
7244 pos = (it->stack + it->sp - 1)->position; 7244 {
7245 int stackp = it->sp - 1;
7246
7247 /* Find the stack level with data from buffer. */
7248 while (stackp >= 0
7249 && STRINGP ((it->stack + stackp)->string))
7250 stackp--;
7251 eassert (stackp >= 0);
7252 pos = (it->stack + stackp)->position;
7253 }
7245 else 7254 else
7246 INC_TEXT_POS (pos, it->multibyte_p); 7255 INC_TEXT_POS (pos, it->multibyte_p);
7247 7256
diff --git a/src/xwidget.c b/src/xwidget.c
index 8745416f3db..f436e95d686 100644
--- a/src/xwidget.c
+++ b/src/xwidget.c
@@ -320,7 +320,7 @@ xwidget_show_view (struct xwidget_view *xv)
320 xv->y + xv->clip_top); 320 xv->y + xv->clip_top);
321} 321}
322 322
323/* Hide an xvidget view. */ 323/* Hide an xwidget view. */
324static void 324static void
325xwidget_hide_view (struct xwidget_view *xv) 325xwidget_hide_view (struct xwidget_view *xv)
326{ 326{