aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley2016-02-03 23:56:08 -0800
committerJohn Wiegley2016-02-03 23:56:08 -0800
commit0608bf1c3d91196bcf06a6da96243f0fac119089 (patch)
treed79a6c43cd10c681445b75f859545c9f88e41899 /src
parent91ab66201cedbcd2e4e8533a7152f6736ad08731 (diff)
parentee7399792f865905d393df05c3d4e5ec309aa06c (diff)
downloademacs-0608bf1c3d91196bcf06a6da96243f0fac119089.tar.gz
emacs-0608bf1c3d91196bcf06a6da96243f0fac119089.zip
Merge from origin/emacs-25
ee73997 Make erc work better when encountering unknown prefix chars b99141d Make erc completion case-insensitive again 66c4620 Make complection in erc use consistent casing 8c562b2 Make /QUIT in erc more robust d93d2c5 Make tracking faces in Emacs work more reliably af6ab7e Make shr not bug out on images on non-graphical displays 3311f40 Fix bookmark display widths d90ab1e Fix typo in eww-make-unique-file-name 7f81825 Make it possible to TAB to input fields a43a1dc Insert complete alt texts when images are disabled 56ed4e1 Allow eww text fields to grow 66b315c Make erc work when subword-mode is switched on 255b68f Fix IMAP doc example 91557f5 Quoting fixes in doc strings and diagnostics 2c0dc9f Fix warning message in hack-local-variables 504696d Etags: yet another improvement in Ruby tags 8784ebf Fix x-popup-menu on TTYs without a mouse 8b87ecb * lisp/emacs-lisp/map.el: Improvements to the docstring of the pcase macro 6191003 Use pop-to-buffer-same-window in eww fe321fd * autogen.sh: Revert all recent changes. 74ebd4a * make-dist: Updates related to nt/. 737193a * make-dist: Add modules/. 3696bf2 * make-dist: Update for super-special file that can't live in etc/. a4278e2 Fix failure to compile ns-win.el in parallel builds 860da4d Fix names of tags generated for Ruby accessors f6213ce Fix file-name recognition in 'etags' e42e662 Change Ruby file names and extensions recognized by 'etags' 58bfb6a More improvements for Ruby support in 'etags' c04e911 Add --git-config option to autogen.sh 5713466 Fix editing undo changes in eww fields 51362d6 Allow the user more control of popping up the eww window ee0fbd8 Make eww-browse-url with new-window parameter work again 9c3142d Clean up eww code slightly cb035f3 Don't insert nil faces in shr 4c3fae3 ; * lisp/progmodes/prolog.el: Remove some obsolete commentary. 93f2153 Improve the custom type of some user options. 9f60d7e Mark some risky calendar variables. 1d07dcd Highlight two additional SCSS keywords ee8b466 Recommend enabling integrity-checking in git e639e10 Some corrections in Elisp manual d766ca8 Chatter when autogen.sh changes Git configuration 3b734e1 * org/org-compat.el (org-font-lock-ensure): Fix bogus test (bug#22399) 43cb9f8 Omit unnecessary history from Lisp intro 2fbd1da * etc/HISTORY: Add some more history, plus git tags. c90e1b4 Improve elisp “Security Considerations” doc cedd7ca autogen.sh now arranges for git to check hashes 86ce76b ; Fix ChangeLog.2 commit ID. 7b1d2b1 Fix (c & 040) typo in emergency escapes a8273da Fix display of overlay strings with 'display' and 'box' property fc48106 Fix imap-starttls-open cdecbed Fix return value of imap-starttls-open 20c7e34 ; * etc/NEWS: Fix renamed command name 98bdbdb Correct reference to DARWIN_OS preprocessor symbol b250d29 Spelling fix b920a0e Spelling fixes 93b144b Pacify GCC on C library without glibc API
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{