aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2020-03-07 07:50:28 -0800
committerGlenn Morris2020-03-07 07:50:28 -0800
commit3274b8090bf18dec00b6ce45d6a01bf5263982ed (patch)
tree51eefa044043b38e239e23049592a7e49808aa72 /src
parentc996fe1ec69de0082043397d4965d08cb94892fb (diff)
parent72f87f88739befce2adf202749b7d651a8ef1551 (diff)
downloademacs-3274b8090bf18dec00b6ce45d6a01bf5263982ed.tar.gz
emacs-3274b8090bf18dec00b6ce45d6a01bf5263982ed.zip
Merge from origin/emacs-27
72f87f8873 (origin/emacs-27) NS port documentation updates 5b19db98ad ; * etc/NEWS: correctly describe what fido-mode is fc47e3ad99 Let fido-mode users force a minibuffer-exit e734961d4c icomplete-fido-exit: New command for the M-j binding 335a9bd215 minibuffer-force-complete-and-exit: Allow input with no ma... 34132d4bf6 ; * etc/NEWS: Mark 2 entries as fully documented. d28b73841b ; * etc/NEWS: Fix the 'mml-secure-openpgp-sign-with-sender... d1d56a9fd9 ; * etc/NEWS: 'thunk-let' and 'thunk-let*' are fully docum... fc4f4efabf ; * etc/NEWS: No need to document vc-hg and mergebase chan... 9e8456cf0f ; * etc/NEWS: No need to document changes in Octave mode. 25b4d6fa28 ; * etc/NEWS: No need to document changes in map.el and se... fc4d0f86da ; * etc/NEWS: No need to document Ido news. d4ac478cb3 ; * etc/NEWS: No need to document news of doc-view.el. 08c042bd26 Document that 'byte-compile-dynamic' is obsolete 512b66abd7 ; * etc/NEWS: No need to document 'goto-address-uri-scheme... 3103c01c3e ; * etc/NEWS: Formatting fixes. 98306fdfb8 ; * etc/NEWS: No need to document deprecation of 'cl'. 6281ed58be ; * etc/NEWS: No need to document the change in 'list-proc... e252341e11 ; * etc/NEWS: 'backup-by-copying-when-privileged-mismatch'... ec5a267ddc ; * etc/NEWS: Mark 'byte-count-to-string-function' as undo... 89307ebccd ; * etc/NEWS: Mark 'completion-common-part' face entry as ... fdbe7cacfb Document the changes in 'read-answer' 10c58356e4 Document changes in lexical-binding 5cb312b5b9 Update ERC mailing list address cb1877321b Use regexp-opt to define bibtex-autokey-transcriptions. (... 3f9c340de0 Improve documentation of 'table-generate-source' 33b31dc314 Attempt to avoid rare segfaults in show_mouse_face 88c6db9196 Avoid crashes when a fontset has strange entries 1814c7e158 Fix rx error with ? and ?? 40fb20061e * lisp/emacs-lisp/rx.el (rx--string-to-intervals): Fix err... 08d7d28d35 Fix args in 'window-text-pixel-size' call in 'fit-window-t... cb1e30910e Have pulse.el preserve existing overlay priorities # Conflicts: # etc/NEWS
Diffstat (limited to 'src')
-rw-r--r--src/fontset.c12
-rw-r--r--src/xdisp.c4
2 files changed, 14 insertions, 2 deletions
diff --git a/src/fontset.c b/src/fontset.c
index bca9452418e..c2bb8b21f26 100644
--- a/src/fontset.c
+++ b/src/fontset.c
@@ -367,8 +367,14 @@ fontset_add (Lisp_Object fontset, Lisp_Object range, Lisp_Object elt, Lisp_Objec
367static int 367static int
368fontset_compare_rfontdef (const void *val1, const void *val2) 368fontset_compare_rfontdef (const void *val1, const void *val2)
369{ 369{
370 return (RFONT_DEF_SCORE (*(Lisp_Object *) val1) 370 Lisp_Object v1 = *(Lisp_Object *) val1, v2 = *(Lisp_Object *) val2;
371 - RFONT_DEF_SCORE (*(Lisp_Object *) val2)); 371 if (NILP (v1) && NILP (v2))
372 return 0;
373 else if (NILP (v1))
374 return INT_MIN;
375 else if (NILP (v2))
376 return INT_MAX;
377 return (RFONT_DEF_SCORE (v1) - RFONT_DEF_SCORE (v2));
372} 378}
373 379
374/* Update a cons cell which has this form: 380/* Update a cons cell which has this form:
@@ -400,6 +406,8 @@ reorder_font_vector (Lisp_Object font_group, struct font *font)
400 for (i = 0; i < size; i++) 406 for (i = 0; i < size; i++)
401 { 407 {
402 Lisp_Object rfont_def = AREF (vec, i); 408 Lisp_Object rfont_def = AREF (vec, i);
409 if (NILP (rfont_def))
410 continue;
403 Lisp_Object font_def = RFONT_DEF_FONT_DEF (rfont_def); 411 Lisp_Object font_def = RFONT_DEF_FONT_DEF (rfont_def);
404 Lisp_Object font_spec = FONT_DEF_SPEC (font_def); 412 Lisp_Object font_spec = FONT_DEF_SPEC (font_def);
405 int score = RFONT_DEF_SCORE (rfont_def) & 0xFF; 413 int score = RFONT_DEF_SCORE (rfont_def) & 0xFF;
diff --git a/src/xdisp.c b/src/xdisp.c
index c2aa314c1ad..3c594b54add 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -31441,6 +31441,10 @@ show_mouse_face (Mouse_HLInfo *hlinfo, enum draw_glyphs_face draw)
31441 struct window *w = XWINDOW (hlinfo->mouse_face_window); 31441 struct window *w = XWINDOW (hlinfo->mouse_face_window);
31442 struct frame *f = XFRAME (WINDOW_FRAME (w)); 31442 struct frame *f = XFRAME (WINDOW_FRAME (w));
31443 31443
31444 /* Don't bother doing anything if we are on a wrong frame. */
31445 if (f != hlinfo->mouse_face_mouse_frame)
31446 return;
31447
31444 if (/* If window is in the process of being destroyed, don't bother 31448 if (/* If window is in the process of being destroyed, don't bother
31445 to do anything. */ 31449 to do anything. */
31446 w->current_matrix != NULL 31450 w->current_matrix != NULL